Home
last modified time | relevance | path

Searched refs:ebcnt (Results 1 – 9 of 9) sorted by relevance

/linux/drivers/mtd/tests/
A Dspeedtest.c38 static int ebcnt; variable
210 ebcnt = tmp; in mtd_speedtest_init()
220 ebcnt = count; in mtd_speedtest_init()
235 for (i = 0; i < ebcnt; i++) { in mtd_speedtest_init()
247 for (i = 0; i < ebcnt; ++i) { in mtd_speedtest_init()
265 for (i = 0; i < ebcnt; ++i) { in mtd_speedtest_init()
287 for (i = 0; i < ebcnt; ++i) { in mtd_speedtest_init()
305 for (i = 0; i < ebcnt; ++i) { in mtd_speedtest_init()
327 for (i = 0; i < ebcnt; ++i) { in mtd_speedtest_init()
345 for (i = 0; i < ebcnt; ++i) { in mtd_speedtest_init()
[all …]
A Dpagetest.c36 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()
203 ebnum2 = ebcnt - 1; in erasecrosstest()
350 ebcnt = tmp; in mtd_pagetest_init()
372 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_pagetest_init()
389 for (i = 0; i < ebcnt; ++i) { in mtd_pagetest_init()
407 for (i = 0; i < ebcnt; ++i) { in mtd_pagetest_init()
[all …]
A Dstresstest.c40 static int ebcnt; variable
50 eb %= (ebcnt - 1); in rand_eb()
169 ebcnt = tmp; in mtd_stresstest_init()
176 pgsize, ebcnt, pgcnt, mtd->oobsize); in mtd_stresstest_init()
178 if (ebcnt < 2) { in mtd_stresstest_init()
190 offsets = kmalloc_array(ebcnt, sizeof(int), GFP_KERNEL); in mtd_stresstest_init()
193 for (i = 0; i < ebcnt; i++) in mtd_stresstest_init()
197 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_stresstest_init()
200 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); in mtd_stresstest_init()
A Dsubpagetest.c33 static int ebcnt; variable
251 for (i = 0; i < ebcnt; ++i) { in verify_all_eraseblocks_ff()
300 ebcnt = tmp; in mtd_subpagetest_init()
317 bbt = kzalloc(ebcnt, GFP_KERNEL); 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()
374 for (i = 0; i < ebcnt; ++i) { in mtd_subpagetest_init()
392 for (i = 0; i < ebcnt; ++i) { in mtd_subpagetest_init()
[all …]
A Doobtest.c36 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()
385 bbt = kzalloc(ebcnt, GFP_KERNEL); in mtd_oobtest_init()
433 for (i = 0; i < ebcnt; ++i) { in mtd_oobtest_init()
492 for (i = 0; i < ebcnt && bbt[i]; ++i) in mtd_oobtest_init()
536 if (bbt[ebcnt - 1]) in mtd_oobtest_init()
581 err = mtdtest_erase_eraseblock(mtd, ebcnt - 1); in mtd_oobtest_init()
638 for (i = 0; i < ebcnt - 1; ++i) { in mtd_oobtest_init()
[all …]
A Dtorturetest.c32 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()
A Dreadtest.c32 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()
A Dmtd_test.c42 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()
A Dmtd_test.h18 unsigned int eb, int ebcnt);
20 unsigned int eb, int ebcnt);

Completed in 13 milliseconds