Lines Matching refs:instr
2000 static int nand_erase(struct mtd_info *mtd, struct erase_info *instr) in nand_erase() argument
2002 return nand_erase_nand(mtd, instr, 0); in nand_erase()
2014 int nand_erase_nand(struct mtd_info *mtd, struct erase_info *instr, in nand_erase_nand() argument
2024 (unsigned long long)instr->addr, (unsigned long long)instr->len); in nand_erase_nand()
2027 if (instr->addr & ((1 << chip->phys_erase_shift) - 1)) { in nand_erase_nand()
2033 if (instr->len & ((1 << chip->phys_erase_shift) - 1)) { in nand_erase_nand()
2040 if ((instr->len + instr->addr) > mtd->size) { in nand_erase_nand()
2046 instr->fail_addr = MTD_FAIL_ADDR_UNKNOWN; in nand_erase_nand()
2052 page = (int)(instr->addr >> chip->page_shift); in nand_erase_nand()
2053 chipnr = (int)(instr->addr >> chip->chip_shift); in nand_erase_nand()
2065 instr->state = MTD_ERASE_FAILED; in nand_erase_nand()
2079 len = instr->len; in nand_erase_nand()
2081 instr->state = MTD_ERASING; in nand_erase_nand()
2091 instr->state = MTD_ERASE_FAILED; in nand_erase_nand()
2119 instr->state = MTD_ERASE_FAILED; in nand_erase_nand()
2120 instr->fail_addr = in nand_erase_nand()
2154 instr->state = MTD_ERASE_DONE; in nand_erase_nand()
2158 ret = instr->state == MTD_ERASE_DONE ? 0 : -EIO; in nand_erase_nand()
2165 mtd_erase_callback(instr); in nand_erase_nand()