Lines Matching refs:instr
210 struct erase_info *instr = &inftl->instr; in find_boot_record() local
212 instr->mtd = inftl->mbd.mtd; in find_boot_record()
221 instr->addr = ip->Reserved0 * inftl->EraseSize; in find_boot_record()
222 instr->len = inftl->EraseSize; in find_boot_record()
223 mtd_erase(mtd, instr); in find_boot_record()
377 struct erase_info *instr = &inftl->instr; in INFTL_formatblock() local
383 memset(instr, 0, sizeof(struct erase_info)); in INFTL_formatblock()
389 instr->mtd = inftl->mbd.mtd; in INFTL_formatblock()
390 instr->addr = block * inftl->EraseSize; in INFTL_formatblock()
391 instr->len = inftl->mbd.mtd->erasesize; in INFTL_formatblock()
396 physblock += instr->len, instr->addr += instr->len) { in INFTL_formatblock()
397 mtd_erase(inftl->mbd.mtd, instr); in INFTL_formatblock()
399 if (instr->state == MTD_ERASE_FAILED) { in INFTL_formatblock()
410 if (check_free_sectors(inftl, instr->addr, instr->len, 1) != 0) in INFTL_formatblock()
420 instr->addr = block * inftl->EraseSize + SECTORSIZE * 2; in INFTL_formatblock()
421 if (inftl_write_oob(mtd, instr->addr + 8, 8, &retlen, (char *)&uci) < 0) in INFTL_formatblock()
427 mtd_block_markbad(inftl->mbd.mtd, instr->addr); in INFTL_formatblock()