/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffGetEntryPointLib/ |
D | PeCoffGetEntryPoint.c | 49 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/ |
D | InternalBdsLib.h | 122 OUT EFI_IMAGE_DOS_HEADER *DosHeader,
|
D | BdsMisc.c | 1169 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()
|
D | BdsBoot.c | 3143 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/ |
D | InternalBdsLib.h | 121 OUT EFI_IMAGE_DOS_HEADER *DosHeader,
|
D | BdsMisc.c | 1177 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()
|
D | BdsBoot.c | 3132 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/ |
D | GenTEImage.c | 570 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/ |
D | BmLoadOption.c | 1183 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/ |
D | EfiRom.c | 918 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/ |
D | EfiRom.c | 788 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/ |
D | GenFvImageLib.c | 2815 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/ |
D | GenFvInternalLib.c | 2315 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/ |
D | BdsPlatform.c | 1108 EFI_IMAGE_DOS_HEADER DosHeader; in PlatformBdsLibEnumerateAllBootOption() local 1317 &DosHeader, in PlatformBdsLibEnumerateAllBootOption()
|