Lines Matching +defs:init +defs:data
73 * These are the data patterns used if random patterns are not chosen.
86 * These are the data patterns from the SunFed requirements document.
102 unsigned data, int init, int driver_flags, int *xfercntp);
105 unsigned data, int driver_flags, int *xfercntp);
126 int pass, needinit, data;
222 * Determine the data pattern to use if pattern testing
227 data = (int)mrand48();
229 data = scan_patterns[pass % NPPATTERNS];
241 data = alpha_pattern;
243 data = purge_patterns[pattern];
250 data = purge_patterns[pattern];
256 fmt_print(" - pattern = 0x%x", data);
299 (unsigned)data, needinit, (F_ALLERRS | F_SILENT),
339 (unsigned)data, needinit, F_ALLERRS, NULL);
484 * good data out of the sector, write that data back
511 * The repair worked. Write the good data we could
583 analyze_blocks(flags, blkno, blkcnt, data, init, driver_flags, xfercntp)
584 int flags, driver_flags, init;
586 register unsigned data;
597 return (verify_blocks(flags, blkno, blkcnt, data,
605 if ((flags & SCAN_PATTERN) && init) {
607 *((int *)((int *)pattern_buf + i)) = data;
610 * Lock out interrupts so we can insure valid data will get
612 * of scanning that corrupt the disk data then restore it at
617 * If the disk data is valid, read it into the data buffer.
631 * If the disk data was valid, mark it corrupt so we know
659 * If we are doing a data compare, make sure the pattern
662 * we wrote random data instead of the expected data pattern.
666 if (*ptr++ != data) {
668 err_print("0x%x, got 0x%x) at ", data,
678 * If we are supposed to write data out, do so.
693 * There was an error. If the data was corrupted, we write it
694 * out from the data buffer to restore it.
699 err_print("Warning: unable to restore original data.\n");
716 * by writing unique data for each block; after the write pass, it
717 * reads the data and verifies for correctness. Note that the entire
725 unsigned data,
736 * Use the block number itself as data, each block has unique
737 * buffer data that way.
740 for (data = blkno; data < blkno + blkcnt; data++) {
742 *ptr++ = data;
767 for (data = blkno; data < blkno + blkcnt; data++) {
769 if (*ptr++ != data) {
773 data, *ptr);