Lines Matching refs:ebnum
100 static inline int check_eraseblock(int ebnum, unsigned char *buf) in check_eraseblock() argument
104 loff_t addr = (loff_t)ebnum * mtd->erasesize; in check_eraseblock()
108 addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; in check_eraseblock()
116 "MTD reported that it was fixed.\n", ebnum); in check_eraseblock()
119 "read %zd\n", err, ebnum, read); in check_eraseblock()
126 len, ebnum, read); in check_eraseblock()
131 pr_err("read wrong data from EB %d\n", ebnum); in check_eraseblock()
138 ebnum); in check_eraseblock()
154 static inline int write_pattern(int ebnum, void *buf) in write_pattern() argument
158 loff_t addr = (loff_t)ebnum * mtd->erasesize; in write_pattern()
162 addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; in write_pattern()
168 " bytes\n", err, ebnum, written); in write_pattern()