Home
last modified time | relevance | path

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

/linux/drivers/mtd/tests/
H A Dspeedtest.c38 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 …]
H A Dstresstest.c40 static int ebcnt; variable
49 eb = get_random_u32_below(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()
H 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()
H 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()
H A Dmtd_test.c43 unsigned int eb, int ebcnt) in mtdtest_scan_for_bad_eraseblocks() argument
51 for (i = 0; i < ebcnt; ++i) { in mtdtest_scan_for_bad_eraseblocks()
64 unsigned int eb, int ebcnt) in mtdtest_erase_good_eraseblocks() argument
69 for (i = 0; i < ebcnt; ++i) { in mtdtest_erase_good_eraseblocks()
H A Dmtd_test.h18 unsigned int eb, int ebcnt);
20 unsigned int eb, int ebcnt);