Lines Matching refs:readbuf
38 static unsigned char *readbuf; variable
194 ops.oobbuf = readbuf; in verify_eraseblock()
202 if (memcmp(readbuf, writebuf, use_len)) { in verify_eraseblock()
221 ops.oobbuf = readbuf; in verify_eraseblock()
229 if (memcmp(readbuf + use_offset, writebuf, use_len)) { in verify_eraseblock()
240 if (readbuf[k] != 0xff) { in verify_eraseblock()
253 if (readbuf[k] != 0xff) { in verify_eraseblock()
286 ops.oobbuf = readbuf; in verify_eraseblock_in_one_go()
294 if (memcmp(readbuf, writebuf, len)) { in verify_eraseblock_in_one_go()
395 readbuf = kmalloc(mtd->erasesize, GFP_KERNEL); in mtd_oobtest_init()
396 if (!readbuf) { in mtd_oobtest_init()
537 ops.oobbuf = readbuf; in mtd_oobtest_init()
581 ops.oobbuf = readbuf; in mtd_oobtest_init()
625 ops.oobbuf = readbuf; in mtd_oobtest_init()
693 ops.oobbuf = readbuf; in mtd_oobtest_init()
697 if (memcmp(readbuf, writebuf, mtd->ecclayout->oobavail * 2)) { in mtd_oobtest_init()
716 kfree(readbuf); in mtd_oobtest_init()