Lines Matching refs:erase_op
386 struct erase_info erase_op = {}; in do_mtd_erase() local
424 erase_op.mtd = mtd; in do_mtd_erase()
425 erase_op.addr = off; in do_mtd_erase()
426 erase_op.len = len; in do_mtd_erase()
427 erase_op.scrub = scrub; in do_mtd_erase()
429 while (erase_op.len) { in do_mtd_erase()
430 ret = mtd_erase(mtd, &erase_op); in do_mtd_erase()
436 printf("Skipping bad block at 0x%08llx\n", erase_op.fail_addr); in do_mtd_erase()
439 erase_op.len -= erase_op.fail_addr - erase_op.addr; in do_mtd_erase()
440 erase_op.len -= mtd->erasesize; in do_mtd_erase()
441 erase_op.addr = erase_op.fail_addr + mtd->erasesize; in do_mtd_erase()