Lines Matching refs:ebcnt
36 static int ebcnt; variable
58 for (i = 0; i < ebcnt && bbt[i]; ++i) in verify_eraseblock()
62 for (i = 0; i < ebcnt && bbt[ebcnt - i - 1]; ++i) in verify_eraseblock()
126 for (i = 0; i < ebcnt && bbt[i]; ++i) in crosstest()
130 for (i = 0; i < ebcnt && bbt[ebcnt - i - 1]; ++i) in crosstest()
198 for (i = 0; i < ebcnt && bbt[i]; ++i) { in erasecrosstest()
203 ebnum2 = ebcnt - 1; in erasecrosstest()
276 for (i = 0; i < ebcnt && bbt[i]; ++i) { in erasetest()
350 ebcnt = tmp; in mtd_pagetest_init()
358 pgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_pagetest_init()
372 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_pagetest_init()
375 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_pagetest_init()
381 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_pagetest_init()
384 pr_info("erased %u eraseblocks\n", ebcnt); in mtd_pagetest_init()
389 for (i = 0; i < ebcnt; ++i) { in mtd_pagetest_init()
407 for (i = 0; i < ebcnt; ++i) { in mtd_pagetest_init()
426 if (ebcnt > 1) { in mtd_pagetest_init()