Lines Matching defs:erase
412 /* If write fails. try to erase the block */
458 * If erase succeeds, it updates free block fifo, otherwise marks block as bad
465 struct erase_info erase;
467 erase.addr = sm_mkoffset(ftl, zone_num, block, 0);
468 erase.len = ftl->block_size;
476 sm_printk("attempted to erase the CIS!");
480 if (mtd_erase(mtd, &erase)) {
481 sm_printk("erase of block %d in zone %d failed",
526 /* If the block is sliced (partially erased usually) erase it */
618 /* Test for proper write,erase and oob sizes */
785 first sector, because erase happens in one shot */
805 /* We can try to erase it, or mark it as bad, but
838 known which is more recent, thus just erase one of them
971 /* Write succesfull, so erase and free the old block */