/Linux-v4.19/drivers/mtd/tests/ |
D | speedtest.c | 47 static unsigned char *bbt; variable 241 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_speedtest_init() 242 if (!bbt) in mtd_speedtest_init() 244 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_speedtest_init() 248 if (!bbt[i]) in mtd_speedtest_init() 252 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_speedtest_init() 260 if (bbt[i]) in mtd_speedtest_init() 278 if (bbt[i]) in mtd_speedtest_init() 292 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_speedtest_init() 300 if (bbt[i]) in mtd_speedtest_init() [all …]
|
D | pagetest.c | 44 static unsigned char *bbt; variable 70 for (i = 0; i < ebcnt && bbt[i]; ++i) in verify_eraseblock() 74 for (i = 0; i < ebcnt && bbt[ebcnt - i - 1]; ++i) in verify_eraseblock() 97 if (addr <= addrn - pgsize - pgsize && !bbt[ebnum + 1]) { in verify_eraseblock() 138 for (i = 0; i < ebcnt && bbt[i]; ++i) in crosstest() 142 for (i = 0; i < ebcnt && bbt[ebcnt - i - 1]; ++i) in crosstest() 210 for (i = 0; i < ebcnt && bbt[i]; ++i) { in erasecrosstest() 216 while (ebnum2 && bbt[ebnum2]) in erasecrosstest() 288 for (i = 0; i < ebcnt && bbt[i]; ++i) { in erasetest() 384 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_pagetest_init() [all …]
|
D | subpagetest.c | 42 static unsigned char *bbt; variable 265 if (bbt[i]) in verify_all_eraseblocks_ff() 330 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_subpagetest_init() 331 if (!bbt) in mtd_subpagetest_init() 334 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_subpagetest_init() 338 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_subpagetest_init() 345 if (bbt[i]) in mtd_subpagetest_init() 362 if (bbt[i]) in mtd_subpagetest_init() 376 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_subpagetest_init() 388 if (bbt[i]) in mtd_subpagetest_init() [all …]
|
D | stresstest.c | 47 static unsigned char *bbt; variable 63 if (bbt[eb]) in rand_eb() 93 if (bbt[eb + 1]) { in do_read() 118 if (bbt[eb + 1]) in do_write() 209 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_stresstest_init() 210 if (!bbt) in mtd_stresstest_init() 212 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_stresstest_init() 233 kfree(bbt); in mtd_stresstest_init()
|
D | oobtest.c | 46 static unsigned char *bbt; variable 108 if (bbt[i]) in write_whole_device() 332 if (bbt[i]) in verify_all_eraseblocks() 397 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_oobtest_init() 398 if (!bbt) in mtd_oobtest_init() 401 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init() 413 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init() 433 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init() 446 if (bbt[i]) in mtd_oobtest_init() 466 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init() [all …]
|
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 | 41 static unsigned char *bbt; variable 173 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_readtest_init() 174 if (!bbt) in mtd_readtest_init() 176 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_readtest_init() 185 if (bbt[i]) in mtd_readtest_init() 210 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-v4.19/drivers/mtd/nand/ |
D | bbt.c | 30 nand->bbt.cache = kzalloc(nwords, GFP_KERNEL); in nanddev_bbt_init() 31 if (!nand->bbt.cache) in nanddev_bbt_init() 46 kfree(nand->bbt.cache); in nanddev_bbt_cleanup() 77 unsigned long *pos = nand->bbt.cache + in nanddev_bbt_get_block_status() 110 unsigned long *pos = nand->bbt.cache + in nanddev_bbt_set_block_status()
|
D | Makefile | 3 nandcore-objs := core.o bbt.o
|
/Linux-v4.19/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() 205 kfree(bbm->bbt); in onenand_scan_bbt() 206 bbm->bbt = NULL; in onenand_scan_bbt()
|
/Linux-v4.19/Documentation/devicetree/bindings/mtd/ |
D | samsung-s3c2410.txt | 18 - nand-on-flash-bbt : see nand.txt 38 nand-on-flash-bbt;
|
D | ingenic,jz4780-nand.txt | 29 - nand-on-flash-bbt: boolean to enable on flash bbt option, if not present false 56 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 | gpmi-nand.txt | 30 - nand-on-flash-bbt: boolean to enable on flash bbt option if not 44 '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.txt 59 nand-on-flash-bbt;
|
D | vf610-nfc.txt | 35 - nand-on-flash-bbt: see nand.txt 57 nand-on-flash-bbt;
|
D | mxc-nand.txt | 9 - nand-on-flash-bbt: see nand.txt
|
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-v4.19/arch/arm/boot/dts/ |
D | at91-kizboxmini.dts | 104 nand-on-flash-bbt; 132 nand-on-flash-bbt;
|
D | bcm7445-bcm97445svmb.dts | 25 nand-on-flash-bbt;
|
/Linux-v4.19/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-v4.19/include/linux/mtd/ |
D | bbm.h | 156 uint8_t *bbt; member
|