Lines Matching refs:NumberOfPartitionEntries
326 PartEntry = AllocatePool (PrimaryHeader->NumberOfPartitionEntries * PrimaryHeader->SizeOfPartitionEntry);
336 PrimaryHeader->NumberOfPartitionEntries * (PrimaryHeader->SizeOfPartitionEntry),
347 DEBUG ((EFI_D_INFO, " Number of partition entries: %d\n", PrimaryHeader->NumberOfPartitionEntries));
349 PEntryStatus = AllocateZeroPool (PrimaryHeader->NumberOfPartitionEntries * sizeof (EFI_PARTITION_ENTRY_STATUS));
368 for (Index = 0; Index < PrimaryHeader->NumberOfPartitionEntries; Index++) {
502 // Ensure the NumberOfPartitionEntries * SizeOfPartitionEntry doesn't overflow.
504 if (PartHdr->NumberOfPartitionEntries > DivU64x32 (MAX_UINTN, PartHdr->SizeOfPartitionEntry)) {
547 Ptr = AllocatePool (PartHeader->NumberOfPartitionEntries * PartHeader->SizeOfPartitionEntry);
557 PartHeader->NumberOfPartitionEntries * PartHeader->SizeOfPartitionEntry,
565 Size = PartHeader->NumberOfPartitionEntries * PartHeader->SizeOfPartitionEntry;
641 Ptr = AllocatePool (PartHeader->NumberOfPartitionEntries * PartHeader->SizeOfPartitionEntry);
652 PartHeader->NumberOfPartitionEntries * PartHeader->SizeOfPartitionEntry,
663 PartHeader->NumberOfPartitionEntries * PartHeader->SizeOfPartitionEntry,
708 for (Index1 = 0; Index1 < PartHeader->NumberOfPartitionEntries; Index1++) {
733 for (Index2 = Index1 + 1; Index2 < PartHeader->NumberOfPartitionEntries; Index2++) {