/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Tcg2Dxe/ |
D | MeasureBootPeCoff.c | 119 UINT16 Magic; in MeasurePeImageAndExtend() local 184 …if (Hdr.Pe32->FileHeader.Machine == IMAGE_FILE_MACHINE_IA64 && Hdr.Pe32->OptionalHeader.Magic == E… in MeasurePeImageAndExtend() 191 Magic = EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC; in MeasurePeImageAndExtend() 196 Magic = Hdr.Pe32->OptionalHeader.Magic; in MeasurePeImageAndExtend() 204 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in MeasurePeImageAndExtend() 231 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in MeasurePeImageAndExtend() 255 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in MeasurePeImageAndExtend() 280 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in MeasurePeImageAndExtend() 305 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in MeasurePeImageAndExtend() 387 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in MeasurePeImageAndExtend()
|
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TrEEDxe/ |
D | MeasureBootPeCoff.c | 119 UINT16 Magic; in MeasurePeImageAndExtend() local 184 …if (Hdr.Pe32->FileHeader.Machine == IMAGE_FILE_MACHINE_IA64 && Hdr.Pe32->OptionalHeader.Magic == E… in MeasurePeImageAndExtend() 191 Magic = EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC; in MeasurePeImageAndExtend() 196 Magic = Hdr.Pe32->OptionalHeader.Magic; in MeasurePeImageAndExtend() 204 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in MeasurePeImageAndExtend() 231 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in MeasurePeImageAndExtend() 255 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in MeasurePeImageAndExtend() 280 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in MeasurePeImageAndExtend() 305 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in MeasurePeImageAndExtend() 387 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in MeasurePeImageAndExtend()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/ |
D | PeCoffLoader.c | 182 UINT16 Magic; in PeCoffLoaderGetPeHeader() local 247 Magic = EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC; in PeCoffLoaderGetPeHeader() 249 Magic = EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC; in PeCoffLoaderGetPeHeader() 251 Magic = EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC; in PeCoffLoaderGetPeHeader() 253 Magic = Hdr.Pe32->OptionalHeader.Magic; in PeCoffLoaderGetPeHeader() 256 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC || in PeCoffLoaderGetPeHeader() 257 Magic == EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC) { in PeCoffLoaderGetPeHeader() 378 UINT16 Magic; in PeCoffLoaderGetImageInfo() local 403 Magic = EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC; in PeCoffLoaderGetImageInfo() 416 Magic = EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC; in PeCoffLoaderGetImageInfo() [all …]
|
/device/linaro/bootloader/edk2/EmulatorPkg/Library/PeiEmuPeCoffGetEntryPointLib/ |
D | PeiEmuPeCoffGetEntryPointLib.c | 143 UINT16 Magic; in PeCoffLoaderGetPdbPointer() local 184 Magic = EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC; in PeCoffLoaderGetPdbPointer() 191 Magic = EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC; in PeCoffLoaderGetPdbPointer() 197 Magic = Hdr.Pe32->OptionalHeader.Magic; in PeCoffLoaderGetPdbPointer() 200 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in PeCoffLoaderGetPdbPointer() 207 } else if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC) { in PeCoffLoaderGetPdbPointer()
|
/device/linaro/bootloader/edk2/MdePkg/Library/BasePeCoffGetEntryPointLib/ |
D | PeCoffGetEntryPoint.c | 162 UINT16 Magic; in PeCoffLoaderGetPdbPointer() local 203 Magic = EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC; in PeCoffLoaderGetPdbPointer() 210 Magic = EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC; in PeCoffLoaderGetPdbPointer() 216 Magic = Hdr.Pe32->OptionalHeader.Magic; in PeCoffLoaderGetPdbPointer() 219 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in PeCoffLoaderGetPdbPointer() 226 } else if (Hdr.Pe32->OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC) { in PeCoffLoaderGetPdbPointer()
|
/device/linaro/bootloader/edk2/Nt32Pkg/Library/Nt32PeiPeCoffGetEntryPointLib/ |
D | PeCoffGetEntryPoint.c | 170 UINT16 Magic; in PeCoffLoaderGetPdbPointer() local 211 Magic = EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC; in PeCoffLoaderGetPdbPointer() 218 Magic = EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC; in PeCoffLoaderGetPdbPointer() 224 Magic = Hdr.Pe32->OptionalHeader.Magic; in PeCoffLoaderGetPdbPointer() 227 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in PeCoffLoaderGetPdbPointer() 234 } else if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC) { in PeCoffLoaderGetPdbPointer()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffLib/ |
D | BasePeCoff.c | 45 …if (Hdr.Pe32->FileHeader.Machine == EFI_IMAGE_MACHINE_IA64 && Hdr.Pe32->OptionalHeader.Magic == EF… in PeCoffLoaderGetPeHeaderMagicValue() 51 return Hdr.Pe32->OptionalHeader.Magic; in PeCoffLoaderGetPeHeaderMagicValue() 74 UINT16 Magic; in GluePeCoffLoaderGetPeHeader() local 133 Magic = PeCoffLoaderGetPeHeaderMagicValue (Hdr); in GluePeCoffLoaderGetPeHeader() 135 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in GluePeCoffLoaderGetPeHeader() 144 } else if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC) { in GluePeCoffLoaderGetPeHeader() 212 UINT16 Magic; in GluePeCoffLoaderGetImageInfo() local 228 Magic = PeCoffLoaderGetPeHeaderMagicValue (Hdr); in GluePeCoffLoaderGetImageInfo() 234 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in GluePeCoffLoaderGetImageInfo() 279 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in GluePeCoffLoaderGetImageInfo() [all …]
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasureBootLib/ |
D | DxeTpmMeasureBootLib.c | 323 UINT16 Magic; in TcgMeasurePeImage() local 421 …if (Hdr.Pe32->FileHeader.Machine == IMAGE_FILE_MACHINE_IA64 && Hdr.Pe32->OptionalHeader.Magic == E… in TcgMeasurePeImage() 428 Magic = EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC; in TcgMeasurePeImage() 433 Magic = Hdr.Pe32->OptionalHeader.Magic; in TcgMeasurePeImage() 441 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in TcgMeasurePeImage() 468 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in TcgMeasurePeImage() 492 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in TcgMeasurePeImage() 517 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in TcgMeasurePeImage() 542 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in TcgMeasurePeImage() 624 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in TcgMeasurePeImage()
|
/device/linaro/bootloader/edk2/MdePkg/Library/BasePeCoffLib/ |
D | BasePeCoff.c | 69 …if (Hdr.Pe32->FileHeader.Machine == IMAGE_FILE_MACHINE_IA64 && Hdr.Pe32->OptionalHeader.Magic == E… in PeCoffLoaderGetPeHeaderMagicValue() 75 return Hdr.Pe32->OptionalHeader.Magic; in PeCoffLoaderGetPeHeaderMagicValue() 104 UINT16 Magic; in PeCoffLoaderGetPeHeader() local 225 Magic = PeCoffLoaderGetPeHeaderMagicValue (Hdr); in PeCoffLoaderGetPeHeader() 227 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in PeCoffLoaderGetPeHeader() 342 } else if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC) { in PeCoffLoaderGetPeHeader() 608 UINT16 Magic; in PeCoffLoaderGetImageInfo() local 625 Magic = PeCoffLoaderGetPeHeaderMagicValue (Hdr); in PeCoffLoaderGetImageInfo() 632 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in PeCoffLoaderGetImageInfo() 681 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in PeCoffLoaderGetImageInfo() [all …]
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeImageVerificationLib/ |
D | DxeImageVerificationLib.c | 298 UINT16 Magic; in HashPeImage() local 370 …ader.Machine == IMAGE_FILE_MACHINE_IA64 && mNtHeader.Pe32->OptionalHeader.Magic == EFI_IMAGE_NT_OP… in HashPeImage() 377 Magic = EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC; in HashPeImage() 382 Magic = mNtHeader.Pe32->OptionalHeader.Magic; in HashPeImage() 390 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in HashPeImage() 396 } else if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC) { in HashPeImage() 423 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in HashPeImage() 447 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in HashPeImage() 472 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in HashPeImage() 497 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in HashPeImage() [all …]
|
/device/linaro/bootloader/edk2/DuetPkg/EfiLdr/ |
D | PeLoader.c | 97 if (PeHdr.Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in EfiLdrGetPeImageInfo() 99 } else if (PeHdr.Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC) { in EfiLdrGetPeImageInfo() 199 if (PeHdr.Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in EfiLdrPeCoffLoadPeImage() 201 } else if (PeHdr.Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC) { in EfiLdrPeCoffLoadPeImage() 268 if (PeHdr.Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in EfiLdrPeCoffLoadPeImage() 298 if (PeHdr.Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in EfiLdrPeCoffLoadPeImage() 372 if (PeHdr.Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in EfiLdrPeCoffLoadPeImage()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxePerformanceLib/ |
D | PerformanceLib.c | 167 UINT16 Magic; in GetPdbPath() local 185 Magic = EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC; in GetPdbPath() 187 Magic = EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC; in GetPdbPath() 189 Magic = EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC; in GetPdbPath() 191 Magic = NtHdr->OptionalHeader.Magic; in GetPdbPath() 193 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in GetPdbPath()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/ |
D | Perf.c | 158 UINT16 Magic; in GetPdbPath() local 176 Magic = EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC; in GetPdbPath() 178 Magic = EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC; in GetPdbPath() 180 Magic = EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC; in GetPdbPath() 182 Magic = NtHdr->OptionalHeader.Magic; in GetPdbPath() 184 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in GetPdbPath()
|
/device/linaro/bootloader/edk2/EmbeddedPkg/GdbStub/ |
D | GdbStub.c | 865 UINT16 Magic; in PeCoffLoaderGetDebuggerInfo() local 916 Magic = EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC; in PeCoffLoaderGetDebuggerInfo() 923 Magic = EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC; in PeCoffLoaderGetDebuggerInfo() 929 Magic = Hdr.Pe32->OptionalHeader.Magic; in PeCoffLoaderGetDebuggerInfo() 932 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in PeCoffLoaderGetDebuggerInfo() 940 } else if (Hdr.Pe32->OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC) { in PeCoffLoaderGetDebuggerInfo()
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/ |
D | BasePeCoff.c | 306 if (PeHdr->Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in PeCoffLoaderGetImageInfo() 347 if (PeHdr->Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in PeCoffLoaderGetImageInfo() 635 if (PeHdr->Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in PeCoffLoaderRelocateImage() 1099 if (PeHdr->Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in PeCoffLoaderLoadImage() 1258 UINT16 Magic; in PeCoffLoaderGetPdbPointer() local 1321 Magic = EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC; in PeCoffLoaderGetPdbPointer() 1328 Magic = EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC; in PeCoffLoaderGetPdbPointer() 1334 Magic = Hdr.Pe32->OptionalHeader.Magic; in PeCoffLoaderGetPdbPointer() 1345 if (EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC == Magic) { in PeCoffLoaderGetPdbPointer() 1351 } else if (Hdr.Pe32->OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC) { in PeCoffLoaderGetPdbPointer() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffGetEntryPointLib/ |
D | PeCoffGetEntryPoint.c | 175 if (Hdr.Pe32->OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in PeCoffLoaderGetPdbPointer() 182 } else if (Hdr.Pe32->OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC) { in PeCoffLoaderGetPdbPointer()
|
/device/linaro/bootloader/OpenPlatformPkg/Include/Library/ |
D | UsbSerialNumberLib.h | 23 UINT64 Magic; member
|
/device/linaro/bootloader/OpenPlatformPkg/Library/UsbSerialNumberLib/ |
D | UsbSerialNumberLib.c | 79 RandomSN->Magic = RANDOM_MAGIC; in GenerateUsbSNBySeed() 194 if (RandomSN->Magic == RANDOM_MAGIC) { in LoadSNFromBlock() 268 RandomSN->Magic = RANDOM_MAGIC; in StoreSNToBlock()
|
/device/linaro/bootloader/OpenPlatformPkg/Applications/FirmwareUpdate/ |
D | FUpdate.c | 69 UINT32 Magic; // 0-3 member 142 if (Header->Magic != MAIN_HDR_MAGIC) { in CheckImageHeader() 143 … Print (L"%s: Bad Image magic 0x%08x != 0x%08x\n", CMD_NAME_STRING, Header->Magic, MAIN_HDR_MAGIC); in CheckImageHeader()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/FwImage/ |
D | fwimage.c | 133 if (PeHdr->PeHeader32.OptionalHeader.Magic == IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in ZeroExceptionTable() 206 if (PeHdr->PeHeader32.OptionalHeader.Magic == IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in StripZeroPendingReloc() 532 if (PeHdr->PeHeader32.OptionalHeader.Magic == IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in main() 560 } else if (PeHdr->PeHeader32.OptionalHeader.Magic == IMAGE_NT_OPTIONAL_HDR64_MAGIC) { in main()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Efi/Include/ |
D | EfiImage.h | 136 UINT16 Magic; member 170 UINT16 Magic; member 217 UINT16 Magic; member
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/Include/IndustryStandard/ |
D | PeImage.h | 143 UINT16 Magic; member 178 UINT16 Magic; member 226 UINT16 Magic; member
|
/device/linaro/bootloader/OpenPlatformPkg/Platforms/Hisilicon/HiKey/HiKeyDxe/ |
D | HiKeyDxe.c | 52 UINT64 Magic; member 182 if (RandomSN->Magic != RANDOM_MAGIC) { in AbootimgAppendKernelArgs()
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenFw/ |
D | GenFw.c | 1013 …if ((ImgHdr->Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) && (ImgHdr->Pe32.File… in RebaseImage() 1015 } else if (ImgHdr->Pe32Plus.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC) { in RebaseImage() 1019 ImgHdr->Pe32.OptionalHeader.Magic, in RebaseImage() 2116 if (PeHdr->Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in main() 2125 if (PeHdr->Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC) { in main() 2177 …if ((PeHdr->Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) && (PeHdr->Pe32.FileHe… in main() 2321 if (PeHdr->Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in main() 2414 } else if (PeHdr->Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC) { in main() 2523 …"Invalid", "Magic 0x%x of PeImage %s is unknown.", PeHdr->Pe32.OptionalHeader.Magic, mInImageName); in main() 2558 if (PeHdr->Pe32.OptionalHeader.Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in main() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Misc/ |
D | PropertiesTable.c | 1095 UINT16 Magic; in InsertImageRecord() local 1140 …if (Hdr.Pe32->FileHeader.Machine == IMAGE_FILE_MACHINE_IA64 && Hdr.Pe32->OptionalHeader.Magic == E… in InsertImageRecord() 1147 Magic = EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC; in InsertImageRecord() 1152 Magic = Hdr.Pe32->OptionalHeader.Magic; in InsertImageRecord() 1154 if (Magic == EFI_IMAGE_NT_OPTIONAL_HDR32_MAGIC) { in InsertImageRecord()
|