Lines Matching refs:ebcnt
38 static int ebcnt; variable
209 ebcnt = tmp; in mtd_speedtest_init()
216 pgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_speedtest_init()
218 if (count > 0 && count < ebcnt) in mtd_speedtest_init()
219 ebcnt = count; in mtd_speedtest_init()
228 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_speedtest_init()
231 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_speedtest_init()
234 for (i = 0; i < ebcnt; i++) { in mtd_speedtest_init()
239 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_speedtest_init()
246 for (i = 0; i < ebcnt; ++i) { in mtd_speedtest_init()
264 for (i = 0; i < ebcnt; ++i) { in mtd_speedtest_init()
279 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_speedtest_init()
286 for (i = 0; i < ebcnt; ++i) { in mtd_speedtest_init()
304 for (i = 0; i < ebcnt; ++i) { in mtd_speedtest_init()
319 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_speedtest_init()
326 for (i = 0; i < ebcnt; ++i) { in mtd_speedtest_init()
344 for (i = 0; i < ebcnt; ++i) { in mtd_speedtest_init()
362 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_speedtest_init()
375 for (i = 0; i < ebcnt; ) { in mtd_speedtest_init()
376 for (j = 0; j < blocks && (i + j) < ebcnt; j++) in mtd_speedtest_init()