Home
last modified time | relevance | path

Searched refs:ItemNum (Results 1 – 5 of 5) sorted by relevance

/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/DxeCapsuleLib/
DDxeCapsuleLib.c70 UINT32 ItemNum; in ValidateFmpCapsule() local
81 ItemNum = FmpCapsuleHeader->EmbeddedDriverCount + FmpCapsuleHeader->PayloadItemCount; in ValidateFmpCapsule()
83 if (ItemNum == FmpCapsuleHeader->EmbeddedDriverCount) { in ValidateFmpCapsule()
87 if (((UINT8 *)FmpCapsuleHeader + ItemOffsetList[ItemNum - 1]) < EndOfCapsule) { in ValidateFmpCapsule()
98 …RMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER *)((UINT8 *)FmpCapsuleHeader + ItemOffsetList[ItemNum - 1]); in ValidateFmpCapsule()
114 if (ItemNum >= 2) { in ValidateFmpCapsule()
115 for (Index = 0; Index < ItemNum - 1; Index++) { in ValidateFmpCapsule()
145 UINT32 ItemNum; in ProcessFmpCapsuleImage() local
178 ItemNum = FmpCapsuleHeader->EmbeddedDriverCount + FmpCapsuleHeader->PayloadItemCount; in ProcessFmpCapsuleImage()
183 if (ItemNum == 0) { in ProcessFmpCapsuleImage()
[all …]
/device/linaro/bootloader/edk2/SignedCapsulePkg/Universal/RecoveryModuleLoadPei/
DRecoveryModuleLoadPei.c174 UINT32 ItemNum; in IsSystemFmpCapsuleImage() local
187 ItemNum = FmpCapsuleHeader->EmbeddedDriverCount + FmpCapsuleHeader->PayloadItemCount; in IsSystemFmpCapsuleImage()
191 for (Index = 0; Index < ItemNum; Index++) { in IsSystemFmpCapsuleImage()
259 UINT32 ItemNum; in ValidateFmpCapsule() local
288 ItemNum = FmpCapsuleHeader->EmbeddedDriverCount + FmpCapsuleHeader->PayloadItemCount; in ValidateFmpCapsule()
290 if ((FmpCapsuleSize - sizeof(EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER))/sizeof(UINT64) < ItemNum) { in ValidateFmpCapsule()
291 DEBUG((DEBUG_ERROR, "ItemNum(0x%x) too big\n", ItemNum)); in ValidateFmpCapsule()
294 FmpCapsuleHeaderSize = sizeof(EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER) + sizeof(UINT64)*ItemNum; in ValidateFmpCapsule()
297 for (Index = 0; Index < ItemNum; Index++) { in ValidateFmpCapsule()
318 for (Index = FmpCapsuleHeader->EmbeddedDriverCount; Index < ItemNum; Index++) { in ValidateFmpCapsule()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeCapsuleLibFmp/
DDxeCapsuleLib.c195 UINT32 ItemNum; in ValidateFmpCapsule() local
228 ItemNum = FmpCapsuleHeader->EmbeddedDriverCount + FmpCapsuleHeader->PayloadItemCount; in ValidateFmpCapsule()
230 if ((FmpCapsuleSize - sizeof(EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER))/sizeof(UINT64) < ItemNum) { in ValidateFmpCapsule()
231 DEBUG((DEBUG_ERROR, "ItemNum(0x%x) too big\n", ItemNum)); in ValidateFmpCapsule()
234 FmpCapsuleHeaderSize = sizeof(EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER) + sizeof(UINT64)*ItemNum; in ValidateFmpCapsule()
237 for (Index = 0; Index < ItemNum; Index++) { in ValidateFmpCapsule()
258 for (Index = FmpCapsuleHeader->EmbeddedDriverCount; Index < ItemNum; Index++) { in ValidateFmpCapsule()
260 if (Index == ItemNum - 1) { in ValidateFmpCapsule()
288 if (ItemNum == 0) { in ValidateFmpCapsule()
1293 UINT32 ItemNum; in ProcessFmpCapsuleImage() local
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Application/BootManagerMenuApp/
DBootManagerMenu.c660 UINTN ItemNum; in BootFromSelectOption() local
665 for (ItemNum = 0, Index = 0; Index < BootOptionCount; Index++) { in BootFromSelectOption()
670 if (ItemNum++ == SelectItem) { in BootFromSelectOption()
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Parser/
DDecParser.py305 ItemNum = 0
369 ItemNum += 1
391 if self._IsStatementRequired() and ItemNum == 0: