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 */
244 /* Pick anything reasonable for the erase count */
256 printk(KERN_NOTICE "ftl_cs: format error: erase units "
319 Erase_xfer() schedules an asynchronous erase operation for a
329 struct erase_info *erase;
335 /* Is there a free erase slot? Always in MTD. */
338 erase=kmalloc_obj(struct erase_info);
339 if (!erase)
342 erase->addr = xfer->Offset;
343 erase->len = 1ULL << part->header.EraseUnitSize;
345 ret = mtd_erase(part->mbd.mtd, erase);
351 pr_notice("ftl_cs: erase failed: err = %d\n", ret);
354 kfree(erase);
414 Copy_erase_unit() takes a full erase block and a transfer unit,
550 reclaim_block() picks a full erase unit and a transfer unit and
552 schedules an erase on the expired block.
554 What's a good way to decide which transfer unit and which erase
663 the BAM cache for the erase unit containing the free block. It
664 returns the block index -- the erase unit is just the currently
690 /* Find an erase unit with some free space */
971 pr_debug("FTL erase sector %ld for %d sectors\n",