/linux-6.6.21/drivers/mtd/tests/ |
D | speedtest.c | 35 static unsigned char *bbt; variable 228 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_speedtest_init() 229 if (!bbt) in mtd_speedtest_init() 231 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_speedtest_init() 235 if (!bbt[i]) in mtd_speedtest_init() 239 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_speedtest_init() 247 if (bbt[i]) in mtd_speedtest_init() 265 if (bbt[i]) in mtd_speedtest_init() 279 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_speedtest_init() 287 if (bbt[i]) in mtd_speedtest_init() [all …]
|
D | pagetest.c | 32 static unsigned char *bbt; variable 58 for (i = 0; i < ebcnt && bbt[i]; ++i) in verify_eraseblock() 62 for (i = 0; i < ebcnt && bbt[ebcnt - i - 1]; ++i) in verify_eraseblock() 85 if (addr <= addrn - pgsize - pgsize && !bbt[ebnum + 1]) { in verify_eraseblock() 126 for (i = 0; i < ebcnt && bbt[i]; ++i) in crosstest() 130 for (i = 0; i < ebcnt && bbt[ebcnt - i - 1]; ++i) in crosstest() 198 for (i = 0; i < ebcnt && bbt[i]; ++i) { in erasecrosstest() 204 while (ebnum2 && bbt[ebnum2]) in erasecrosstest() 276 for (i = 0; i < ebcnt && bbt[i]; ++i) { in erasetest() 372 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_pagetest_init() [all …]
|
D | subpagetest.c | 29 static unsigned char *bbt; variable 252 if (bbt[i]) in verify_all_eraseblocks_ff() 317 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_subpagetest_init() 318 if (!bbt) in mtd_subpagetest_init() 321 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_subpagetest_init() 325 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_subpagetest_init() 332 if (bbt[i]) in mtd_subpagetest_init() 349 if (bbt[i]) in mtd_subpagetest_init() 363 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_subpagetest_init() 375 if (bbt[i]) in mtd_subpagetest_init() [all …]
|
D | oobtest.c | 34 static unsigned char *bbt; variable 96 if (bbt[i]) in write_whole_device() 320 if (bbt[i]) in verify_all_eraseblocks() 385 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_oobtest_init() 386 if (!bbt) 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() 434 if (bbt[i]) in mtd_oobtest_init() 454 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init() [all …]
|
D | stresstest.c | 35 static unsigned char *bbt; variable 50 if (bbt[eb]) in rand_eb() 72 if (bbt[eb + 1]) { in do_read() 97 if (bbt[eb + 1]) in do_write() 188 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_stresstest_init() 189 if (!bbt) in mtd_stresstest_init() 191 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_stresstest_init() 212 kfree(bbt); in mtd_stresstest_init()
|
D | mtd_test.c | 41 int mtdtest_scan_for_bad_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, in mtdtest_scan_for_bad_eraseblocks() argument 51 bbt[i] = is_block_bad(mtd, eb + i) ? 1 : 0; in mtdtest_scan_for_bad_eraseblocks() 52 if (bbt[i]) in mtdtest_scan_for_bad_eraseblocks() 61 int mtdtest_erase_good_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, in mtdtest_erase_good_eraseblocks() argument 68 if (bbt[i]) in mtdtest_erase_good_eraseblocks()
|
D | readtest.c | 29 static unsigned char *bbt; variable 161 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_readtest_init() 162 if (!bbt) in mtd_readtest_init() 164 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_readtest_init() 173 if (bbt[i]) in mtd_readtest_init() 198 kfree(bbt); in mtd_readtest_init()
|
D | mtd_test.h | 17 int mtdtest_scan_for_bad_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, 19 int mtdtest_erase_good_eraseblocks(struct mtd_info *mtd, unsigned char *bbt,
|
/linux-6.6.21/drivers/mtd/nand/ |
D | bbt.c | 28 nand->bbt.cache = bitmap_zalloc(nblocks * bits_per_block, GFP_KERNEL); in nanddev_bbt_init() 29 if (!nand->bbt.cache) in nanddev_bbt_init() 44 bitmap_free(nand->bbt.cache); in nanddev_bbt_cleanup() 75 unsigned long *pos = nand->bbt.cache + in nanddev_bbt_get_block_status() 108 unsigned long *pos = nand->bbt.cache + in nanddev_bbt_set_block_status()
|
D | Makefile | 3 nandcore-objs := core.o bbt.o
|
/linux-6.6.21/drivers/mtd/nand/onenand/ |
D | onenand_bbt.c | 103 bbm->bbt[i >> 3] |= 0x03 << (i & 0x6); in create_bbt() 153 res = (bbm->bbt[block >> 3] >> (block & 0x06)) & 0x03; in onenand_isbad_bbt() 189 bbm->bbt = kzalloc(len, GFP_KERNEL); in onenand_scan_bbt() 190 if (!bbm->bbt) in onenand_scan_bbt() 202 kfree(bbm->bbt); in onenand_scan_bbt() 203 bbm->bbt = NULL; in onenand_scan_bbt()
|
/linux-6.6.21/Documentation/devicetree/bindings/mtd/ |
D | samsung-s3c2410.txt | 18 - nand-on-flash-bbt : see nand-controller.yaml 38 nand-on-flash-bbt;
|
D | davinci-nand.txt | 52 - nand-on-flash-bbt: use flash based bad block table support. OOB 66 - ti,davinci-nand-use-bbt: use flash based bad block table support. OOB 88 nand-on-flash-bbt;
|
D | lpc32xx-slc.txt | 6 - nand-on-flash-bbt: Use bad block table on flash 41 nand-on-flash-bbt;
|
D | nvidia-tegra20-nand.txt | 30 - nand-on-flash-bbt: See nand-controller.yaml 59 nand-on-flash-bbt;
|
D | vf610-nfc.txt | 35 - nand-on-flash-bbt: see nand-controller.yaml 57 nand-on-flash-bbt;
|
D | atmel-nand.txt | 157 - nand-on-flash-bbt: boolean to enable on flash bbt option if not present false 179 nand-on-flash-bbt; 202 nand-on-flash-bbt;
|
/linux-6.6.21/arch/mips/boot/dts/brcm/ |
D | bcm97xxx-nand-cs1-bch24.dtsi | 6 nand-on-flash-bbt;
|
D | bcm97xxx-nand-cs1-bch4.dtsi | 6 nand-on-flash-bbt;
|
/linux-6.6.21/include/linux/mtd/ |
D | bbm.h | 130 uint8_t *bbt; member
|
/linux-6.6.21/arch/arm/boot/dts/broadcom/ |
D | bcm7445-bcm97445svmb.dts | 25 nand-on-flash-bbt;
|
/linux-6.6.21/arch/arm64/boot/dts/freescale/ |
D | imx8mn-bsh-smm-s2.dts | 24 nand-on-flash-bbt;
|
D | imx8mm-ddr4-evk.dts | 26 nand-on-flash-bbt;
|
/linux-6.6.21/arch/arm/boot/dts/marvell/ |
D | armada-385-atl-x530.dts | 209 nand-on-flash-bbt; 230 label = "nand-bbt";
|
/linux-6.6.21/drivers/mtd/nand/raw/ |
D | nand_bbt.c | 78 uint8_t entry = chip->bbt[block >> BBT_ENTRY_SHIFT]; in bbt_get_entry() 87 chip->bbt[block >> BBT_ENTRY_SHIFT] |= msk; in bbt_mark_entry() 1083 if (!this->bbt || !td) in nand_update_bbt() 1257 this->bbt = kzalloc(len, GFP_KERNEL); in nand_scan_bbt() 1258 if (!this->bbt) in nand_scan_bbt() 1307 kfree(this->bbt); in nand_scan_bbt() 1308 this->bbt = NULL; in nand_scan_bbt()
|