/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Core/Pei/Memory/ |
H A D | MemoryServices.c | 118 @param Pages The number of contiguous 4 KB pages to allocate. 134 IN UINTN Pages, 190 if (RemainingPages <= Pages) { 191 DEBUG ((EFI_D_ERROR, "AllocatePages failed: No 0x%lx Pages is available.\n", (UINT64) Pages)); 198 *(FreeMemoryTop) -= Pages * EFI_PAGE_SIZE; 210 Pages * EFI_PAGE_SIZE, 131 PeiAllocatePages( IN CONST EFI_PEI_SERVICES **PeiServices, IN EFI_MEMORY_TYPE MemoryType, IN UINTN Pages, OUT EFI_PHYSICAL_ADDRESS *Memory ) argument
|
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/CapsuleRuntimeDxe/X64/ |
H A D | SaveLongModeContext.c | 50 UINTN Pages; local 55 Pages = EFI_SIZE_TO_PAGES (Size); 61 Pages,
|
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Core/Dxe/Misc/ |
H A D | DebugImageInfo.c | 42 UINTN Pages; local 54 Pages = EFI_SIZE_TO_PAGES (sizeof (EFI_SYSTEM_TABLE_POINTER)); 56 RealPages = Pages + EFI_SIZE_TO_PAGES (SIZE_4MB); 106 Memory = (EFI_PHYSICAL_ADDRESS)(AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); 107 UnalignedPages = RealPages - Pages - UnalignedPages;
|
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Core/PiSmmCore/ |
H A D | Page.c | 29 @param Pages The free page node. 38 IN OUT FREE_PAGE_LIST *Pages, 47 Top = TRUNCATE_TO_PAGES (MaxAddress + 1 - (UINTN)Pages); 48 if (Top > Pages->NumberOfPages) { 49 Top = Pages->NumberOfPages; 53 if (Top < Pages->NumberOfPages) { 54 Node = (FREE_PAGE_LIST*)((UINTN)Pages + EFI_PAGES_TO_SIZE (Top)); 55 Node->NumberOfPages = Pages->NumberOfPages - Top; 56 InsertHeadList (&Pages->Link, &Node->Link); 60 Pages 37 InternalAllocPagesOnOneNode( IN OUT FREE_PAGE_LIST *Pages, IN UINTN NumberOfPages, IN UINTN MaxAddress ) argument 86 FREE_PAGE_LIST *Pages; local 117 FREE_PAGE_LIST *Pages; local 251 FREE_PAGE_LIST *Pages; local [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Bus/Pci/EhciDxe/ |
H A D | UsbHcMem.c | 24 @param Pages How many pages to allocate. 32 IN UINTN Pages 56 Block->BufLen = EFI_PAGES_TO_SIZE (Pages); 66 // Allocate the number of Pages of memory, then map it for 73 Pages, 82 Bytes = EFI_PAGES_TO_SIZE (Pages); 92 if (EFI_ERROR (Status) || (Bytes != EFI_PAGES_TO_SIZE (Pages))) { 112 PciIo->FreeBuffer (PciIo, Pages, BufHost); 441 UINTN Pages; local 471 Pages [all...] |
H A D | EhciSched.c | 117 UINTN Pages; local 133 Pages = EFI_SIZE_TO_PAGES (Bytes); 139 Pages, 158 PciIo->FreeBuffer (PciIo, Pages, Buf); 244 PciIo->FreeBuffer (PciIo, Pages, Buf);
|
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Bus/Pci/EhciPei/ |
H A D | UsbHcMem.c | 25 @param Pages How many pages to allocate. 34 IN UINTN Pages 65 Block->BufLen = EFI_PAGES_TO_SIZE (Pages); 85 Pages, 88 ZeroMem ((VOID *)(UINTN)TempPtr, Pages*EFI_PAGE_SIZE); 372 UINTN Pages; local 402 Pages = EFI_SIZE_TO_PAGES (AllocSize) + 1; 404 Pages = USBHC_MEM_DEFAULT_PAGES; 406 NewBlock = UsbHcAllocMemBlock (Ehc,Pool, Pages);
|
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Bus/Pci/UhciDxe/ |
H A D | UsbHcMem.c | 23 @param Pages How many pages to allocate. 31 IN UINTN Pages 55 Block->BufLen = EFI_PAGES_TO_SIZE (Pages); 65 // Allocate the number of Pages of memory, then map it for 72 Pages, 81 Bytes = EFI_PAGES_TO_SIZE (Pages); 91 if (EFI_ERROR (Status) || (Bytes != EFI_PAGES_TO_SIZE (Pages))) { 111 PciIo->FreeBuffer (PciIo, Pages, BufHost); 439 UINTN Pages; local 469 Pages [all...] |
H A D | UhciSched.c | 38 UINTN Pages; local 50 Pages = EFI_SIZE_TO_PAGES (Bytes); 56 Pages, 155 Uhc->PciIo->FreeBuffer (Uhc->PciIo, Pages, Buffer);
|
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/ |
H A D | ScriptExecute.c | 304 UINTN Pages; local 351 Pages = EFI_SIZE_TO_PAGES(BufferSize + ImageContext.SectionAlignment); 356 Pages, 373 gBS->FreePages (FfsBuffer, Pages); 384 gBS->FreePages (FfsBuffer, Pages); 393 gBS->FreePages (FfsBuffer, Pages); 417 Pages = EFI_SIZE_TO_PAGES(BufferSize); 421 Pages,
|
/vbox/src/VBox/Devices/EFI/Firmware/MdePkg/Library/PeiMemoryAllocationLib/ |
H A D | MemoryAllocationLib.c | 30 buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL is returned. 34 @param Pages The number of 4 KB pages to allocate. 42 IN UINTN Pages 48 if (Pages == 0) { 52 Status = PeiServicesAllocatePages (MemoryType, Pages, &Memory); 63 allocated buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL 67 @param Pages The number of 4 KB pages to allocate. 75 IN UINTN Pages 78 return InternalAllocatePages (EfiBootServicesData, Pages); 85 allocated buffer. The buffer returned is aligned on a 4KB boundary. If Pages i 174 InternalAllocateAlignedPages( IN EFI_MEMORY_TYPE MemoryType, IN UINTN Pages, IN UINTN Alignment ) argument 227 AllocateAlignedPages( IN UINTN Pages, IN UINTN Alignment ) argument 255 AllocateAlignedRuntimePages( IN UINTN Pages, IN UINTN Alignment ) argument 283 AllocateAlignedReservedPages( IN UINTN Pages, IN UINTN Alignment ) argument [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/CryptoPkg/Library/BaseCryptLib/SysCall/ |
H A D | RuntimeMemAllocation.c | 56 RT_MEMORY_PAGE_ENTRY Pages[1]; // Page Table Entries. member in struct:__anon10285 112 mRTPageTable->Pages[Index].PageFlag = RT_PAGE_FREE; 113 mRTPageTable->Pages[Index].StartPageOffset = 0; 152 if ((mRTPageTable->Pages[SubIndex + Index].PageFlag & RT_PAGE_USED) != 0) { 167 while ((mRTPageTable->Pages[SubIndex + Index].PageFlag & RT_PAGE_USED) != 0) { 180 // Check Consecutive ReqPages Pages. 183 if ((mRTPageTable->Pages[SubIndex + Index].PageFlag & RT_PAGE_USED) != 0) { 199 ((mRTPageTable->Pages[SubIndex + Index].PageFlag & RT_PAGE_USED) != 0)) { 254 mRTPageTable->Pages[StartPage + Index].PageFlag |= RT_PAGE_USED; 255 mRTPageTable->Pages[StartPag [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/ |
H A D | IsaIo.c | 1343 @param[in] Pages The number of pages to allocate. 1350 by HostAddress, Pages, and Type is not available for common buffer use. 1359 IN UINTN Pages, 1408 Status = gBS->AllocatePages (Type, MemoryType, Pages, &PhysicalAddress); 1425 @param[in] Pages The number of pages to free. 1435 IN UINTN Pages, 1453 Pages 1355 IsaIoAllocateBuffer( IN EFI_ISA_IO_PROTOCOL *This, IN EFI_ALLOCATE_TYPE Type, IN EFI_MEMORY_TYPE MemoryType, IN UINTN Pages, OUT VOID **HostAddress, IN UINT64 Attributes ) argument 1433 IsaIoFreeBuffer( IN EFI_ISA_IO_PROTOCOL *This, IN UINTN Pages, IN VOID *HostAddress ) argument
|
/vbox/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/ |
H A D | LegacyBios.c | 38 @param Pages Number of pages to allocate 49 IN UINTN Pages, 57 // Allocate Pages of memory less <= StartPageAddress 63 Pages, 46 AllocateLegacyMemory( IN EFI_ALLOCATE_TYPE AllocateType, IN EFI_PHYSICAL_ADDRESS StartPageAddress, IN UINTN Pages, OUT EFI_PHYSICAL_ADDRESS *Result ) argument
|
/vbox/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Universal/Acpi/AcpiS3SaveDxe/ |
H A D | AcpiS3Save.c | 79 UINTN Pages; local 84 Pages = EFI_SIZE_TO_PAGES (Size); 90 Pages,
|
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Library/DxeCoreMemoryAllocationLib/ |
H A D | MemoryAllocationLib.c | 29 buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL is returned. 33 @param Pages The number of 4 KB pages to allocate. 41 IN UINTN Pages 47 if (Pages == 0) { 51 Status = CoreAllocatePages (AllocateAnyPages, MemoryType, Pages, &Memory); 62 allocated buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL 66 @param Pages The number of 4 KB pages to allocate. 74 IN UINTN Pages 77 return InternalAllocatePages (EfiBootServicesData, Pages); 84 allocated buffer. The buffer returned is aligned on a 4KB boundary. If Pages i 173 InternalAllocateAlignedPages( IN EFI_MEMORY_TYPE MemoryType, IN UINTN Pages, IN UINTN Alignment ) argument 259 AllocateAlignedPages( IN UINTN Pages, IN UINTN Alignment ) argument 286 AllocateAlignedRuntimePages( IN UINTN Pages, IN UINTN Alignment ) argument 313 AllocateAlignedReservedPages( IN UINTN Pages, IN UINTN Alignment ) argument [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/ |
H A D | MemoryAllocationLib.c | 108 buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL is returned. 112 @param Pages The number of 4 KB pages to allocate. 120 IN UINTN Pages 126 if (Pages == 0) { 130 Status = SmmAllocatePages (AllocateAnyPages, MemoryType, Pages, &Memory); 141 allocated buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL 145 @param Pages The number of 4 KB pages to allocate. 153 IN UINTN Pages 156 return InternalAllocatePages (EfiRuntimeServicesData, Pages); 163 allocated buffer. The buffer returned is aligned on a 4KB boundary. If Pages i 264 InternalAllocateAlignedPages( IN EFI_MEMORY_TYPE MemoryType, IN UINTN Pages, IN UINTN Alignment ) argument 350 AllocateAlignedPages( IN UINTN Pages, IN UINTN Alignment ) argument 377 AllocateAlignedRuntimePages( IN UINTN Pages, IN UINTN Alignment ) argument 404 AllocateAlignedReservedPages( IN UINTN Pages, IN UINTN Alignment ) argument [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/ |
H A D | BootGraphicsResourceTableDxe.c | 252 UINTN Pages; local 257 Pages = EFI_SIZE_TO_PAGES (Size); 263 Pages,
|
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableDxe/ |
H A D | FirmwarePerformanceDxe.c | 206 UINTN Pages; local 211 Pages = EFI_SIZE_TO_PAGES (Size); 217 Pages,
|
/vbox/src/VBox/Devices/EFI/Firmware/MdePkg/Library/PeiServicesLib/ |
H A D | PeiServicesLib.c | 342 @param Pages The number of pages to allocate. 355 IN UINTN Pages, 362 return (*PeiServices)->AllocatePages (PeiServices, MemoryType, Pages, Memory); 353 PeiServicesAllocatePages( IN EFI_MEMORY_TYPE MemoryType, IN UINTN Pages, OUT EFI_PHYSICAL_ADDRESS *Memory ) argument
|
/vbox/src/VBox/Devices/EFI/Firmware/MdePkg/Library/SmmMemoryAllocationLib/ |
H A D | MemoryAllocationLib.c | 142 Pages is 0, then NULL is returned. If there is not enough memory remaining to 146 @param Pages The number of 4 KB pages to allocate. 154 IN UINTN Pages 160 if (Pages == 0) { 164 Status = gSmst->SmmAllocatePages (AllocateAnyPages, MemoryType, Pages, &Memory); 176 Pages is 0, then NULL is returned. If there is not enough memory remaining to 179 @param Pages The number of 4 KB pages to allocate. 187 IN UINTN Pages 190 return InternalAllocatePages (EfiRuntimeServicesData, Pages); 198 If Pages i 299 InternalAllocateAlignedPages( IN EFI_MEMORY_TYPE MemoryType, IN UINTN Pages, IN UINTN Alignment ) argument 386 AllocateAlignedPages( IN UINTN Pages, IN UINTN Alignment ) argument 414 AllocateAlignedRuntimePages( IN UINTN Pages, IN UINTN Alignment ) argument 442 AllocateAlignedReservedPages( IN UINTN Pages, IN UINTN Alignment ) argument [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/MdePkg/Library/UefiMemoryAllocationLib/ |
H A D | MemoryAllocationLib.c | 29 buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL is returned. 33 @param Pages The number of 4 KB pages to allocate. 41 IN UINTN Pages 47 if (Pages == 0) { 51 Status = gBS->AllocatePages (AllocateAnyPages, MemoryType, Pages, &Memory); 62 allocated buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL 66 @param Pages The number of 4 KB pages to allocate. 74 IN UINTN Pages 77 return InternalAllocatePages (EfiBootServicesData, Pages); 84 allocated buffer. The buffer returned is aligned on a 4KB boundary. If Pages i 173 InternalAllocateAlignedPages( IN EFI_MEMORY_TYPE MemoryType, IN UINTN Pages, IN UINTN Alignment ) argument 259 AllocateAlignedPages( IN UINTN Pages, IN UINTN Alignment ) argument 286 AllocateAlignedRuntimePages( IN UINTN Pages, IN UINTN Alignment ) argument 313 AllocateAlignedReservedPages( IN UINTN Pages, IN UINTN Alignment ) argument [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Bus/Isa/IsaIoDxe/ |
H A D | IsaIo.c | 1683 @param[in] Pages The number of pages to allocate. 1690 by HostAddress, Pages, and Type is not available for common buffer use. 1699 IN UINTN Pages, 1748 Status = gBS->AllocatePages (Type, MemoryType, Pages, &PhysicalAddress); 1765 @param[in] Pages The number of pages to free. 1775 IN UINTN Pages, 1793 Pages 1695 IsaIoAllocateBuffer( IN EFI_ISA_IO_PROTOCOL *This, IN EFI_ALLOCATE_TYPE Type, IN EFI_MEMORY_TYPE MemoryType, IN UINTN Pages, OUT VOID **HostAddress, IN UINT64 Attributes ) argument 1773 IsaIoFreeBuffer( IN EFI_ISA_IO_PROTOCOL *This, IN UINTN Pages, IN VOID *HostAddress ) argument
|
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Bus/Pci/PciBusDxe/ |
H A D | PciIo.c | 1051 @param Pages The number of pages to allocate. 1069 IN UINTN Pages, 1092 Pages, 1112 @param Pages The number of pages to free. 1116 @retval EFI_INVALID_PARAMETER The memory range specified by HostAddress and Pages 1124 IN UINTN Pages, 1135 Pages, 1065 PciIoAllocateBuffer( IN EFI_PCI_IO_PROTOCOL *This, IN EFI_ALLOCATE_TYPE Type, IN EFI_MEMORY_TYPE MemoryType, IN UINTN Pages, OUT VOID **HostAddress, IN UINT64 Attributes ) argument 1122 PciIoFreeBuffer( IN EFI_PCI_IO_PROTOCOL *This, IN UINTN Pages, IN VOID *HostAddress ) argument
|
/vbox/src/VBox/Devices/EFI/Firmware/PcAtChipsetPkg/PciHostBridgeDxe/ |
H A D | PciRootBridgeIo.c | 410 @param Pages The number of pages to allocate. 430 IN UINTN Pages, 441 @param Pages The number of pages to free. 445 @retval EFI_INVALID_PARAMETER The memory range specified by HostAddress and Pages 453 IN UINTN Pages, 1883 @param Pages The number of pages to allocate. 1903 IN UINTN Pages, 1937 Status = gBS->AllocatePages (AllocateMaxAddress, MemoryType, Pages, &PhysicalAddress); 1953 @param Pages The number of pages to free. 1957 @retval EFI_INVALID_PARAMETER The memory range specified by HostAddress and Pages 1899 RootBridgeIoAllocateBuffer( IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This, IN EFI_ALLOCATE_TYPE Type, IN EFI_MEMORY_TYPE MemoryType, IN UINTN Pages, OUT VOID **HostAddress, IN UINT64 Attributes ) argument 1963 RootBridgeIoFreeBuffer( IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *This, IN UINTN Pages, OUT VOID *HostAddress ) argument [all...] |