Lines Matching refs:readbuf
28 static unsigned char *readbuf; variable
124 clear_data(readbuf, subpgsize); in verify_eraseblock()
125 err = mtd_read(mtd, addr, subpgsize, &read, readbuf); in verify_eraseblock()
137 if (unlikely(memcmp(readbuf, writebuf, subpgsize))) { in verify_eraseblock()
143 print_subpage(readbuf); in verify_eraseblock()
151 clear_data(readbuf, subpgsize); in verify_eraseblock()
152 err = mtd_read(mtd, addr, subpgsize, &read, readbuf); in verify_eraseblock()
164 if (unlikely(memcmp(readbuf, writebuf, subpgsize))) { in verify_eraseblock()
170 print_subpage(readbuf); in verify_eraseblock()
188 clear_data(readbuf, subpgsize * k); in verify_eraseblock2()
189 err = mtd_read(mtd, addr, subpgsize * k, &read, readbuf); in verify_eraseblock2()
201 if (unlikely(memcmp(readbuf, writebuf, subpgsize * k))) { in verify_eraseblock2()
221 clear_data(readbuf, subpgsize); in verify_eraseblock_ff()
222 err = mtd_read(mtd, addr, subpgsize, &read, readbuf); in verify_eraseblock_ff()
234 if (unlikely(memcmp(readbuf, writebuf, subpgsize))) { in verify_eraseblock_ff()
314 readbuf = kmalloc(bufsize, GFP_KERNEL); in mtd_subpagetest_init()
315 if (!readbuf) in mtd_subpagetest_init()
419 kfree(readbuf); in mtd_subpagetest_init()