Home
last modified time | relevance | path

Searched refs:EFI_PAGES_TO_SIZE (Results 1 – 25 of 75) sorted by relevance

123

/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryAllocationLib/
DMemoryAllocationLib.c248 if ((Memory + EFI_PAGES_TO_SIZE(TotalPages)) == (AlignedMemory + EFI_PAGES_TO_SIZE(Pages))) { in InternalAllocateAlignedPages()
274 HobLength = EFI_PAGES_TO_SIZE(Pages); in InternalAllocateAlignedPages()
296 HobLength = EFI_PAGES_TO_SIZE(Pages); 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()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/
DSetIdtEntry.c86 mPageFaultBuffer = (UINTN)(AsmReadCr3 () & mPhyMask) + EFI_PAGES_TO_SIZE(2); in HookPageFaultHandler()
88 mPageFaultBuffer = (UINTN)(AsmReadCr3 () & mPhyMask) + EFI_PAGES_TO_SIZE(6); in HookPageFaultHandler()
197 Address = mPageFaultBuffer + EFI_PAGES_TO_SIZE (mPageFaultIndex); in AcquirePage()
198 ZeroMem ((VOID *) Address, EFI_PAGES_TO_SIZE (1)); in AcquirePage()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/PiSmmCore/
DPage.c276 End = Memory + EFI_PAGES_TO_SIZE(NumberOfPages) - 1; in ConvertSmmMemoryMapEntry()
565 …apConsistencyCheckRange ((EFI_PHYSICAL_ADDRESS)(UINTN)Pages, (UINTN)EFI_PAGES_TO_SIZE(Pages->Numbe… in SmmMemoryMapConsistencyCheck()
599 Node = (FREE_PAGE_LIST*)((UINTN)Pages + EFI_PAGES_TO_SIZE (Top)); in InternalAllocPagesOnOneNode()
610 return (UINTN)Pages + EFI_PAGES_TO_SIZE (Bottom); in InternalAllocPagesOnOneNode()
636 (UINTN)Pages + EFI_PAGES_TO_SIZE (NumberOfPages) - 1 <= MaxAddress) { in InternalAllocMaxAddress()
668 EndAddress = Address + EFI_PAGES_TO_SIZE (NumberOfPages); in InternalAllocAddress()
672 if ((UINTN)Pages + EFI_PAGES_TO_SIZE (Pages->NumberOfPages) < EndAddress) { in InternalAllocAddress()
821 EFI_PAGES_TO_SIZE (NumberOfPages), in SmmAllocatePages()
893 Memory + EFI_PAGES_TO_SIZE (NumberOfPages) > (UINTN)Pages) { in SmmInternalFreePagesEx()
899 if ((UINTN)Pages + EFI_PAGES_TO_SIZE (Pages->NumberOfPages) > Memory) { in SmmInternalFreePagesEx()
[all …]
DPiSmmIpl.c840 SmmCodeSize = EFI_PAGES_TO_SIZE (PcdGet32(PcdLoadFixAddressSmmCodePageNumber)); in GetPeCoffImageFixLoadingAssignedAddress()
989 ASSERT (SmramRange->PhysicalSize > EFI_PAGES_TO_SIZE (PageCount)); in ExecuteSmmCoreFromSmram()
991 SmramRange->PhysicalSize -= EFI_PAGES_TO_SIZE (PageCount); in ExecuteSmmCoreFromSmram()
995 SmramRangeSmmCore->PhysicalSize = EFI_PAGES_TO_SIZE (PageCount); in ExecuteSmmCoreFromSmram()
1010 ASSERT (SmramRange->PhysicalSize > EFI_PAGES_TO_SIZE (PageCount)); in ExecuteSmmCoreFromSmram()
1012 SmramRange->PhysicalSize -= EFI_PAGES_TO_SIZE (PageCount); in ExecuteSmmCoreFromSmram()
1016 SmramRangeSmmCore->PhysicalSize = EFI_PAGES_TO_SIZE (PageCount); in ExecuteSmmCoreFromSmram()
/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeCoreMemoryAllocationLib/
DMemoryAllocationLib.c89 EFI_PAGES_TO_SIZE (Pages), in AllocatePages()
124 EFI_PAGES_TO_SIZE (Pages), in AllocateRuntimePages()
159 EFI_PAGES_TO_SIZE (Pages), in AllocateReservedPages()
261 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in InternalAllocateAlignedPages()
317 EFI_PAGES_TO_SIZE (Pages), in AllocateAlignedPages()
358 EFI_PAGES_TO_SIZE (Pages), in AllocateAlignedRuntimePages()
399 EFI_PAGES_TO_SIZE (Pages), in AllocateAlignedReservedPages()
/device/linaro/bootloader/edk2/MdeModulePkg/Library/UefiMemoryAllocationProfileLib/
DMemoryAllocationLib.c88 EFI_PAGES_TO_SIZE (Pages), in AllocatePages()
123 EFI_PAGES_TO_SIZE (Pages), in AllocateRuntimePages()
158 EFI_PAGES_TO_SIZE (Pages), in AllocateReservedPages()
260 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in InternalAllocateAlignedPages()
316 EFI_PAGES_TO_SIZE (Pages), in AllocateAlignedPages()
357 EFI_PAGES_TO_SIZE (Pages), in AllocateAlignedRuntimePages()
398 EFI_PAGES_TO_SIZE (Pages), in AllocateAlignedReservedPages()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/CapsulePei/X64/
DX64Entry.c95 …ntext->PageFaultBuffer = (UINTN)(AsmReadCr3 () & PageFaultContext->PhyMask) + EFI_PAGES_TO_SIZE(2); in HookPageFaultHandler()
97 …ntext->PageFaultBuffer = (UINTN)(AsmReadCr3 () & PageFaultContext->PhyMask) + EFI_PAGES_TO_SIZE(6); in HookPageFaultHandler()
118 …Address = PageFaultContext->PageFaultBuffer + EFI_PAGES_TO_SIZE (PageFaultContext->PageFaultIndex); in AcquirePage()
119 ZeroMem ((VOID *) Address, EFI_PAGES_TO_SIZE (1)); in AcquirePage()
/device/linaro/bootloader/edk2/OvmfPkg/Library/LockBoxLib/
DLockBoxDxe.c77 ZeroMem (Buffer, EFI_PAGES_TO_SIZE (Pages)); in AllocateMemoryBelow4G()
79 AllocRemaining = EFI_PAGES_TO_SIZE (Pages) - Size; in AllocateMemoryBelow4G()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/
DUsbHcMem.c56 Block->BufLen = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocMemBlock()
82 Bytes = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocMemBlock()
92 if (EFI_ERROR (Status) || (Bytes != EFI_PAGES_TO_SIZE (Pages))) { in UsbHcAllocMemBlock()
503 if (AllocSize > EFI_PAGES_TO_SIZE (USBHC_MEM_DEFAULT_PAGES)) { in UsbHcAllocateMem()
681 Memory = (VOID *)(UINTN)(AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in UsbHcAllocateAlignedPages()
708 Bytes = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocateAlignedPages()
718 if (EFI_ERROR (Status) || (Bytes != EFI_PAGES_TO_SIZE (Pages))) { in UsbHcAllocateAlignedPages()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciPei/
DUsbHcMem.c48 ZeroMem ((VOID *) (UINTN) TempPtr, EFI_PAGES_TO_SIZE (PageNumber)); in UsbHcAllocMemBlock()
57 Block->BufLen = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocMemBlock()
70 ZeroMem ((VOID *) (UINTN) TempPtr, EFI_PAGES_TO_SIZE (PageNumber)); in UsbHcAllocMemBlock()
82 ZeroMem ((VOID *) (UINTN) TempPtr, EFI_PAGES_TO_SIZE (Pages)); in UsbHcAllocMemBlock()
374 ZeroMem ((VOID *) (UINTN) TempPtr, EFI_PAGES_TO_SIZE (PageNumber)); in UsbHcInitMemPool()
467 if (AllocSize > EFI_PAGES_TO_SIZE (USBHC_MEM_DEFAULT_PAGES)) { in UsbHcAllocateMem()
/device/linaro/bootloader/edk2/MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/
DMemoryAllocationLib.c125 EFI_PAGES_TO_SIZE(Pages), in AllocatePages()
160 EFI_PAGES_TO_SIZE(Pages), in AllocateRuntimePages()
296 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in InternalAllocateAlignedPages()
352 EFI_PAGES_TO_SIZE(Pages), in AllocateAlignedPages()
393 EFI_PAGES_TO_SIZE(Pages), in AllocateAlignedRuntimePages()
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Dxe/
DUsbHcMem.c56 Block->BufLen = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocMemBlock()
82 Bytes = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocMemBlock()
92 if (EFI_ERROR (Status) || (Bytes != EFI_PAGES_TO_SIZE (Pages))) { in UsbHcAllocMemBlock()
470 if (AllocSize > EFI_PAGES_TO_SIZE (USBHC_MEM_DEFAULT_PAGES)) { in UsbHcAllocateMem()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/UhciDxe/
DUsbHcMem.c55 Block->BufLen = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocMemBlock()
81 Bytes = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocMemBlock()
91 if (EFI_ERROR (Status) || (Bytes != EFI_PAGES_TO_SIZE (Pages))) { in UsbHcAllocMemBlock()
468 if (AllocSize > EFI_PAGES_TO_SIZE (USBHC_MEM_DEFAULT_PAGES)) { in UsbHcAllocateMem()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/EhciDxe/
DUsbHcMem.c56 Block->BufLen = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocMemBlock()
82 Bytes = EFI_PAGES_TO_SIZE (Pages); in UsbHcAllocMemBlock()
92 if (EFI_ERROR (Status) || (Bytes != EFI_PAGES_TO_SIZE (Pages))) { in UsbHcAllocMemBlock()
470 if (AllocSize > EFI_PAGES_TO_SIZE (USBHC_MEM_DEFAULT_PAGES)) { in UsbHcAllocateMem()
/device/linaro/bootloader/edk2/MdeModulePkg/Library/SmmMemoryAllocationProfileLib/
DMemoryAllocationLib.c202 EFI_PAGES_TO_SIZE(Pages), in AllocatePages()
237 EFI_PAGES_TO_SIZE(Pages), in AllocateRuntimePages()
374 Memory = (EFI_PHYSICAL_ADDRESS) (AlignedMemory + EFI_PAGES_TO_SIZE (Pages)); in InternalAllocateAlignedPages()
431 EFI_PAGES_TO_SIZE(Pages), in AllocateAlignedPages()
473 EFI_PAGES_TO_SIZE(Pages), in AllocateAlignedRuntimePages()
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/
DSmmCpuMemoryManagement.c806 EFI_PAGES_TO_SIZE((UINTN)MemoryMap->NumberOfPages), in SetMemMapAttributes()
813 EFI_PAGES_TO_SIZE((UINTN)MemoryMap->NumberOfPages), in SetMemMapAttributes()
820 EFI_PAGES_TO_SIZE((UINTN)MemoryMap->NumberOfPages), in SetMemMapAttributes()
941 MemoryBlockLength = (UINT64) (EFI_PAGES_TO_SIZE((UINTN)MemoryMapEntry->NumberOfPages)); in MergeMemoryMapForNotPresentEntry()
1055 …lx\n", MemoryMap->PhysicalStart, MemoryMap->PhysicalStart + (UINT64)EFI_PAGES_TO_SIZE((UINTN)Memor… in SetUefiMemMapAttributes()
1058 EFI_PAGES_TO_SIZE((UINTN)MemoryMap->NumberOfPages), in SetUefiMemMapAttributes()
1096 … (Address < MemoryMap->PhysicalStart + EFI_PAGES_TO_SIZE((UINTN)MemoryMap->NumberOfPages)) ) { in IsSmmCommBufferForbiddenAddress()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Ufs/UfsBlockIoPei/
DUfsHcMem.c53 Block->BufLen = EFI_PAGES_TO_SIZE (Pages); in UfsPeimAllocMemBlock()
74 ZeroMem ((VOID*)(UINTN)Address, EFI_PAGES_TO_SIZE (Pages)); in UfsPeimAllocMemBlock()
363 if (AllocSize > EFI_PAGES_TO_SIZE (UFS_PEIM_MEM_DEFAULT_PAGES)) { in UfsPeimAllocateMem()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Sd/SdBlockIoPei/
DSdHcMem.c53 Block->BufLen = EFI_PAGES_TO_SIZE (Pages); in SdPeimAllocMemBlock()
74 ZeroMem ((VOID*)(UINTN)Address, EFI_PAGES_TO_SIZE (Pages)); in SdPeimAllocMemBlock()
363 if (AllocSize > EFI_PAGES_TO_SIZE (SD_PEIM_MEM_DEFAULT_PAGES)) { in SdPeimAllocateMem()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Sd/EmmcBlockIoPei/
DEmmcHcMem.c53 Block->BufLen = EFI_PAGES_TO_SIZE (Pages); in EmmcPeimAllocMemBlock()
74 ZeroMem ((VOID*)(UINTN)Address, EFI_PAGES_TO_SIZE (Pages)); in EmmcPeimAllocMemBlock()
363 if (AllocSize > EFI_PAGES_TO_SIZE (EMMC_PEIM_MEM_DEFAULT_PAGES)) { in EmmcPeimAllocateMem()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Compatibility/SmmBaseHelper/
DSmmBaseHelper.c358 PFAddress < (UINTN)mFrameworkSmst->CpuSaveState + EFI_PAGES_TO_SIZE (NumCpuStatePages) in PageFaultHandler()
393 …NTN)BitFieldRead64 ((UINT64) (UINTN) mFrameworkSmst->CpuSaveState + EFI_PAGES_TO_SIZE(NumCpuStateP… in WriteBackDirtyPages()
575 Top2MPage = (CpuStatePage + EFI_PAGES_TO_SIZE (NumCpuStatePages * 2) - 1) & ~(SIZE_2MB-1); in InitHook()
577 …CpuStatePage + EFI_PAGES_TO_SIZE (NumCpuStatePages * 2) - Top2MPage >= EFI_PAGES_TO_SIZE (NumCpuSt… in InitHook()
582 …FrameworkSmst->CpuSaveState = (EFI_SMM_CPU_SAVE_STATE *)(CpuStatePage + EFI_PAGES_TO_SIZE (NumCpuS… in InitHook()
586 FreePages ((VOID*)(CpuStatePage + EFI_PAGES_TO_SIZE (NumCpuStatePages)), NumCpuStatePages); in InitHook()
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/SmmCpuFeaturesLib/
DSmmStm.c332 …Psd->StmProtectionExceptionHandler.SpeRsp += EFI_PAGES_TO_SIZE (EFI_SIZE_TO_PAGES (PcdGet32 (PcdCp… in SmmCpuFeaturesInstallSmiHandler()
905 NewResourceSize = EFI_PAGES_TO_SIZE (EFI_SIZE_TO_PAGES (ResourceSize + sizeof(mRscEndNode))); in AddPiResource()
935 NewResourceSize = EFI_PAGES_TO_SIZE (EFI_SIZE_TO_PAGES (NewResourceSize)); in AddPiResource()
1111 MinMsegSize = (EFI_PAGES_TO_SIZE (EFI_SIZE_TO_PAGES (StmHeader->SwStmHdr.StaticImageSize)) + in StmCheckStmImage()
1122 if (MinMsegSize < StmHeader->HwStmHdr.Cr3Offset + EFI_PAGES_TO_SIZE(6)) { in StmCheckStmImage()
1123 MinMsegSize = StmHeader->HwStmHdr.Cr3Offset + EFI_PAGES_TO_SIZE(6); in StmCheckStmImage()
/device/linaro/bootloader/edk2/ArmVirtPkg/Library/PlatformPeiLib/
DPlatformPeiLib.c55 fdt_open_into (Base, NewBase, EFI_PAGES_TO_SIZE (FdtPages)); in PlatformPeim()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/CapsuleRuntimeDxe/X64/
DSaveLongModeContext.c165 …dress = (EFI_PHYSICAL_ADDRESS)(UINTN)AllocateReservedMemoryBelow4G (EFI_PAGES_TO_SIZE (TotalPagesN… in PrepareContextForCapsulePei()
/device/linaro/bootloader/edk2/OvmfPkg/SmmAccess/
DSmramInternal.c164 EFI_PAGES_TO_SIZE (EFI_SIZE_TO_PAGES (sizeof (SMM_S3_RESUME_STATE))); in SmramAccessGetCapabilities()
/device/linaro/bootloader/edk2/OvmfPkg/Library/LoadLinuxLib/
DLinux.c357 LastE820->size += EFI_PAGES_TO_SIZE ((UINTN) MemoryMap->NumberOfPages); in SetupLinuxMemmap()
358 LastEndAddr += EFI_PAGES_TO_SIZE ((UINTN) MemoryMap->NumberOfPages); in SetupLinuxMemmap()
365 E820->size = EFI_PAGES_TO_SIZE ((UINTN) MemoryMap->NumberOfPages); in SetupLinuxMemmap()

123