Lines Matching refs:ebnum

53 static int write_eraseblock(int ebnum)  in write_eraseblock()  argument
55 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_eraseblock()
62 static int verify_eraseblock(int ebnum) in verify_eraseblock() argument
67 loff_t addr = (loff_t)ebnum * mtd->erasesize; in verify_eraseblock()
97 if (addr <= addrn - pgsize - pgsize && !bbt[ebnum + 1]) { in verify_eraseblock()
202 int err = 0, i, ebnum, ebnum2; in erasecrosstest() local
208 ebnum = 0; in erasecrosstest()
212 ebnum += 1; in erasecrosstest()
219 pr_info("erasing block %d\n", ebnum); in erasecrosstest()
220 err = mtdtest_erase_eraseblock(mtd, ebnum); in erasecrosstest()
224 pr_info("writing 1st page of block %d\n", ebnum); in erasecrosstest()
231 pr_info("reading 1st page of block %d\n", ebnum); in erasecrosstest()
237 pr_info("verifying 1st page of block %d\n", ebnum); in erasecrosstest()
244 pr_info("erasing block %d\n", ebnum); in erasecrosstest()
245 err = mtdtest_erase_eraseblock(mtd, ebnum); in erasecrosstest()
249 pr_info("writing 1st page of block %d\n", ebnum); in erasecrosstest()
261 pr_info("reading 1st page of block %d\n", ebnum); in erasecrosstest()
267 pr_info("verifying 1st page of block %d\n", ebnum); in erasecrosstest()
281 int err = 0, i, ebnum, ok = 1; in erasetest() local
286 ebnum = 0; in erasetest()
290 ebnum += 1; in erasetest()
293 pr_info("erasing block %d\n", ebnum); in erasetest()
294 err = mtdtest_erase_eraseblock(mtd, ebnum); in erasetest()
298 pr_info("writing 1st page of block %d\n", ebnum); in erasetest()
304 pr_info("erasing block %d\n", ebnum); in erasetest()
305 err = mtdtest_erase_eraseblock(mtd, ebnum); in erasetest()
309 pr_info("reading 1st page of block %d\n", ebnum); in erasetest()
315 ebnum); in erasetest()