Lines Matching refs:instr
226 static int part_erase(struct mtd_info *mtd, struct erase_info *instr) in part_erase() argument
231 instr->addr += part->offset; in part_erase()
232 ret = part->master->_erase(part->master, instr); in part_erase()
234 if (instr->fail_addr != MTD_FAIL_ADDR_UNKNOWN) in part_erase()
235 instr->fail_addr -= part->offset; in part_erase()
236 instr->addr -= part->offset; in part_erase()
241 void mtd_erase_callback(struct erase_info *instr) in mtd_erase_callback() argument
243 if (instr->mtd->_erase == part_erase) { in mtd_erase_callback()
244 struct mtd_part *part = PART(instr->mtd); in mtd_erase_callback()
246 if (instr->fail_addr != MTD_FAIL_ADDR_UNKNOWN) in mtd_erase_callback()
247 instr->fail_addr -= part->offset; in mtd_erase_callback()
248 instr->addr -= part->offset; in mtd_erase_callback()
250 if (instr->callback) in mtd_erase_callback()
251 instr->callback(instr); in mtd_erase_callback()