Lines Matching refs:ebnum
101 static inline int check_eraseblock(int ebnum, unsigned char *buf) in check_eraseblock() argument
105 loff_t addr = (loff_t)ebnum * mtd->erasesize; in check_eraseblock()
109 addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; in check_eraseblock()
117 "MTD reported that it was fixed.\n", ebnum); in check_eraseblock()
120 "read %zd\n", err, ebnum, read); in check_eraseblock()
127 len, ebnum, read); in check_eraseblock()
132 pr_err("read wrong data from EB %d\n", ebnum); in check_eraseblock()
139 ebnum); in check_eraseblock()
155 static inline int write_pattern(int ebnum, void *buf) in write_pattern() argument
159 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_pattern()
163 addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; in write_pattern()
169 " bytes\n", err, ebnum, written); in write_pattern()