Lines Matching defs:bbt
32 static unsigned char *bbt;
58 for (i = 0; i < ebcnt && bbt[i]; ++i)
62 for (i = 0; i < ebcnt && bbt[ebcnt - i - 1]; ++i)
85 if (addr <= addrn - pgsize - pgsize && !bbt[ebnum + 1]) {
126 for (i = 0; i < ebcnt && bbt[i]; ++i)
130 for (i = 0; i < ebcnt && bbt[ebcnt - i - 1]; ++i)
198 for (i = 0; i < ebcnt && bbt[i]; ++i) {
204 while (ebnum2 && bbt[ebnum2])
276 for (i = 0; i < ebcnt && bbt[i]; ++i) {
372 bbt = kzalloc(ebcnt, GFP_KERNEL);
373 if (!bbt)
375 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt);
381 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt);
390 if (bbt[i])
408 if (bbt[i])
441 kfree(bbt);