Lines Matching refs:written
73 static void report_corrupt(unsigned char *read, unsigned char *written);
146 size_t written; in write_pattern() local
154 err = mtd_write(mtd, addr, len, &written, buf); in write_pattern()
157 " bytes\n", err, ebnum, written); in write_pattern()
160 if (written != len) { in write_pattern()
162 " reported\n", written, len); in write_pattern()
364 static void print_bufs(unsigned char *read, unsigned char *written, int start,
371 static void report_corrupt(unsigned char *read, unsigned char *written) in report_corrupt() argument
383 if (countdiffs(written, read, i, pgsize, &bytes, in report_corrupt()
395 first = countdiffs(written, read, i, pgsize, &bytes, in report_corrupt()
411 print_bufs(read, written, offset, len); in report_corrupt()
415 static void print_bufs(unsigned char *read, unsigned char *written, int start, in print_bufs() argument
427 if (read[start + i + j1] != written[start + i + j1]) in print_bufs()
439 printk(" %02x", written[start + i + j2]); in print_bufs()