Lines Matching refs:instr
196 struct erase_info *instr = &inftl->instr; in find_boot_record() local
205 instr->addr = ip->Reserved0 * inftl->EraseSize; in find_boot_record()
206 instr->len = inftl->EraseSize; in find_boot_record()
207 mtd_erase(mtd, instr); in find_boot_record()
365 struct erase_info *instr = &inftl->instr; in INFTL_formatblock() local
371 memset(instr, 0, sizeof(struct erase_info)); in INFTL_formatblock()
377 instr->addr = block * inftl->EraseSize; in INFTL_formatblock()
378 instr->len = inftl->mbd.mtd->erasesize; in INFTL_formatblock()
383 physblock += instr->len, instr->addr += instr->len) { in INFTL_formatblock()
386 ret = mtd_erase(inftl->mbd.mtd, instr); in INFTL_formatblock()
398 if (check_free_sectors(inftl, instr->addr, instr->len, 1) != 0) in INFTL_formatblock()
408 instr->addr = block * inftl->EraseSize + SECTORSIZE * 2; in INFTL_formatblock()
409 if (inftl_write_oob(mtd, instr->addr + 8, 8, &retlen, (char *)&uci) < 0) in INFTL_formatblock()
415 mtd_block_markbad(inftl->mbd.mtd, instr->addr); in INFTL_formatblock()