Lines Matching refs:bbt
46 static unsigned char *bbt; variable
108 if (bbt[i]) in write_whole_device()
323 if (bbt[i]) in verify_all_eraseblocks()
388 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_oobtest_init()
389 if (!bbt) in mtd_oobtest_init()
392 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init()
404 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init()
424 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init()
437 if (bbt[i]) in mtd_oobtest_init()
457 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init()
490 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init()
495 for (i = 0; i < ebcnt && bbt[i]; ++i) in mtd_oobtest_init()
538 if (bbt[ebcnt - 1]) in mtd_oobtest_init()
631 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init()
642 if (bbt[i] || bbt[i + 1]) in mtd_oobtest_init()
674 if (bbt[i] || bbt[i + 1]) in mtd_oobtest_init()
711 kfree(bbt); in mtd_oobtest_init()