Home
last modified time | relevance | path

Searched refs:AlignmentMask (Results 1 – 16 of 16) sorted by relevance

/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiMemoryAllocationLib/
DMemoryAllocationLib.c176 UINTN AlignmentMask; in InternalAllocateAlignedPages() local
195 AlignmentMask = Alignment; in InternalAllocateAlignedPages()
197 AlignmentMask = Alignment - 1; in InternalAllocateAlignedPages()
199 return (VOID *) (UINTN) (((UINTN) Memory + AlignmentMask) & ~AlignmentMask); in InternalAllocateAlignedPages()
677 UINTN AlignmentMask; in InternalAllocateAlignedPool() local
685 AlignmentMask = Alignment; in InternalAllocateAlignedPool()
687 AlignmentMask = Alignment - 1; in InternalAllocateAlignedPool()
692 ASSERT (AllocationSize <= (MAX_ADDRESS - AlignmentMask)); in InternalAllocateAlignedPool()
694 RawAddress = InternalAllocatePool (PoolType, AllocationSize + AlignmentMask); in InternalAllocateAlignedPool()
696 AlignedAddress = ((UINTN) RawAddress + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPool()
[all …]
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/PrePiMemoryAllocationLib/
DMemoryAllocationLib.c106 UINTN AlignmentMask; in AllocateAlignedPages() local
125 AlignmentMask = Alignment; in AllocateAlignedPages()
127 AlignmentMask = Alignment - 1; in AllocateAlignedPages()
129 return (VOID *) (UINTN) (((UINTN) Memory + AlignmentMask) & ~AlignmentMask); in AllocateAlignedPages()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeMemoryAllocationLib/
DMemoryAllocationLib.c181 UINTN AlignmentMask; in InternalAllocateAlignedPages() local
197 AlignmentMask = Alignment - 1; in InternalAllocateAlignedPages()
208 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages()
697 UINTN AlignmentMask; in InternalAllocateAlignedPool() local
708 AlignmentMask = Alignment; in InternalAllocateAlignedPool()
710 AlignmentMask = Alignment - 1; in InternalAllocateAlignedPool()
715 OverAllocationSize = sizeof (RawAddress) + AlignmentMask; in InternalAllocateAlignedPool()
726 AlignedAddress = ((UINTN) RawAddress + OverAllocationSize) & ~AlignmentMask; in InternalAllocateAlignedPool()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Misc/
DDebugImageInfo.c45 UINTN AlignmentMask; in CoreInitializeDebugImageInfoTable() local
55 AlignmentMask = SIZE_4MB - 1; in CoreInitializeDebugImageInfoTable()
97 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in CoreInitializeDebugImageInfoTable()
/device/linaro/bootloader/edk2/EmulatorPkg/Library/GuardUefiMemoryAllocationLib/
DMemoryAllocationLib.c192 UINTN AlignmentMask; in InternalAllocateAlignedPages() local
208 AlignmentMask = Alignment - 1; in InternalAllocateAlignedPages()
219 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages()
/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeCoreMemoryAllocationLib/
DMemoryAllocationLib.c183 UINTN AlignmentMask; in InternalAllocateAlignedPages() local
199 AlignmentMask = Alignment - 1; in InternalAllocateAlignedPages()
210 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages()
/device/linaro/bootloader/edk2/MdePkg/Library/UefiMemoryAllocationLib/
DMemoryAllocationLib.c183 UINTN AlignmentMask; in InternalAllocateAlignedPages() local
199 AlignmentMask = Alignment - 1; in InternalAllocateAlignedPages()
210 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages()
/device/linaro/bootloader/edk2/MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/
DMemoryAllocationLib.c232 UINTN AlignmentMask; in InternalAllocateAlignedPages() local
248 AlignmentMask = Alignment - 1; in InternalAllocateAlignedPages()
259 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages()
/device/linaro/bootloader/edk2/MdePkg/Library/SmmMemoryAllocationLib/
DMemoryAllocationLib.c310 UINTN AlignmentMask; in InternalAllocateAlignedPages() local
326 AlignmentMask = Alignment - 1; in InternalAllocateAlignedPages()
337 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages()
/device/linaro/bootloader/edk2/ArmPkg/Library/UncachedMemoryAllocationLib/
DUncachedMemoryAllocationLib.c90 UINTN AlignmentMask; in AllocatePagesFromList() local
144 AlignmentMask = Alignment - 1; in AllocatePagesFromList()
147 AlignmentMask = 0; in AllocatePagesFromList()
180 NewNode->Allocation = (VOID*)(((UINTN)Memory + AlignmentMask) & ~AlignmentMask); in AllocatePagesFromList()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciPei/
DUsbHcMem.c587 UINTN AlignmentMask; in UsbHcAllocateAlignedPages() local
607 AlignmentMask = Alignment - 1; in UsbHcAllocateAlignedPages()
622 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in UsbHcAllocateAlignedPages()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/
DUsbHcMem.c633 UINTN AlignmentMask; in UsbHcAllocateAlignedPages() local
654 AlignmentMask = Alignment - 1; in UsbHcAllocateAlignedPages()
672 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in UsbHcAllocateAlignedPages()
/device/linaro/bootloader/edk2/ArmPkg/Library/DebugUncachedMemoryAllocationLib/
DDebugUncachedMemoryAllocationLib.c213 UINTN AlignmentMask; in UncachedInternalAllocateAlignedPages() local
229 AlignmentMask = Alignment - 1; in UncachedInternalAllocateAlignedPages()
240 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in UncachedInternalAllocateAlignedPages()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Gcd/
DGcd.c324 UINT64 AlignmentMask; in AlignValue() local
326 AlignmentMask = LShiftU64 (1, Alignment) - 1; in AlignValue()
328 Value += AlignmentMask; in AlignValue()
330 return Value & (~AlignmentMask); in AlignValue()
1034 EFI_PHYSICAL_ADDRESS AlignmentMask; in CoreAllocateSpace() local
1095 AlignmentMask = LShiftU64 (1, Alignment) - 1; in CoreAllocateSpace()
1101 if ((*BaseAddress & AlignmentMask) != 0) { in CoreAllocateSpace()
1181 *BaseAddress = (*BaseAddress + 1 - Length) & (~AlignmentMask); in CoreAllocateSpace()
1183 *BaseAddress = (Entry->BaseAddress + AlignmentMask) & (~AlignmentMask); in CoreAllocateSpace()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/
DIdeMode.c1546 UINTN AlignmentMask; in AtaUdmaInOut() local
1661 AlignmentMask = SIZE_64KB - 1; in AtaUdmaInOut()
1662 PrdTableBaseAddr = ((UINTN) BaseAddr + AlignmentMask) & ~AlignmentMask; in AtaUdmaInOut()
1663 PrdTableMapAddr = ((UINTN) BaseMapAddr + AlignmentMask) & ~AlignmentMask; in AtaUdmaInOut()
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Eot/
DFvImage.py933 AlignmentMask = Alignment - 1
936 if (PayloadOffset & (~AlignmentMask)) == 0:
938 NewOffset = (PayloadOffset + AlignmentMask) & (~AlignmentMask)