Home
last modified time | relevance | path

Searched refs:DosHeader (Results 1 – 14 of 14) sorted by relevance

/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffGetEntryPointLib/
DPeCoffGetEntryPoint.c49 EFI_IMAGE_DOS_HEADER *DosHeader; in PeCoffLoaderGetEntryPoint() local
55 DosHeader = (EFI_IMAGE_DOS_HEADER *)Pe32Data; in PeCoffLoaderGetEntryPoint()
56 if (DosHeader->e_magic == EFI_IMAGE_DOS_SIGNATURE) { in PeCoffLoaderGetEntryPoint()
60 …Header.Pe32 = (EFI_IMAGE_NT_HEADERS32 *)((UINTN) Pe32Data + (UINTN) ((DosHeader->e_lfanew) & 0x0ff… in PeCoffLoaderGetEntryPoint()
137 EFI_IMAGE_DOS_HEADER *DosHeader; in PeCoffLoaderGetPdbPointer() local
153 DosHeader = (EFI_IMAGE_DOS_HEADER *)Pe32Data; in PeCoffLoaderGetPdbPointer()
154 if (DosHeader->e_magic == EFI_IMAGE_DOS_SIGNATURE) { in PeCoffLoaderGetPdbPointer()
158 …Hdr.Pe32 = (EFI_IMAGE_NT_HEADERS32 *)((UINTN) Pe32Data + (UINTN) ((DosHeader->e_lfanew) & 0x0ffff)… in PeCoffLoaderGetPdbPointer()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Override/IntelFrameworkModulePkg/Library/GenericBdsLib/
DInternalBdsLib.h122 OUT EFI_IMAGE_DOS_HEADER *DosHeader,
DBdsMisc.c1169 OUT EFI_IMAGE_DOS_HEADER *DosHeader, in BdsLibGetImageHeader() argument
1243 Status = ThisFile->Read (ThisFile, &BufferSize, DosHeader); in BdsLibGetImageHeader()
1246 FileSize <= DosHeader->e_lfanew || in BdsLibGetImageHeader()
1247 DosHeader->e_magic != EFI_IMAGE_DOS_SIGNATURE) { in BdsLibGetImageHeader()
1255 Status = ThisFile->SetPosition (ThisFile, DosHeader->e_lfanew); in BdsLibGetImageHeader()
DBdsBoot.c3143 EFI_IMAGE_DOS_HEADER DosHeader; in BdsLibEnumerateAllBootOption() local
3352 &DosHeader, in BdsLibEnumerateAllBootOption()
3719 EFI_IMAGE_DOS_HEADER DosHeader; in BdsLibGetBootableHandle() local
3838 &DosHeader, in BdsLibGetBootableHandle()
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Library/GenericBdsLib/
DInternalBdsLib.h121 OUT EFI_IMAGE_DOS_HEADER *DosHeader,
DBdsMisc.c1177 OUT EFI_IMAGE_DOS_HEADER *DosHeader, in BdsLibGetImageHeader() argument
1251 Status = ThisFile->Read (ThisFile, &BufferSize, DosHeader); in BdsLibGetImageHeader()
1254 FileSize <= DosHeader->e_lfanew || in BdsLibGetImageHeader()
1255 DosHeader->e_magic != EFI_IMAGE_DOS_SIGNATURE) { in BdsLibGetImageHeader()
1263 Status = ThisFile->SetPosition (ThisFile, DosHeader->e_lfanew); in BdsLibGetImageHeader()
DBdsBoot.c3132 EFI_IMAGE_DOS_HEADER DosHeader; in BdsLibEnumerateAllBootOption() local
3337 &DosHeader, in BdsLibEnumerateAllBootOption()
3602 EFI_IMAGE_DOS_HEADER DosHeader; in BdsLibGetBootableHandle() local
3721 &DosHeader, in BdsLibGetBootableHandle()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenTEImage/
DGenTEImage.c570 EFI_IMAGE_DOS_HEADER DosHeader; in CheckPE32File() local
584 if (fread (&DosHeader, sizeof (DosHeader), 1, Fptr) != 1) { in CheckPE32File()
591 if (DosHeader.e_magic != EFI_IMAGE_DOS_SIGNATURE) { in CheckPE32File()
598 fseek (Fptr, (long) DosHeader.e_lfanew, SEEK_SET); in CheckPE32File()
/device/linaro/bootloader/edk2/MdeModulePkg/Library/UefiBootManagerLib/
DBmLoadOption.c1183 EFI_IMAGE_DOS_HEADER *DosHeader; in BmIsLoadOptionPeHeaderValid() local
1195 DosHeader = (EFI_IMAGE_DOS_HEADER *) FileBuffer; in BmIsLoadOptionPeHeaderValid()
1197 FileSize > DosHeader->e_lfanew && DosHeader->e_magic == EFI_IMAGE_DOS_SIGNATURE in BmIsLoadOptionPeHeaderValid()
1202 PeHeader = (EFI_IMAGE_OPTIONAL_HEADER_UNION *) ((UINT8 *) FileBuffer + DosHeader->e_lfanew); in BmIsLoadOptionPeHeaderValid()
1203 if (FileSize >= DosHeader->e_lfanew + sizeof (EFI_IMAGE_OPTIONAL_HEADER_UNION) && in BmIsLoadOptionPeHeaderValid()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/EfiRom/
DEfiRom.c918 EFI_IMAGE_DOS_HEADER DosHeader; in CheckPE32File() local
931 if (fread (&DosHeader, sizeof (DosHeader), 1, Fptr) != 1) { in CheckPE32File()
938 if (DosHeader.e_magic != EFI_IMAGE_DOS_SIGNATURE) { in CheckPE32File()
945 fseek (Fptr, (long) DosHeader.e_lfanew, SEEK_SET); in CheckPE32File()
/device/linaro/bootloader/edk2/BaseTools/Source/C/EfiRom/
DEfiRom.c788 EFI_IMAGE_DOS_HEADER DosHeader; in CheckPE32File() local
799 if (fread (&DosHeader, sizeof (DosHeader), 1, Fptr) != 1) { in CheckPE32File()
806 if (DosHeader.e_magic != EFI_IMAGE_DOS_SIGNATURE) { in CheckPE32File()
813 fseek (Fptr, (long) DosHeader.e_lfanew, SEEK_SET); in CheckPE32File()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenFvImage/
DGenFvImageLib.c2815 EFI_IMAGE_DOS_HEADER *DosHeader; in GetPe32Info() local
2842 DosHeader = (EFI_IMAGE_DOS_HEADER *) Pe32; in GetPe32Info()
2847 if (DosHeader->e_magic != EFI_IMAGE_DOS_SIGNATURE) { in GetPe32Info()
2848 printf ("ERROR: Unknown magic number in the DOS header, 0x%04X.\n", DosHeader->e_magic); in GetPe32Info()
2854 NtHeader = (EFI_IMAGE_NT_HEADERS *) ((UINTN) Pe32 + DosHeader->e_lfanew); in GetPe32Info()
/device/linaro/bootloader/edk2/BaseTools/Source/C/GenFv/
DGenFvInternalLib.c2315 EFI_IMAGE_DOS_HEADER *DosHeader; in GetPe32Info() local
2343 DosHeader = (EFI_IMAGE_DOS_HEADER *) Pe32; in GetPe32Info()
2348 if (DosHeader->e_magic != EFI_IMAGE_DOS_SIGNATURE) { in GetPe32Info()
2349 …Error (NULL, 0, 3000, "Invalid", "Unknown magic number in the DOS header, 0x%04X.", DosHeader->e_m… in GetPe32Info()
2355 ImgHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *) ((UINTN) Pe32 + DosHeader->e_lfanew); in GetPe32Info()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Library/PlatformBdsLib/
DBdsPlatform.c1108 EFI_IMAGE_DOS_HEADER DosHeader; in PlatformBdsLibEnumerateAllBootOption() local
1317 &DosHeader, in PlatformBdsLibEnumerateAllBootOption()