Lines Matching refs:ebnum
96 static inline int check_eraseblock(int ebnum, unsigned char *buf) in check_eraseblock() argument
100 loff_t addr = (loff_t)ebnum * mtd->erasesize; in check_eraseblock()
104 addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; in check_eraseblock()
112 "MTD reported that it was fixed.\n", ebnum); in check_eraseblock()
115 "read %zd\n", err, ebnum, read); in check_eraseblock()
122 len, ebnum, read); in check_eraseblock()
127 pr_err("read wrong data from EB %d\n", ebnum); in check_eraseblock()
134 ebnum); in check_eraseblock()
150 static inline int write_pattern(int ebnum, void *buf) in write_pattern() argument
154 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_pattern()
158 addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; in write_pattern()
164 " bytes\n", err, ebnum, written); in write_pattern()