Lines Matching refs:EUNInfo
121 } *EUNInfo;
211 part->EUNInfo = kmalloc(part->DataUnits * sizeof(struct eun_info_t),
213 if (!part->EUNInfo)
216 part->EUNInfo[i].Offset = 0xffffffff;
237 (part->EUNInfo[le16_to_cpu(header.LogicalEUN)].Offset == 0xffffffff)) {
238 part->EUNInfo[le16_to_cpu(header.LogicalEUN)].Offset = offset;
239 part->EUNInfo[le16_to_cpu(header.LogicalEUN)].EraseCount =
288 part->EUNInfo[i].Free = 0;
289 part->EUNInfo[i].Deleted = 0;
290 offset = part->EUNInfo[i].Offset + le32_to_cpu(header.BAMOffset);
301 part->EUNInfo[i].Free++;
308 part->EUNInfo[i].Deleted++;
322 kfree(part->EUNInfo);
477 eun = &part->EUNInfo[srcunit];
672 if (part->EUNInfo[i].EraseCount <= best) {
673 best = part->EUNInfo[i].EraseCount;
679 if (part->EUNInfo[i].Deleted >= best) {
680 best = part->EUNInfo[i].Deleted;
721 part->EUNInfo[i].Offset >> part->header.EraseUnitSize,
722 part->EUNInfo[i].Free, part->EUNInfo[i].Deleted);
737 if (part->EUNInfo[eun].Free != 0) break;
742 if (part->EUNInfo[eun].Free == 0)
751 part->EUNInfo[eun].Offset + le32_to_cpu(part->header.BAMOffset),
811 offset = (part->EUNInfo[log_addr / bsize].Offset
848 offset = (part->EUNInfo[eun].Offset + blk * sizeof(uint32_t) +
942 part->EUNInfo[part->bam_index].Free--;
946 part->EUNInfo[part->bam_index].Deleted++;
947 offset = (part->EUNInfo[part->bam_index].Offset +
964 part->EUNInfo[old_addr/bsize].Deleted++;
973 part->EUNInfo[part->bam_index].Deleted--;
1021 part->EUNInfo[old_addr/bsize].Deleted++;
1039 kfree(part->EUNInfo);
1040 part->EUNInfo = NULL;