/device/linaro/bootloader/edk2/OvmfPkg/Library/PlatformBootManagerLib/ |
D | QemuKernel.c | 65 SetupBuf = LoadLinuxAllocateKernelSetupPages (EFI_SIZE_TO_PAGES (SetupSize)); in TryRunningQemuKernel() 95 EFI_SIZE_TO_PAGES (KernelInitialSize)); in TryRunningQemuKernel() 113 EFI_SIZE_TO_PAGES (CommandLineSize)); in TryRunningQemuKernel() 131 EFI_SIZE_TO_PAGES (InitrdSize) in TryRunningQemuKernel() 156 FreePages (SetupBuf, EFI_SIZE_TO_PAGES (SetupSize)); in TryRunningQemuKernel() 159 FreePages (KernelBuf, EFI_SIZE_TO_PAGES (KernelInitialSize)); in TryRunningQemuKernel() 162 FreePages (CommandLine, EFI_SIZE_TO_PAGES (CommandLineSize)); in TryRunningQemuKernel() 165 FreePages (InitrdData, EFI_SIZE_TO_PAGES (InitrdSize)); in TryRunningQemuKernel()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/DxeIplPeim/Ipf/ |
D | DxeLoadFunc.c | 44 BaseOfStack = AllocatePages (EFI_SIZE_TO_PAGES (STACK_SIZE)); in HandOffToDxeCore() 50 BspStore = AllocatePages (EFI_SIZE_TO_PAGES (BSP_STORE_SIZE)); in HandOffToDxeCore() 61 …TopOfStack = (VOID *) ((UINTN) BaseOfStack + EFI_SIZE_TO_PAGES (STACK_SIZE) * EFI_PAGE_SIZE - CPU_… in HandOffToDxeCore()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/DxeIplPeim/Ebc/ |
D | DxeLoadFunc.c | 43 BaseOfStack = AllocatePages (EFI_SIZE_TO_PAGES (STACK_SIZE)); in HandOffToDxeCore() 50 …TopOfStack = (VOID *) ((UINTN) BaseOfStack + EFI_SIZE_TO_PAGES (STACK_SIZE) * EFI_PAGE_SIZE - CPU_… in HandOffToDxeCore()
|
/device/linaro/bootloader/edk2/IntelFspPkg/FspDxeIpl/ |
D | DxeIpl.c | 200 ScratchBuffer = AllocatePages (EFI_SIZE_TO_PAGES (ScratchBufferSize)); in CustomGuidedSectionExtract() 210 *OutputBuffer = AllocatePages (EFI_SIZE_TO_PAGES (OutputBufferSize) + 1); in CustomGuidedSectionExtract() 324 ScratchBuffer = AllocatePages (EFI_SIZE_TO_PAGES (ScratchBufferSize)); in Decompress() 331 DstBuffer = AllocatePages (EFI_SIZE_TO_PAGES (DstBufferSize) + 1); in Decompress() 362 DstBuffer = AllocatePages (EFI_SIZE_TO_PAGES (DstBufferSize) + 1); in Decompress()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/DxeIplPeim/Arm/ |
D | DxeLoadFunc.c | 45 BaseOfStack = AllocatePages (EFI_SIZE_TO_PAGES (STACK_SIZE)); in HandOffToDxeCore() 57 …TopOfStack = (VOID *) ((UINTN) BaseOfStack + EFI_SIZE_TO_PAGES (STACK_SIZE) * EFI_PAGE_SIZE - CPU_… in HandOffToDxeCore()
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/PrePiLib/ |
D | PrePiLib.c | 57 Buffer = AllocatePages (EFI_SIZE_TO_PAGES((UINT32)ImageContext.ImageSize)); in LoadPeCoffImage() 130 …b (&FvFileInfo.FileName, (EFI_PHYSICAL_ADDRESS)(UINTN)ImageAddress, EFI_SIZE_TO_PAGES ((UINT32) Im… in LoadDxeCoreFromFfsFile() 144 BaseOfStack = AllocatePages (EFI_SIZE_TO_PAGES (StackSize)); in LoadDxeCoreFromFfsFile() 151 …TopOfStack = (VOID *) ((UINTN) BaseOfStack + EFI_SIZE_TO_PAGES (StackSize) * EFI_PAGE_SIZE - CPU_S… in LoadDxeCoreFromFfsFile()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/VarCheckHiiLib/ |
D | VarCheckHiiGenFromHii.c | 51 …Status = gBS->AllocatePages (AllocateAnyPages, EfiBootServicesData, EFI_SIZE_TO_PAGES (BufferSize)… in VarCheckHiiGenFromHiiDatabase() 71 gBS->FreePages (BufferAddress, EFI_SIZE_TO_PAGES (BufferSize)); in VarCheckHiiGenFromHiiDatabase()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Mem/ |
D | Pool.c | 356 NoPages = EFI_SIZE_TO_PAGES(Size) + EFI_SIZE_TO_PAGES (Granularity) - 1; in CoreAllocatePoolI() 357 NoPages &= ~(UINTN)(EFI_SIZE_TO_PAGES (Granularity) - 1); in CoreAllocatePoolI() 386 NewPage = CoreAllocatePoolPages(PoolType, EFI_SIZE_TO_PAGES (Granularity), Granularity); in CoreAllocatePoolI() 625 NoPages = EFI_SIZE_TO_PAGES(Size) + EFI_SIZE_TO_PAGES (Granularity) - 1; in CoreFreePoolI() 626 NoPages &= ~(UINTN)(EFI_SIZE_TO_PAGES (Granularity) - 1); in CoreFreePoolI() 683 CoreFreePoolPages ((EFI_PHYSICAL_ADDRESS) (UINTN)NewPage, EFI_SIZE_TO_PAGES (Granularity)); in CoreFreePoolI()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/DxeIplPeim/X64/ |
D | DxeLoadFunc.c | 72 BaseOfStack = AllocatePages (EFI_SIZE_TO_PAGES (STACK_SIZE)); in HandOffToDxeCore() 79 …TopOfStack = (VOID *) ((UINTN) BaseOfStack + EFI_SIZE_TO_PAGES (STACK_SIZE) * EFI_PAGE_SIZE - CPU_… in HandOffToDxeCore()
|
/device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Drivers/SasV1Dxe/ |
D | SasV1Dxe.c | 622 DmaAllocateBuffer (EfiBootServicesData, EFI_SIZE_TO_PAGES (s), (VOID *)&hba->cmd_hdr[i]); in sas_init() 627 DmaAllocateBuffer (EfiBootServicesData, EFI_SIZE_TO_PAGES (s), (VOID *)&hba->complete_hdr[i]); in sas_init() 632 DmaAllocateBuffer (EfiBootServicesData, EFI_SIZE_TO_PAGES (s), (VOID *)&hba->status_buf[i]); in sas_init() 637 DmaAllocateBuffer (EfiBootServicesData, EFI_SIZE_TO_PAGES (s), (VOID *)&hba->command_table[i]); in sas_init() 642 DmaAllocateBuffer (EfiBootServicesData, EFI_SIZE_TO_PAGES (s), (VOID *)&hba->sge[i]); in sas_init() 648 DmaAllocateBuffer (EfiBootServicesData, EFI_SIZE_TO_PAGES (s), (VOID *)&hba->iost); in sas_init() 653 DmaAllocateBuffer (EfiBootServicesData, EFI_SIZE_TO_PAGES (s), (VOID *)&hba->breakpoint); in sas_init() 658 DmaAllocateBuffer (EfiBootServicesData, EFI_SIZE_TO_PAGES (s), (VOID *)&hba->itct); in sas_init() 1000 DmaFreeBuffer(EFI_SIZE_TO_PAGES (s), (VOID *)SasV1Info->hba->cmd_hdr[i]); in SasDriverBindingStop() 1002 DmaFreeBuffer(EFI_SIZE_TO_PAGES (s), (VOID *)SasV1Info->hba->complete_hdr[i]); in SasDriverBindingStop() [all …]
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/PrePiMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 119 ASSERT (Pages <= (MAX_ADDRESS - EFI_SIZE_TO_PAGES (Alignment))); in AllocateAlignedPages() 123 Memory = (VOID *)(UINTN)AllocatePages (Pages + EFI_SIZE_TO_PAGES (Alignment)); in AllocateAlignedPages()
|
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Opal/OpalPasswordSmm/ |
D | OpalAhciMode.c | 1116 EFI_SIZE_TO_PAGES (sizeof (EFI_AHCI_RECEIVED_FIS)), in AhciAllocateResource() 1123 ZeroMem ((VOID *)(UINTN)Base, EFI_PAGE_SIZE * EFI_SIZE_TO_PAGES (sizeof (EFI_AHCI_RECEIVED_FIS))); in AhciAllocateResource() 1130 EFI_SIZE_TO_PAGES (sizeof (EFI_AHCI_COMMAND_LIST)), in AhciAllocateResource() 1134 …gBS->FreePages ((EFI_PHYSICAL_ADDRESS)(UINTN)mAhciRegisters.AhciRFis, EFI_SIZE_TO_PAGES (sizeof (E… in AhciAllocateResource() 1137 ZeroMem ((VOID *)(UINTN)Base, EFI_PAGE_SIZE * EFI_SIZE_TO_PAGES (sizeof (EFI_AHCI_COMMAND_LIST))); in AhciAllocateResource() 1144 EFI_SIZE_TO_PAGES (sizeof (EFI_AHCI_COMMAND_TABLE)), in AhciAllocateResource() 1148 …gBS->FreePages ((EFI_PHYSICAL_ADDRESS)(UINTN)mAhciRegisters.AhciRFis, EFI_SIZE_TO_PAGES (sizeof (E… in AhciAllocateResource() 1149 …gBS->FreePages ((EFI_PHYSICAL_ADDRESS)(UINTN)mAhciRegisters.AhciCmdList, EFI_SIZE_TO_PAGES (sizeof… in AhciAllocateResource() 1152 …ZeroMem ((VOID *)(UINTN)Base, EFI_PAGE_SIZE * EFI_SIZE_TO_PAGES (sizeof (EFI_AHCI_COMMAND_TABLE))); in AhciAllocateResource() 1168 …gBS->FreePages ((EFI_PHYSICAL_ADDRESS)(UINTN)mAhciRegisters.AhciRFis, EFI_SIZE_TO_PAGES (sizeof (E… in AhciFreeResource() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Misc/ |
D | DebugImageInfo.c | 54 Pages = EFI_SIZE_TO_PAGES (sizeof (EFI_SYSTEM_TABLE_POINTER)); in CoreInitializeDebugImageInfoTable() 56 RealPages = Pages + EFI_SIZE_TO_PAGES (SIZE_4MB); in CoreInitializeDebugImageInfoTable() 98 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN)Memory); in CoreInitializeDebugImageInfoTable()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/DxeIplPeim/Ia32/ |
D | DxeLoadFunc.c | 235 …Status = PeiServicesAllocatePages (EfiBootServicesData, EFI_SIZE_TO_PAGES (STACK_SIZE), &BaseOfSta… in HandOffToDxeCore() 248 TopOfStack = BaseOfStack + EFI_SIZE_TO_PAGES (STACK_SIZE) * EFI_PAGE_SIZE - 32; in HandOffToDxeCore() 282 EFI_SIZE_TO_PAGES(sizeof (X64_IDT_TABLE) + SizeOfTemplate * IDT_ENTRY_COUNT), in HandOffToDxeCore() 370 TopOfStack = BaseOfStack + EFI_SIZE_TO_PAGES (STACK_SIZE) * EFI_PAGE_SIZE - CPU_STACK_ALIGNMENT; in HandOffToDxeCore()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/SectionExtractionPei/ |
D | SectionExtractionPei.c | 187 ScratchBuffer = AllocatePages (EFI_SIZE_TO_PAGES (ScratchBufferSize)); in CustomGuidedSectionExtract() 197 *OutputBuffer = AllocatePages (EFI_SIZE_TO_PAGES (OutputBufferSize) + 1); in CustomGuidedSectionExtract()
|
/device/linaro/bootloader/edk2/IntelFspWrapperPkg/FspNotifyDxe/ |
D | LoadBelow4G.c | 101 Pages = EFI_SIZE_TO_PAGES ((UINTN) (ImageContext.ImageSize + ImageContext.SectionAlignment)); in RelocateImageUnder4GIfNeeded() 103 Pages = EFI_SIZE_TO_PAGES ((UINTN) ImageContext.ImageSize); in RelocateImageUnder4GIfNeeded()
|
/device/linaro/bootloader/edk2/IntelFsp2WrapperPkg/FspWrapperNotifyDxe/ |
D | LoadBelow4G.c | 101 Pages = EFI_SIZE_TO_PAGES ((UINTN) (ImageContext.ImageSize + ImageContext.SectionAlignment)); in RelocateImageUnder4GIfNeeded() 103 Pages = EFI_SIZE_TO_PAGES ((UINTN) ImageContext.ImageSize); in RelocateImageUnder4GIfNeeded()
|
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkSouthCluster/Sdio/Dxe/SDMediaDeviceDxe/ |
D | SDMediaDevice.c | 169 EFI_SIZE_TO_PAGES (2 * SDHostIo->HostCapability.BoundarySize), in SDMediaDeviceStart() 239 …eePages ((EFI_PHYSICAL_ADDRESS) (UINTN) CardData->RawBufferPointer, EFI_SIZE_TO_PAGES (2 * SDHostI… in SDMediaDeviceStart() 306 …gBS->FreePages ((EFI_PHYSICAL_ADDRESS) (UINTN) CardData->RawBufferPointer, EFI_SIZE_TO_PAGES (2 * … in SDMediaDeviceStop()
|
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/SmmCpuFeaturesLib/ |
D | SmmStm.c | 176 mMsegBase = (UINTN)AllocatePages (EFI_SIZE_TO_PAGES (PcdGet32 (PcdCpuMsegSize))); in SmmCpuFeaturesLibStmConstructor() 330 DEBUG((DEBUG_ERROR, "Pages - %x\n", EFI_SIZE_TO_PAGES(PcdGet32(PcdCpuSmmStmExceptionStackSize)))); in SmmCpuFeaturesInstallSmiHandler() 331 …Psd->StmProtectionExceptionHandler.SpeRsp = (UINT64)(UINTN)AllocatePages (EFI_SIZE_TO_PAGES (PcdGe… in SmmCpuFeaturesInstallSmiHandler() 332 …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() 910 EFI_SIZE_TO_PAGES (NewResourceSize), in AddPiResource() 935 NewResourceSize = EFI_PAGES_TO_SIZE (EFI_SIZE_TO_PAGES (NewResourceSize)); in AddPiResource() 940 EFI_SIZE_TO_PAGES (NewResourceSize), in AddPiResource() 951 EFI_SIZE_TO_PAGES (mStmResourceTotalSize) in AddPiResource() 1111 MinMsegSize = (EFI_PAGES_TO_SIZE (EFI_SIZE_TO_PAGES (StmHeader->SwStmHdr.StaticImageSize)) + in StmCheckStmImage()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciPei/ |
D | UsbHcMem.c | 38 PageNumber = EFI_SIZE_TO_PAGES (sizeof (USBHC_MEM_BLOCK)); in UsbHcAllocMemBlock() 60 PageNumber = EFI_SIZE_TO_PAGES (Block->BitsLen); in UsbHcAllocMemBlock() 365 PageNumber = EFI_SIZE_TO_PAGES (sizeof (USBHC_MEM_POOL)); in UsbHcInitMemPool() 468 Pages = EFI_SIZE_TO_PAGES (AllocSize); in UsbHcAllocateMem() 608 RealPages = Pages + EFI_SIZE_TO_PAGES (Alignment); in UsbHcAllocateAlignedPages()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Core/DxeIplPeim/ |
D | DxeLoad.c | 586 ScratchBuffer = AllocatePages (EFI_SIZE_TO_PAGES (ScratchBufferSize)); in CustomGuidedSectionExtract() 596 *OutputBuffer = AllocatePages (EFI_SIZE_TO_PAGES (OutputBufferSize) + 1); in CustomGuidedSectionExtract() 711 ScratchBuffer = AllocatePages (EFI_SIZE_TO_PAGES (ScratchBufferSize)); in Decompress() 718 DstBuffer = AllocatePages (EFI_SIZE_TO_PAGES (DstBufferSize) + 1); in Decompress() 757 DstBuffer = AllocatePages (EFI_SIZE_TO_PAGES (DstBufferSize) + 1); in Decompress()
|
/device/linaro/bootloader/OpenPlatformPkg/Platforms/Hisilicon/D02/FdtUpdateLibD02/ |
D | FdtUpdateLib.c | 205 Pages0 = EFI_SIZE_TO_PAGES (MemoryMapSize) + 1; in UpdateMemoryNode() 223 Pages1 = EFI_SIZE_TO_PAGES (sizeof(PHY_MEM_REGION) *( MemoryMapSize / DescriptorSize)); in UpdateMemoryNode() 306 …Status = gBS->AllocatePages (AllocateAnyPages, EfiBootServicesData, EFI_SIZE_TO_PAGES(NewFdtBlobSi… in EFIFdtUpdate() 338 gBS->FreePages(NewFdtBlobBase,EFI_SIZE_TO_PAGES(NewFdtBlobSize)); in EFIFdtUpdate()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/CapsuleRuntimeDxe/X64/ |
D | SaveLongModeContext.c | 59 Pages = EFI_SIZE_TO_PAGES (Size); in AllocateReservedMemoryBelow4G() 196 … gBS->FreePages (LongModeBuffer.StackBaseAddress, EFI_SIZE_TO_PAGES (LongModeBuffer.StackSize)); in PrepareContextForCapsulePei()
|
/device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Drivers/UpdateFdtDxe/ |
D | UpdateFdtDxe.c | 115 …Status = gBS->AllocatePages (AllocateAnyPages, EfiRuntimeServicesData, EFI_SIZE_TO_PAGES(Size), &N… in UpdateFdt() 154 gBS->FreePages(NewFdtBlobBase,EFI_SIZE_TO_PAGES(NewFdtBlobSize)); in UpdateFdt()
|
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/ |
D | DebugCommunicationLibUsb3Pei.c | 37 Status = PeiServicesAllocatePages (EfiACPIMemoryNVS, EFI_SIZE_TO_PAGES (BufferSize), &Address); in AllocateAlignBuffer()
|