/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Include/Pei/ |
D | PeiPerf.h | 31 IN EFI_FFS_FILE_HEADER *FileHeader, 59 #define PEI_PERF_START(Ps, Token, FileHeader, Value) PeiPerfMeasure (Ps, Token, FileHeader, FALSE,… argument 60 #define PEI_PERF_END(Ps, Token, FileHeader, Value) PeiPerfMeasure (Ps, Token, FileHeader, TRUE, … argument 62 #define PEI_PERF_START(Ps, Token, FileHeader, Value) argument 63 #define PEI_PERF_END(Ps, Token, FileHeader, Value) argument
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/FirmwareVolume/FwVolDxe/ |
D | FwVolWrite.c | 376 EFI_FFS_FILE_HEADER *FileHeader; in FvLocatePadFile() local 388 FileHeader = (EFI_FFS_FILE_HEADER *) FileEntry->FfsHeader; in FvLocatePadFile() 389 FileState = GetFileState (FvDevice->ErasePolarity, FileHeader); in FvLocatePadFile() 391 if ((FileHeader->Type == EFI_FV_FILETYPE_FFS_PAD) && (FileState == EFI_FILE_DATA_VALID)) { in FvLocatePadFile() 395 if (IS_FFS_FILE2 (FileHeader)) { in FvLocatePadFile() 397 PadAreaLength = FFS_FILE2_SIZE (FileHeader) - HeaderSize; in FvLocatePadFile() 400 PadAreaLength = FFS_FILE_SIZE (FileHeader) - HeaderSize; in FvLocatePadFile() 405 (EFI_PHYSICAL_ADDRESS) (UINTN) FileHeader + HeaderSize, in FvLocatePadFile() 450 EFI_FFS_FILE_HEADER *FileHeader; in FvSearchSuitablePadFile() local 463 FileHeader = (EFI_FFS_FILE_HEADER *) FileEntry->FfsHeader; in FvSearchSuitablePadFile() [all …]
|
D | FwPadFile.c | 282 OUT EFI_FFS_FILE_HEADER *FileHeader, in FvFillFfsFile() argument 316 ((EFI_FFS_FILE_HEADER2 *) FileHeader)->ExtendedSize = (UINT32) ActualFileSize; in FvFillFfsFile() 317 *(UINT32 *) FileHeader->Size &= 0xFF000000; in FvFillFfsFile() 318 FileHeader->Attributes |= FFS_ATTRIB_LARGE_FILE; in FvFillFfsFile() 320 *(UINT32 *) FileHeader->Size &= 0xFF000000; in FvFillFfsFile() 321 *(UINT32 *) FileHeader->Size |= ActualFileSize; in FvFillFfsFile() 334 CopyMem (FileHeader, FfsFileBuffer, BufferSize); in FvFillFfsFile() 350 IN EFI_FFS_FILE_HEADER *FileHeader, in FvAdjustFfsFile() argument 357 if (IS_FFS_FILE2 (FileHeader)) { in FvAdjustFfsFile() 358 Ptr = (UINT8 *) FileHeader + FFS_FILE2_SIZE (FileHeader); in FvAdjustFfsFile() [all …]
|
/device/linaro/bootloader/edk2/Nt32Pkg/Sec/ |
D | FwVol.c | 65 IN EFI_FFS_FILE_HEADER *FileHeader in CalculateHeaderChecksum() argument 85 ptr = (UINT8 *) FileHeader; in CalculateHeaderChecksum() 100 Sum = (UINT8) (Sum - FileHeader->State); in CalculateHeaderChecksum() 104 Sum = (UINT8) (Sum - FileHeader->IntegrityCheck.Checksum.File); in CalculateHeaderChecksum() 113 IN OUT EFI_FFS_FILE_HEADER **FileHeader in SecFfsFindNextFile() argument 155 if (*FileHeader == NULL) { in SecFfsFindNextFile() 162 FileLength = *(UINT32 *) (*FileHeader)->Size & 0x00FFFFFF; in SecFfsFindNextFile() 164 FfsFileHeader = (EFI_FFS_FILE_HEADER *) ((UINT8 *) *FileHeader + FileOccupiedSize); in SecFfsFindNextFile() 190 *FileHeader = FfsFileHeader; in SecFfsFindNextFile() 300 EFI_FFS_FILE_HEADER *FileHeader; in SecFfsFindPeiCore() local [all …]
|
/device/linaro/bootloader/edk2/EmulatorPkg/Library/SecPeiServicesLib/ |
D | FwVol.c | 61 IN EFI_FFS_FILE_HEADER *FileHeader in CalculateHeaderChecksum() argument 81 ptr = (UINT8 *) FileHeader; in CalculateHeaderChecksum() 96 Sum = (UINT8) (Sum - FileHeader->State); in CalculateHeaderChecksum() 100 Sum = (UINT8) (Sum - FileHeader->IntegrityCheck.Checksum.File); in CalculateHeaderChecksum() 141 EFI_FFS_FILE_HEADER **FileHeader; in SecFfsFindNextFile() local 147 FileHeader = (EFI_FFS_FILE_HEADER **)FileHandle; in SecFfsFindNextFile() 159 if (*FileHeader == NULL) { in SecFfsFindNextFile() 166 FileLength = *(UINT32 *) (*FileHeader)->Size & 0x00FFFFFF; in SecFfsFindNextFile() 168 FfsFileHeader = (EFI_FFS_FILE_HEADER *) ((UINT8 *) *FileHeader + FileOccupiedSize); in SecFfsFindNextFile() 194 *FileHeader = FfsFileHeader; in SecFfsFindNextFile()
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/PrePiLib/ |
D | FwVol.c | 74 IN EFI_FFS_FILE_HEADER *FileHeader in CalculateHeaderChecksum() argument 82 Ptr = (UINT8 *)FileHeader; in CalculateHeaderChecksum() 98 Sum = (UINT8)(Sum - FileHeader->State); in CalculateHeaderChecksum() 102 Sum = (UINT8)(Sum - FileHeader->IntegrityCheck.Checksum.File); in CalculateHeaderChecksum() 171 EFI_FFS_FILE_HEADER **FileHeader; in FindFileEx() local 182 FileHeader = (EFI_FFS_FILE_HEADER **)FileHandle; in FindFileEx() 196 if ((*FileHeader == NULL) || (FileName != NULL)) { in FindFileEx() 207 FileLength = *(UINT32 *)(*FileHeader)->Size & 0x00FFFFFF; in FindFileEx() 209 FfsFileHeader = (EFI_FFS_FILE_HEADER *)((UINT8 *)*FileHeader + FileOccupiedSize); in FindFileEx() 235 *FileHeader = NULL; in FindFileEx() [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/VolInfo/ |
D | VolInfo.c | 122 EFI_FFS_FILE_HEADER *FileHeader, 1094 EFI_FFS_FILE_HEADER *FileHeader, in PrintFileInfo() argument 1129 HeaderSize = FvBufGetFfsHeaderSize(FileHeader); in PrintFileInfo() 1136 if (memcmp (&BlankHeader, FileHeader, HeaderSize) == 0) { in PrintFileInfo() 1145 PrintGuidToBuffer (&FileHeader->Name, GuidBuffer, sizeof (GuidBuffer), TRUE); in PrintFileInfo() 1154 FileLength = FvBufGetFfsFileSize (FileHeader); in PrintFileInfo() 1155 printf ("File Offset: 0x%08X\n", (unsigned) ((UINTN) FileHeader - (UINTN) FvImage)); in PrintFileInfo() 1157 printf ("File Attributes: 0x%02X\n", FileHeader->Attributes); in PrintFileInfo() 1158 printf ("File State: 0x%02X\n", FileHeader->State); in PrintFileInfo() 1163 FileState = GetFileState (ErasePolarity, FileHeader); in PrintFileInfo() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiPerformanceLib/ |
D | PerformanceLib.c | 59 IN EFI_FFS_FILE_HEADER *FileHeader, in PeiPerfMeasure() argument 165 if (FileHeader != NULL) { in PeiPerfMeasure() 166 Log->Name = FileHeader->Name; in PeiPerfMeasure() 213 if (FileHeader != NULL) { in PeiPerfMeasure() 215 CheckGuid = &(FileHeader->Name); in PeiPerfMeasure()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/ |
D | Perf.c | 49 IN EFI_FFS_FILE_HEADER *FileHeader, in PeiPerfMeasure() argument 158 if (FileHeader != NULL) { in PeiPerfMeasure() 159 Log->Name = FileHeader->Name; in PeiPerfMeasure() 206 if (FileHeader != NULL) { in PeiPerfMeasure() 208 CheckGuid = &(FileHeader->Name); in PeiPerfMeasure()
|
D | PeCoffLoader.c | 239 ImageContext->Machine = Hdr.Pe32->FileHeader.Machine; in PeCoffLoaderGetPeHeader() 246 if (Hdr.Pe32->FileHeader.Machine == EFI_IMAGE_MACHINE_IA32) { in PeCoffLoaderGetPeHeader() 248 } else if (Hdr.Pe32->FileHeader.Machine == EFI_IMAGE_MACHINE_IA64) { in PeCoffLoaderGetPeHeader() 250 } else if (Hdr.Pe32->FileHeader.Machine == EFI_IMAGE_MACHINE_X64) { in PeCoffLoaderGetPeHeader() 415 if (Hdr.Pe32->FileHeader.Machine == EFI_IMAGE_MACHINE_IA32) { in PeCoffLoaderGetImageInfo() 417 } else if (Hdr.Pe32->FileHeader.Machine == EFI_IMAGE_MACHINE_IA64) { in PeCoffLoaderGetImageInfo() 419 } else if (Hdr.Pe32->FileHeader.Machine == EFI_IMAGE_MACHINE_X64) { in PeCoffLoaderGetImageInfo() 463 …if ((!(ImageContext->IsTeImage)) && ((Hdr.Pe32->FileHeader.Characteristics & EFI_IMAGE_FILE_RELOCS… in PeCoffLoaderGetImageInfo() 505 Hdr.Pe32->FileHeader.SizeOfOptionalHeader in PeCoffLoaderGetImageInfo() 508 for (Index = 0; Index < Hdr.Pe32->FileHeader.NumberOfSections; Index++) { in PeCoffLoaderGetImageInfo() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenFfsFile/ |
D | GenFfsFile.c | 1597 EFI_FFS_FILE_HEADER FileHeader; in MainEntry() local 2241 memset (&FileHeader, 0, sizeof (EFI_FFS_FILE_HEADER)); in MainEntry() 2242 memcpy (&FileHeader.Name, &FfsGuid, sizeof (EFI_GUID)); in MainEntry() 2243 FileHeader.Type = StringToType (FileType); in MainEntry() 2247 FileHeader.Attributes = FfsAttrib; in MainEntry() 2252 FileHeader.Size[0] = (UINT8) (FileSize & 0xFF); in MainEntry() 2253 FileHeader.Size[1] = (UINT8) ((FileSize & 0xFF00) >> 8); in MainEntry() 2254 FileHeader.Size[2] = (UINT8) ((FileSize & 0xFF0000) >> 16); in MainEntry() 2262 FileHeader.IntegrityCheck.Checksum.Header = CalculateChecksum8 ( in MainEntry() 2263 (UINT8 *) &FileHeader, in MainEntry() [all …]
|
/device/linaro/bootloader/edk2/ArmPkg/Library/DebugAgentSymbolsBaseLib/ |
D | DebugAgentSymbolsBaseLib.c | 86 IN EFI_FFS_FILE_HEADER *FileHeader in CalculateHeaderChecksum() argument 92 Sum = CalculateSum8 ((CONST VOID*)FileHeader,sizeof(EFI_FFS_FILE_HEADER)); in CalculateHeaderChecksum() 95 Sum = (UINT8)(Sum - FileHeader->State); in CalculateHeaderChecksum() 98 Sum = (UINT8)(Sum - FileHeader->IntegrityCheck.Checksum.File); in CalculateHeaderChecksum() 107 OUT EFI_FFS_FILE_HEADER **FileHeader in GetFfsFile() argument 149 *FileHeader = FfsFileHeader; in GetFfsFile()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Pei/FwVol/ |
D | FwVol.c | 166 IN EFI_FFS_FILE_HEADER *FileHeader in CalculateHeaderChecksum() argument 171 if (IS_FFS_FILE2 (FileHeader)) { in CalculateHeaderChecksum() 172 CopyMem (&TestFileHeader, FileHeader, sizeof (EFI_FFS_FILE_HEADER2)); in CalculateHeaderChecksum() 181 CopyMem (&TestFileHeader, FileHeader, sizeof (EFI_FFS_FILE_HEADER)); in CalculateHeaderChecksum() 268 EFI_FFS_FILE_HEADER **FileHeader; in FindFileEx() local 283 FileHeader = (EFI_FFS_FILE_HEADER **)FileHandle; in FindFileEx() 299 if ((*FileHeader == NULL) || (FileName != NULL)) { in FindFileEx() 311 if (IS_FFS_FILE2 (*FileHeader)) { in FindFileEx() 313 …I_D_ERROR, "It is a FFS3 formatted file: %g in a non-FFS3 formatted FV.\n", &(*FileHeader)->Name)); in FindFileEx() 315 FileLength = FFS_FILE2_SIZE (*FileHeader); in FindFileEx() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenTEImage/ |
D | GenTEImage.c | 247 EFI_IMAGE_FILE_HEADER FileHeader; in ProcessFile() local 310 if (fread (&FileHeader, sizeof (EFI_IMAGE_FILE_HEADER), 1, InFptr) != 1) { in ProcessFile() 315 if ((FileHeader.Machine != EFI_IMAGE_MACHINE_IA32) && in ProcessFile() 316 (FileHeader.Machine != EFI_IMAGE_MACHINE_X64) && in ProcessFile() 317 (FileHeader.Machine != EFI_IMAGE_MACHINE_IA64)) { in ProcessFile() 318 …LL, 0, 0, InFileName, "image is of an unsupported machine type 0x%X", (UINT32) FileHeader.Machine); in ProcessFile() 325 …BytesStripped = PESigOffset + 4 + sizeof (EFI_IMAGE_FILE_HEADER) + FileHeader.SizeOfOptionalHeader; in ProcessFile() 443 TEImageHeader.Machine = FileHeader.Machine; in ProcessFile() 447 if (FileHeader.NumberOfSections &~0xFF) { in ProcessFile() 455 (UINT32) FileHeader.NumberOfSections in ProcessFile() [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenFw/ |
D | GenFw.c | 572 …CTION_HEADER *) ((UINT8 *) &(PeHdr->Pe32.OptionalHeader) + PeHdr->Pe32.FileHeader.SizeOfOptionalHe… in PeCoffConvertImageToXip() 573 for (Index = 0; Index < PeHdr->Pe32.FileHeader.NumberOfSections; Index ++, SectionHeader ++) { in PeCoffConvertImageToXip() 617 if (PeHdr->Pe32.FileHeader.PointerToSymbolTable != 0) { in PeCoffConvertImageToXip() 621 PeHdr->Pe32.FileHeader.PointerToSymbolTable = 0; in PeCoffConvertImageToXip() 648 …HEADER *) ((UINT8 *) &(NewPeHdr->Pe32.OptionalHeader) + NewPeHdr->Pe32.FileHeader.SizeOfOptionalHe… in PeCoffConvertImageToXip() 649 for (Index = 0; Index < PeHdr->Pe32.FileHeader.NumberOfSections; Index ++, SectionHeader ++) { in PeCoffConvertImageToXip() 891 ImgHdr->Pe32.FileHeader.SizeOfOptionalHeader in SetAddressToSectionHeader() 897 for (Index = 0; Index < ImgHdr->Pe32.FileHeader.NumberOfSections; Index ++, SectionHeader ++) { in SetAddressToSectionHeader() 997 ImgHdr->Pe32.FileHeader.SizeOfOptionalHeader in RebaseImage() 1000 for (Index = 0; Index < ImgHdr->Pe32.FileHeader.NumberOfSections; Index ++, SectionHeader ++) { in RebaseImage() [all …]
|
D | Elf64Convert.c | 544 NtHdr->Pe32Plus.FileHeader.Machine = EFI_IMAGE_MACHINE_X64; in ScanSections64() 548 NtHdr->Pe32Plus.FileHeader.Machine = EFI_IMAGE_MACHINE_IPF; in ScanSections64() 552 NtHdr->Pe32Plus.FileHeader.Machine = EFI_IMAGE_MACHINE_AARCH64; in ScanSections64() 557 NtHdr->Pe32Plus.FileHeader.Machine = EFI_IMAGE_MACHINE_X64; in ScanSections64() 561 NtHdr->Pe32Plus.FileHeader.NumberOfSections = mCoffNbrSections; in ScanSections64() 562 NtHdr->Pe32Plus.FileHeader.TimeDateStamp = (UINT32) time(NULL); in ScanSections64() 563 mImageTimeStamp = NtHdr->Pe32Plus.FileHeader.TimeDateStamp; in ScanSections64() 564 NtHdr->Pe32Plus.FileHeader.PointerToSymbolTable = 0; in ScanSections64() 565 NtHdr->Pe32Plus.FileHeader.NumberOfSymbols = 0; in ScanSections64() 566 NtHdr->Pe32Plus.FileHeader.SizeOfOptionalHeader = sizeof(NtHdr->Pe32Plus.OptionalHeader); in ScanSections64() [all …]
|
D | Elf32Convert.c | 552 NtHdr->Pe32.FileHeader.Machine = EFI_IMAGE_MACHINE_IA32; in ScanSections32() 556 NtHdr->Pe32.FileHeader.Machine = EFI_IMAGE_MACHINE_ARMT; in ScanSections32() 561 NtHdr->Pe32.FileHeader.Machine = EFI_IMAGE_MACHINE_IA32; in ScanSections32() 565 NtHdr->Pe32.FileHeader.NumberOfSections = mCoffNbrSections; in ScanSections32() 566 NtHdr->Pe32.FileHeader.TimeDateStamp = (UINT32) time(NULL); in ScanSections32() 567 mImageTimeStamp = NtHdr->Pe32.FileHeader.TimeDateStamp; in ScanSections32() 568 NtHdr->Pe32.FileHeader.PointerToSymbolTable = 0; in ScanSections32() 569 NtHdr->Pe32.FileHeader.NumberOfSymbols = 0; in ScanSections32() 570 NtHdr->Pe32.FileHeader.SizeOfOptionalHeader = sizeof(NtHdr->Pe32.OptionalHeader); in ScanSections32() 571 NtHdr->Pe32.FileHeader.Characteristics = EFI_IMAGE_FILE_EXECUTABLE_IMAGE in ScanSections32() [all …]
|
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Tcg2Dxe/ |
D | MeasureBootPeCoff.c | 184 …if (Hdr.Pe32->FileHeader.Machine == IMAGE_FILE_MACHINE_IA64 && Hdr.Pe32->OptionalHeader.Magic == E… in MeasurePeImageAndExtend() 323 …DER *) AllocateZeroPool (sizeof (EFI_IMAGE_SECTION_HEADER) * Hdr.Pe32->FileHeader.NumberOfSections… in MeasurePeImageAndExtend() 340 Hdr.Pe32->FileHeader.SizeOfOptionalHeader in MeasurePeImageAndExtend() 342 for (Index = 0; Index < Hdr.Pe32->FileHeader.NumberOfSections; Index++) { in MeasurePeImageAndExtend() 359 for (Index = 0; Index < Hdr.Pe32->FileHeader.NumberOfSections; Index++) { in MeasurePeImageAndExtend()
|
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TrEEDxe/ |
D | MeasureBootPeCoff.c | 184 …if (Hdr.Pe32->FileHeader.Machine == IMAGE_FILE_MACHINE_IA64 && Hdr.Pe32->OptionalHeader.Magic == E… in MeasurePeImageAndExtend() 323 …DER *) AllocateZeroPool (sizeof (EFI_IMAGE_SECTION_HEADER) * Hdr.Pe32->FileHeader.NumberOfSections… in MeasurePeImageAndExtend() 340 Hdr.Pe32->FileHeader.SizeOfOptionalHeader in MeasurePeImageAndExtend() 342 for (Index = 0; Index < Hdr.Pe32->FileHeader.NumberOfSections; Index++) { in MeasurePeImageAndExtend() 359 for (Index = 0; Index < Hdr.Pe32->FileHeader.NumberOfSections; Index++) { in MeasurePeImageAndExtend()
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenVtf/ |
D | GenVtf.c | 1705 EFI_FFS_FILE_HEADER *FileHeader; in UpdateFfsHeader() local 1714 FileHeader = (EFI_FFS_FILE_HEADER *) RelativeAddress; in UpdateFfsHeader() 1717 FileHeader = (EFI_FFS_FILE_HEADER *) RelativeAddress; in UpdateFfsHeader() 1720 if (FileHeader == NULL) { in UpdateFfsHeader() 1727 memset (FileHeader, 0, sizeof (EFI_FFS_FILE_HEADER)); in UpdateFfsHeader() 1728 memcpy (&FileHeader->Name, &EfiFirmwareVolumeTopFileGuid, sizeof (EFI_GUID)); in UpdateFfsHeader() 1729 FileHeader->Type = EFI_FV_FILETYPE_RAW; in UpdateFfsHeader() 1730 FileHeader->Attributes = FFS_ATTRIB_CHECKSUM; in UpdateFfsHeader() 1735 FileHeader->Size[0] = (UINT8) (TotalVtfSize & 0x000000FF); in UpdateFfsHeader() 1736 FileHeader->Size[1] = (UINT8) ((TotalVtfSize & 0x0000FF00) >> 8); in UpdateFfsHeader() [all …]
|
/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() 223 ImageContext->Machine = Hdr.Pe32->FileHeader.Machine; in PeCoffLoaderGetPeHeader() 242 if (((UINT32)Hdr.Pe32->FileHeader.SizeOfOptionalHeader - HeaderWithoutDataDir) != in PeCoffLoaderGetPeHeader() 248 …rOffset + sizeof (UINT32) + sizeof (EFI_IMAGE_FILE_HEADER) + Hdr.Pe32->FileHeader.SizeOfOptionalHe… in PeCoffLoaderGetPeHeader() 256 … - SectionHeaderOffset) / EFI_IMAGE_SIZEOF_SECTION_HEADER <= Hdr.Pe32->FileHeader.NumberOfSections… in PeCoffLoaderGetPeHeader() 272 …ionHeaderOffset) / EFI_IMAGE_SIZEOF_SECTION_HEADER < (UINT32)Hdr.Pe32->FileHeader.NumberOfSections… in PeCoffLoaderGetPeHeader() 356 if (((UINT32)Hdr.Pe32Plus->FileHeader.SizeOfOptionalHeader - HeaderWithoutDataDir) != in PeCoffLoaderGetPeHeader() 362 …set + sizeof (UINT32) + sizeof (EFI_IMAGE_FILE_HEADER) + Hdr.Pe32Plus->FileHeader.SizeOfOptionalHe… in PeCoffLoaderGetPeHeader() 370 …ectionHeaderOffset) / EFI_IMAGE_SIZEOF_SECTION_HEADER <= Hdr.Pe32Plus->FileHeader.NumberOfSections… in PeCoffLoaderGetPeHeader() 386 …eaderOffset) / EFI_IMAGE_SIZEOF_SECTION_HEADER < (UINT32)Hdr.Pe32Plus->FileHeader.NumberOfSections… in PeCoffLoaderGetPeHeader() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/FwImage/ |
D | fwimage.c | 163 SectionNumber = PeHdr->PeHeader32.FileHeader.NumberOfSections; in ZeroExceptionTable() 210 … + sizeof(UINT32) + sizeof (EFI_IMAGE_FILE_HEADER) + PeHdr->PeHeader32.FileHeader.SizeOfOptionalHe… in StripZeroPendingReloc() 211 … for (Index = 0; Index < PeHdr->PeHeader32.FileHeader.NumberOfSections; Index++, SectionHeader++) { in StripZeroPendingReloc() 244 … + sizeof(UINT32) + sizeof (EFI_IMAGE_FILE_HEADER) + PeHdr->PeHeader64.FileHeader.SizeOfOptionalHe… in StripZeroPendingReloc() 245 … for (Index = 0; Index < PeHdr->PeHeader64.FileHeader.NumberOfSections; Index++, SectionHeader++) { in StripZeroPendingReloc() 525 PeHdr->PeHeader32.FileHeader.TimeDateStamp = (UINT32) TimeStamp; in main()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Efi/Include/ |
D | EfiImage.h | 155 EFI_IMAGE_FILE_HEADER FileHeader; member 258 EFI_IMAGE_FILE_HEADER FileHeader; member 266 EFI_IMAGE_FILE_HEADER FileHeader; member 285 ((EFI_IMAGE_NT_HEADERS *) (ntheader))->FileHeader.SizeOfOptionalHeader \
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/ |
D | BasePeCoff.c | 181 ImageContext->Machine = PeHdr->Pe32.FileHeader.Machine; in PeCoffLoaderCheckImageType() 200 PeHdr->Pe32.FileHeader.Machine = ImageContext->Machine; in PeCoffLoaderCheckImageType() 337 …if ((!(ImageContext->IsTeImage)) && ((PeHdr->Pe32.FileHeader.Characteristics & EFI_IMAGE_FILE_RELO… in PeCoffLoaderGetImageInfo() 387 PeHdr->Pe32.FileHeader.SizeOfOptionalHeader in PeCoffLoaderGetImageInfo() 390 for (Index = 0; Index < PeHdr->Pe32.FileHeader.NumberOfSections; Index++) { in PeCoffLoaderGetImageInfo() 970 PeHdr->Pe32.FileHeader.SizeOfOptionalHeader in PeCoffLoaderLoadImage() 972 NumberOfSections = (UINTN) (PeHdr->Pe32.FileHeader.NumberOfSections); in PeCoffLoaderLoadImage() 1315 switch (Hdr.Pe32->FileHeader.Machine) { in PeCoffLoaderGetPdbPointer() 1341 Hdr.Pe32->FileHeader.SizeOfOptionalHeader in PeCoffLoaderGetPdbPointer() 1343 Index = Hdr.Pe32->FileHeader.NumberOfSections; in PeCoffLoaderGetPdbPointer()
|
/device/linaro/bootloader/edk2/EmulatorPkg/Library/PeiEmuPeCoffGetEntryPointLib/ |
D | PeiEmuPeCoffGetEntryPointLib.c | 104 return Hdr.Pe32->FileHeader.Machine; in PeCoffLoaderGetMachineType() 179 switch (Hdr.Pe32->FileHeader.Machine) { in PeCoffLoaderGetPdbPointer()
|