/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/ |
D | EfiLibAllocate.c | 45 VOID *Memory; in EfiLibAllocatePool() local 47 Memory = NULL; in EfiLibAllocatePool() 48 gBS->AllocatePool (EfiBootServicesData, AllocationSize, &Memory); in EfiLibAllocatePool() 49 return Memory; in EfiLibAllocatePool() 72 VOID *Memory; in EfiLibAllocateRuntimePool() local 74 Memory = NULL; in EfiLibAllocateRuntimePool() 75 gBS->AllocatePool (EfiRuntimeServicesData, AllocationSize, &Memory); in EfiLibAllocateRuntimePool() 76 return Memory; in EfiLibAllocateRuntimePool() 99 VOID *Memory; in EfiLibAllocateZeroPool() local 101 Memory = EfiLibAllocatePool (AllocationSize); in EfiLibAllocateZeroPool() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 45 EFI_PHYSICAL_ADDRESS Memory; in InternalAllocatePages() local 51 Status = PeiServicesAllocatePages (MemoryType, Pages, &Memory); in InternalAllocatePages() 53 Memory = 0; in InternalAllocatePages() 55 return (VOID *) (UINTN) Memory; in InternalAllocatePages() 175 VOID *Memory; in InternalAllocateAlignedPages() local 193 Memory = InternalAllocatePages (MemoryType, Pages + EFI_SIZE_TO_PAGES (Alignment)); in InternalAllocateAlignedPages() 199 return (VOID *) (UINTN) (((UINTN) Memory + AlignmentMask) & ~AlignmentMask); in InternalAllocateAlignedPages() 424 VOID *Memory; in InternalAllocateZeroPool() local 426 Memory = InternalAllocatePool (PoolType, AllocationSize); in InternalAllocateZeroPool() 427 if (Memory != NULL) { in InternalAllocateZeroPool() [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 47 EFI_PHYSICAL_ADDRESS Memory; in InternalAllocatePages() local 53 Status = PeiServicesAllocatePages (MemoryType, Pages, &Memory); in InternalAllocatePages() 58 return (VOID *) (UINTN) Memory; in InternalAllocatePages() 183 EFI_PHYSICAL_ADDRESS Memory; in InternalAllocateAlignedPages() local 215 Memory = (EFI_PHYSICAL_ADDRESS) (UINTN) InternalAllocatePages (MemoryType, TotalPages); in InternalAllocateAlignedPages() 216 if (Memory == 0) { in InternalAllocateAlignedPages() 220 …llocated Memory unaligned: Address = 0x%LX, Pages = 0x%X, Type = %d \n", Memory, TotalPages, (UINT… in InternalAllocateAlignedPages() 225 AlignedMemory = Memory; in InternalAllocateAlignedPages() 227 AlignedMemory = ALIGN_VALUE (Memory, Alignment); in InternalAllocateAlignedPages() 245 if (Memory == AlignedMemory) { in InternalAllocateAlignedPages() [all …]
|
D | PeiMemoryAllocationLib.uni | 2 // Instance of Memory Allocation Library using PEI Services. 4 // Memory Allocation Library that uses PEI Services to allocate memory. 19 #string STR_MODULE_ABSTRACT #language en-US "Instance of Memory Allocation Library usin… 21 #string STR_MODULE_DESCRIPTION #language en-US "Memory Allocation Library that uses PEI Se…
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 46 EFI_PHYSICAL_ADDRESS Memory; in InternalAllocatePages() local 52 Status = (gBS->AllocatePages) (AllocateAnyPages, MemoryType, Pages, &Memory); in InternalAllocatePages() 54 Memory = 0; in InternalAllocatePages() 56 return (VOID *) (UINTN) Memory; in InternalAllocatePages() 179 EFI_PHYSICAL_ADDRESS Memory; in InternalAllocateAlignedPages() local 204 Status = (gBS->AllocatePages) (AllocateAnyPages, MemoryType, RealPages, &Memory); in InternalAllocateAlignedPages() 208 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages() 209 UnalignedPages = EFI_SIZE_TO_PAGES ((UINTN) Memory - AlignedMemory); in InternalAllocateAlignedPages() 214 Status = (gBS->FreePages) (Memory, UnalignedPages); in InternalAllocateAlignedPages() 217 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in InternalAllocateAlignedPages() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeCoreMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 45 EFI_PHYSICAL_ADDRESS Memory; in InternalAllocatePages() local 51 Status = CoreAllocatePages (AllocateAnyPages, MemoryType, Pages, &Memory); in InternalAllocatePages() 55 return (VOID *) (UINTN) Memory; in InternalAllocatePages() 181 EFI_PHYSICAL_ADDRESS Memory; in InternalAllocateAlignedPages() local 206 Status = CoreAllocatePages (AllocateAnyPages, MemoryType, RealPages, &Memory); in InternalAllocateAlignedPages() 210 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages() 211 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in InternalAllocateAlignedPages() 216 Status = CoreFreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages() 219 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in InternalAllocateAlignedPages() 225 Status = CoreFreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages() [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/UefiMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 45 EFI_PHYSICAL_ADDRESS Memory; in InternalAllocatePages() local 51 Status = gBS->AllocatePages (AllocateAnyPages, MemoryType, Pages, &Memory); in InternalAllocatePages() 55 return (VOID *) (UINTN) Memory; in InternalAllocatePages() 181 EFI_PHYSICAL_ADDRESS Memory; in InternalAllocateAlignedPages() local 206 Status = gBS->AllocatePages (AllocateAnyPages, MemoryType, RealPages, &Memory); in InternalAllocateAlignedPages() 210 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages() 211 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in InternalAllocateAlignedPages() 216 Status = gBS->FreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages() 219 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in InternalAllocateAlignedPages() 225 Status = gBS->FreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages() [all …]
|
D | UefiMemoryAllocationLib.uni | 2 // Instance of Memory Allocation Library using EFI Boot Services. 4 // Memory Allocation Library that uses EFI Boot Services to allocate 19 #string STR_MODULE_ABSTRACT #language en-US "Instance of Memory Allocation Library usin… 21 #string STR_MODULE_DESCRIPTION #language en-US "This Memory Allocation Library uses EFI Bo…
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 82 EFI_PHYSICAL_ADDRESS Memory; in InternalAllocatePages() local 88 Status = SmmAllocatePages (AllocateAnyPages, MemoryType, Pages, &Memory); in InternalAllocatePages() 92 return (VOID *) (UINTN) Memory; in InternalAllocatePages() 230 EFI_PHYSICAL_ADDRESS Memory; in InternalAllocateAlignedPages() local 255 Status = SmmAllocatePages (AllocateAnyPages, MemoryType, RealPages, &Memory); in InternalAllocateAlignedPages() 259 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages() 260 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in InternalAllocateAlignedPages() 265 Status = SmmFreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages() 268 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in InternalAllocateAlignedPages() 274 Status = SmmFreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages() [all …]
|
/device/linaro/bootloader/edk2/ArmPkg/Library/DebugUncachedMemoryAllocationLib/ |
D | DebugUncachedMemoryAllocationLib.c | 211 EFI_PHYSICAL_ADDRESS Memory; in UncachedInternalAllocateAlignedPages() local 236 Status = gBS->AllocatePages (AllocateAnyPages, MemoryType, RealPages, &Memory); in UncachedInternalAllocateAlignedPages() 240 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in UncachedInternalAllocateAlignedPages() 241 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in UncachedInternalAllocateAlignedPages() 246 Status = gBS->FreePages (Memory, UnalignedPages); in UncachedInternalAllocateAlignedPages() 249 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in UncachedInternalAllocateAlignedPages() 255 Status = gBS->FreePages (Memory, UnalignedPages); in UncachedInternalAllocateAlignedPages() 262 Status = gBS->AllocatePages (AllocateAnyPages, MemoryType, Pages, &Memory); in UncachedInternalAllocateAlignedPages() 266 AlignedMemory = (UINTN) Memory; in UncachedInternalAllocateAlignedPages() 288 EFI_PHYSICAL_ADDRESS Memory; in UncachedFreeAlignedPages() local [all …]
|
/device/linaro/bootloader/edk2/EmulatorPkg/Library/GuardUefiMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 54 EFI_PHYSICAL_ADDRESS Memory; in InternalAllocatePages() local 190 VOID *Memory; in InternalAllocateAlignedPages() local 215 Memory = gEmuThunk->Valloc (Pages * EFI_PAGE_SIZE); in InternalAllocateAlignedPages() 216 if (Memory != NULL) { in InternalAllocateAlignedPages() 219 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages() 220 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in InternalAllocateAlignedPages() 225 FreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages() 227 Memory = (VOID *) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in InternalAllocateAlignedPages() 233 FreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages() 239 Memory = gEmuThunk->Valloc (Pages * EFI_PAGE_SIZE); in InternalAllocateAlignedPages() [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/SmmMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 159 EFI_PHYSICAL_ADDRESS Memory; in InternalAllocatePages() local 165 Status = gSmst->SmmAllocatePages (AllocateAnyPages, MemoryType, Pages, &Memory); in InternalAllocatePages() 169 return (VOID *) (UINTN) Memory; in InternalAllocatePages() 308 EFI_PHYSICAL_ADDRESS Memory; in InternalAllocateAlignedPages() local 333 Status = gSmst->SmmAllocatePages (AllocateAnyPages, MemoryType, RealPages, &Memory); in InternalAllocateAlignedPages() 337 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages() 338 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in InternalAllocateAlignedPages() 343 Status = gSmst->SmmFreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages() 346 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in InternalAllocateAlignedPages() 352 Status = gSmst->SmmFreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages() [all …]
|
D | SmmMemoryAllocationLib.uni | 2 // Instance of Memory Allocation Library using SMM Services Table. 4 // Memory Allocation Library that uses services from the SMM Services Table to 19 #string STR_MODULE_ABSTRACT #language en-US "Instance of Memory Allocation Library usin… 21 #string STR_MODULE_DESCRIPTION #language en-US "This Memory Allocation Library uses servic…
|
/device/linaro/bootloader/edk2/ArmPkg/Library/UncachedMemoryAllocationLib/ |
D | UncachedMemoryAllocationLib.c | 91 EFI_PHYSICAL_ADDRESS Memory; in AllocatePagesFromList() local 150 Status = gBS->AllocatePages (AllocateAnyPages, MemoryType, Pages, &Memory); in AllocatePagesFromList() 155 Status = gDS->GetMemorySpaceDescriptor (Memory, &Descriptor); in AllocatePagesFromList() 160 gBS->FreePages (Memory, Pages); in AllocatePagesFromList() 164 Status = gDS->SetMemorySpaceAttributes (Memory, EFI_PAGES_TO_SIZE (Pages), EFI_MEMORY_WC); in AllocatePagesFromList() 166 gBS->FreePages (Memory, Pages); in AllocatePagesFromList() 170 InvalidateDataCacheRange ((VOID *)(UINTN)Memory, EFI_PAGES_TO_SIZE (Pages)); in AllocatePagesFromList() 175 gBS->FreePages (Memory, Pages); in AllocatePagesFromList() 179 NewNode->Base = Memory; in AllocatePagesFromList() 180 NewNode->Allocation = (VOID*)(((UINTN)Memory + AlignmentMask) & ~AlignmentMask); in AllocatePagesFromList() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/PiSmmCore/ |
D | Page.c | 153 OUT EFI_PHYSICAL_ADDRESS *Memory in SmmInternalAllocatePages() argument 170 RequestedAddress = (UINTN)*Memory; in SmmInternalAllocatePages() 175 *Memory = InternalAllocMaxAddress ( in SmmInternalAllocatePages() 180 if (*Memory == (UINTN)-1) { in SmmInternalAllocatePages() 185 *Memory = InternalAllocAddress ( in SmmInternalAllocatePages() 190 if (*Memory != RequestedAddress) { in SmmInternalAllocatePages() 222 OUT EFI_PHYSICAL_ADDRESS *Memory in SmmAllocatePages() argument 227 Status = SmmInternalAllocatePages (Type, MemoryType, NumberOfPages, Memory); in SmmAllocatePages() 229 …ofileActionAllocatePages, MemoryType, EFI_PAGES_TO_SIZE (NumberOfPages), (VOID *) (UINTN) *Memory); in SmmAllocatePages() 275 IN EFI_PHYSICAL_ADDRESS Memory, in SmmInternalFreePages() argument [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Misc/ |
D | DebugImageInfo.c | 43 EFI_PHYSICAL_ADDRESS Memory; in CoreInitializeDebugImageInfoTable() local 63 Memory = PcdGet64 (PcdMaxEfiSystemTablePointerAddress); in CoreInitializeDebugImageInfoTable() 64 if (Memory == 0) { in CoreInitializeDebugImageInfoTable() 65 Memory = MAX_ADDRESS; in CoreInitializeDebugImageInfoTable() 71 &Memory in CoreInitializeDebugImageInfoTable() 86 &Memory in CoreInitializeDebugImageInfoTable() 97 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in CoreInitializeDebugImageInfoTable() 98 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN)Memory); in CoreInitializeDebugImageInfoTable() 103 Status = CoreFreePages (Memory, UnalignedPages); in CoreInitializeDebugImageInfoTable() 106 Memory = (EFI_PHYSICAL_ADDRESS)(AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in CoreInitializeDebugImageInfoTable() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/ |
D | RtDevicePath.c | 56 VOID *Memory; in InternalAllocatePool() local 58 Memory = NULL; in InternalAllocatePool() 59 gBS->AllocatePool (EfiBootServicesData, AllocationSize, &Memory); in InternalAllocatePool() 60 return Memory; in InternalAllocatePool() 88 VOID *Memory; in InternalAllocateCopyPool() local 90 Memory = NULL; in InternalAllocateCopyPool() 91 gBS->AllocatePool (EfiBootServicesData, AllocationSize, &Memory); in InternalAllocateCopyPool() 92 if (Memory != NULL) { in InternalAllocateCopyPool() 93 gBS->CopyMem (Memory, Buffer, AllocationSize); in InternalAllocateCopyPool() 96 return Memory; in InternalAllocateCopyPool() [all …]
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformPei/ |
D | MemoryCallback.c | 118 VOID* Memory; in MemoryDiscoveredPpiNotifyCallback() 134 Memory = AllocatePages ( Pages ); in MemoryDiscoveredPpiNotifyCallback() 135 CopyMem(Memory , (VOID *) FixedPcdGet32(PcdFlashFvMainBase) , Size); in MemoryDiscoveredPpiNotifyCallback() 142 … (VOID *) ((UINTN) Memory + (PcdGet32 (PcdFlashFvRecovery2Base) - PcdGet32 (PcdFlashFvMainBase))), in MemoryDiscoveredPpiNotifyCallback() 150 (VOID *) Memory, in MemoryDiscoveredPpiNotifyCallback()
|
/device/linaro/bootloader/edk2/MdePkg/Library/BaseMemoryLib/ |
D | BaseMemoryLib.uni | 2 // Instance of Base Memory Library without assembly. 4 // Base Memory Library implementation - no ASM. 18 #string STR_MODULE_ABSTRACT #language en-US "Instance of Base Memory Library without as… 20 #string STR_MODULE_DESCRIPTION #language en-US "Base Memory Library implementation - no AS…
|
/device/linaro/bootloader/edk2/MdePkg/Library/BaseMemoryLibSse2/ |
D | BaseMemoryLibSse2.uni | 2 // Instance of Base Memory Library using SSE2 registers. 4 // Base Memory Library that uses SSE2 registers for high performance. 18 #string STR_MODULE_ABSTRACT #language en-US "Instance of Base Memory Library using SSE2… 20 #string STR_MODULE_DESCRIPTION #language en-US "Base Memory Library that uses SSE2 registe…
|
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryLib/ |
D | PeiMemoryLib.uni | 2 // Instance of Base Memory Library using PEI Services. 4 // Base Memory Library implementation that uses PEI Services 19 #string STR_MODULE_ABSTRACT #language en-US "Instance of Base Memory Library using PEI … 21 #string STR_MODULE_DESCRIPTION #language en-US "Base Memory Library implementation that us…
|
/device/linaro/bootloader/edk2/MdePkg/Library/BaseMemoryLibMmx/ |
D | BaseMemoryLibMmx.uni | 2 // Instance of Base Memory Library using MMX registers. 4 // Base Memory Library that uses MMX registers for high performance. 19 #string STR_MODULE_ABSTRACT #language en-US "Instance of Base Memory Library using MMX … 21 #string STR_MODULE_DESCRIPTION #language en-US "Base Memory Library that uses MMX register…
|
/device/linaro/bootloader/edk2/MdePkg/Library/UefiDevicePathLib/ |
D | UefiDevicePathLib.uni | 2 // Instance of Device Path Library based on Memory Allocation Library. 4 // Device Path Library that layers on top of the Memory Allocation Library. 18 …CT #language en-US "Instance of Device Path Library based on Memory Allocation Library" 20 … #language en-US "This Device Path Library layers on top of the Memory Allocation Library…
|
/device/linaro/bootloader/edk2/MdePkg/Library/UefiMemoryLib/ |
D | UefiMemoryLib.uni | 2 // Instance of Base Memory Library using EFI Boot Services. 4 // Base Memory Library implementation that uses EFI Boot Services 19 #string STR_MODULE_ABSTRACT #language en-US "Instance of Base Memory Library using EFI … 21 #string STR_MODULE_DESCRIPTION #language en-US "Base Memory Library implementation that us…
|
/device/linaro/bootloader/edk2/MdePkg/Library/BaseMemoryLibRepStr/ |
D | BaseMemoryLibRepStr.uni | 2 // Instance of Base Memory Library using REP string instructions. 4 // Base Memory Library that uses REP string instructions for 19 #string STR_MODULE_ABSTRACT #language en-US "Instance of Base Memory Library using REP … 21 #string STR_MODULE_DESCRIPTION #language en-US "Base Memory Library that uses REP string i…
|