Lines Matching refs:instr
219 struct erase_info *instr = &inftl->instr; in find_boot_record() local
221 instr->mtd = inftl->mbd.mtd; in find_boot_record()
230 instr->addr = ip->Reserved0 * inftl->EraseSize; in find_boot_record()
231 instr->len = inftl->EraseSize; in find_boot_record()
232 mtd->erase(mtd, instr); in find_boot_record()
385 struct erase_info *instr = &inftl->instr; in INFTL_formatblock() local
392 memset(instr, 0, sizeof(struct erase_info)); in INFTL_formatblock()
398 instr->mtd = inftl->mbd.mtd; in INFTL_formatblock()
399 instr->addr = block * inftl->EraseSize; in INFTL_formatblock()
400 instr->len = inftl->mbd.mtd->erasesize; in INFTL_formatblock()
405 physblock += instr->len, instr->addr += instr->len) { in INFTL_formatblock()
406 mtd->erase(inftl->mbd.mtd, instr); in INFTL_formatblock()
408 if (instr->state == MTD_ERASE_FAILED) { in INFTL_formatblock()
419 if (check_free_sectors(inftl, instr->addr, instr->len, 1) != 0) in INFTL_formatblock()
429 instr->addr = block * inftl->EraseSize + SECTORSIZE * 2; in INFTL_formatblock()
430 if (inftl_write_oob(mtd, instr->addr + 8, 8, &retlen, (char *)&uci) < 0) in INFTL_formatblock()
436 inftl->mbd.mtd->block_markbad(inftl->mbd.mtd, instr->addr); in INFTL_formatblock()