Lines Matching refs:writebuf
33 static unsigned char *writebuf; variable
63 prandom_bytes_state(&rnd_state, writebuf, use_len_max * pgcnt); in write_eraseblock()
72 ops.oobbuf = writebuf + (use_len_max * i) + use_offset; in write_eraseblock()
173 prandom_bytes_state(&rnd_state, writebuf, use_len_max * pgcnt); in verify_eraseblock()
195 writebuf + (use_len_max * i) + use_offset, in verify_eraseblock()
232 writebuf + (use_len_max * i) + use_offset, in verify_eraseblock()
271 prandom_bytes_state(&rnd_state, writebuf, len); in verify_eraseblock_in_one_go()
296 writebuf + (i * oobavail), oobavail); in verify_eraseblock_in_one_go()
382 writebuf = kmalloc(mtd->erasesize, GFP_KERNEL); in mtd_oobtest_init()
383 if (!writebuf) in mtd_oobtest_init()
503 ops.oobbuf = writebuf; in mtd_oobtest_init()
548 ops.oobbuf = writebuf; in mtd_oobtest_init()
593 ops.oobbuf = writebuf; in mtd_oobtest_init()
645 prandom_bytes_state(&rnd_state, writebuf, sz * cnt); in mtd_oobtest_init()
654 ops.oobbuf = writebuf + pg * sz; in mtd_oobtest_init()
676 prandom_bytes_state(&rnd_state, writebuf, mtd->oobavail * 2); in mtd_oobtest_init()
692 if (memcmpshow(addr, readbuf, writebuf, in mtd_oobtest_init()
715 kfree(writebuf); in mtd_oobtest_init()