Home
last modified time | relevance | path

Searched refs:PeCoffHeaderOffset (Results 1 – 20 of 20) sorted by relevance

/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Tcg2Dxe/
DMeasureBootPeCoff.c111 UINT32 PeCoffHeaderOffset; in MeasurePeImageAndExtend() local
152 PeCoffHeaderOffset = 0; in MeasurePeImageAndExtend()
154 PeCoffHeaderOffset = DosHdr->e_lfanew; in MeasurePeImageAndExtend()
157 Hdr.Pe32 = (EFI_IMAGE_NT_HEADERS32 *)((UINT8 *) (UINTN) ImageAddress + PeCoffHeaderOffset); in MeasurePeImageAndExtend()
337 PeCoffHeaderOffset + in MeasurePeImageAndExtend()
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TrEEDxe/
DMeasureBootPeCoff.c111 UINT32 PeCoffHeaderOffset; in MeasurePeImageAndExtend() local
152 PeCoffHeaderOffset = 0; in MeasurePeImageAndExtend()
154 PeCoffHeaderOffset = DosHdr->e_lfanew; in MeasurePeImageAndExtend()
157 Hdr.Pe32 = (EFI_IMAGE_NT_HEADERS32 *)((UINT8 *) (UINTN) ImageAddress + PeCoffHeaderOffset); in MeasurePeImageAndExtend()
337 PeCoffHeaderOffset + in MeasurePeImageAndExtend()
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasureBootLib/
DDxeTpmMeasureBootLib.c315 UINT32 PeCoffHeaderOffset; in TcgMeasurePeImage() local
384 PeCoffHeaderOffset = 0; in TcgMeasurePeImage()
386 PeCoffHeaderOffset = DosHdr->e_lfanew; in TcgMeasurePeImage()
389 Hdr.Pe32 = (EFI_IMAGE_NT_HEADERS32 *)((UINT8 *) (UINTN) ImageAddress + PeCoffHeaderOffset); in TcgMeasurePeImage()
574 PeCoffHeaderOffset + in TcgMeasurePeImage()
/device/linaro/bootloader/edk2/MdePkg/Library/BasePeCoffLib/
DBasePeCoff.c131 ImageContext->PeCoffHeaderOffset = 0; in PeCoffLoaderGetPeHeader()
137 ImageContext->PeCoffHeaderOffset = DosHdr.e_lfanew; in PeCoffLoaderGetPeHeader()
150 ImageContext->PeCoffHeaderOffset, in PeCoffLoaderGetPeHeader()
248 …SectionHeaderOffset = ImageContext->PeCoffHeaderOffset + sizeof (UINT32) + sizeof (EFI_IMAGE_FILE_… in PeCoffLoaderGetPeHeader()
362 …SectionHeaderOffset = ImageContext->PeCoffHeaderOffset + sizeof (UINT32) + sizeof (EFI_IMAGE_FILE_… in PeCoffLoaderGetPeHeader()
481 …SectionHeaderOffset = ImageContext->PeCoffHeaderOffset + sizeof (UINT32) + sizeof (EFI_IMAGE_FILE_… in PeCoffLoaderGetPeHeader()
707 ImageContext->PeCoffHeaderOffset + in PeCoffLoaderGetImageInfo()
988 …= (EFI_IMAGE_NT_HEADERS32 *)((UINTN)ImageContext->ImageAddress + ImageContext->PeCoffHeaderOffset); in PeCoffLoaderRelocateImage()
1319 …= (EFI_IMAGE_NT_HEADERS32 *)((UINTN)ImageContext->ImageAddress + ImageContext->PeCoffHeaderOffset); in PeCoffLoaderLoadImage()
1323 ImageContext->PeCoffHeaderOffset + in PeCoffLoaderLoadImage()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffLib/
DBasePeCoff.c91 ImageContext->PeCoffHeaderOffset = 0; in GluePeCoffLoaderGetPeHeader()
97 ImageContext->PeCoffHeaderOffset = DosHdr.e_lfanew; in GluePeCoffLoaderGetPeHeader()
109 ImageContext->PeCoffHeaderOffset, in GluePeCoffLoaderGetPeHeader()
305 ImageContext->PeCoffHeaderOffset + in GluePeCoffLoaderGetImageInfo()
553 …= (EFI_IMAGE_NT_HEADERS32 *)((UINTN)ImageContext->ImageAddress + ImageContext->PeCoffHeaderOffset); in GluePeCoffLoaderRelocateImage()
857 …= (EFI_IMAGE_NT_HEADERS32 *)((UINTN)ImageContext->ImageAddress + ImageContext->PeCoffHeaderOffset); in GluePeCoffLoaderLoadImage()
861 ImageContext->PeCoffHeaderOffset + in GluePeCoffLoaderLoadImage()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Guid/PeiPeCoffLoader/
DPeiPeCoffLoader.h62 UINT32 PeCoffHeaderOffset; member
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/
DPeCoffLib.h59 UINT32 PeCoffHeaderOffset; member
DBasePeCoff.c123 ImageContext->PeCoffHeaderOffset = 0; in PeCoffLoaderGetPeHeader()
128 ImageContext->PeCoffHeaderOffset = DosHdr.e_lfanew; in PeCoffLoaderGetPeHeader()
133 …FI_IMAGE_OPTIONAL_HEADER_UNION *) ((UINTN)ImageContext->Handle + ImageContext->PeCoffHeaderOffset); in PeCoffLoaderGetPeHeader()
384 ImageContext->PeCoffHeaderOffset + in PeCoffLoaderGetImageInfo()
633 ImageContext->PeCoffHeaderOffset); in PeCoffLoaderRelocateImage()
961 ((UINTN)ImageContext->ImageAddress + ImageContext->PeCoffHeaderOffset); in PeCoffLoaderLoadImage()
967 ImageContext->PeCoffHeaderOffset + in PeCoffLoaderLoadImage()
/device/linaro/bootloader/edk2/MdePkg/Include/Library/
DPeCoffLib.h128 UINT32 PeCoffHeaderOffset; member
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/
DPeCoffLoader.c199 ImageContext->PeCoffHeaderOffset = 0; in PeCoffLoaderGetPeHeader()
205 ImageContext->PeCoffHeaderOffset = DosHdr.e_lfanew; in PeCoffLoaderGetPeHeader()
217 ImageContext->PeCoffHeaderOffset, in PeCoffLoaderGetPeHeader()
502 ImageContext->PeCoffHeaderOffset + in PeCoffLoaderGetImageInfo()
747 …= (EFI_IMAGE_NT_HEADERS32 *)((UINTN)ImageContext->ImageAddress + ImageContext->PeCoffHeaderOffset); in PeCoffLoaderRelocateImage()
1103 …= (EFI_IMAGE_NT_HEADERS32 *)((UINTN)ImageContext->ImageAddress + ImageContext->PeCoffHeaderOffset); in PeCoffLoaderLoadImage()
1107 ImageContext->PeCoffHeaderOffset + in PeCoffLoaderLoadImage()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/
DEdkIIGluePeCoffLib.h79 UINT32 PeCoffHeaderOffset; member
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Misc/
DPropertiesTable.c1086 UINT32 PeCoffHeaderOffset; in InsertImageRecord() local
1125 PeCoffHeaderOffset = 0; in InsertImageRecord()
1127 PeCoffHeaderOffset = DosHdr->e_lfanew; in InsertImageRecord()
1130 Hdr.Pe32 = (EFI_IMAGE_NT_HEADERS32 *)((UINT8 *) (UINTN) ImageAddress + PeCoffHeaderOffset); in InsertImageRecord()
1173 PeCoffHeaderOffset + in InsertImageRecord()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/PiSmmCore/
DMemoryAttributesTable.c1054 UINT32 PeCoffHeaderOffset; in SmmInsertImageRecord() local
1093 PeCoffHeaderOffset = 0; in SmmInsertImageRecord()
1095 PeCoffHeaderOffset = DosHdr->e_lfanew; in SmmInsertImageRecord()
1098 Hdr.Pe32 = (EFI_IMAGE_NT_HEADERS32 *)((UINT8 *) (UINTN) ImageAddress + PeCoffHeaderOffset); in SmmInsertImageRecord()
1140 PeCoffHeaderOffset + in SmmInsertImageRecord()
DDispatcher.c236 …I_IMAGE_OPTIONAL_HEADER_UNION *)((CHAR8* )ImageContext->Handle + ImageContext->PeCoffHeaderOffset); in GetPeCoffImageFixLoadingAssignedAddress()
238 ImageContext->PeCoffHeaderOffset + in GetPeCoffImageFixLoadingAssignedAddress()
DPiSmmIpl.c848 …I_IMAGE_OPTIONAL_HEADER_UNION *)((CHAR8* )ImageContext->Handle + ImageContext->PeCoffHeaderOffset); in GetPeCoffImageFixLoadingAssignedAddress()
850 ImageContext->PeCoffHeaderOffset + in GetPeCoffImageFixLoadingAssignedAddress()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Pei/Image/
DImage.c244 …I_IMAGE_OPTIONAL_HEADER_UNION *)((CHAR8* )ImageContext->Handle + ImageContext->PeCoffHeaderOffset); in GetPeCoffImageFixLoadingAssignedAddress()
254 ImageContext->PeCoffHeaderOffset + in GetPeCoffImageFixLoadingAssignedAddress()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Image/
DImage.c366 … = (EFI_IMAGE_OPTIONAL_HEADER_UNION *)((CHAR8* )Handle->Source + ImageContext->PeCoffHeaderOffset); in GetPeCoffImageFixLoadingAssignedAddress()
368 ImageContext->PeCoffHeaderOffset + in GetPeCoffImageFixLoadingAssignedAddress()
/device/linaro/bootloader/edk2/BaseTools/Source/C/VolInfo/
DVolInfo.c1434 ImgHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *)(FileBuffer + ImageContext.PeCoffHeaderOffset); in SetAddressToSectionHeader()
1514 ImgHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *)(FileBuffer + ImageContext.PeCoffHeaderOffset); in RebaseImage()
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenFw/
DGenFw.c882 ImgHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *)(FileBuffer + ImageContext.PeCoffHeaderOffset); in SetAddressToSectionHeader()
962 ImgHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *)(FileBuffer + ImageContext.PeCoffHeaderOffset); in RebaseImage()
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenFv/
DGenFvInternalLib.c815 …AGE_OPTIONAL_HEADER_UNION *) ((UINT8 *) pImageContext->Handle + pImageContext->PeCoffHeaderOffset); in WriteMapFile()
3456 …UNION *)((UINTN) CurrentPe32Section.Pe32Section + CurSecHdrSize + ImageContext.PeCoffHeaderOffset); in FfsRebase()