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