Lines Matching refs:eun
468 struct eun_info_t *eun;
477 eun = &part->EUNInfo[srcunit];
480 eun->Offset, xfer->Offset);
486 offset = eun->Offset + le32_to_cpu(part->header.BAMOffset);
515 src = eun->Offset; dest = xfer->Offset;
574 xfer->EraseCount = eun->EraseCount;
575 eun->EraseCount = i;
577 xfer->Offset = eun->Offset;
578 eun->Offset = i;
579 part->FreeTotal -= eun->Free;
581 eun->Free = free;
582 eun->Deleted = 0;
608 uint16_t i, eun, xfer;
667 eun = 0;
674 eun = i;
681 eun = i;
695 ret = copy_erase_unit(part, eun, xfer);
728 uint16_t stop, eun;
735 eun = stop;
737 if (part->EUNInfo[eun].Free != 0) break;
739 if (++eun == part->DataUnits) eun = 0;
740 } while (eun != stop);
742 if (part->EUNInfo[eun].Free == 0)
746 if (eun != part->bam_index) {
751 part->EUNInfo[eun].Offset + le32_to_cpu(part->header.BAMOffset),
759 part->bam_index = eun;
774 DEBUG(2, "ftl_cs: found free block at %d in %d\n", blk, eun);
839 uint16_t eun;
846 eun = log_addr / bsize;
848 offset = (part->EUNInfo[eun].Offset + blk * sizeof(uint32_t) +
873 if (part->bam_index == eun) {