Lines Matching refs:ebnum
89 static inline int check_eraseblock(int ebnum, unsigned char *buf) in check_eraseblock() argument
93 loff_t addr = (loff_t)ebnum * mtd->erasesize; in check_eraseblock()
97 addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; in check_eraseblock()
105 "MTD reported that it was fixed.\n", ebnum); in check_eraseblock()
108 "read %zd\n", err, ebnum, read); in check_eraseblock()
115 len, ebnum, read); in check_eraseblock()
120 pr_err("read wrong data from EB %d\n", ebnum); in check_eraseblock()
127 ebnum); in check_eraseblock()
143 static inline int write_pattern(int ebnum, void *buf) in write_pattern() argument
147 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_pattern()
151 addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; in write_pattern()
157 " bytes\n", err, ebnum, written); in write_pattern()