Searched refs:LbaIndex (Results 1 – 9 of 9) sorted by relevance
47 UINT32 LbaIndex; in GetLbaAndOffsetByAddress() local79 for (LbaIndex = 1; LbaIndex <= FvbMapEntry->NumBlocks; LbaIndex += 1) { in GetLbaAndOffsetByAddress()80 if (Address < (FvbBaseAddress + FvbMapEntry->Length * LbaIndex)) { in GetLbaAndOffsetByAddress()84 *Lba = LbaIndex - 1; in GetLbaAndOffsetByAddress()85 *Offset = (UINTN) (Address - (FvbBaseAddress + FvbMapEntry->Length * (LbaIndex - 1))); in GetLbaAndOffsetByAddress()
123 UINT32 LbaIndex; in GetLbaAndOffsetByAddress() local163 for (LbaIndex = 1; LbaIndex <= FvbMapEntry->NumBlocks; LbaIndex += 1) { in GetLbaAndOffsetByAddress()164 if (Address < (FvbBaseAddress + FvbMapEntry->Length * LbaIndex)) { in GetLbaAndOffsetByAddress()168 *Lba = LbaIndex - 1; in GetLbaAndOffsetByAddress()169 *Offset = (UINTN) (Address - (FvbBaseAddress + FvbMapEntry->Length * (LbaIndex - 1))); in GetLbaAndOffsetByAddress()
215 UINTN LbaIndex; in FwVolBlockReadBlock() local226 LbaIndex = (UINTN) Lba; in FwVolBlockReadBlock()227 if (LbaIndex >= FvbDevice->NumBlocks) { in FwVolBlockReadBlock()235 if (Offset > FvbDevice->LbaCache[LbaIndex].Length) { in FwVolBlockReadBlock()244 if (Offset + NumOfBytesRead > FvbDevice->LbaCache[LbaIndex].Length) { in FwVolBlockReadBlock()248 NumOfBytesRead = FvbDevice->LbaCache[LbaIndex].Length - Offset; in FwVolBlockReadBlock()251 LbaStart = FvbDevice->LbaCache[LbaIndex].Base; in FwVolBlockReadBlock()
1041 UINT32 LbaIndex; in FindFvbForFtw() local1095 for (LbaIndex = 1; LbaIndex <= NumberOfBlocks; LbaIndex += 1) { in FindFvbForFtw()1096 if ((FtwDevice->WorkSpaceAddress >= (FvbBaseAddress + BlockSize * (LbaIndex - 1))) in FindFvbForFtw()1097 && (FtwDevice->WorkSpaceAddress < (FvbBaseAddress + BlockSize * LbaIndex))) { in FindFvbForFtw()1098 FtwDevice->FtwWorkSpaceLba = LbaIndex - 1; in FindFvbForFtw()1104 …INTN) (FtwDevice->WorkSpaceAddress - (FvbBaseAddress + FtwDevice->WorkBlockSize * (LbaIndex - 1))); in FindFvbForFtw()1134 for (LbaIndex = 1; LbaIndex <= NumberOfBlocks; LbaIndex += 1) { in FindFvbForFtw()1135 if ((FtwDevice->SpareAreaAddress >= (FvbBaseAddress + BlockSize * (LbaIndex - 1))) in FindFvbForFtw()1136 && (FtwDevice->SpareAreaAddress < (FvbBaseAddress + BlockSize * LbaIndex))) { in FindFvbForFtw()1140 FtwDevice->FtwSpareLba = LbaIndex - 1; in FindFvbForFtw()
325 EFI_LBA LbaIndex; in FvCheck() local381 LbaIndex = 0; in FvCheck()411 LbaEntry->LbaIndex = LbaIndex; in FvCheck()428 LbaIndex, in FvCheck()444 LbaIndex++; in FvCheck()
59 EFI_LBA LbaIndex; member
159 *Lba = LbaEntry->LbaIndex; in Buffer2Lba()
335 EFI_LBA LbaIndex; in FvCheck() local394 LbaIndex = 0; in FvCheck()406 LbaIndex ++; in FvCheck()427 LbaIndex, in FvCheck()440 LbaIndex++; in FvCheck()
735 EFI_LBA LbaIndex; in FvIsBeingProcesssed() local757 LbaIndex = 0; in FvIsBeingProcesssed()765 LbaIndex ++; in FvIsBeingProcesssed()779 … Status = ReadFvbData (Fvb, &LbaIndex, &LbaOffset, sizeof (FvNameGuid), (UINT8 *) &FvNameGuid); in FvIsBeingProcesssed()