bbt 980 drivers/mtd/devices/docg3.c u_char *buf = docg3->bbt; bbt 1020 drivers/mtd/devices/docg3.c is_good = docg3->bbt[block0 >> 3] & (1 << (block0 & 0x7)); bbt 1816 drivers/mtd/devices/docg3.c docg3->bbt = kcalloc(DOC_LAYOUT_PAGE_SIZE, bbt_nbpages, GFP_KERNEL); bbt 1817 drivers/mtd/devices/docg3.c if (!docg3->bbt) bbt 1855 drivers/mtd/devices/docg3.c kfree(docg3->bbt); bbt 1873 drivers/mtd/devices/docg3.c kfree(docg3->bbt); bbt 296 drivers/mtd/devices/docg3.h u8 *bbt; bbt 30 drivers/mtd/nand/bbt.c nand->bbt.cache = kcalloc(nwords, sizeof(*nand->bbt.cache), bbt 32 drivers/mtd/nand/bbt.c if (!nand->bbt.cache) bbt 47 drivers/mtd/nand/bbt.c kfree(nand->bbt.cache); bbt 78 drivers/mtd/nand/bbt.c unsigned long *pos = nand->bbt.cache + bbt 111 drivers/mtd/nand/bbt.c unsigned long *pos = nand->bbt.cache + bbt 2454 drivers/mtd/nand/onenand/onenand_base.c if (bbm->bbt) bbt 2455 drivers/mtd/nand/onenand/onenand_base.c bbm->bbt[block >> 2] |= 0x01 << ((block & 0x03) << 1); bbt 4005 drivers/mtd/nand/onenand/onenand_base.c kfree(bbm->bbt); bbt 103 drivers/mtd/nand/onenand/onenand_bbt.c bbm->bbt[i >> 3] |= 0x03 << (i & 0x6); bbt 153 drivers/mtd/nand/onenand/onenand_bbt.c res = (bbm->bbt[block >> 3] >> (block & 0x06)) & 0x03; bbt 189 drivers/mtd/nand/onenand/onenand_bbt.c bbm->bbt = kzalloc(len, GFP_KERNEL); bbt 190 drivers/mtd/nand/onenand/onenand_bbt.c if (!bbm->bbt) bbt 202 drivers/mtd/nand/onenand/onenand_bbt.c kfree(bbm->bbt); bbt 203 drivers/mtd/nand/onenand/onenand_bbt.c bbm->bbt = NULL; bbt 605 drivers/mtd/nand/raw/nand_base.c if (chip->bbt) { bbt 628 drivers/mtd/nand/raw/nand_base.c if (!chip->bbt) bbt 646 drivers/mtd/nand/raw/nand_base.c if (chip->bbt) bbt 5913 drivers/mtd/nand/raw/nand_base.c kfree(chip->bbt); bbt 78 drivers/mtd/nand/raw/nand_bbt.c uint8_t entry = chip->bbt[block >> BBT_ENTRY_SHIFT]; bbt 87 drivers/mtd/nand/raw/nand_bbt.c chip->bbt[block >> BBT_ENTRY_SHIFT] |= msk; bbt 1050 drivers/mtd/nand/raw/nand_bbt.c if (!this->bbt || !td) bbt 1224 drivers/mtd/nand/raw/nand_bbt.c this->bbt = kzalloc(len, GFP_KERNEL); bbt 1225 drivers/mtd/nand/raw/nand_bbt.c if (!this->bbt) bbt 1274 drivers/mtd/nand/raw/nand_bbt.c kfree(this->bbt); bbt 1275 drivers/mtd/nand/raw/nand_bbt.c this->bbt = NULL; bbt 98 drivers/mtd/nand/raw/nandsim.c static unsigned int bbt; bbt 130 drivers/mtd/nand/raw/nandsim.c module_param(bbt, uint, 0400); bbt 164 drivers/mtd/nand/raw/nandsim.c MODULE_PARM_DESC(bbt, "0 OOB, 1 BBT with marker in OOB, 2 BBT with marker in data area"); bbt 2251 drivers/mtd/nand/raw/nandsim.c switch (bbt) { bbt 41 drivers/mtd/tests/mtd_test.c int mtdtest_scan_for_bad_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, bbt 51 drivers/mtd/tests/mtd_test.c bbt[i] = is_block_bad(mtd, eb + i) ? 1 : 0; bbt 52 drivers/mtd/tests/mtd_test.c if (bbt[i]) bbt 61 drivers/mtd/tests/mtd_test.c int mtdtest_erase_good_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, bbt 68 drivers/mtd/tests/mtd_test.c if (bbt[i]) bbt 17 drivers/mtd/tests/mtd_test.h int mtdtest_scan_for_bad_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, bbt 19 drivers/mtd/tests/mtd_test.h int mtdtest_erase_good_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, bbt 34 drivers/mtd/tests/oobtest.c static unsigned char *bbt; bbt 96 drivers/mtd/tests/oobtest.c if (bbt[i]) bbt 320 drivers/mtd/tests/oobtest.c if (bbt[i]) bbt 385 drivers/mtd/tests/oobtest.c bbt = kzalloc(ebcnt, GFP_KERNEL); bbt 386 drivers/mtd/tests/oobtest.c if (!bbt) bbt 389 drivers/mtd/tests/oobtest.c err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); bbt 401 drivers/mtd/tests/oobtest.c err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); bbt 421 drivers/mtd/tests/oobtest.c err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); bbt 434 drivers/mtd/tests/oobtest.c if (bbt[i]) bbt 454 drivers/mtd/tests/oobtest.c err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); bbt 487 drivers/mtd/tests/oobtest.c err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); bbt 492 drivers/mtd/tests/oobtest.c for (i = 0; i < ebcnt && bbt[i]; ++i) bbt 538 drivers/mtd/tests/oobtest.c if (bbt[ebcnt - 1]) bbt 637 drivers/mtd/tests/oobtest.c err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); bbt 648 drivers/mtd/tests/oobtest.c if (bbt[i] || bbt[i + 1]) bbt 680 drivers/mtd/tests/oobtest.c if (bbt[i] || bbt[i + 1]) bbt 719 drivers/mtd/tests/oobtest.c kfree(bbt); bbt 32 drivers/mtd/tests/pagetest.c static unsigned char *bbt; bbt 58 drivers/mtd/tests/pagetest.c for (i = 0; i < ebcnt && bbt[i]; ++i) bbt 62 drivers/mtd/tests/pagetest.c for (i = 0; i < ebcnt && bbt[ebcnt - i - 1]; ++i) bbt 85 drivers/mtd/tests/pagetest.c if (addr <= addrn - pgsize - pgsize && !bbt[ebnum + 1]) { bbt 126 drivers/mtd/tests/pagetest.c for (i = 0; i < ebcnt && bbt[i]; ++i) bbt 130 drivers/mtd/tests/pagetest.c for (i = 0; i < ebcnt && bbt[ebcnt - i - 1]; ++i) bbt 198 drivers/mtd/tests/pagetest.c for (i = 0; i < ebcnt && bbt[i]; ++i) { bbt 204 drivers/mtd/tests/pagetest.c while (ebnum2 && bbt[ebnum2]) bbt 276 drivers/mtd/tests/pagetest.c for (i = 0; i < ebcnt && bbt[i]; ++i) { bbt 372 drivers/mtd/tests/pagetest.c bbt = kzalloc(ebcnt, GFP_KERNEL); bbt 373 drivers/mtd/tests/pagetest.c if (!bbt) bbt 375 drivers/mtd/tests/pagetest.c err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); bbt 381 drivers/mtd/tests/pagetest.c err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); bbt 390 drivers/mtd/tests/pagetest.c if (bbt[i]) bbt 408 drivers/mtd/tests/pagetest.c if (bbt[i]) bbt 441 drivers/mtd/tests/pagetest.c kfree(bbt); bbt 29 drivers/mtd/tests/readtest.c static unsigned char *bbt; bbt 161 drivers/mtd/tests/readtest.c bbt = kzalloc(ebcnt, GFP_KERNEL); bbt 162 drivers/mtd/tests/readtest.c if (!bbt) bbt 164 drivers/mtd/tests/readtest.c err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); bbt 173 drivers/mtd/tests/readtest.c if (bbt[i]) bbt 198 drivers/mtd/tests/readtest.c kfree(bbt); bbt 35 drivers/mtd/tests/speedtest.c static unsigned char *bbt; bbt 229 drivers/mtd/tests/speedtest.c bbt = kzalloc(ebcnt, GFP_KERNEL); bbt 230 drivers/mtd/tests/speedtest.c if (!bbt) bbt 232 drivers/mtd/tests/speedtest.c err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); bbt 236 drivers/mtd/tests/speedtest.c if (!bbt[i]) bbt 240 drivers/mtd/tests/speedtest.c err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); bbt 248 drivers/mtd/tests/speedtest.c if (bbt[i]) bbt 266 drivers/mtd/tests/speedtest.c if (bbt[i]) bbt 280 drivers/mtd/tests/speedtest.c err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); bbt 288 drivers/mtd/tests/speedtest.c if (bbt[i]) bbt 306 drivers/mtd/tests/speedtest.c if (bbt[i]) bbt 320 drivers/mtd/tests/speedtest.c err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); bbt 328 drivers/mtd/tests/speedtest.c if (bbt[i]) bbt 346 drivers/mtd/tests/speedtest.c if (bbt[i]) bbt 363 drivers/mtd/tests/speedtest.c err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); bbt 378 drivers/mtd/tests/speedtest.c if (bbt[i + j]) bbt 402 drivers/mtd/tests/speedtest.c kfree(bbt); bbt 35 drivers/mtd/tests/stresstest.c static unsigned char *bbt; bbt 51 drivers/mtd/tests/stresstest.c if (bbt[eb]) bbt 81 drivers/mtd/tests/stresstest.c if (bbt[eb + 1]) { bbt 106 drivers/mtd/tests/stresstest.c if (bbt[eb + 1]) bbt 197 drivers/mtd/tests/stresstest.c bbt = kzalloc(ebcnt, GFP_KERNEL); bbt 198 drivers/mtd/tests/stresstest.c if (!bbt) bbt 200 drivers/mtd/tests/stresstest.c err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); bbt 221 drivers/mtd/tests/stresstest.c kfree(bbt); bbt 29 drivers/mtd/tests/subpagetest.c static unsigned char *bbt; bbt 252 drivers/mtd/tests/subpagetest.c if (bbt[i]) bbt 317 drivers/mtd/tests/subpagetest.c bbt = kzalloc(ebcnt, GFP_KERNEL); bbt 318 drivers/mtd/tests/subpagetest.c if (!bbt) bbt 321 drivers/mtd/tests/subpagetest.c err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); bbt 325 drivers/mtd/tests/subpagetest.c err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); bbt 332 drivers/mtd/tests/subpagetest.c if (bbt[i]) bbt 349 drivers/mtd/tests/subpagetest.c if (bbt[i]) bbt 363 drivers/mtd/tests/subpagetest.c err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); bbt 375 drivers/mtd/tests/subpagetest.c if (bbt[i]) bbt 393 drivers/mtd/tests/subpagetest.c if (bbt[i]) bbt 407 drivers/mtd/tests/subpagetest.c err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); bbt 418 drivers/mtd/tests/subpagetest.c kfree(bbt); bbt 130 include/linux/mtd/bbm.h uint8_t *bbt; bbt 184 include/linux/mtd/nand.h struct nand_bbt bbt; bbt 756 include/linux/mtd/nand.h return !!nand->bbt.cache; bbt 1127 include/linux/mtd/rawnand.h uint8_t *bbt;