Home
last modified time | relevance | path

Searched refs:ALIGN_VALUE (Results 1 – 25 of 26) sorted by relevance

12

/device/linaro/bootloader/edk2/ArmPlatformPkg/PrePeiCore/
DMainUniCore.c42 PpiListSize = ALIGN_VALUE(PpiListSize, CPU_STACK_ALIGNMENT); in PrimaryMain()
57 …SecCoreData.PeiTemporaryRamSize = ALIGN_VALUE (SecCoreData.TemporaryRamSize / 2, CPU_STACK_ALIG… in PrimaryMain()
DMainMPCore.c133 PpiListSize = ALIGN_VALUE(PpiListSize, CPU_STACK_ALIGNMENT); in PrimaryMain()
148 …SecCoreData.PeiTemporaryRamSize = ALIGN_VALUE (SecCoreData.TemporaryRamSize / 2, CPU_STACK_ALIG… in PrimaryMain()
DPrePeiCore.c122 HeapSize = ALIGN_VALUE (CopySize / 2, CPU_STACK_ALIGNMENT); in PrePeiCoreTemporaryRamSupport()
/device/linaro/bootloader/edk2/OvmfPkg/Library/VirtioLib/
DVirtioLib.c63 RingSize = ALIGN_VALUE ( in VirtioRingInit()
71 RingSize += ALIGN_VALUE ( in VirtioRingInit()
102 ALIGN_VALUE (RingPagesPtr - (volatile UINT8 *) Ring->Base, in VirtioRingInit()
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/X64/
DSmmFuncsArch.c115 Size = ALIGN_VALUE(mGdtBufferSize, SIZE_4KB); in PatchGdtIdtMap()
133 Size = ALIGN_VALUE(gcSmiIdtr.Limit + 1, SIZE_4KB); in PatchGdtIdtMap()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Pei/Memory/
DMemoryServices.c187 …if ((UINTN) (*FreeMemoryTop - *FreeMemoryBottom) < (UINTN) ALIGN_VALUE (sizeof (EFI_HOB_MEMORY_ALL… in PeiAllocatePages()
191 …RemainingPages = (UINTN)(*FreeMemoryTop - *FreeMemoryBottom - ALIGN_VALUE (sizeof (EFI_HOB_MEMORY_… in PeiAllocatePages()
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/
DSmmFuncsArch.c146 Size = ALIGN_VALUE(mGdtBufferSize, SIZE_4KB); in PatchGdtIdtMap()
171 Size = ALIGN_VALUE(gcSmiIdtr.Limit + 1, SIZE_4KB); in PatchGdtIdtMap()
/device/linaro/bootloader/edk2/OvmfPkg/PlatformPei/
DMemDetect.c190 Pci64Base = ALIGN_VALUE (FirstNonAddress, (UINT64)SIZE_1GB); in GetFirstNonAddress()
191 Pci64Size = ALIGN_VALUE (Pci64Size, (UINT64)SIZE_1GB); in GetFirstNonAddress()
199 Pci64Base = ALIGN_VALUE (Pci64Base, GetPowerOfTwo64 (Pci64Size)); in GetFirstNonAddress()
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/AbootimgLib/
DAbootimgLib.c137 *ImgSize = ALIGN_VALUE (Header->KernelSize, Header->PageSize) + in GetImgSize()
138 ALIGN_VALUE (Header->RamdiskSize, Header->PageSize) + in GetImgSize()
139 ALIGN_VALUE (Header->SecondStageBootloaderSize, Header->PageSize) + in GetImgSize()
195 ALIGN_VALUE (Header->KernelSize, Header->PageSize)); in GetRamdiskInfo()
281 ALIGN_VALUE (Header->KernelSize, Header->PageSize)); in AllocateRamdisk()
464 BootImageSize = ALIGN_VALUE (BootImageSize, BlockIo->Media->BlockSize); in LoadBootImage()
/device/linaro/bootloader/edk2/EmulatorPkg/Sec/
DSec.c105 SecReseveredMemorySize = ALIGN_VALUE (SecReseveredMemorySize, CPU_STACK_ALIGNMENT); in _ModuleEntryPoint()
/device/linaro/bootloader/edk2/MdePkg/Include/
DBase.h823 #define ALIGN_VALUE(Value, Alignment) ((Value) + (((Alignment) - (Value)) & ((Alignment) - 1))) macro
838 #define ALIGN_POINTER(Pointer, Alignment) ((VOID *) (ALIGN_VALUE ((UINTN)(Pointer), (Alignment))))
852 #define ALIGN_VARIABLE(Value) ALIGN_VALUE ((Value), sizeof (UINTN))
/device/linaro/bootloader/edk2/SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/
DEdkiiSystemCapsuleLib.c142 … SectionHeader = (EFI_COMMON_SECTION_HEADER *)((UINTN)SectionHeader + ALIGN_VALUE(SectionSize, 4)); in GetSectionByType()
207 …FfsHeader = (EFI_FFS_FILE_HEADER *)((UINTN)FvHeader + ALIGN_VALUE((UINTN)FfsHeader - (UINTN)FvHead… in GetFfsByName()
243 FfsHeader = (EFI_FFS_FILE_HEADER *)((UINTN)FfsHeader + ALIGN_VALUE(FfsSize, 8)); in GetFfsByName()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/PciHostBridgeDxe/
DPciHostBridge.c620 BaseAddress = ALIGN_VALUE (BaseAddress, LShiftU64 (1, BitsOfAlignment)); in AllocateResource()
793 ALIGN_VALUE (RootBridge->Io.Base, Alignment + 1), in NotifyPhase()
803 ALIGN_VALUE (RootBridge->MemAbove4G.Base, Alignment + 1), in NotifyPhase()
818 ALIGN_VALUE (RootBridge->Mem.Base, Alignment + 1), in NotifyPhase()
828 ALIGN_VALUE (RootBridge->PMemAbove4G.Base, Alignment + 1), in NotifyPhase()
842 ALIGN_VALUE (RootBridge->PMem.Base, Alignment + 1), in NotifyPhase()
/device/linaro/bootloader/OpenPlatformPkg/Drivers/Net/Pp2Dxe/
DPp2Dxe.h76 #define MVPP2_ALIGN(x, m) ALIGN_VALUE((x), (m))
157 #define RX_BUFFER_SIZE (ALIGN_VALUE(MTU + WRAP, ARCH_DMA_MINALIGN))
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Library/PlatformHelperLib/
DPlatformHelperLib.c66 StepLen = ALIGN_VALUE (Length,SIZE_4KB); // Bring up to 4K boundary. in WriteFirstFreeSpiProtect()
/device/linaro/bootloader/edk2/ArmPlatformPkg/ArmVExpressPkg/ArmVExpressFastBootDxe/
DArmVExpressFastBoot.c122 BufferSize = ALIGN_VALUE (EntrySize * NumEntries, BlockIo->Media->BlockSize); in ReadPartitionEntries()
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/
DSmmCpuMemoryManagement.c693 TileCodeSize = ALIGN_VALUE(TileCodeSize, SIZE_4KB); in PatchSmmSaveStateMap()
695 TileDataSize = ALIGN_VALUE(TileDataSize, SIZE_4KB); in PatchSmmSaveStateMap()
DPiSmmCpuDxeSmm.c723 TileCodeSize = ALIGN_VALUE(TileCodeSize, SIZE_4KB); in PiCpuSmmEntry()
725 TileDataSize = ALIGN_VALUE(TileDataSize, SIZE_4KB); in PiCpuSmmEntry()
/device/linaro/bootloader/edk2/OvmfPkg/VirtioScsiDxe/
DVirtioScsi.c237 if (ALIGN_VALUE (Packet->OutTransferLength, 512) / 512 in PopulateRequest()
239 ALIGN_VALUE (Packet->InTransferLength, 512) / 512 in PopulateRequest()
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/
DMemoryAllocationLib.c227 AlignedMemory = ALIGN_VALUE (Memory, Alignment); in InternalAllocateAlignedPages()
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/SmmCpuFeaturesLib/
DSmmStm.c178 mMsegSize = ALIGN_VALUE (PcdGet32 (PcdCpuMsegSize), EFI_PAGE_SIZE); in SmmCpuFeaturesLibStmConstructor()
1073 return ALIGN_VALUE (VmxBasic.Bits.VmcsSize, SIZE_4KB); in GetVmcsSize()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/DxeIplPeim/
DDxeLoad.c412 ALIGN_VALUE (DxeCoreSize, EFI_PAGE_SIZE), in DxeLoadCore()
/device/linaro/bootloader/edk2/MdePkg/Library/SmmPeriodicSmiLib/
DSmmPeriodicSmiLib.c963 PeriodicSmiLibraryHandler->StackSize = ALIGN_VALUE (StackSize, EFI_PAGE_SIZE); in PeriodicSmiEnable()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Pei/Dispatcher/
DDispatcher.c718 NewStackSize = ALIGN_VALUE (NewStackSize, EFI_PAGE_SIZE); in PeiCheckAndSwitchStack()
823 BaseOfNewHeap = ALIGN_VALUE (BaseOfNewHeap + HoleMemSize, 8); in PeiCheckAndSwitchStack()
/device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Drivers/VirtualEhciPciIo/
DVirtualEhciPciIo.c419 …Status = gDS->SetMemorySpaceAttributes (*DeviceAddress & ~(BASE_4KB - 1), ALIGN_VALUE (*NumberOfBy… in EhciPciIoMap()

12