/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/ArmPlatformPkg/Bds/ |
D | BootLinux.c | 52 EFI_IMAGE_DOS_HEADER* DosHeader; in IsEfiBinary() local 90 DosHeader = (EFI_IMAGE_DOS_HEADER *)(UINTN) Image; in IsEfiBinary() 91 if (DosHeader->e_magic == EFI_IMAGE_DOS_SIGNATURE) { in IsEfiBinary() 96 PeCoffHeaderOffset = DosHeader->e_lfanew; in IsEfiBinary()
|
/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/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/MdeModulePkg/Library/UefiBootManagerLib/ |
D | BmLoadOption.c | 1173 EFI_IMAGE_DOS_HEADER *DosHeader; in BmIsLoadOptionPeHeaderValid() local 1185 DosHeader = (EFI_IMAGE_DOS_HEADER *) FileBuffer; in BmIsLoadOptionPeHeaderValid() 1187 FileSize > DosHeader->e_lfanew && DosHeader->e_magic == EFI_IMAGE_DOS_SIGNATURE in BmIsLoadOptionPeHeaderValid() 1192 PeHeader = (EFI_IMAGE_OPTIONAL_HEADER_UNION *) ((UINT8 *) FileBuffer + DosHeader->e_lfanew); in BmIsLoadOptionPeHeaderValid() 1193 if (FileSize >= DosHeader->e_lfanew + sizeof (EFI_IMAGE_OPTIONAL_HEADER_UNION) && in BmIsLoadOptionPeHeaderValid()
|
D | InternalBm.h | 242 OUT EFI_IMAGE_DOS_HEADER *DosHeader,
|
/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 | 785 EFI_IMAGE_DOS_HEADER DosHeader; in CheckPE32File() local 796 if (fread (&DosHeader, sizeof (DosHeader), 1, Fptr) != 1) { in CheckPE32File() 803 if (DosHeader.e_magic != EFI_IMAGE_DOS_SIGNATURE) { in CheckPE32File() 810 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 | 2123 EFI_IMAGE_DOS_HEADER *DosHeader; in GetPe32Info() local 2151 DosHeader = (EFI_IMAGE_DOS_HEADER *) Pe32; in GetPe32Info() 2156 if (DosHeader->e_magic != EFI_IMAGE_DOS_SIGNATURE) { in GetPe32Info() 2157 …Error (NULL, 0, 3000, "Invalid", "Unknown magic number in the DOS header, 0x%04X.", DosHeader->e_m… in GetPe32Info() 2163 ImgHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *) ((UINTN) Pe32 + DosHeader->e_lfanew); in GetPe32Info()
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Library/PlatformBdsLib/ |
D | BdsPlatform.c | 1109 EFI_IMAGE_DOS_HEADER DosHeader; in PlatformBdsLibEnumerateAllBootOption() 1318 &DosHeader, in PlatformBdsLibEnumerateAllBootOption()
|