Lines Matching refs:instr
335 static void concat_erase_callback(struct erase_info *instr) in concat_erase_callback() argument
337 wake_up((wait_queue_head_t *) instr->priv); in concat_erase_callback()
374 static int concat_erase(struct mtd_info *mtd, struct erase_info *instr) in concat_erase() argument
390 if (instr->addr & (concat->mtd.erasesize - 1)) in concat_erase()
392 if (instr->len & (concat->mtd.erasesize - 1)) in concat_erase()
403 instr->addr >= erase_regions[i].offset; i++) ; in concat_erase()
411 if (i < 0 || instr->addr & (erase_regions[i].erasesize - 1)) in concat_erase()
418 (instr->addr + instr->len) >= erase_regions[i].offset; in concat_erase()
424 if (i < 0 || ((instr->addr + instr->len) & in concat_erase()
435 *erase = *instr; in concat_erase()
436 length = instr->len; in concat_erase()
473 instr->fail_addr = erase->fail_addr + offset; in concat_erase()
487 instr->state = erase->state; in concat_erase()
492 if (instr->callback) in concat_erase()
493 instr->callback(instr); in concat_erase()