Lines Matching refs:check_buf
66 static unsigned char *check_buf; variable
102 err = mtd_read(mtd, addr, len, &read, check_buf); in check_eraseblock()
119 if (memcmp(buf, check_buf, len)) { in check_eraseblock()
121 report_corrupt(check_buf, buf); in check_eraseblock()
225 check_buf = kmalloc(mtd->erasesize, GFP_KERNEL); in tort_init()
226 if (!check_buf) in tort_init()
339 kfree(check_buf); in tort_init()
361 static int countdiffs(unsigned char *buf, unsigned char *check_buf,
449 static int countdiffs(unsigned char *buf, unsigned char *check_buf, in countdiffs() argument
457 if (buf[i] != check_buf[i]) { in countdiffs()
463 if (buf[i] != check_buf[i]) { in countdiffs()
467 if ((buf[i] & bit) != (check_buf[i] & bit)) in countdiffs()