Lines Matching refs:ItemNum
174 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()
320 if (Index == ItemNum - 1) { in ValidateFmpCapsule()
348 if (ItemNum == 0) { in ValidateFmpCapsule()