/linux-6.1.9/drivers/mtd/tests/ |
D | speedtest.c | 38 static int ebcnt; variable 209 ebcnt = tmp; in mtd_speedtest_init() 216 pgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_speedtest_init() 218 if (count > 0 && count < ebcnt) in mtd_speedtest_init() 219 ebcnt = count; in mtd_speedtest_init() 228 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_speedtest_init() 231 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_speedtest_init() 234 for (i = 0; i < ebcnt; i++) { in mtd_speedtest_init() 239 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_speedtest_init() 246 for (i = 0; i < ebcnt; ++i) { in mtd_speedtest_init() [all …]
|
D | pagetest.c | 36 static int ebcnt; 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() 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() 203 ebnum2 = ebcnt - 1; in erasecrosstest() 276 for (i = 0; i < ebcnt && bbt[i]; ++i) { in erasetest() 350 ebcnt = tmp; in mtd_pagetest_init() 358 pgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_pagetest_init() [all …]
|
D | stresstest.c | 40 static int ebcnt; variable 49 eb = prandom_u32_max(ebcnt - 1); in rand_eb() 160 ebcnt = tmp; in mtd_stresstest_init() 167 pgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_stresstest_init() 169 if (ebcnt < 2) { in mtd_stresstest_init() 181 offsets = kmalloc_array(ebcnt, sizeof(int), GFP_KERNEL); in mtd_stresstest_init() 184 for (i = 0; i < ebcnt; i++) in mtd_stresstest_init() 188 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_stresstest_init() 191 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_stresstest_init()
|
D | subpagetest.c | 33 static int ebcnt; variable 251 for (i = 0; i < ebcnt; ++i) { in verify_all_eraseblocks_ff() 300 ebcnt = tmp; in mtd_subpagetest_init() 307 mtd->writesize, subpgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_subpagetest_init() 317 bbt = kzalloc(ebcnt, GFP_KERNEL); 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() 331 for (i = 0; i < ebcnt; ++i) { in mtd_subpagetest_init() 348 for (i = 0; i < ebcnt; ++i) { in mtd_subpagetest_init() 363 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_subpagetest_init() [all …]
|
D | oobtest.c | 36 static int ebcnt; variable 95 for (i = 0; i < ebcnt; ++i) { in write_whole_device() 319 for (i = 0; i < ebcnt; ++i) { in verify_all_eraseblocks() 369 ebcnt = tmp; in mtd_oobtest_init() 376 mtd->writesize, ebcnt, pgcnt, mtd->oobsize); in mtd_oobtest_init() 385 bbt = kzalloc(ebcnt, GFP_KERNEL); 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() 433 for (i = 0; i < ebcnt; ++i) { in mtd_oobtest_init() [all …]
|
D | torturetest.c | 32 static int ebcnt = 32; variable 33 module_param(ebcnt, int, S_IRUGO); 34 MODULE_PARM_DESC(ebcnt, "number of consecutive eraseblocks to torture"); 187 ebcnt, eb, eb + ebcnt - 1, dev); in tort_init() 229 bad_ebs = kzalloc(ebcnt, GFP_KERNEL); in tort_init() 245 err = mtdtest_scan_for_bad_eraseblocks(mtd, bad_ebs, eb, ebcnt); in tort_init() 254 err = mtdtest_erase_good_eraseblocks(mtd, bad_ebs, eb, ebcnt); in tort_init() 260 for (i = eb; i < eb + ebcnt; i++) { in tort_init() 277 for (i = eb; i < eb + ebcnt; i++) { in tort_init() 295 for (i = eb; i < eb + ebcnt; i++) { in tort_init()
|
D | readtest.c | 32 static int ebcnt; variable 144 ebcnt = tmp; in mtd_readtest_init() 151 pgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_readtest_init() 161 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_readtest_init() 164 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_readtest_init() 170 for (i = 0; i < ebcnt; ++i) { in mtd_readtest_init()
|
D | mtd_test.c | 42 unsigned int eb, int ebcnt) in mtdtest_scan_for_bad_eraseblocks() argument 50 for (i = 0; i < ebcnt; ++i) { in mtdtest_scan_for_bad_eraseblocks() 62 unsigned int eb, int ebcnt) in mtdtest_erase_good_eraseblocks() argument 67 for (i = 0; i < ebcnt; ++i) { in mtdtest_erase_good_eraseblocks()
|
D | mtd_test.h | 18 unsigned int eb, int ebcnt); 20 unsigned int eb, int ebcnt);
|