Lines Matching refs:erase
407 /* If write fails. try to erase the block */
453 * If erase succeeds, it updates free block fifo, otherwise marks block as bad
460 struct erase_info erase;
462 erase.mtd = mtd;
463 erase.callback = sm_erase_callback;
464 erase.addr = sm_mkoffset(ftl, zone_num, block, 0);
465 erase.len = ftl->block_size;
466 erase.priv = (u_long)ftl;
474 sm_printk("attempted to erase the CIS!");
478 if (mtd_erase(mtd, &erase)) {
479 sm_printk("erase of block %d in zone %d failed",
484 if (erase.state == MTD_ERASE_PENDING)
487 if (erase.state != MTD_ERASE_DONE) {
488 sm_printk("erase of block %d in zone %d failed after wait",
539 /* If the block is sliced (partially erased usually) erase it */
631 /* Test for proper write,erase and oob sizes */
795 first sector, because erase happens in one shot */
815 /* We can try to erase it, or mark it as bad, but
848 known which is more recent, thus just erase one of them
981 /* Write succesfull, so erase and free the old block */