Lines Matching refs:erase
551 struct erase_info erase; in mtdswap_erase_block() local
562 memset(&erase, 0, sizeof(struct erase_info)); in mtdswap_erase_block()
564 erase.mtd = mtd; in mtdswap_erase_block()
565 erase.callback = mtdswap_erase_callback; in mtdswap_erase_block()
566 erase.addr = mtdswap_eb_offset(d, eb); in mtdswap_erase_block()
567 erase.len = mtd->erasesize; in mtdswap_erase_block()
568 erase.priv = (u_long)&wq; in mtdswap_erase_block()
570 ret = mtd_erase(mtd, &erase); in mtdswap_erase_block()
575 erase.addr, mtd->name); in mtdswap_erase_block()
581 erase.addr, mtd->name); in mtdswap_erase_block()
587 ret = wait_event_interruptible(wq, erase.state == MTD_ERASE_DONE || in mtdswap_erase_block()
588 erase.state == MTD_ERASE_FAILED); in mtdswap_erase_block()
591 erase.addr, mtd->name); in mtdswap_erase_block()
595 if (erase.state == MTD_ERASE_FAILED) { in mtdswap_erase_block()
599 erase.addr, mtd->name); in mtdswap_erase_block()