/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/PeiMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 176 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/ |
D | MemoryAllocationLib.c | 106 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/ |
D | MemoryAllocationLib.c | 181 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/ |
D | DebugImageInfo.c | 45 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/ |
D | MemoryAllocationLib.c | 192 UINTN AlignmentMask; in InternalAllocateAlignedPages() local 208 AlignmentMask = Alignment - 1; in InternalAllocateAlignedPages() 219 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages()
|
/device/linaro/bootloader/edk2/MdePkg/Library/UefiMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 183 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/SmmMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 310 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/ |
D | UncachedMemoryAllocationLib.c | 90 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/ |
D | UsbHcMem.c | 587 UINTN AlignmentMask; in UsbHcAllocateAlignedPages() local 607 AlignmentMask = Alignment - 1; in UsbHcAllocateAlignedPages() 622 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in UsbHcAllocateAlignedPages()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeCoreMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 225 UINTN AlignmentMask; in InternalAllocateAlignedPages() local 241 AlignmentMask = Alignment - 1; in InternalAllocateAlignedPages() 252 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/UefiMemoryAllocationProfileLib/ |
D | MemoryAllocationLib.c | 224 UINTN AlignmentMask; in InternalAllocateAlignedPages() local 240 AlignmentMask = Alignment - 1; in InternalAllocateAlignedPages() 251 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 260 UINTN AlignmentMask; in InternalAllocateAlignedPages() local 276 AlignmentMask = Alignment - 1; in InternalAllocateAlignedPages() 287 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/SmmMemoryAllocationProfileLib/ |
D | MemoryAllocationLib.c | 338 UINTN AlignmentMask; in InternalAllocateAlignedPages() local 354 AlignmentMask = Alignment - 1; in InternalAllocateAlignedPages() 365 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in InternalAllocateAlignedPages()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/ |
D | UsbHcMem.c | 633 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/ |
D | DebugUncachedMemoryAllocationLib.c | 213 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/ |
D | Gcd.c | 324 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/UefiCpuPkg/PiSmmCpuDxeSmm/ |
D | PiSmmCpuDxeSmm.c | 1235 UINTN AlignmentMask; in AllocateAlignedCodePages() local 1251 AlignmentMask = Alignment - 1; in AllocateAlignedCodePages() 1262 AlignedMemory = ((UINTN) Memory + AlignmentMask) & ~AlignmentMask; in AllocateAlignedCodePages()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/ |
D | IdeMode.c | 1565 UINTN AlignmentMask; in AtaUdmaInOut() local 1680 AlignmentMask = SIZE_64KB - 1; in AtaUdmaInOut() 1681 PrdTableBaseAddr = ((UINTN) BaseAddr + AlignmentMask) & ~AlignmentMask; in AtaUdmaInOut() 1682 PrdTableMapAddr = ((UINTN) BaseMapAddr + AlignmentMask) & ~AlignmentMask; in AtaUdmaInOut()
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Eot/ |
D | FvImage.py | 933 AlignmentMask = Alignment - 1 936 if (PayloadOffset & (~AlignmentMask)) == 0: 938 NewOffset = (PayloadOffset + AlignmentMask) & (~AlignmentMask)
|