Home
last modified time | relevance | path

Searched refs:AlignedMemory (Results 1 – 14 of 14) sorted by relevance

/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/
DMemoryAllocationLib.c184 EFI_PHYSICAL_ADDRESS AlignedMemory; in InternalAllocateAlignedPages() local
225 AlignedMemory = Memory; in InternalAllocateAlignedPages()
227 AlignedMemory = ALIGN_VALUE (Memory, Alignment); in InternalAllocateAlignedPages()
229 …After aligning to 0x%X bytes: Address = 0x%LX, Pages = 0x%X \n", Alignment, AlignedMemory, Pages)); in InternalAllocateAlignedPages()
245 if (Memory == AlignedMemory) { in InternalAllocateAlignedPages()
248 if ((Memory + EFI_PAGES_TO_SIZE(TotalPages)) == (AlignedMemory + EFI_PAGES_TO_SIZE(Pages))) { in InternalAllocateAlignedPages()
280 HobLength = (AlignedMemory - Memory); in InternalAllocateAlignedPages()
295 HobBaseAddress = AlignedMemory; in InternalAllocateAlignedPages()
319 HobBaseAddress = AlignedMemory + EFI_PAGES_TO_SIZE(Pages); in InternalAllocateAlignedPages()
320 … HobLength = (Memory + EFI_PAGES_TO_SIZE(TotalPages)) - (AlignedMemory + EFI_PAGES_TO_SIZE(Pages)); in InternalAllocateAlignedPages()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Misc/
DDebugImageInfo.c44 UINTN AlignedMemory; in CoreInitializeDebugImageInfoTable() local
97 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in CoreInitializeDebugImageInfoTable()
98 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN)Memory); in CoreInitializeDebugImageInfoTable()
106 Memory = (EFI_PHYSICAL_ADDRESS)(AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in CoreInitializeDebugImageInfoTable()
119 mDebugTable = (EFI_SYSTEM_TABLE_POINTER *)(AlignedMemory); in CoreInitializeDebugImageInfoTable()
/device/linaro/bootloader/edk2/EmulatorPkg/Library/GuardUefiMemoryAllocationLib/
DMemoryAllocationLib.c191 UINTN AlignedMemory; in InternalAllocateAlignedPages() local
219 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages()
220 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in InternalAllocateAlignedPages()
227 Memory = (VOID *) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in InternalAllocateAlignedPages()
243 AlignedMemory = (UINTN) Memory; in InternalAllocateAlignedPages()
245 return (VOID *) AlignedMemory; in InternalAllocateAlignedPages()
/device/linaro/bootloader/edk2/ArmPkg/Library/DebugUncachedMemoryAllocationLib/
DDebugUncachedMemoryAllocationLib.c212 EFI_PHYSICAL_ADDRESS AlignedMemory; in UncachedInternalAllocateAlignedPages() local
240 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in UncachedInternalAllocateAlignedPages()
241 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in UncachedInternalAllocateAlignedPages()
249 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in UncachedInternalAllocateAlignedPages()
266 AlignedMemory = (UINTN) Memory; in UncachedInternalAllocateAlignedPages()
269 …Status = gVirtualUncachedPages->ConvertPages (gVirtualUncachedPages, AlignedMemory, Pages * EFI_PA… in UncachedInternalAllocateAlignedPages()
274AlignedMemory = (EFI_PHYSICAL_ADDRESS)(UINTN)ConvertToUncachedAddress ((VOID *)(UINTN)AlignedMemor… in UncachedInternalAllocateAlignedPages()
276 return (VOID *)(UINTN)AlignedMemory; in UncachedInternalAllocateAlignedPages()
/device/linaro/bootloader/edk2/MdePkg/Library/UefiMemoryAllocationLib/
DMemoryAllocationLib.c182 UINTN AlignedMemory; in InternalAllocateAlignedPages() local
210 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages()
211 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in InternalAllocateAlignedPages()
219 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in InternalAllocateAlignedPages()
236 AlignedMemory = (UINTN) Memory; in InternalAllocateAlignedPages()
238 return (VOID *) AlignedMemory; in InternalAllocateAlignedPages()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/
DUsbHcMem.c632 UINTN AlignedMemory; in UsbHcAllocateAlignedPages() local
672 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in UsbHcAllocateAlignedPages()
673 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in UsbHcAllocateAlignedPages()
681 Memory = (VOID *)(UINTN)(AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in UsbHcAllocateAlignedPages()
705 AlignedMemory = (UINTN) Memory; in UsbHcAllocateAlignedPages()
712 (VOID *) AlignedMemory, in UsbHcAllocateAlignedPages()
719 Status = PciIo->FreeBuffer (PciIo, Pages, (VOID *) AlignedMemory); in UsbHcAllocateAlignedPages()
723 *HostAddress = (VOID *) AlignedMemory; in UsbHcAllocateAlignedPages()
/device/linaro/bootloader/edk2/MdePkg/Library/SmmMemoryAllocationLib/
DMemoryAllocationLib.c309 UINTN AlignedMemory; in InternalAllocateAlignedPages() local
337 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages()
338 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in InternalAllocateAlignedPages()
346 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in InternalAllocateAlignedPages()
363 AlignedMemory = (UINTN) Memory; in InternalAllocateAlignedPages()
365 return (VOID *) AlignedMemory; in InternalAllocateAlignedPages()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeMemoryAllocationLib/
DMemoryAllocationLib.c180 UINTN AlignedMemory; in InternalAllocateAlignedPages() local
208 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages()
209 UnalignedPages = EFI_SIZE_TO_PAGES ((UINTN) Memory - AlignedMemory); in InternalAllocateAlignedPages()
217 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in InternalAllocateAlignedPages()
234 AlignedMemory = (UINTN) Memory; in InternalAllocateAlignedPages()
236 return (VOID *) AlignedMemory; in InternalAllocateAlignedPages()
/device/linaro/bootloader/edk2/MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/
DMemoryAllocationLib.c259 UINTN AlignedMemory; in InternalAllocateAlignedPages() local
287 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages()
288 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in InternalAllocateAlignedPages()
296 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in InternalAllocateAlignedPages()
313 AlignedMemory = (UINTN) Memory; in InternalAllocateAlignedPages()
315 return (VOID *) AlignedMemory; in InternalAllocateAlignedPages()
/device/linaro/bootloader/edk2/MdeModulePkg/Library/UefiMemoryAllocationProfileLib/
DMemoryAllocationLib.c223 UINTN AlignedMemory; in InternalAllocateAlignedPages() local
251 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages()
252 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in InternalAllocateAlignedPages()
260 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in InternalAllocateAlignedPages()
277 AlignedMemory = (UINTN) Memory; in InternalAllocateAlignedPages()
279 return (VOID *) AlignedMemory; in InternalAllocateAlignedPages()
/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeCoreMemoryAllocationLib/
DMemoryAllocationLib.c224 UINTN AlignedMemory; in InternalAllocateAlignedPages() local
252 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages()
253 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in InternalAllocateAlignedPages()
261 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in InternalAllocateAlignedPages()
278 AlignedMemory = (UINTN) Memory; in InternalAllocateAlignedPages()
280 return (VOID *) AlignedMemory; in InternalAllocateAlignedPages()
/device/linaro/bootloader/edk2/MdeModulePkg/Library/SmmMemoryAllocationProfileLib/
DMemoryAllocationLib.c337 UINTN AlignedMemory; in InternalAllocateAlignedPages() local
365 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages()
366 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in InternalAllocateAlignedPages()
374 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in InternalAllocateAlignedPages()
391 AlignedMemory = (UINTN) Memory; in InternalAllocateAlignedPages()
393 return (VOID *) AlignedMemory; in InternalAllocateAlignedPages()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciPei/
DUsbHcMem.c586 UINTN AlignedMemory; in UsbHcAllocateAlignedPages() local
622 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in UsbHcAllocateAlignedPages()
635 AlignedMemory = (UINTN) Memory; in UsbHcAllocateAlignedPages()
638 *HostAddress = (VOID *) AlignedMemory; in UsbHcAllocateAlignedPages()
639 *DeviceAddress = (EFI_PHYSICAL_ADDRESS) AlignedMemory; in UsbHcAllocateAlignedPages()
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/
DPiSmmCpuDxeSmm.c1234 UINTN AlignedMemory; in AllocateAlignedCodePages() local
1262 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in AllocateAlignedCodePages()
1263 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in AllocateAlignedCodePages()
1271 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in AllocateAlignedCodePages()
1288 AlignedMemory = (UINTN) Memory; in AllocateAlignedCodePages()
1290 return (VOID *) AlignedMemory; in AllocateAlignedCodePages()