Lines Matching defs:erase
414 /* If write fails. try to erase the block */
462 * If erase succeeds, it updates free block fifo, otherwise marks block as bad
469 struct erase_info erase;
471 erase.addr = sm_mkoffset(ftl, zone_num, block, 0);
472 erase.len = ftl->block_size;
480 sm_printk("attempted to erase the CIS!");
484 if (mtd_erase(mtd, &erase)) {
485 sm_printk("erase of block %d in zone %d failed",
531 /* If the block is sliced (partially erased usually) erase it */
625 /* Test for proper write,erase and oob sizes */
792 * first sector, because erase happens in one shot
814 /* We can try to erase it, or mark it as bad, but
849 * known which is more recent, thus just erase one of them
984 /* Write successful, so erase and free the old block */