Lines Matching refs:pgcnt
36 static int pgcnt; variable
37 module_param(pgcnt, int, S_IRUGO);
38 MODULE_PARM_DESC(pgcnt, "number of pages per eraseblock to torture (0 => all)");
96 if (pgcnt) { in check_eraseblock()
97 addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; in check_eraseblock()
98 len = pgcnt * pgsize; in check_eraseblock()
150 if (pgcnt) { in write_pattern()
151 addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; in write_pattern()
152 len = pgcnt * pgsize; in write_pattern()
188 if (pgcnt) in tort_init()
190 pgcnt); in tort_init()
207 if (pgcnt && (pgcnt > mtd->erasesize / pgsize || pgcnt < 0)) { in tort_init()
208 pr_err("error: invalid pgcnt value %d\n", pgcnt); in tort_init()
380 if (pgcnt) in report_corrupt()
381 check_len = pgcnt * pgsize; in report_corrupt()