Lines Matching refs:writebuf
30 static unsigned char *writebuf; variable
45 prandom_bytes_state(&rnd_state, writebuf, mtd->erasesize); in write_eraseblock()
47 return mtdtest_write(mtd, addr, mtd->erasesize, writebuf); in write_eraseblock()
65 prandom_bytes_state(&rnd_state, writebuf, mtd->erasesize); in verify_eraseblock()
78 if (memcmp(twopages, writebuf + (j * pgsize), bufsize)) { in verify_eraseblock()
99 memcpy(boundary, writebuf + mtd->erasesize - pgsize, pgsize); in verify_eraseblock()
213 prandom_bytes_state(&rnd_state, writebuf, pgsize); in erasecrosstest()
214 strcpy(writebuf, "There is no data like this!"); in erasecrosstest()
215 err = mtdtest_write(mtd, addr0, pgsize, writebuf); in erasecrosstest()
226 if (memcmp(writebuf, readbuf, pgsize)) { in erasecrosstest()
238 prandom_bytes_state(&rnd_state, writebuf, pgsize); in erasecrosstest()
239 strcpy(writebuf, "There is no data like this!"); in erasecrosstest()
240 err = mtdtest_write(mtd, addr0, pgsize, writebuf); in erasecrosstest()
256 if (memcmp(writebuf, readbuf, pgsize)) { in erasecrosstest()
287 prandom_bytes_state(&rnd_state, writebuf, pgsize); in erasetest()
288 err = mtdtest_write(mtd, addr0, pgsize, writebuf); in erasetest()
362 writebuf = kmalloc(mtd->erasesize, GFP_KERNEL); in mtd_pagetest_init()
363 if (!writebuf) in mtd_pagetest_init()
444 kfree(writebuf); in mtd_pagetest_init()