HomeSort by relevance Sort by last modified time
    Searched refs:Pages (Results 1 - 25 of 136) sorted by null

1 2 3 4 5 6

  /device/linaro/bootloader/edk2/MdeModulePkg/Core/PiSmmCore/
Page.c 22 Internal Function. Allocate n pages from given free page node.
24 @param Pages The free page node.
25 @param NumberOfPages Number of pages to be allocated.
28 @return Memory address of allocated pages.
33 IN OUT FREE_PAGE_LIST *Pages,
42 Top = TRUNCATE_TO_PAGES (MaxAddress + 1 - (UINTN)Pages);
43 if (Top > Pages->NumberOfPages) {
44 Top = Pages->NumberOfPages;
48 if (Top < Pages->NumberOfPages) {
49 Node = (FREE_PAGE_LIST*)((UINTN)Pages + EFI_PAGES_TO_SIZE (Top));
    [all...]
  /device/linaro/bootloader/edk2/EmulatorPkg/Library/GuardUefiMemoryAllocationLib/
MemoryAllocationLib.c 35 Allocates one or more 4KB pages of a certain memory type.
37 Allocates the number of 4KB pages of a certain memory type and returns a pointer to the allocated
38 buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL is returned.
42 @param Pages The number of 4 KB pages to allocate.
50 IN UINTN Pages
56 if (Pages == 0) {
60 return gEmuThunk->Valloc (Pages * EFI_PAGE_SIZE);
64 Allocates one or more 4KB pages of type EfiBootServicesData.
66 Allocates the number of 4KB pages of type EfiBootServicesData and returns a pointer to the
    [all...]
  /device/linaro/bootloader/edk2/EmbeddedPkg/Library/PrePiMemoryAllocationLib/
MemoryAllocationLib.c 25 Allocates one or more 4KB pages of type EfiBootServicesData.
27 Allocates the number of 4KB pages of MemoryType and returns a pointer to the
28 allocated buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL
32 @param Pages The number of 4 KB pages to allocate.
40 IN UINTN Pages
58 if (Hob.HandoffInformationTable->EfiFreeMemoryTop - ((Pages * EFI_PAGE_SIZE) + sizeof (EFI_HOB_MEMORY_ALLOCATION)) < Hob.HandoffInformationTable->EfiFreeMemoryBottom) {
64 Hob.HandoffInformationTable->EfiFreeMemoryTop -= Pages * EFI_PAGE_SIZE;
74 Pages * EFI_PAGE_SIZE,
83 Allocates one or more 4KB pages of type EfiBootServicesData at a specified alignment.
    [all...]
  /device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/
MemoryAllocationLib.c 28 Allocates one or more 4KB pages of a certain memory type.
30 Allocates the number of 4KB pages of a certain memory type and returns a pointer to the allocated
31 buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL is returned.
35 @param Pages The number of 4 KB pages to allocate.
43 IN UINTN Pages
49 if (Pages == 0) {
53 Status = PeiServicesAllocatePages (MemoryType, Pages, &Memory);
62 Allocates one or more 4KB pages of type EfiBootServicesData.
64 Allocates the number of 4KB pages of type EfiBootServicesData and returns a pointer to the
    [all...]
  /device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeCoreMemoryAllocationLib/
MemoryAllocationLib.c 26 Allocates one or more 4KB pages of a certain memory type.
28 Allocates the number of 4KB pages of a certain memory type and returns a pointer to the allocated
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);
59 Allocates one or more 4KB pages of type EfiBootServicesData.
61 Allocates the number of 4KB pages of type EfiBootServicesData and returns a pointer to the
    [all...]
  /device/linaro/bootloader/edk2/MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/
MemoryAllocationLib.c 63 Allocates one or more 4KB pages of a certain memory type.
65 Allocates the number of 4KB pages of a certain memory type and returns a pointer to the allocated
66 buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL is returned.
70 @param Pages The number of 4 KB pages to allocate.
78 IN UINTN Pages
84 if (Pages == 0) {
88 Status = SmmAllocatePages (AllocateAnyPages, MemoryType, Pages, &Memory);
96 Allocates one or more 4KB pages of type EfiRuntimeServicesData.
98 Allocates the number of 4KB pages of type EfiRuntimeServicesData and returns a pointer to the
    [all...]
  /device/linaro/bootloader/edk2/MdePkg/Library/SmmMemoryAllocationLib/
MemoryAllocationLib.c 139 Allocates one or more 4KB pages of a certain memory type.
141 Allocates the number of 4KB pages of a certain memory type and returns a pointer
143 Pages is 0, then NULL is returned. If there is not enough memory remaining to
147 @param Pages The number of 4 KB pages to allocate.
155 IN UINTN Pages
161 if (Pages == 0) {
165 Status = gSmst->SmmAllocatePages (AllocateAnyPages, MemoryType, Pages, &Memory);
173 Allocates one or more 4KB pages of type EfiRuntimeServicesData.
175 Allocates the number of 4KB pages of type EfiRuntimeServicesData and returns a pointer
    [all...]
  /device/linaro/bootloader/edk2/MdePkg/Library/UefiMemoryAllocationLib/
MemoryAllocationLib.c 26 Allocates one or more 4KB pages of a certain memory type.
28 Allocates the number of 4KB pages of a certain memory type and returns a pointer to the allocated
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);
59 Allocates one or more 4KB pages of type EfiBootServicesData.
61 Allocates the number of 4KB pages of type EfiBootServicesData and returns a pointer to the
    [all...]
  /device/linaro/bootloader/edk2/ArmPkg/Library/UncachedMemoryAllocationLib/
UncachedMemoryAllocationLib.c 33 IN UINTN Pages
39 IN UINTN Pages,
53 UINTN Pages;
70 * @param Pages Number of requested page
81 IN UINTN Pages,
108 if (Node->Pages == Pages) {
114 mFreedBufferSize -= Pages * EFI_PAGE_SIZE;
116 } else if (Node->Pages > Pages) {
    [all...]
  /device/linaro/bootloader/edk2/EmbeddedPkg/Library/NullDmaLib/
NullDmaLib.c 79 Allocates pages that are suitable for an DmaMap() of type MapOperationBusMasterCommonBuffer.
84 @param Pages The number of pages to allocate.
88 @retval EFI_SUCCESS The requested memory pages were allocated.
92 @retval EFI_OUT_OF_RESOURCES The memory pages could not be allocated.
99 IN UINTN Pages,
113 *HostAddress = AllocatePages (Pages);
115 *HostAddress = AllocateRuntimePages (Pages);
127 @param Pages The number of pages to free.
    [all...]
  /device/linaro/bootloader/edk2/OvmfPkg/Library/LockBoxLib/
LockBoxDxe.c 41 UINTN Pages;
47 Pages = EFI_SIZE_TO_PAGES (Size);
67 Pages,
75 ZeroMem (Buffer, EFI_PAGES_TO_SIZE (Pages));
77 AllocRemaining = EFI_PAGES_TO_SIZE (Pages) - Size;
  /device/linaro/bootloader/edk2/ArmPkg/Library/DebugUncachedMemoryAllocationLib/
DebugUncachedMemoryAllocationLib.c 41 IN UINTN Pages
47 IN UINTN Pages,
64 UINTN Pages;
74 UINTN Pages
87 NewNode->Pages = Pages;
97 OUT UINTN *Pages
104 *Pages = 0;
110 *Pages = OldNode->Pages;
    [all...]
  /device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLib/SysCall/
RuntimeMemAllocation.c 48 // Only available for USED pages.
56 RT_MEMORY_PAGE_ENTRY Pages[1]; // Page Table Entries.
112 mRTPageTable->Pages[Index].PageFlag = RT_PAGE_FREE;
113 mRTPageTable->Pages[Index].StartPageOffset = 0;
149 // Check consecutive ReqPages pages.
152 if ((mRTPageTable->Pages[SubIndex + Index].PageFlag & RT_PAGE_USED) != 0) {
165 // Failed! Skip current free memory pages and adjacent Used pages
167 while ((mRTPageTable->Pages[SubIndex + Index].PageFlag & RT_PAGE_USED) != 0) {
180 // Check Consecutive ReqPages Pages.
    [all...]
  /device/linaro/bootloader/edk2/EmbeddedPkg/Include/Library/
DmaLib.h 114 Allocates pages that are suitable for an DmaMap() of type MapOperationBusMasterCommonBuffer.
119 @param Pages The number of pages to allocate.
123 @retval EFI_SUCCESS The requested memory pages were allocated.
127 @retval EFI_OUT_OF_RESOURCES The memory pages could not be allocated.
134 IN UINTN Pages,
142 @param Pages The number of pages to free.
145 @retval EFI_SUCCESS The requested memory pages were freed.
146 @retval EFI_INVALID_PARAMETER The memory range specified by HostAddress and Pages
    [all...]
  /device/linaro/bootloader/edk2/MdePkg/Include/Library/
MemoryAllocationLib.h 24 Allocates one or more 4KB pages of type EfiBootServicesData.
26 Allocates the number of 4KB pages of type EfiBootServicesData and returns a pointer to the
27 allocated buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL
31 @param Pages The number of 4 KB pages to allocate.
39 IN UINTN Pages
43 Allocates one or more 4KB pages of type EfiRuntimeServicesData.
45 Allocates the number of 4KB pages of type EfiRuntimeServicesData and returns a pointer to the
46 allocated buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL
50 @param Pages The number of 4 KB pages to allocate.
    [all...]
  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiMemoryAllocationLib/
MemoryAllocationLib.c 26 Allocates one or more 4KB pages of a certain memory type.
28 Allocates the number of 4KB pages of a certain memory type and returns a pointer to the allocated
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 = PeiServicesAllocatePages (MemoryType, Pages, &Memory);
59 Allocates one or more 4KB pages of type EfiBootServicesData.
61 Allocates the number of 4KB pages of type EfiBootServicesData and returns a pointer to the
    [all...]
  /device/linaro/bootloader/edk2/OvmfPkg/Include/Library/
LoadLinuxLib.h 82 Allocates pages for the kernel setup image.
84 @param[in] Pages - The number of pages
86 @retval NULL - Unable to allocate pages
87 @retval !NULL - The address of the pages allocated
93 IN UINTN Pages
118 Allocates pages for the kernel.
121 @param[in] Pages - The number of pages. (It is recommended to use the
124 @retval NULL - Unable to allocate pages
    [all...]
  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeMemoryAllocationLib/
MemoryAllocationLib.c 27 Allocates one or more 4KB pages of a certain memory type.
29 Allocates the number of 4KB pages of a certain memory type and returns a pointer to the allocated
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 = (gBS->AllocatePages) (AllocateAnyPages, MemoryType, Pages, &Memory);
60 Allocates one or more 4KB pages of type EfiBootServicesData.
62 Allocates the number of 4KB pages of type EfiBootServicesData and returns a pointer to the
    [all...]
  /prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ddk/
videoagp.h 46 IN ULONG Pages,
53 IN ULONG Pages,
60 IN ULONG Pages,
67 IN ULONG Pages,
83 IN ULONG Pages,
  /device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/
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))) {
103 PciIo->FreeBuffer (PciIo, Pages, BufHost);
474 UINTN Pages;
    [all...]
  /device/linaro/bootloader/edk2/ArmPkg/Include/Library/
UncachedMemoryAllocationLib.h 58 Allocates one or more 4KB pages of type EfiBootServicesData.
60 Allocates the number of 4KB pages of type EfiBootServicesData and returns a pointer to the
61 allocated buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL
65 @param Pages The number of 4 KB pages to allocate.
73 IN UINTN Pages
77 Allocates one or more 4KB pages of type EfiRuntimeServicesData.
79 Allocates the number of 4KB pages of type EfiRuntimeServicesData and returns a pointer to the
80 allocated buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL
84 @param Pages The number of 4 KB pages to allocate.
    [all...]
  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/
EdkIIGlueMemoryAllocationLib.h 36 Allocates one or more 4KB pages of type EfiBootServicesData.
38 Allocates the number of 4KB pages of type EfiBootServicesData and returns a pointer to the
39 allocated buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL
43 @param Pages The number of 4 KB pages to allocate.
51 IN UINTN Pages
55 Allocates one or more 4KB pages of type EfiRuntimeServicesData.
57 Allocates the number of 4KB pages of type EfiRuntimeServicesData and returns a pointer to the
58 allocated buffer. The buffer returned is aligned on a 4KB boundary. If Pages is 0, then NULL
62 @param Pages The number of 4 KB pages to allocate.
    [all...]
  /device/linaro/bootloader/OpenPlatformPkg/Platforms/TexasInstruments/BeagleBoard/Library/ResetSystemLib/
ResetSystemLib.c 41 UINTN Pages;
55 Pages = EFI_SIZE_TO_PAGES (MemoryMapSize) + 1;
56 MemoryMap = AllocatePages (Pages);
72 FreePages (MemoryMap, Pages);
  /device/linaro/bootloader/edk2/BeagleBoardPkg/Library/ResetSystemLib/
ResetSystemLib.c 41 UINTN Pages;
55 Pages = EFI_SIZE_TO_PAGES (MemoryMapSize) + 1;
56 MemoryMap = AllocatePages (Pages);
72 FreePages (MemoryMap, Pages);
  /device/linaro/bootloader/edk2/ArmPkg/Library/BdsLib/
BdsHelper.c 28 UINTN Pages;
32 Pages = 0;
44 Pages = EFI_SIZE_TO_PAGES (MemoryMapSize) + 1;
45 MemoryMap = AllocatePages (Pages);
63 FreePages (MemoryMap, Pages);

Completed in 1308 milliseconds

1 2 3 4 5 6