Lines Matching refs:erase
102 /* Maximum number of outstanding erase requests per socket */
146 partition. build_maps() reads all the erase unit headers, builds
147 the erase unit map, and then builds the virtual page map.
201 /* Set up erase unit maps */
247 /* Pick anything reasonable for the erase count */
259 printk(KERN_NOTICE "ftl_cs: format error: erase units "
323 Erase_xfer() schedules an asynchronous erase operation for a
333 struct erase_info *erase;
339 /* Is there a free erase slot? Always in MTD. */
342 erase=kmalloc(sizeof(struct erase_info), GFP_KERNEL);
343 if (!erase)
346 erase->addr = xfer->Offset;
347 erase->len = 1 << part->header.EraseUnitSize;
349 ret = mtd_erase(part->mbd.mtd, erase);
355 pr_notice("ftl_cs: erase failed: err = %d\n", ret);
358 kfree(erase);
418 Copy_erase_unit() takes a full erase block and a transfer unit,
554 reclaim_block() picks a full erase unit and a transfer unit and
556 schedules an erase on the expired block.
558 What's a good way to decide which transfer unit and which erase
667 the BAM cache for the erase unit containing the free block. It
668 returns the block index -- the erase unit is just the currently
694 /* Find an erase unit with some free space */
975 pr_debug("FTL erase sector %ld for %d sectors\n",