Lines Matching refs:ebcnt
36 static int ebcnt; variable
95 for (i = 0; i < ebcnt; ++i) { in write_whole_device()
319 for (i = 0; i < ebcnt; ++i) { in verify_all_eraseblocks()
369 ebcnt = tmp; in mtd_oobtest_init()
376 mtd->writesize, ebcnt, pgcnt, mtd->oobsize); in mtd_oobtest_init()
385 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_oobtest_init()
389 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init()
401 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init()
421 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init()
433 for (i = 0; i < ebcnt; ++i) { in mtd_oobtest_init()
454 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init()
487 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init()
492 for (i = 0; i < ebcnt && bbt[i]; ++i) in mtd_oobtest_init()
536 if (bbt[ebcnt - 1]) in mtd_oobtest_init()
581 err = mtdtest_erase_eraseblock(mtd, ebcnt - 1); in mtd_oobtest_init()
631 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init()
638 for (i = 0; i < ebcnt - 1; ++i) { in mtd_oobtest_init()
673 for (i = 0; i < ebcnt - 1; ++i) { in mtd_oobtest_init()