/drivers/mtd/tests/ |
D | speedtest.c | 47 static unsigned char *bbt; variable 248 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_speedtest_init() 249 if (!bbt) in mtd_speedtest_init() 251 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_speedtest_init() 255 if (!bbt[i]) in mtd_speedtest_init() 259 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_speedtest_init() 267 if (bbt[i]) in mtd_speedtest_init() 285 if (bbt[i]) in mtd_speedtest_init() 299 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_speedtest_init() 307 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() 139 for (i = 0; i < ebcnt && bbt[i]; ++i) in crosstest() 143 for (i = 0; i < ebcnt && bbt[ebcnt - i - 1]; ++i) in crosstest() 211 for (i = 0; i < ebcnt && bbt[i]; ++i) { in erasecrosstest() 217 while (ebnum2 && bbt[ebnum2]) in erasecrosstest() 289 for (i = 0; i < ebcnt && bbt[i]; ++i) { in erasetest() 385 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 | oobtest.c | 46 static unsigned char *bbt; variable 108 if (bbt[i]) in write_whole_device() 323 if (bbt[i]) in verify_all_eraseblocks() 388 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_oobtest_init() 389 if (!bbt) in mtd_oobtest_init() 392 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init() 404 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init() 424 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_init() 437 if (bbt[i]) in mtd_oobtest_init() 457 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_oobtest_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 | mtd_test.c | 45 int mtdtest_scan_for_bad_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, in mtdtest_scan_for_bad_eraseblocks() argument 55 bbt[i] = is_block_bad(mtd, eb + i) ? 1 : 0; in mtdtest_scan_for_bad_eraseblocks() 56 if (bbt[i]) in mtdtest_scan_for_bad_eraseblocks() 65 int mtdtest_erase_good_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, in mtdtest_erase_good_eraseblocks() argument 72 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 | 16 int mtdtest_scan_for_bad_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, 18 int mtdtest_erase_good_eraseblocks(struct mtd_info *mtd, unsigned char *bbt,
|
/drivers/mtd/onenand/ |
D | onenand_bbt.c | 104 bbm->bbt[i >> 3] |= 0x03 << (i & 0x6); in create_bbt() 154 res = (bbm->bbt[block >> 3] >> (block & 0x06)) & 0x03; in onenand_isbad_bbt() 190 bbm->bbt = kzalloc(len, GFP_KERNEL); in onenand_scan_bbt() 191 if (!bbm->bbt) in onenand_scan_bbt() 206 kfree(bbm->bbt); in onenand_scan_bbt() 207 bbm->bbt = NULL; in onenand_scan_bbt()
|
D | onenand_base.c | 2581 if (bbm->bbt) in onenand_default_block_markbad() 2582 bbm->bbt[block >> 2] |= 0x01 << ((block & 0x03) << 1); in onenand_default_block_markbad() 4122 kfree(bbm->bbt); in onenand_release()
|
/drivers/mtd/nand/ |
D | nand_bbt.c | 83 uint8_t entry = chip->bbt[block >> BBT_ENTRY_SHIFT]; in bbt_get_entry() 92 chip->bbt[block >> BBT_ENTRY_SHIFT] |= msk; in bbt_mark_entry() 1088 this->bbt = kzalloc(len, GFP_KERNEL); in nand_scan_bbt() 1089 if (!this->bbt) in nand_scan_bbt() 1136 kfree(this->bbt); in nand_scan_bbt() 1137 this->bbt = NULL; in nand_scan_bbt() 1157 if (!this->bbt || !td) in nand_update_bbt()
|
D | nandsim.c | 108 static unsigned int bbt; variable 140 module_param(bbt, uint, 0400); 174 MODULE_PARM_DESC(bbt, "0 OOB, 1 BBT with marker in OOB, 2 BBT with marker in data area"); 2264 switch (bbt) { in ns_init_module()
|
D | docg4.c | 1040 if (nand->bbt == NULL) /* no memory-based bbt */ in read_factory_bbt() 1067 nand->bbt[badblock / 4] |= in read_factory_bbt()
|
D | nand_base.c | 453 if (chip->bbt) { in nand_block_markbad_lowlevel() 496 if (!chip->bbt) in nand_block_isreserved() 517 if (!chip->bbt) in nand_block_checkbad() 4439 kfree(chip->bbt); in nand_cleanup()
|
/drivers/mtd/devices/ |
D | docg3.c | 1005 u_char *buf = docg3->bbt; in doc_reload_bbt() 1045 is_good = docg3->bbt[block0 >> 3] & (1 << (block0 & 0x7)); in doc_block_isbad() 1900 docg3->bbt = kzalloc(bbt_nbpages * DOC_LAYOUT_PAGE_SIZE, GFP_KERNEL); in doc_probe_device() 1901 if (!docg3->bbt) in doc_probe_device() 1939 kfree(docg3->bbt); in doc_probe_device() 1957 kfree(docg3->bbt); in doc_release_device()
|
D | docg3.h | 311 u8 *bbt; member
|