Lines Matching refs:ItemNum
195 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
1319 ItemNum = FmpCapsuleHeader->EmbeddedDriverCount + FmpCapsuleHeader->PayloadItemCount; in ProcessFmpCapsuleImage()
1324 if (ItemNum == 0) { in ProcessFmpCapsuleImage()
1362 for (Index = FmpCapsuleHeader->EmbeddedDriverCount; Index < ItemNum; Index++) { in ProcessFmpCapsuleImage()