HomeSort by relevance Sort by last modified time
    Searched defs:AlignedMemory (Results 1 - 15 of 15) sorted by null

  /external/libchrome/base/memory/
aligned_memory.h 5 // AlignedMemory is a POD type that gives you a portable way to specify static
9 // destruction), use AlignedMemory:
11 // static AlignedMemory<sizeof(MyClass), ALIGNOF(MyClass)> my_class;
51 // AlignedMemory is specialized for all supported alignments.
54 struct AlignedMemory {};
58 class AlignedMemory<Size, byte_alignment> { \
  /device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Misc/
DebugImageInfo.c 44 UINTN AlignedMemory;
97 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask;
98 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN)Memory);
106 Memory = (EFI_PHYSICAL_ADDRESS)(AlignedMemory + EFI_PAGES_TO_SIZE (Pages));
119 mDebugTable = (EFI_SYSTEM_TABLE_POINTER *)(AlignedMemory);
  /device/linaro/bootloader/edk2/EmulatorPkg/Library/GuardUefiMemoryAllocationLib/
MemoryAllocationLib.c 191 UINTN AlignedMemory;
219 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask;
220 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory);
227 Memory = (VOID *) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages));
243 AlignedMemory = (UINTN) Memory;
245 return (VOID *) AlignedMemory;
  /device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciPei/
UsbHcMem.c 586 UINTN AlignedMemory;
622 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask;
635 AlignedMemory = (UINTN) Memory;
638 *HostAddress = (VOID *) AlignedMemory;
639 *DeviceAddress = (EFI_PHYSICAL_ADDRESS) AlignedMemory;
  /device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeCoreMemoryAllocationLib/
MemoryAllocationLib.c 224 UINTN AlignedMemory;
252 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask;
253 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory);
261 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages));
278 AlignedMemory = (UINTN) Memory;
280 return (VOID *) AlignedMemory;
    [all...]
  /device/linaro/bootloader/edk2/MdeModulePkg/Library/UefiMemoryAllocationProfileLib/
MemoryAllocationLib.c 223 UINTN AlignedMemory;
251 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask;
252 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory);
260 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages));
277 AlignedMemory = (UINTN) Memory;
279 return (VOID *) AlignedMemory;
    [all...]
  /device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/
MemoryAllocationLib.c 184 EFI_PHYSICAL_ADDRESS AlignedMemory;
225 AlignedMemory = Memory;
227 AlignedMemory = ALIGN_VALUE (Memory, Alignment);
229 DEBUG ((DEBUG_INFO, "After aligning to 0x%X bytes: Address = 0x%LX, Pages = 0x%X \n", Alignment, AlignedMemory, Pages));
236 // Before mem HOB covers the region between "Memory" and "AlignedMemory"
237 // Aligned mem HOB covers the region between "AlignedMemory" and "AlignedMemory + EFI_PAGES_TO_SIZE(Pages)"
238 // After mem HOB covers the region between "AlignedMemory + EFI_PAGES_TO_SIZE(Pages)" and "Memory + EFI_PAGES_TO_SIZE(TotalPages)"
245 if (Memory == AlignedMemory) {
248 if ((Memory + EFI_PAGES_TO_SIZE(TotalPages)) == (AlignedMemory + EFI_PAGES_TO_SIZE(Pages))) {
    [all...]
  /device/linaro/bootloader/edk2/MdePkg/Library/UefiMemoryAllocationLib/
MemoryAllocationLib.c 182 UINTN AlignedMemory;
210 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask;
211 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory);
219 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages));
236 AlignedMemory = (UINTN) Memory;
238 return (VOID *) AlignedMemory;
  /device/linaro/bootloader/edk2/ArmPkg/Library/DebugUncachedMemoryAllocationLib/
DebugUncachedMemoryAllocationLib.c 212 EFI_PHYSICAL_ADDRESS AlignedMemory;
240 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask;
241 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory);
249 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages));
266 AlignedMemory = (UINTN) Memory;
269 Status = gVirtualUncachedPages->ConvertPages (gVirtualUncachedPages, AlignedMemory, Pages * EFI_PAGE_SIZE, PcdGet64 (PcdArmUncachedMemoryMask), &gAttributes);
274 AlignedMemory = (EFI_PHYSICAL_ADDRESS)(UINTN)ConvertToUncachedAddress ((VOID *)(UINTN)AlignedMemory);
276 return (VOID *)(UINTN)AlignedMemory;
  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeMemoryAllocationLib/
MemoryAllocationLib.c 180 UINTN AlignedMemory;
208 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask;
209 UnalignedPages = EFI_SIZE_TO_PAGES ((UINTN) Memory - AlignedMemory);
217 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages));
234 AlignedMemory = (UINTN) Memory;
236 return (VOID *) AlignedMemory;
    [all...]
  /device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/
UsbHcMem.c 632 UINTN AlignedMemory;
672 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask;
673 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory);
681 Memory = (VOID *)(UINTN)(AlignedMemory + EFI_PAGES_TO_SIZE (Pages));
705 AlignedMemory = (UINTN) Memory;
712 (VOID *) AlignedMemory,
719 Status = PciIo->FreeBuffer (PciIo, Pages, (VOID *) AlignedMemory);
723 *HostAddress = (VOID *) AlignedMemory;
  /device/linaro/bootloader/edk2/MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/
MemoryAllocationLib.c 259 UINTN AlignedMemory;
287 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask;
288 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory);
296 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages));
313 AlignedMemory = (UINTN) Memory;
315 return (VOID *) AlignedMemory;
    [all...]
  /device/linaro/bootloader/edk2/MdeModulePkg/Library/SmmMemoryAllocationProfileLib/
MemoryAllocationLib.c 337 UINTN AlignedMemory;
365 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask;
366 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory);
374 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages));
391 AlignedMemory = (UINTN) Memory;
393 return (VOID *) AlignedMemory;
    [all...]
  /device/linaro/bootloader/edk2/MdePkg/Library/SmmMemoryAllocationLib/
MemoryAllocationLib.c 309 UINTN AlignedMemory;
337 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask;
338 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory);
346 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages));
363 AlignedMemory = (UINTN) Memory;
365 return (VOID *) AlignedMemory;
    [all...]
  /device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/
PiSmmCpuDxeSmm.c     [all...]

Completed in 1498 milliseconds