Lines Matching refs:Memory

39   EFI_PHYSICAL_ADDRESS  Memory;  in InternalAllocatePages()  local
45 Status = gBS->AllocatePages (AllocateAnyPages, MemoryType, Pages, &Memory); in InternalAllocatePages()
49 return (VOID *) (UINTN) Memory; in InternalAllocatePages()
175 EFI_PHYSICAL_ADDRESS Memory; in InternalAllocateAlignedPages() local
200 Status = gBS->AllocatePages (AllocateAnyPages, MemoryType, RealPages, &Memory); in InternalAllocateAlignedPages()
204 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages()
205 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in InternalAllocateAlignedPages()
210 Status = gBS->FreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages()
213 Memory = AlignedMemory + EFI_PAGES_TO_SIZE (Pages); in InternalAllocateAlignedPages()
219 Status = gBS->FreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages()
226 Status = gBS->AllocatePages (AllocateAnyPages, MemoryType, Pages, &Memory); in InternalAllocateAlignedPages()
230 AlignedMemory = (UINTN) Memory; in InternalAllocateAlignedPages()
370 VOID *Memory; in InternalAllocatePool() local
372 Status = gBS->AllocatePool (MemoryType, AllocationSize, &Memory); in InternalAllocatePool()
374 Memory = NULL; in InternalAllocatePool()
376 return Memory; in InternalAllocatePool()
462 VOID *Memory; in InternalAllocateZeroPool() local
464 Memory = InternalAllocatePool (PoolType, AllocationSize); in InternalAllocateZeroPool()
465 if (Memory != NULL) { in InternalAllocateZeroPool()
466 Memory = ZeroMem (Memory, AllocationSize); in InternalAllocateZeroPool()
468 return Memory; in InternalAllocateZeroPool()
561 VOID *Memory; in InternalAllocateCopyPool() local
566 Memory = InternalAllocatePool (PoolType, AllocationSize); in InternalAllocateCopyPool()
567 if (Memory != NULL) { in InternalAllocateCopyPool()
568 Memory = CopyMem (Memory, Buffer, AllocationSize); in InternalAllocateCopyPool()
570 return Memory; in InternalAllocateCopyPool()