Searched refs:PrimaryHeader (Results 1 – 3 of 3) sorted by relevance
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpm2MeasureBootLib/ |
D | DxeTpm2MeasureBootLib.c | 137 EFI_PARTITION_TABLE_HEADER *PrimaryHeader; in Tcg2MeasureGptTable() local 161 PrimaryHeader = (EFI_PARTITION_TABLE_HEADER *) AllocatePool (BlockIo->Media->BlockSize); in Tcg2MeasureGptTable() 162 if (PrimaryHeader == NULL) { in Tcg2MeasureGptTable() 170 (UINT8 *)PrimaryHeader in Tcg2MeasureGptTable() 174 FreePool (PrimaryHeader); in Tcg2MeasureGptTable() 180 …EntryPtr = (UINT8 *)AllocatePool (PrimaryHeader->NumberOfPartitionEntries * PrimaryHeader->SizeOfP… in Tcg2MeasureGptTable() 182 FreePool (PrimaryHeader); in Tcg2MeasureGptTable() 188 MultU64x32(PrimaryHeader->PartitionEntryLBA, BlockIo->Media->BlockSize), in Tcg2MeasureGptTable() 189 PrimaryHeader->NumberOfPartitionEntries * PrimaryHeader->SizeOfPartitionEntry, in Tcg2MeasureGptTable() 193 FreePool (PrimaryHeader); in Tcg2MeasureGptTable() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Disk/PartitionDxe/ |
D | Gpt.c | 212 EFI_PARTITION_TABLE_HEADER *PrimaryHeader; in PartitionInstallGptChildHandles() local 223 PrimaryHeader = NULL; in PartitionInstallGptChildHandles() 278 PrimaryHeader = AllocateZeroPool (sizeof (EFI_PARTITION_TABLE_HEADER)); in PartitionInstallGptChildHandles() 279 if (PrimaryHeader == NULL) { in PartitionInstallGptChildHandles() 291 if (!PartitionValidGptTable (BlockIo, DiskIo, PRIMARY_PART_HEADER_LBA, PrimaryHeader)) { in PartitionInstallGptChildHandles() 304 if (PartitionValidGptTable (BlockIo, DiskIo, BackupHeader->AlternateLBA, PrimaryHeader)) { in PartitionInstallGptChildHandles() 308 } else if (!PartitionValidGptTable (BlockIo, DiskIo, PrimaryHeader->AlternateLBA, BackupHeader)) { in PartitionInstallGptChildHandles() 311 if (!PartitionRestoreGptTable (BlockIo, DiskIo, PrimaryHeader)) { in PartitionInstallGptChildHandles() 315 if (PartitionValidGptTable (BlockIo, DiskIo, PrimaryHeader->AlternateLBA, BackupHeader)) { in PartitionInstallGptChildHandles() 326 …PartEntry = AllocatePool (PrimaryHeader->NumberOfPartitionEntries * PrimaryHeader->SizeOfPartition… in PartitionInstallGptChildHandles() [all …]
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasureBootLib/ |
D | DxeTpmMeasureBootLib.c | 135 EFI_PARTITION_TABLE_HEADER *PrimaryHeader; in TcgMeasureGptTable() local 161 PrimaryHeader = (EFI_PARTITION_TABLE_HEADER *) AllocatePool (BlockIo->Media->BlockSize); in TcgMeasureGptTable() 162 if (PrimaryHeader == NULL) { in TcgMeasureGptTable() 170 (UINT8 *)PrimaryHeader in TcgMeasureGptTable() 174 FreePool (PrimaryHeader); in TcgMeasureGptTable() 180 …EntryPtr = (UINT8 *)AllocatePool (PrimaryHeader->NumberOfPartitionEntries * PrimaryHeader->SizeOfP… in TcgMeasureGptTable() 182 FreePool (PrimaryHeader); in TcgMeasureGptTable() 188 MultU64x32(PrimaryHeader->PartitionEntryLBA, BlockIo->Media->BlockSize), in TcgMeasureGptTable() 189 PrimaryHeader->NumberOfPartitionEntries * PrimaryHeader->SizeOfPartitionEntry, in TcgMeasureGptTable() 193 FreePool (PrimaryHeader); in TcgMeasureGptTable() [all …]
|