Lines Matching refs:Te
165 if (Hdr.Te->Signature == EFI_TE_IMAGE_HEADER_SIGNATURE) { in PeCoffLoaderGetPeHeader()
167 ImageContext->Machine = Hdr.Te->Machine; in PeCoffLoaderGetPeHeader()
168 ImageContext->ImageType = (UINT16)(Hdr.Te->Subsystem); in PeCoffLoaderGetPeHeader()
175 …izeOfHeaders = sizeof (EFI_TE_IMAGE_HEADER) + (UINTN)Hdr.Te->BaseOfCode - (UINTN)Hdr.Te->Strip… in PeCoffLoaderGetPeHeader()
180 if (sizeof (EFI_TE_IMAGE_HEADER) >= (UINT32)Hdr.Te->StrippedSize) { in PeCoffLoaderGetPeHeader()
188 if (Hdr.Te->BaseOfCode <= Hdr.Te->StrippedSize) { in PeCoffLoaderGetPeHeader()
216 if ((Hdr.Te->DataDirectory[0].Size != 0 && Hdr.Te->DataDirectory[0].VirtualAddress == 0) || in PeCoffLoaderGetPeHeader()
217 (Hdr.Te->DataDirectory[1].Size != 0 && Hdr.Te->DataDirectory[1].VirtualAddress == 0)) { in PeCoffLoaderGetPeHeader()
479 NumberOfSections = (UINTN) (Hdr.Te->NumberOfSections); in PeCoffLoaderGetPeHeader()
509 …PeCoffLoaderAdjustOffsetForTeImage (&SectionHeader, (UINT32)Hdr.Te->StrippedSize - sizeof (EFI_TE_… in PeCoffLoaderGetPeHeader()
644 TeStrippedOffset = (UINT32)Hdr.Te->StrippedSize - sizeof (EFI_TE_IMAGE_HEADER); in PeCoffLoaderGetImageInfo()
645 ImageContext->ImageAddress = (PHYSICAL_ADDRESS)(Hdr.Te->ImageBase + TeStrippedOffset); in PeCoffLoaderGetImageInfo()
674 …} else if ((ImageContext->IsTeImage) && (Hdr.Te->DataDirectory[0].Size == 0) && (Hdr.Te->DataDirec… in PeCoffLoaderGetImageInfo()
782 DebugDirectoryEntry = &Hdr.Te->DataDirectory[1]; in PeCoffLoaderGetImageInfo()
788 for (Index = 0; Index < Hdr.Te->NumberOfSections;) { in PeCoffLoaderGetImageInfo()
819 if (Index < (UINTN) Hdr.Te->NumberOfSections - 1) { in PeCoffLoaderGetImageInfo()
820 … SectionHeaderOffset += (Hdr.Te->NumberOfSections - 1 - Index) * sizeof (EFI_IMAGE_SECTION_HEADER); in PeCoffLoaderGetImageInfo()
821 Index = Hdr.Te->NumberOfSections - 1; in PeCoffLoaderGetImageInfo()
836 if ((++Index) == (UINTN)Hdr.Te->NumberOfSections) { in PeCoffLoaderGetImageInfo()
1026 Hdr.Te = (EFI_TE_IMAGE_HEADER *)(UINTN)(ImageContext->ImageAddress); in PeCoffLoaderRelocateImage()
1027 TeStrippedOffset = (UINT32)Hdr.Te->StrippedSize - sizeof (EFI_TE_IMAGE_HEADER); in PeCoffLoaderRelocateImage()
1028 Adjust = (UINT64) (BaseAddress - (Hdr.Te->ImageBase + TeStrippedOffset)); in PeCoffLoaderRelocateImage()
1030 Hdr.Te->ImageBase = (UINT64) (BaseAddress - TeStrippedOffset); in PeCoffLoaderRelocateImage()
1036 RelocDir = &Hdr.Te->DataDirectory[0]; in PeCoffLoaderRelocateImage()
1338 Hdr.Te = (EFI_TE_IMAGE_HEADER *)(UINTN)(ImageContext->ImageAddress); in PeCoffLoaderLoadImage()
1343 NumberOfSections = (UINTN) (Hdr.Te->NumberOfSections); in PeCoffLoaderLoadImage()
1344 TeStrippedOffset = (UINT32) Hdr.Te->StrippedSize - sizeof (EFI_TE_IMAGE_HEADER); in PeCoffLoaderLoadImage()
1436 (UINTN)Hdr.Te->AddressOfEntryPoint, in PeCoffLoaderLoadImage()
1472 DirectoryEntry = &Hdr.Te->DataDirectory[0]; in PeCoffLoaderLoadImage()