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

/linux-4.1.27/drivers/mtd/tests/
H A Dmtd_test.h17 unsigned int eb, int ebcnt);
19 unsigned int eb, int ebcnt);
H A Dspeedtest.c49 static int ebcnt; variable
229 ebcnt = tmp; mtd_speedtest_init()
236 pgsize, ebcnt, pgcnt, mtd->oobsize); mtd_speedtest_init()
238 if (count > 0 && count < ebcnt) mtd_speedtest_init()
239 ebcnt = count; mtd_speedtest_init()
248 bbt = kzalloc(ebcnt, GFP_KERNEL); mtd_speedtest_init()
251 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); mtd_speedtest_init()
254 for (i = 0; i < ebcnt; i++) { mtd_speedtest_init()
259 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); mtd_speedtest_init()
266 for (i = 0; i < ebcnt; ++i) { mtd_speedtest_init()
284 for (i = 0; i < ebcnt; ++i) { mtd_speedtest_init()
299 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); mtd_speedtest_init()
306 for (i = 0; i < ebcnt; ++i) { mtd_speedtest_init()
324 for (i = 0; i < ebcnt; ++i) { mtd_speedtest_init()
339 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); mtd_speedtest_init()
346 for (i = 0; i < ebcnt; ++i) { mtd_speedtest_init()
364 for (i = 0; i < ebcnt; ++i) { mtd_speedtest_init()
382 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); mtd_speedtest_init()
395 for (i = 0; i < ebcnt; ) { mtd_speedtest_init()
396 for (j = 0; j < blocks && (i + j) < ebcnt; j++) mtd_speedtest_init()
H A Dpagetest.c48 static int ebcnt; variable
70 for (i = 0; i < ebcnt && bbt[i]; ++i) verify_eraseblock()
74 for (i = 0; i < ebcnt && bbt[ebcnt - i - 1]; ++i) verify_eraseblock()
139 for (i = 0; i < ebcnt && bbt[i]; ++i) crosstest()
143 for (i = 0; i < ebcnt && bbt[ebcnt - i - 1]; ++i) crosstest()
211 for (i = 0; i < ebcnt && bbt[i]; ++i) { erasecrosstest()
216 ebnum2 = ebcnt - 1; erasecrosstest()
289 for (i = 0; i < ebcnt && bbt[i]; ++i) { erasetest()
363 ebcnt = tmp; mtd_pagetest_init()
371 pgsize, ebcnt, pgcnt, mtd->oobsize); mtd_pagetest_init()
385 bbt = kzalloc(ebcnt, GFP_KERNEL); mtd_pagetest_init()
388 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); mtd_pagetest_init()
394 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); mtd_pagetest_init()
397 pr_info("erased %u eraseblocks\n", ebcnt); mtd_pagetest_init()
402 for (i = 0; i < ebcnt; ++i) { mtd_pagetest_init()
420 for (i = 0; i < ebcnt; ++i) { mtd_pagetest_init()
H A Dmtd_test.c46 unsigned int eb, int ebcnt) mtdtest_scan_for_bad_eraseblocks()
54 for (i = 0; i < ebcnt; ++i) { mtdtest_scan_for_bad_eraseblocks()
66 unsigned int eb, int ebcnt) mtdtest_erase_good_eraseblocks()
71 for (i = 0; i < ebcnt; ++i) { mtdtest_erase_good_eraseblocks()
45 mtdtest_scan_for_bad_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, unsigned int eb, int ebcnt) mtdtest_scan_for_bad_eraseblocks() argument
65 mtdtest_erase_good_eraseblocks(struct mtd_info *mtd, unsigned char *bbt, unsigned int eb, int ebcnt) mtdtest_erase_good_eraseblocks() argument
H A Dstresstest.c52 static int ebcnt; variable
61 /* Read or write up 2 eraseblocks at a time - hence 'ebcnt - 1' */ rand_eb()
62 eb %= (ebcnt - 1); rand_eb()
181 ebcnt = tmp; mtd_stresstest_init()
188 pgsize, ebcnt, pgcnt, mtd->oobsize); mtd_stresstest_init()
190 if (ebcnt < 2) { mtd_stresstest_init()
202 offsets = kmalloc(ebcnt * sizeof(int), GFP_KERNEL); mtd_stresstest_init()
205 for (i = 0; i < ebcnt; i++) mtd_stresstest_init()
209 bbt = kzalloc(ebcnt, GFP_KERNEL); mtd_stresstest_init()
212 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); mtd_stresstest_init()
H A Dsubpagetest.c46 static int ebcnt; variable
264 for (i = 0; i < ebcnt; ++i) { verify_all_eraseblocks_ff()
313 ebcnt = tmp; mtd_subpagetest_init()
320 mtd->writesize, subpgsize, ebcnt, pgcnt, mtd->oobsize); mtd_subpagetest_init()
330 bbt = kzalloc(ebcnt, GFP_KERNEL); mtd_subpagetest_init()
334 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); mtd_subpagetest_init()
338 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); mtd_subpagetest_init()
344 for (i = 0; i < ebcnt; ++i) { mtd_subpagetest_init()
361 for (i = 0; i < ebcnt; ++i) { mtd_subpagetest_init()
376 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); mtd_subpagetest_init()
387 for (i = 0; i < ebcnt; ++i) { mtd_subpagetest_init()
405 for (i = 0; i < ebcnt; ++i) { mtd_subpagetest_init()
420 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); mtd_subpagetest_init()
H A Dreadtest.c44 static int ebcnt; variable
156 ebcnt = tmp; mtd_readtest_init()
163 pgsize, ebcnt, pgcnt, mtd->oobsize); mtd_readtest_init()
173 bbt = kzalloc(ebcnt, GFP_KERNEL); mtd_readtest_init()
176 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); mtd_readtest_init()
182 for (i = 0; i < ebcnt; ++i) { mtd_readtest_init()
H A Doobtest.c48 static int ebcnt; variable
107 for (i = 0; i < ebcnt; ++i) { write_whole_device()
316 for (i = 0; i < ebcnt; ++i) { verify_all_eraseblocks()
366 ebcnt = tmp; mtd_oobtest_init()
373 mtd->writesize, ebcnt, pgcnt, mtd->oobsize); mtd_oobtest_init()
382 bbt = kzalloc(ebcnt, GFP_KERNEL); mtd_oobtest_init()
386 err = mtdtest_scan_for_bad_eraseblocks(mtd, bbt, 0, ebcnt); mtd_oobtest_init()
398 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); mtd_oobtest_init()
418 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); mtd_oobtest_init()
430 for (i = 0; i < ebcnt; ++i) { mtd_oobtest_init()
451 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); mtd_oobtest_init()
484 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); mtd_oobtest_init()
489 for (i = 0; i < ebcnt && bbt[i]; ++i) mtd_oobtest_init()
532 if (bbt[ebcnt - 1]) mtd_oobtest_init()
576 err = mtdtest_erase_eraseblock(mtd, ebcnt - 1); mtd_oobtest_init()
625 err = mtdtest_erase_good_eraseblocks(mtd, bbt, 0, ebcnt); mtd_oobtest_init()
632 for (i = 0; i < ebcnt - 1; ++i) { mtd_oobtest_init()
667 for (i = 0; i < ebcnt - 1; ++i) { mtd_oobtest_init()
H A Dtorturetest.c43 static int ebcnt = 32; variable
44 module_param(ebcnt, int, S_IRUGO);
45 MODULE_PARM_DESC(ebcnt, "number of consecutive eraseblocks to torture");
198 ebcnt, eb, eb + ebcnt - 1, dev); tort_init()
240 bad_ebs = kzalloc(ebcnt, GFP_KERNEL); tort_init()
258 err = mtdtest_scan_for_bad_eraseblocks(mtd, bad_ebs, eb, ebcnt); tort_init()
267 err = mtdtest_erase_good_eraseblocks(mtd, bad_ebs, eb, ebcnt); tort_init()
273 for (i = eb; i < eb + ebcnt; i++) { tort_init()
290 for (i = eb; i < eb + ebcnt; i++) { tort_init()
308 for (i = eb; i < eb + ebcnt; i++) { tort_init()

Completed in 189 milliseconds