Lines Matching refs:erasesize
73 loff_t addr = ebnum * mtd->erasesize; in erase_eraseblock()
78 ei.len = mtd->erasesize; in erase_eraseblock()
99 loff_t addr = ebnum * mtd->erasesize; in write_eraseblock()
101 set_random_data(writebuf, mtd->erasesize); in write_eraseblock()
103 err = mtd_write(mtd, addr, mtd->erasesize, &written, writebuf); in write_eraseblock()
104 if (err || written != mtd->erasesize) in write_eraseblock()
117 loff_t addr = ebnum * mtd->erasesize; in verify_eraseblock()
121 addr0 += mtd->erasesize; in verify_eraseblock()
125 addrn -= mtd->erasesize; in verify_eraseblock()
127 set_random_data(writebuf, mtd->erasesize); in verify_eraseblock()
190 memcpy(boundary, writebuf + mtd->erasesize - pgsize, pgsize); in verify_eraseblock()
222 addr0 += mtd->erasesize; in crosstest()
226 addrn -= mtd->erasesize; in crosstest()
315 addr0 += mtd->erasesize; in erasecrosstest()
410 addr0 += mtd->erasesize; in erasetest()
462 loff_t addr = ebnum * mtd->erasesize; in is_block_bad()
522 do_div(tmp, mtd->erasesize); in mtd_pagetest_init()
524 pgcnt = mtd->erasesize / mtd->writesize; in mtd_pagetest_init()
530 (unsigned long long)mtd->size, mtd->erasesize, in mtd_pagetest_init()
535 writebuf = kmalloc(mtd->erasesize, GFP_KERNEL); in mtd_pagetest_init()