Searched refs:ebcnt (Results 1 – 7 of 7) sorted by relevance
/linux-3.4.99/drivers/mtd/tests/ |
D | mtd_speedtest.c | 46 static int ebcnt; variable 129 for (i = 0; i < ebcnt; ++i) { in erase_whole_device() 333 bbt = kzalloc(ebcnt, GFP_KERNEL); in scan_for_bad_eraseblocks() 343 for (i = 0; i < ebcnt; ++i) { in scan_for_bad_eraseblocks() 351 goodebcnt = ebcnt - bad; in scan_for_bad_eraseblocks() 391 ebcnt = tmp; in mtd_speedtest_init() 398 pgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_speedtest_init() 400 if (count > 0 && count < ebcnt) in mtd_speedtest_init() 401 ebcnt = count; in mtd_speedtest_init() 424 for (i = 0; i < ebcnt; ++i) { in mtd_speedtest_init() [all …]
|
D | mtd_stresstest.c | 49 static int ebcnt; variable 69 if (ebcnt < 32768) in rand_eb() 74 eb %= (ebcnt - 1); in rand_eb() 224 bbt = kzalloc(ebcnt, GFP_KERNEL); in scan_for_bad_eraseblocks() 234 for (i = 0; i < ebcnt; ++i) { in scan_for_bad_eraseblocks() 277 ebcnt = tmp; in mtd_stresstest_init() 284 pgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_stresstest_init() 286 if (ebcnt < 2) { in mtd_stresstest_init() 298 offsets = kmalloc(ebcnt * sizeof(int), GFP_KERNEL); in mtd_stresstest_init() 303 for (i = 0; i < ebcnt; i++) in mtd_stresstest_init()
|
D | mtd_pagetest.c | 45 static int ebcnt; variable 120 for (i = 0; i < ebcnt && bbt[i]; ++i) in verify_eraseblock() 124 for (i = 0; i < ebcnt && bbt[ebcnt - i - 1]; ++i) in verify_eraseblock() 221 for (i = 0; i < ebcnt && bbt[i]; ++i) in crosstest() 225 for (i = 0; i < ebcnt && bbt[ebcnt - i - 1]; ++i) in crosstest() 314 for (i = 0; i < ebcnt && bbt[i]; ++i) { in erasecrosstest() 319 ebnum2 = ebcnt - 1; in erasecrosstest() 409 for (i = 0; i < ebcnt && bbt[i]; ++i) { in erasetest() 475 bbt = kzalloc(ebcnt, GFP_KERNEL); in scan_for_bad_eraseblocks() 482 for (i = 0; i < ebcnt; ++i) { in scan_for_bad_eraseblocks() [all …]
|
D | mtd_torturetest.c | 41 static int ebcnt = 32; variable 42 module_param(ebcnt, int, S_IRUGO); 43 MODULE_PARM_DESC(ebcnt, "number of consecutive eraseblocks to torture"); 210 int bad_ebs[ebcnt]; in tort_init() 225 ebcnt, eb, eb + ebcnt - 1, dev); in tort_init() 292 memset(&bad_ebs[0], 0, sizeof(int) * ebcnt); in tort_init() 294 for (i = eb; i < eb + ebcnt; i++) { in tort_init() 316 for (i = eb; i < eb + ebcnt; i++) { in tort_init() 327 for (i = eb; i < eb + ebcnt; i++) { in tort_init() 341 for (i = eb; i < eb + ebcnt; i++) { in tort_init() [all …]
|
D | mtd_subpagetest.c | 43 static int ebcnt; variable 104 for (i = 0; i < ebcnt; ++i) { in erase_whole_device() 324 for (i = 0; i < ebcnt; ++i) { in verify_all_eraseblocks_ff() 353 bbt = kzalloc(ebcnt, GFP_KERNEL); in scan_for_bad_eraseblocks() 360 for (i = 0; i < ebcnt; ++i) { in scan_for_bad_eraseblocks() 402 ebcnt = tmp; in mtd_subpagetest_init() 409 mtd->writesize, subpgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_subpagetest_init() 434 for (i = 0; i < ebcnt; ++i) { in mtd_subpagetest_init() 448 for (i = 0; i < ebcnt; ++i) { in mtd_subpagetest_init() 471 for (i = 0; i < ebcnt; ++i) { in mtd_subpagetest_init() [all …]
|
D | mtd_oobtest.c | 42 static int ebcnt; variable 102 for (i = 0; i < ebcnt; ++i) { in erase_whole_device() 164 for (i = 0; i < ebcnt; ++i) { in write_whole_device() 313 for (i = 0; i < ebcnt; ++i) { in verify_all_eraseblocks() 342 bbt = kmalloc(ebcnt, GFP_KERNEL); in scan_for_bad_eraseblocks() 349 for (i = 0; i < ebcnt; ++i) { in scan_for_bad_eraseblocks() 392 ebcnt = tmp; in mtd_oobtest_init() 399 mtd->writesize, ebcnt, pgcnt, mtd->oobsize); in mtd_oobtest_init() 457 for (i = 0; i < ebcnt; ++i) { in mtd_oobtest_init() 513 for (i = 0; i < ebcnt && bbt[i]; ++i) in mtd_oobtest_init() [all …]
|
D | mtd_readtest.c | 42 static int ebcnt; variable 145 bbt = kzalloc(ebcnt, GFP_KERNEL); in scan_for_bad_eraseblocks() 155 for (i = 0; i < ebcnt; ++i) { in scan_for_bad_eraseblocks() 196 ebcnt = tmp; in mtd_readtest_init() 203 pgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_readtest_init() 223 for (i = 0; i < ebcnt; ++i) { in mtd_readtest_init()
|