Lines Matching defs:unit
136 /* Transfer unit states */
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 */
324 transfer unit.
336 pr_debug("ftl_cs: erasing xfer unit at 0x%x\n", xfer->Offset);
365 Prepare_xfer() takes a freshly erased transfer unit and gives
382 pr_debug("ftl_cs: preparing xfer unit at 0x%x\n", xfer->Offset);
384 /* Write the transfer unit header */
418 Copy_erase_unit() takes a full erase block and a transfer unit,
419 copies everything to the transfer unit, then swaps the block
423 target unit, so the virtual block map does not need to be
435 uint16_t unit;
465 /* Write the LogicalEUN for the transfer unit */
468 unit = cpu_to_le16(0x7fff);
471 (u_char *)&unit);
478 /* Copy all data blocks from source unit to transfer unit */
493 printk(KERN_WARNING "ftl: Error reading old xfer unit in copy_erase_unit\n");
501 printk(KERN_WARNING "ftl: Error writing new xfer unit in copy_erase_unit\n");
516 /* Write the BAM to the transfer unit */
554 reclaim_block() picks a full erase unit and a transfer unit and
558 What's a good way to decide which transfer unit and which erase
559 unit to use? Beats me. My way is to always pick the transfer
560 unit with the fewest erases, and usually pick the data unit with
562 oldest data unit instead. This means that we generally postpone
576 /* Pick the least erased transfer unit */
612 "unit to be prepared...\n");
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
669 cached unit. If there are no free blocks, it returns 0 -- this
680 printk(KERN_DEBUG "ftl_cs: unit %d: %d phys, %d free, "
694 /* Find an erase unit with some free space */
706 /* Is this unit's BAM cached? */