Home | History | Annotate | Download | only in disktest

Lines Matching refs:pattern

349 * This function fills the passed buffer with data based on the pattern and patten type.
350 * for pattern types of counting the pattern does not matter. For lba pattern type, the
351 * pattern will be the address of the lba.
354 void fill_buffer(void *buf, size_t len, void *pattern, size_t pattern_len,
360 unsigned char *ucharpattern = pattern;
361 OFF_T *poff_tpattern = pattern;
364 switch (pattern_type) { /* the pattern type should only be one of the following */
366 /* Will fill buffer with counting pattern 0x00 thru 0xff */
397 /* fill buffer with fixed pattern */
438 /* Will fill buffer with a random pattern.
451 printf("Unknown fill pattern\n");