Home
last modified time | relevance | path

Searched refs:LbaIndex (Results 1 – 9 of 9) sorted by relevance

/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Variable/RuntimeDxe/
DReclaim.c47 UINT32 LbaIndex; in GetLbaAndOffsetByAddress() local
79 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()
/device/linaro/bootloader/edk2/SecurityPkg/VariableAuthenticated/EsalVariableDxeSal/
DReclaim.c123 UINT32 LbaIndex; in GetLbaAndOffsetByAddress() local
163 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()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/FwVolBlock/
DFwVolBlock.c215 UINTN LbaIndex; in FwVolBlockReadBlock() local
226 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()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/FaultTolerantWriteDxe/
DFtwMisc.c1041 UINT32 LbaIndex; in FindFvbForFtw() local
1095 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()
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/
DFwVol.c325 EFI_LBA LbaIndex; in FvCheck() local
381 LbaIndex = 0; in FvCheck()
411 LbaEntry->LbaIndex = LbaIndex; in FvCheck()
428 LbaIndex, in FvCheck()
444 LbaIndex++; in FvCheck()
DFwVolDriver.h59 EFI_LBA LbaIndex; member
DFfs.c159 *Lba = LbaEntry->LbaIndex; in Buffer2Lba()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/FwVol/
DFwVol.c335 EFI_LBA LbaIndex; in FvCheck() local
394 LbaIndex = 0; in FvCheck()
406 LbaIndex ++; in FvCheck()
427 LbaIndex, in FvCheck()
440 LbaIndex++; in FvCheck()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Dispatcher/
DDispatcher.c735 EFI_LBA LbaIndex; in FvIsBeingProcesssed() local
757 LbaIndex = 0; in FvIsBeingProcesssed()
765 LbaIndex ++; in FvIsBeingProcesssed()
779 … Status = ReadFvbData (Fvb, &LbaIndex, &LbaOffset, sizeof (FvNameGuid), (UINT8 *) &FvNameGuid); in FvIsBeingProcesssed()