/device/linaro/bootloader/edk2/EmulatorPkg/Library/GuardUefiMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 50 IN UINTN Pages in InternalAllocatePages() argument 56 if (Pages == 0) { in InternalAllocatePages() 60 return gEmuThunk->Valloc (Pages * EFI_PAGE_SIZE); in InternalAllocatePages() 79 IN UINTN Pages in AllocatePages() argument 82 return InternalAllocatePages (EfiBootServicesData, Pages); in AllocatePages() 101 IN UINTN Pages in AllocateRuntimePages() argument 104 return InternalAllocatePages (EfiRuntimeServicesData, Pages); in AllocateRuntimePages() 123 IN UINTN Pages in AllocateReservedPages() argument 126 return InternalAllocatePages (EfiReservedMemoryType, Pages); in AllocateReservedPages() 150 IN UINTN Pages in FreePages() argument [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/UefiMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 41 IN UINTN Pages in InternalAllocatePages() argument 47 if (Pages == 0) { in InternalAllocatePages() 51 Status = gBS->AllocatePages (AllocateAnyPages, MemoryType, Pages, &Memory); in InternalAllocatePages() 74 IN UINTN Pages in AllocatePages() argument 77 return InternalAllocatePages (EfiBootServicesData, Pages); in AllocatePages() 96 IN UINTN Pages in AllocateRuntimePages() argument 99 return InternalAllocatePages (EfiRuntimeServicesData, Pages); in AllocateRuntimePages() 118 IN UINTN Pages in AllocateReservedPages() argument 121 return InternalAllocatePages (EfiReservedMemoryType, Pages); in AllocateReservedPages() 145 IN UINTN Pages in FreePages() argument [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 43 IN UINTN Pages in InternalAllocatePages() argument 49 if (Pages == 0) { in InternalAllocatePages() 53 Status = PeiServicesAllocatePages (MemoryType, Pages, &Memory); in InternalAllocatePages() 77 IN UINTN Pages in AllocatePages() argument 80 return InternalAllocatePages (EfiBootServicesData, Pages); in AllocatePages() 99 IN UINTN Pages in AllocateRuntimePages() argument 102 return InternalAllocatePages (EfiRuntimeServicesData, Pages); in AllocateRuntimePages() 121 IN UINTN Pages in AllocateReservedPages() argument 124 return InternalAllocatePages (EfiReservedMemoryType, Pages); in AllocateReservedPages() 148 IN UINTN Pages in FreePages() argument [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeCoreMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 44 IN UINTN Pages in InternalAllocatePages() argument 50 if (Pages == 0) { in InternalAllocatePages() 54 Status = CoreAllocatePages (AllocateAnyPages, MemoryType, Pages, &Memory); in InternalAllocatePages() 77 IN UINTN Pages in AllocatePages() argument 82 Buffer = InternalAllocatePages (EfiBootServicesData, Pages); in AllocatePages() 89 EFI_PAGES_TO_SIZE (Pages), in AllocatePages() 112 IN UINTN Pages in AllocateRuntimePages() argument 117 Buffer = InternalAllocatePages (EfiRuntimeServicesData, Pages); in AllocateRuntimePages() 124 EFI_PAGES_TO_SIZE (Pages), in AllocateRuntimePages() 147 IN UINTN Pages in AllocateReservedPages() argument [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/UefiMemoryAllocationProfileLib/ |
D | MemoryAllocationLib.c | 43 IN UINTN Pages in InternalAllocatePages() argument 49 if (Pages == 0) { in InternalAllocatePages() 53 Status = gBS->AllocatePages (AllocateAnyPages, MemoryType, Pages, &Memory); in InternalAllocatePages() 76 IN UINTN Pages in AllocatePages() argument 81 Buffer = InternalAllocatePages (EfiBootServicesData, Pages); in AllocatePages() 88 EFI_PAGES_TO_SIZE (Pages), in AllocatePages() 111 IN UINTN Pages in AllocateRuntimePages() argument 116 Buffer = InternalAllocatePages (EfiRuntimeServicesData, Pages); in AllocateRuntimePages() 123 EFI_PAGES_TO_SIZE (Pages), in AllocateRuntimePages() 146 IN UINTN Pages in AllocateReservedPages() argument [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/SmmMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 155 IN UINTN Pages in InternalAllocatePages() argument 161 if (Pages == 0) { in InternalAllocatePages() 165 Status = gSmst->SmmAllocatePages (AllocateAnyPages, MemoryType, Pages, &Memory); in InternalAllocatePages() 188 IN UINTN Pages in AllocatePages() argument 191 return InternalAllocatePages (EfiRuntimeServicesData, Pages); in AllocatePages() 210 IN UINTN Pages in AllocateRuntimePages() argument 213 return InternalAllocatePages (EfiRuntimeServicesData, Pages); in AllocateRuntimePages() 232 IN UINTN Pages in AllocateReservedPages() argument 259 IN UINTN Pages in FreePages() argument 264 ASSERT (Pages != 0); in FreePages() [all …]
|
/device/linaro/bootloader/edk2/ArmPkg/Library/DebugUncachedMemoryAllocationLib/ |
D | DebugUncachedMemoryAllocationLib.c | 41 IN UINTN Pages 47 IN UINTN Pages, 64 UINTN Pages; member 74 UINTN Pages in AddPagesToList() argument 87 NewNode->Pages = Pages; in AddPagesToList() 97 OUT UINTN *Pages in RemovePagesFromList() argument 104 *Pages = 0; in RemovePagesFromList() 110 *Pages = OldNode->Pages; in RemovePagesFromList() 155 IN UINTN Pages in UncachedInternalAllocatePages() argument 158 return UncachedInternalAllocateAlignedPages (MemoryType, Pages, EFI_PAGE_SIZE); in UncachedInternalAllocatePages() [all …]
|
/device/linaro/bootloader/edk2/ArmPkg/Library/UncachedMemoryAllocationLib/ |
D | UncachedMemoryAllocationLib.c | 33 IN UINTN Pages 39 IN UINTN Pages, 53 UINTN Pages; member 81 IN UINTN Pages, in AllocatePagesFromList() argument 108 if (Node->Pages == Pages) { in AllocatePagesFromList() 114 mFreedBufferSize -= Pages * EFI_PAGE_SIZE; in AllocatePagesFromList() 116 } else if (Node->Pages > Pages) { in AllocatePagesFromList() 120 } else if (NewNode->Pages > Node->Pages) { in AllocatePagesFromList() 133 mFreedBufferSize -= NewNode->Pages * EFI_PAGE_SIZE; in AllocatePagesFromList() 145 Pages += EFI_SIZE_TO_PAGES (Alignment); in AllocatePagesFromList() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 80 IN UINTN Pages in InternalAllocatePages() argument 86 if (Pages == 0) { in InternalAllocatePages() 90 Status = SmmAllocatePages (AllocateAnyPages, MemoryType, Pages, &Memory); in InternalAllocatePages() 113 IN UINTN Pages in AllocatePages() argument 118 Buffer = InternalAllocatePages (EfiRuntimeServicesData, Pages); in AllocatePages() 125 EFI_PAGES_TO_SIZE(Pages), in AllocatePages() 148 IN UINTN Pages in AllocateRuntimePages() argument 153 Buffer = InternalAllocatePages (EfiRuntimeServicesData, Pages); in AllocateRuntimePages() 160 EFI_PAGES_TO_SIZE(Pages), in AllocateRuntimePages() 183 IN UINTN Pages in AllocateReservedPages() argument [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/PiSmmCore/ |
D | Page.c | 498 FREE_PAGE_LIST *Pages; in DumpSmmMemoryMap() local 502 Pages = NULL; in DumpSmmMemoryMap() 505 Pages = BASE_CR (Node, FREE_PAGE_LIST, Link); in DumpSmmMemoryMap() 506 DEBUG ((DEBUG_INFO, "Pages - 0x%x\n", Pages)); in DumpSmmMemoryMap() 507 DEBUG ((DEBUG_INFO, "Pages->NumberOfPages - 0x%x\n", Pages->NumberOfPages)); in DumpSmmMemoryMap() 558 FREE_PAGE_LIST *Pages; in SmmMemoryMapConsistencyCheck() local 561 Pages = NULL; in SmmMemoryMapConsistencyCheck() 564 Pages = BASE_CR (Node, FREE_PAGE_LIST, Link); in SmmMemoryMapConsistencyCheck() 565 …oryMapConsistencyCheckRange ((EFI_PHYSICAL_ADDRESS)(UINTN)Pages, (UINTN)EFI_PAGES_TO_SIZE(Pages->N… in SmmMemoryMapConsistencyCheck() 583 IN OUT FREE_PAGE_LIST *Pages, in InternalAllocPagesOnOneNode() argument [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 42 IN UINTN Pages in InternalAllocatePages() argument 48 if (Pages == 0) { in InternalAllocatePages() 52 Status = (gBS->AllocatePages) (AllocateAnyPages, MemoryType, Pages, &Memory); in InternalAllocatePages() 75 IN UINTN Pages in GlueAllocatePages() argument 78 return InternalAllocatePages (EfiBootServicesData, Pages); in GlueAllocatePages() 97 IN UINTN Pages in AllocateRuntimePages() argument 100 return InternalAllocatePages (EfiRuntimeServicesData, Pages); in AllocateRuntimePages() 119 IN UINTN Pages in AllocateReservedPages() argument 122 return InternalAllocatePages (EfiReservedMemoryType, Pages); in AllocateReservedPages() 144 IN UINTN Pages in GlueFreePages() argument [all …]
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/PrePiMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 40 IN UINTN Pages in AllocatePages() argument 58 …if (Hob.HandoffInformationTable->EfiFreeMemoryTop - ((Pages * EFI_PAGE_SIZE) + sizeof (EFI_HOB_MEM… in AllocatePages() 64 Hob.HandoffInformationTable->EfiFreeMemoryTop -= Pages * EFI_PAGE_SIZE; in AllocatePages() 74 Pages * EFI_PAGE_SIZE, in AllocatePages() 101 IN UINTN Pages, in AllocateAlignedPages() argument 113 if (Pages == 0) { in AllocateAlignedPages() 119 ASSERT (Pages <= (MAX_ADDRESS - EFI_SIZE_TO_PAGES (Alignment))); in AllocateAlignedPages() 123 Memory = (VOID *)(UINTN)AllocatePages (Pages + EFI_SIZE_TO_PAGES (Alignment)); in AllocateAlignedPages() 154 IN UINTN Pages in FreePages() argument
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/SmmMemoryAllocationProfileLib/ |
D | MemoryAllocationLib.c | 157 IN UINTN Pages in InternalAllocatePages() argument 163 if (Pages == 0) { in InternalAllocatePages() 167 Status = gSmst->SmmAllocatePages (AllocateAnyPages, MemoryType, Pages, &Memory); in InternalAllocatePages() 190 IN UINTN Pages in AllocatePages() argument 195 Buffer = InternalAllocatePages (EfiRuntimeServicesData, Pages); in AllocatePages() 202 EFI_PAGES_TO_SIZE(Pages), in AllocatePages() 225 IN UINTN Pages in AllocateRuntimePages() argument 230 Buffer = InternalAllocatePages (EfiRuntimeServicesData, Pages); in AllocateRuntimePages() 237 EFI_PAGES_TO_SIZE(Pages), in AllocateRuntimePages() 260 IN UINTN Pages in AllocateReservedPages() argument [all …]
|
/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLib/SysCall/ |
D | RuntimeMemAllocation.c | 56 RT_MEMORY_PAGE_ENTRY Pages[1]; // Page Table Entries. member 112 mRTPageTable->Pages[Index].PageFlag = RT_PAGE_FREE; in InitializeScratchMemory() 113 mRTPageTable->Pages[Index].StartPageOffset = 0; in InitializeScratchMemory() 152 if ((mRTPageTable->Pages[SubIndex + Index].PageFlag & RT_PAGE_USED) != 0) { in LookupFreeMemRegion() 167 while ((mRTPageTable->Pages[SubIndex + Index].PageFlag & RT_PAGE_USED) != 0) { in LookupFreeMemRegion() 183 if ((mRTPageTable->Pages[SubIndex + Index].PageFlag & RT_PAGE_USED) != 0) { in LookupFreeMemRegion() 199 ((mRTPageTable->Pages[SubIndex + Index].PageFlag & RT_PAGE_USED) != 0)) { in LookupFreeMemRegion() 254 mRTPageTable->Pages[StartPage + Index].PageFlag |= RT_PAGE_USED; in RuntimeAllocateMem() 255 mRTPageTable->Pages[StartPage + Index].StartPageOffset = AllocOffset; in RuntimeAllocateMem() 286 …StartPageIndex = RT_SIZE_TO_PAGES (mRTPageTable->Pages[RT_SIZE_TO_PAGES(StartOffset)].StartPageOff… in RuntimeFreeMem() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 41 IN UINTN Pages in InternalAllocatePages() argument 47 if (Pages == 0) { in InternalAllocatePages() 51 Status = PeiServicesAllocatePages (MemoryType, Pages, &Memory); in InternalAllocatePages() 74 IN UINTN Pages in GlueAllocatePages() argument 77 return InternalAllocatePages (EfiBootServicesData, Pages); in GlueAllocatePages() 96 IN UINTN Pages in AllocateRuntimePages() argument 99 return InternalAllocatePages (EfiRuntimeServicesData, Pages); in AllocateRuntimePages() 118 IN UINTN Pages in AllocateReservedPages() argument 121 return InternalAllocatePages (EfiReservedMemoryType, Pages); in AllocateReservedPages() 143 IN UINTN Pages in GlueFreePages() argument [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Include/Library/ |
D | MemoryAllocationLib.h | 39 IN UINTN Pages 58 IN UINTN Pages 77 IN UINTN Pages 101 IN UINTN Pages 125 IN UINTN Pages, 150 IN UINTN Pages, 175 IN UINTN Pages, 200 IN UINTN Pages
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/ |
D | UsbHcMem.c | 32 IN UINTN Pages in UsbHcAllocMemBlock() argument 56 Block->BufLen = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocMemBlock() 73 Pages, in UsbHcAllocMemBlock() 82 Bytes = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocMemBlock() 92 if (EFI_ERROR (Status) || (Bytes != EFI_PAGES_TO_SIZE (Pages))) { in UsbHcAllocMemBlock() 103 PciIo->FreeBuffer (PciIo, Pages, BufHost); in UsbHcAllocMemBlock() 474 UINTN Pages; in UsbHcAllocateMem() local 504 Pages = EFI_SIZE_TO_PAGES (AllocSize) + 1; in UsbHcAllocateMem() 506 Pages = USBHC_MEM_DEFAULT_PAGES; in UsbHcAllocateMem() 509 NewBlock = UsbHcAllocMemBlock (Pool, Pages); in UsbHcAllocateMem() [all …]
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/NullDmaLib/ |
D | NullDmaLib.c | 99 IN UINTN Pages, in DmaAllocateBuffer() argument 113 *HostAddress = AllocatePages (Pages); in DmaAllocateBuffer() 115 *HostAddress = AllocateRuntimePages (Pages); in DmaAllocateBuffer() 138 IN UINTN Pages, in DmaFreeBuffer() argument 146 FreePages (HostAddress, Pages); in DmaFreeBuffer()
|
/device/linaro/bootloader/edk2/ArmPkg/Include/Library/ |
D | UncachedMemoryAllocationLib.h | 73 IN UINTN Pages 92 IN UINTN Pages 111 IN UINTN Pages 133 IN UINTN Pages 155 IN UINTN Pages, 178 IN UINTN Pages, 201 IN UINTN Pages, 224 IN UINTN Pages
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciPei/ |
D | UsbHcMem.c | 30 IN UINTN Pages in UsbHcAllocMemBlock() argument 57 Block->BufLen = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocMemBlock() 76 Pages, in UsbHcAllocMemBlock() 82 ZeroMem ((VOID *) (UINTN) TempPtr, EFI_PAGES_TO_SIZE (Pages)); in UsbHcAllocMemBlock() 438 UINTN Pages; in UsbHcAllocateMem() local 468 Pages = EFI_SIZE_TO_PAGES (AllocSize); in UsbHcAllocateMem() 470 Pages = USBHC_MEM_DEFAULT_PAGES; in UsbHcAllocateMem() 472 NewBlock = UsbHcAllocMemBlock (Pages); in UsbHcAllocateMem() 578 IN UINTN Pages, in UsbHcAllocateAlignedPages() argument 599 if (Pages == 0) { in UsbHcAllocateAlignedPages() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/ |
D | EdkIIGlueMemoryAllocationLib.h | 51 IN UINTN Pages 70 IN UINTN Pages 89 IN UINTN Pages 111 IN UINTN Pages 133 IN UINTN Pages, 156 IN UINTN Pages, 179 IN UINTN Pages, 202 IN UINTN Pages
|
/device/linaro/bootloader/edk2/OvmfPkg/Library/LockBoxLib/ |
D | LockBoxDxe.c | 43 UINTN Pages; in AllocateMemoryBelow4G() local 49 Pages = EFI_SIZE_TO_PAGES (Size); in AllocateMemoryBelow4G() 69 Pages, in AllocateMemoryBelow4G() 77 ZeroMem (Buffer, EFI_PAGES_TO_SIZE (Pages)); in AllocateMemoryBelow4G() 79 AllocRemaining = EFI_PAGES_TO_SIZE (Pages) - Size; in AllocateMemoryBelow4G()
|
/device/linaro/bootloader/edk2/OvmfPkg/Include/Library/ |
D | LoadLinuxLib.h | 93 IN UINTN Pages 132 IN UINTN Pages 148 IN UINTN Pages 166 IN UINTN Pages
|
/device/linaro/bootloader/edk2/IntelFspWrapperPkg/FspNotifyDxe/ |
D | LoadBelow4G.c | 47 UINTN Pages; in RelocateImageUnder4GIfNeeded() local 101 Pages = EFI_SIZE_TO_PAGES ((UINTN) (ImageContext.ImageSize + ImageContext.SectionAlignment)); in RelocateImageUnder4GIfNeeded() 103 Pages = EFI_SIZE_TO_PAGES ((UINTN) ImageContext.ImageSize); in RelocateImageUnder4GIfNeeded() 109 Pages, in RelocateImageUnder4GIfNeeded() 145 gBS->FreePages (FfsBuffer, Pages); in RelocateImageUnder4GIfNeeded()
|
/device/linaro/bootloader/edk2/IntelFsp2WrapperPkg/FspWrapperNotifyDxe/ |
D | LoadBelow4G.c | 47 UINTN Pages; in RelocateImageUnder4GIfNeeded() local 101 Pages = EFI_SIZE_TO_PAGES ((UINTN) (ImageContext.ImageSize + ImageContext.SectionAlignment)); in RelocateImageUnder4GIfNeeded() 103 Pages = EFI_SIZE_TO_PAGES ((UINTN) ImageContext.ImageSize); in RelocateImageUnder4GIfNeeded() 109 Pages, in RelocateImageUnder4GIfNeeded() 145 gBS->FreePages (FfsBuffer, Pages); in RelocateImageUnder4GIfNeeded()
|