Lines Matching refs:ImageContext
42 PE_COFF_LOADER_IMAGE_CONTEXT ImageContext; in LoadPeCoffImage() local
45 ZeroMem (&ImageContext, sizeof (ImageContext)); in LoadPeCoffImage()
47 ImageContext.Handle = PeCoffImage; in LoadPeCoffImage()
48 ImageContext.ImageRead = PeCoffLoaderImageReadFromMemory; in LoadPeCoffImage()
50 Status = PeCoffLoaderGetImageInfo (&ImageContext); in LoadPeCoffImage()
57 Buffer = AllocatePages (EFI_SIZE_TO_PAGES((UINT32)ImageContext.ImageSize)); in LoadPeCoffImage()
61 ImageContext.ImageAddress = (EFI_PHYSICAL_ADDRESS)(UINTN)Buffer; in LoadPeCoffImage()
66 Status = PeCoffLoaderLoadImage (&ImageContext); in LoadPeCoffImage()
72 Status = PeCoffLoaderRelocateImage (&ImageContext); in LoadPeCoffImage()
76 *ImageAddress = ImageContext.ImageAddress; in LoadPeCoffImage()
77 *ImageSize = ImageContext.ImageSize; in LoadPeCoffImage()
78 *EntryPoint = ImageContext.EntryPoint; in LoadPeCoffImage()