Lines Matching refs:bbt
46 static unsigned char *bbt; variable
108 if (bbt[i]) in write_whole_device()
317 if (bbt[i]) in verify_all_eraseblocks()
382 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_oobtest_init()
383 if (!bbt) in mtd_oobtest_init()
386 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init()
398 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init()
418 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init()
431 if (bbt[i]) in mtd_oobtest_init()
451 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init()
484 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init()
489 for (i = 0; i < ebcnt && bbt[i]; ++i) in mtd_oobtest_init()
532 if (bbt[ebcnt - 1]) in mtd_oobtest_init()
625 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init()
636 if (bbt[i] || bbt[i + 1]) in mtd_oobtest_init()
668 if (bbt[i] || bbt[i + 1]) in mtd_oobtest_init()
705 kfree(bbt); in mtd_oobtest_init()