Home
last modified time | relevance | path

Searched refs:EFI_PAGE_SIZE (Results 1 – 25 of 136) sorted by relevance

123456

/device/linaro/bootloader/edk2/OvmfPkg/XenPvBlkDxe/
DBlockIo.c125 NewBuffer = AllocateAlignedPages((BufferSize + EFI_PAGE_SIZE) / EFI_PAGE_SIZE, in XenPvBlkDxeBlockIoReadWriteBlocks()
136 FreeAlignedPages (NewBuffer, (BufferSize + EFI_PAGE_SIZE) / EFI_PAGE_SIZE); in XenPvBlkDxeBlockIoReadWriteBlocks()
145 IoData.Size = MIN (BLKIF_MAX_SEGMENTS_PER_REQUEST * EFI_PAGE_SIZE, in XenPvBlkDxeBlockIoReadWriteBlocks()
148 IoData.Size = MIN ((BLKIF_MAX_SEGMENTS_PER_REQUEST - 1) * EFI_PAGE_SIZE, in XenPvBlkDxeBlockIoReadWriteBlocks()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Compatibility/AcpiVariableHobOnSmramReserveHobThunk/
DAcpiVariableHobOnSmramReserveHobThunk.c118 NewDescriptorBlock->Descriptor[SmramRanges - 1].PhysicalSize = EFI_PAGE_SIZE; in SplitSmramReserveHob()
124 NewDescriptorBlock->Descriptor[SmramRanges].PhysicalStart += EFI_PAGE_SIZE; in SplitSmramReserveHob()
125 NewDescriptorBlock->Descriptor[SmramRanges].CpuStart += EFI_PAGE_SIZE; in SplitSmramReserveHob()
126 NewDescriptorBlock->Descriptor[SmramRanges].PhysicalSize -= EFI_PAGE_SIZE; in SplitSmramReserveHob()
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/PrePiMemoryAllocationLib/
DMemoryAllocationLib.c58 …if (Hob.HandoffInformationTable->EfiFreeMemoryTop - ((Pages * EFI_PAGE_SIZE) + sizeof (EFI_HOB_MEM… in AllocatePages()
64 Hob.HandoffInformationTable->EfiFreeMemoryTop -= Pages * EFI_PAGE_SIZE; in AllocatePages()
74 Pages * EFI_PAGE_SIZE, in AllocatePages()
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Opal/OpalPasswordSmm/
DOpalNvmeMode.c56 …GetBaseMemPages (BASEMEM_CONTROLLER_DATA)) * EFI_PAGE_SIZE), EFI_PAGE_SIZE))
57 …GetBaseMemPages (BASEMEM_IDENTIFY_DATA)) * EFI_PAGE_SIZE), EFI_PAGE_SIZE))
58 …GetBaseMemPages (BASEMEM_ASQ)) * EFI_PAGE_SIZE), EFI_PAGE_SIZE))
59 …GetBaseMemPages (BASEMEM_ACQ)) * EFI_PAGE_SIZE), EFI_PAGE_SIZE))
60 …GetBaseMemPages (BASEMEM_SQ) + ((index)*(NVME_MAX_IO_QUEUES-1))) * EFI_PAGE_SIZE), EFI_PAGE_SIZE))
61 …GetBaseMemPages (BASEMEM_CQ) + ((index)*(NVME_MAX_IO_QUEUES-1))) * EFI_PAGE_SIZE), EFI_PAGE_SIZE))
62 …GetBaseMemPages (BASEMEM_PRP) + ((index)*NVME_PRP_SIZE)) * EFI_PAGE_SIZE), EFI_PAGE_SIZE))
63 …GetBaseMemPages (BASEMEM_SECURITY)) * EFI_PAGE_SIZE), EFI_PAGE_SIZE))
736 PrpEntryNo = EFI_PAGE_SIZE / sizeof (UINT64); in NvmeCreatePrpList()
762 PrpListBase = *(UINT64*)PrpListHost + PrpListIndex * EFI_PAGE_SIZE; in NvmeCreatePrpList()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/NvmExpressDxe/
DNvmExpressPassthru.c237 PrpEntryNo = EFI_PAGE_SIZE / sizeof (UINT64); in NvmeCreatePrpList()
285 PrpListBase = *(UINT64*)PrpListHost + PrpListIndex * EFI_PAGE_SIZE; in NvmeCreatePrpList()
293 PhysicalAddr += EFI_PAGE_SIZE; in NvmeCreatePrpList()
298 …(UINT64*)(UINTN)PrpListBase + PrpEntryIndex) = PrpListPhyAddr + (PrpListIndex + 1) * EFI_PAGE_SIZE; in NvmeCreatePrpList()
305 PrpListBase = *(UINT64*)PrpListHost + PrpListIndex * EFI_PAGE_SIZE; in NvmeCreatePrpList()
308 PhysicalAddr += EFI_PAGE_SIZE; in NvmeCreatePrpList()
553 Offset = ((UINT16)Sq->Prp[0]) & (EFI_PAGE_SIZE - 1); in NvmExpressPassThru()
556 if ((Offset + Bytes) > (EFI_PAGE_SIZE * 2)) { in NvmExpressPassThru()
560 PhyAddr = (Sq->Prp[0] + EFI_PAGE_SIZE) & ~(EFI_PAGE_SIZE - 1); in NvmExpressPassThru()
567 } else if ((Offset + Bytes) > EFI_PAGE_SIZE) { in NvmExpressPassThru()
[all …]
DNvmExpressHci.c701 CommandPacket.TransferLength = EFI_PAGE_SIZE; in NvmeCreateIoCompletionQueue()
770 CommandPacket.TransferLength = EFI_PAGE_SIZE; in NvmeCreateIoSubmissionQueue()
932 Acq = (UINT64)(UINTN)(Private->BufferPciAddr + EFI_PAGE_SIZE) & ~0xFFF; in NvmeControllerInit()
940 Private->CqBuffer[0] = (NVME_CQ *)(UINTN)(Private->Buffer + 1 * EFI_PAGE_SIZE); in NvmeControllerInit()
941 Private->CqBufferPciAddr[0] = (NVME_CQ *)(UINTN)(Private->BufferPciAddr + 1 * EFI_PAGE_SIZE); in NvmeControllerInit()
942 Private->SqBuffer[1] = (NVME_SQ *)(UINTN)(Private->Buffer + 2 * EFI_PAGE_SIZE); in NvmeControllerInit()
943 Private->SqBufferPciAddr[1] = (NVME_SQ *)(UINTN)(Private->BufferPciAddr + 2 * EFI_PAGE_SIZE); in NvmeControllerInit()
944 Private->CqBuffer[1] = (NVME_CQ *)(UINTN)(Private->Buffer + 3 * EFI_PAGE_SIZE); in NvmeControllerInit()
945 Private->CqBufferPciAddr[1] = (NVME_CQ *)(UINTN)(Private->BufferPciAddr + 3 * EFI_PAGE_SIZE); in NvmeControllerInit()
946 Private->SqBuffer[2] = (NVME_SQ *)(UINTN)(Private->Buffer + 4 * EFI_PAGE_SIZE); in NvmeControllerInit()
[all …]
DNvmExpressHci.h25 #define NVME_ASQ_BUF_OFFSET EFI_PAGE_SIZE
/device/linaro/bootloader/edk2/IntelFrameworkPkg/Library/PeiHobLibFramework/
DHobLib.c285 ASSERT (((MemoryAllocationModule & (EFI_PAGE_SIZE - 1)) == 0) && in BuildModuleHob()
286 ((ModuleLength & (EFI_PAGE_SIZE - 1)) == 0)); in BuildModuleHob()
704 ASSERT (((BaseAddress & (EFI_PAGE_SIZE - 1)) == 0) && in BuildStackHob()
705 ((Length & (EFI_PAGE_SIZE - 1)) == 0)); in BuildStackHob()
747 ASSERT (((BaseAddress & (EFI_PAGE_SIZE - 1)) == 0) && in BuildBspStoreHob()
748 ((Length & (EFI_PAGE_SIZE - 1)) == 0)); in BuildBspStoreHob()
790 ASSERT (((BaseAddress & (EFI_PAGE_SIZE - 1)) == 0) && in BuildMemoryAllocationHob()
791 ((Length & (EFI_PAGE_SIZE - 1)) == 0)); in BuildMemoryAllocationHob()
/device/linaro/bootloader/edk2/MdePkg/Library/PeiHobLib/
DHobLib.c281 ASSERT (((MemoryAllocationModule & (EFI_PAGE_SIZE - 1)) == 0) && in BuildModuleHob()
282 ((ModuleLength & (EFI_PAGE_SIZE - 1)) == 0)); in BuildModuleHob()
702 ASSERT (((BaseAddress & (EFI_PAGE_SIZE - 1)) == 0) && in BuildStackHob()
703 ((Length & (EFI_PAGE_SIZE - 1)) == 0)); in BuildStackHob()
745 ASSERT (((BaseAddress & (EFI_PAGE_SIZE - 1)) == 0) && in BuildBspStoreHob()
746 ((Length & (EFI_PAGE_SIZE - 1)) == 0)); in BuildBspStoreHob()
788 ASSERT (((BaseAddress & (EFI_PAGE_SIZE - 1)) == 0) && in BuildMemoryAllocationHob()
789 ((Length & (EFI_PAGE_SIZE - 1)) == 0)); in BuildMemoryAllocationHob()
/device/linaro/bootloader/edk2/DuetPkg/EfiLdr/
DEfiLoader.c125 ZeroMem ((VOID *)(UINTN)BfvBase, BfvPageNumber * EFI_PAGE_SIZE); in EfiLoader()
261 Handoff.BfvSize = BfvPageNumber * EFI_PAGE_SIZE; in EfiLoader()
263 Handoff.DxeIplImageSize = DxeIplImage.NoPages * EFI_PAGE_SIZE; in EfiLoader()
265 Handoff.DxeCoreImageSize = DxeCoreImage.NoPages * EFI_PAGE_SIZE; in EfiLoader()
DSupport.c49 Temp = DivU64x32 ((BaseAddress - Desc[Index].PhysicalStart), EFI_PAGE_SIZE) + NoPages; in EfiAddMemoryDescriptor()
54 Desc[*NoDesc].PhysicalStart = BaseAddress + MultU64x32 (NoPages, EFI_PAGE_SIZE); in EfiAddMemoryDescriptor()
71 Desc[Index].PhysicalStart += MultU64x32 (NoPages, EFI_PAGE_SIZE); in EfiAddMemoryDescriptor()
196 Length = Length + (BaseAddress & EFI_PAGE_MASK) - EFI_PAGE_SIZE; in GenMemoryMap()
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/S3Support/Dxe/
DQncS3Support.c46 ContextStoreSize = EFI_PAGE_SIZE; in CreateContextBuffer()
135 …DEBUG_INFO, "QncS3SupportEntry Contex = %08x, Size = %08x\n", (UINTN)mS3Parameter, EFI_PAGE_SIZE)); in QncS3SupportEntryPoint()
418 …DEBUG_INFO, "SaveLockBox QncS3Context = %08x, Size = %08x\n", (UINTN)mS3Parameter, EFI_PAGE_SIZE)); in QncS3BootEvent()
419 SaveLockBox(&gQncS3ContextInLockBoxGuid, (VOID *)mS3Parameter, EFI_PAGE_SIZE); in QncS3BootEvent()
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Pei/
DUsbHcMem.c57 ZeroMem ((VOID *)(UINTN)TempPtr, PageNumber*EFI_PAGE_SIZE); in UsbHcAllocMemBlock()
63 ASSERT (USBHC_MEM_UNIT * 8 <= EFI_PAGE_SIZE); in UsbHcAllocMemBlock()
78 ZeroMem ((VOID *)(UINTN)TempPtr, PageNumber*EFI_PAGE_SIZE); in UsbHcAllocMemBlock()
87 ZeroMem ((VOID *)(UINTN)TempPtr, Pages*EFI_PAGE_SIZE); in UsbHcAllocMemBlock()
304 ZeroMem ((VOID *)(UINTN)TempPtr, PageNumber*EFI_PAGE_SIZE); in UsbHcInitMemPool()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/EhciPei/
DUsbHcMem.c56 ZeroMem ((VOID *)(UINTN)TempPtr, PageNumber*EFI_PAGE_SIZE); in UsbHcAllocMemBlock()
62 ASSERT (USBHC_MEM_UNIT * 8 <= EFI_PAGE_SIZE); in UsbHcAllocMemBlock()
78 ZeroMem ((VOID *)(UINTN)TempPtr, PageNumber*EFI_PAGE_SIZE); in UsbHcAllocMemBlock()
88 ZeroMem ((VOID *)(UINTN)TempPtr, Pages*EFI_PAGE_SIZE); in UsbHcAllocMemBlock()
302 ZeroMem ((VOID *)(UINTN)TempPtr, PageNumber*EFI_PAGE_SIZE); in UsbHcInitMemPool()
/device/linaro/bootloader/edk2/ArmPkg/Library/UncachedMemoryAllocationLib/
DUncachedMemoryAllocationLib.c114 mFreedBufferSize -= Pages * EFI_PAGE_SIZE; in AllocatePagesFromList()
133 mFreedBufferSize -= NewNode->Pages * EFI_PAGE_SIZE; in AllocatePagesFromList()
143 if (Alignment > EFI_PAGE_SIZE) { in AllocatePagesFromList()
223 mFreedBufferSize += Node->Pages * EFI_PAGE_SIZE; in FreePagesFromList()
300 return UncachedInternalAllocateAlignedPages (MemoryType, Pages, EFI_PAGE_SIZE); in UncachedInternalAllocatePages()
395 if (Alignment < EFI_PAGE_SIZE) { in UncachedInternalAllocateAlignedPool()
396 Alignment = EFI_PAGE_SIZE; in UncachedInternalAllocateAlignedPool()
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/
DMpService.c758 Low2MBoundary = (mSmmStackArrayBase + EFI_PAGE_SIZE) & ~(SIZE_2MB-1); in Gen4GPageTable()
763 High2MBoundary = (mSmmStackArrayEnd - mSmmStackSize + EFI_PAGE_SIZE * 2) & ~(SIZE_2MB-1); in Gen4GPageTable()
784 …Pte[Index] = (UINTN)PageTable + EFI_PAGE_SIZE * (Index + 1) + (Is32BitPageTable ? IA32_PAE_PDPTE_A… in Gen4GPageTable()
786 Pte += EFI_PAGE_SIZE / sizeof (*Pte); in Gen4GPageTable()
791 for (Index = 0; Index < EFI_PAGE_SIZE * 4 / sizeof (*Pte); Index++) { in Gen4GPageTable()
797 GuardPage = mSmmStackArrayBase + EFI_PAGE_SIZE; in Gen4GPageTable()
800 … Pte = (UINT64*)(UINTN)(Pdpte[BitFieldRead32 ((UINT32)PageIndex, 30, 31)] & ~(EFI_PAGE_SIZE - 1)); in Gen4GPageTable()
807 for (Index = 0; Index < EFI_PAGE_SIZE / sizeof (*Pte); Index++) { in Gen4GPageTable()
820 PageAddress+= EFI_PAGE_SIZE; in Gen4GPageTable()
822 Pages += EFI_PAGE_SIZE; in Gen4GPageTable()
[all …]
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/X64/
DSmmProfileArch.c56 ZeroMem (PTEntry + 1, EFI_PAGE_SIZE - sizeof (*PTEntry)); in InitSmmS3Cr3()
86 ZeroMem ((VOID *) (UINTN) mPFPageBuffer, EFI_PAGE_SIZE * MAX_PF_PAGE_COUNT); in InitPagesForPFHandler()
109 ZeroMem ((VOID *) (UINTN) Address, EFI_PAGE_SIZE); in AcquirePage()
DPageTbl.c280 ZeroMem (PTEntry + 1, EFI_PAGE_SIZE - sizeof (*PTEntry)); in SmmInitPageTable()
297 FreePage += EFI_PAGE_SIZE / sizeof (*FreePage); in SmmInitPageTable()
453 for (Pml4Index = 0; Pml4Index < EFI_PAGE_SIZE / sizeof (*Pml4); Pml4Index++) { in ReclaimPages()
462 for (PdptIndex = 0; PdptIndex < EFI_PAGE_SIZE / sizeof (*Pdpt); PdptIndex++) { in ReclaimPages()
483 for (PdtIndex = 0; PdtIndex < EFI_PAGE_SIZE / sizeof(*Pdt); PdtIndex++) { in ReclaimPages()
652 ZeroMem ((VOID*)(UINTN)RetVal, EFI_PAGE_SIZE); in AllocPage()
828 GuardPageAddress = (mSmmStackArrayBase + EFI_PAGE_SIZE + CpuIndex * mSmmStackSize); in SmiPFHandler()
831 (PFAddress < (GuardPageAddress + EFI_PAGE_SIZE))) { in SmiPFHandler()
/device/linaro/bootloader/edk2/EmulatorPkg/Library/GuardUefiMemoryAllocationLib/
DMemoryAllocationLib.c60 return gEmuThunk->Valloc (Pages * EFI_PAGE_SIZE); in InternalAllocatePages()
204 if (Alignment > EFI_PAGE_SIZE) { in InternalAllocateAlignedPages()
215 Memory = gEmuThunk->Valloc (Pages * EFI_PAGE_SIZE); in InternalAllocateAlignedPages()
239 Memory = gEmuThunk->Valloc (Pages * EFI_PAGE_SIZE); in InternalAllocateAlignedPages()
/device/linaro/bootloader/edk2/ArmPkg/Library/DebugUncachedMemoryAllocationLib/
DDebugUncachedMemoryAllocationLib.c158 return UncachedInternalAllocateAlignedPages (MemoryType, Pages, EFI_PAGE_SIZE); in UncachedInternalAllocatePages()
225 if (Alignment > EFI_PAGE_SIZE) { in UncachedInternalAllocateAlignedPages()
269 …hedPages->ConvertPages (gVirtualUncachedPages, AlignedMemory, Pages * EFI_PAGE_SIZE, PcdGet64 (Pcd… in UncachedInternalAllocateAlignedPages()
294 …Status = gVirtualUncachedPages->RevertPages (gVirtualUncachedPages, Memory, Pages * EFI_PAGE_SIZE,… in UncachedFreeAlignedPages()
318 if (Alignment < EFI_PAGE_SIZE) { in UncachedInternalAllocateAlignedPool()
319 Alignment = EFI_PAGE_SIZE; in UncachedInternalAllocateAlignedPool()
/device/linaro/bootloader/edk2/StdLib/Include/Ipf/machine/
Defi.h37 #define EFI_PAGE_SIZE (1 << EFI_PAGE_SHIFT) macro
38 #define EFI_PAGE_MASK (EFI_PAGE_SIZE - 1)
/device/linaro/bootloader/edk2/IntelFspPkg/FspDxeIpl/
DDxeIpl.c219 …*OutputBuffer = (VOID *)((UINT8 *) *OutputBuffer + EFI_PAGE_SIZE - sizeof (EFI_COMMON_SECTION_HEAD… in CustomGuidedSectionExtract()
339 DstBuffer = DstBuffer + EFI_PAGE_SIZE - sizeof (EFI_COMMON_SECTION_HEADER); in Decompress()
370 DstBuffer = DstBuffer + EFI_PAGE_SIZE - sizeof (EFI_COMMON_SECTION_HEADER); in Decompress()
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/PrePiHobLib/
DHob.c448 ASSERT (((MemoryAllocationModule & (EFI_PAGE_SIZE - 1)) == 0) && in BuildModuleHob()
449 ((ModuleLength & (EFI_PAGE_SIZE - 1)) == 0)); in BuildModuleHob()
683 ASSERT (((BaseAddress & (EFI_PAGE_SIZE - 1)) == 0) && in BuildStackHob()
684 ((Length & (EFI_PAGE_SIZE - 1)) == 0)); in BuildStackHob()
763 ASSERT (((BaseAddress & (EFI_PAGE_SIZE - 1)) == 0) && in BuildMemoryAllocationHob()
764 ((Length & (EFI_PAGE_SIZE - 1)) == 0)); in BuildMemoryAllocationHob()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Efi/Guid/DebugImageInfoTable/
DDebugImageInfoTable.h37 #define EFI_DEBUG_IMAGE_INFO_INITIAL_SIZE (EFI_PAGE_SIZE / sizeof (UINTN))
/device/linaro/bootloader/edk2/OvmfPkg/Library/VirtioLib/
DVirtioLib.c69 EFI_PAGE_SIZE); in VirtioRingInit()
76 EFI_PAGE_SIZE); in VirtioRingInit()
103 EFI_PAGE_SIZE); in VirtioRingInit()

123456