Home
last modified time | relevance | path

Searched refs:PageCount (Results 1 – 8 of 8) sorted by relevance

/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLib/SysCall/
DRuntimeMemAllocation.c53 UINTN PageCount; member
108 mRTPageTable->PageCount = MemorySize / (RT_PAGE_SIZE + sizeof (RT_MEMORY_PAGE_ENTRY)); in InitializeScratchMemory()
111 for (Index = 0; Index < mRTPageTable->PageCount; Index++) { in InitializeScratchMemory()
117 (mRTPageTable->PageCount - 1) * sizeof (RT_MEMORY_PAGE_ENTRY); in InitializeScratchMemory()
147 for (Index = StartPageIndex; Index <= (mRTPageTable->PageCount - ReqPages); ) { in LookupFreeMemRegion()
288 while (StartPageIndex < mRTPageTable->PageCount) { in RuntimeFreeMem()
397 UINTN PageCount; in realloc() local
404 PageCount = 0; in realloc()
405 while (StartPageIndex < mRTPageTable->PageCount) { in realloc()
409 PageCount++; in realloc()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Core/PiSmmCore/
DDispatcher.c315 UINTN PageCount; in SmmLoadImage() local
476 PageCount = 0; in SmmLoadImage()
483PageCount = (UINTN)EFI_SIZE_TO_PAGES((UINTN)ImageContext.ImageSize + ImageContext.SectionAlignment… in SmmLoadImage()
489 PageCount, in SmmLoadImage()
501PageCount = (UINTN)EFI_SIZE_TO_PAGES((UINTN)ImageContext.ImageSize + ImageContext.SectionAlignment… in SmmLoadImage()
507 PageCount, in SmmLoadImage()
533 SmmFreePages (DstBuffer, PageCount); in SmmLoadImage()
545 SmmFreePages (DstBuffer, PageCount); in SmmLoadImage()
559 DriverEntry->NumberOfPage = PageCount; in SmmLoadImage()
569 SmmFreePages (DstBuffer, PageCount); in SmmLoadImage()
[all …]
DPiSmmIpl.c885 UINTN PageCount; in ExecuteSmmCoreFromSmram() local
929 PageCount = 0; in ExecuteSmmCoreFromSmram()
936PageCount = (UINTN)EFI_SIZE_TO_PAGES((UINTN)ImageContext.ImageSize + ImageContext.SectionAlignment… in ExecuteSmmCoreFromSmram()
939 ASSERT (SmramRange->PhysicalSize > EFI_PAGES_TO_SIZE (PageCount)); in ExecuteSmmCoreFromSmram()
941 SmramRange->PhysicalSize -= EFI_PAGES_TO_SIZE (PageCount); in ExecuteSmmCoreFromSmram()
945 SmramRangeSmmCore->PhysicalSize = EFI_PAGES_TO_SIZE (PageCount); in ExecuteSmmCoreFromSmram()
957PageCount = (UINTN)EFI_SIZE_TO_PAGES((UINTN)ImageContext.ImageSize + ImageContext.SectionAlignment… in ExecuteSmmCoreFromSmram()
960 ASSERT (SmramRange->PhysicalSize > EFI_PAGES_TO_SIZE (PageCount)); in ExecuteSmmCoreFromSmram()
962 SmramRange->PhysicalSize -= EFI_PAGES_TO_SIZE (PageCount); in ExecuteSmmCoreFromSmram()
966 SmramRangeSmmCore->PhysicalSize = EFI_PAGES_TO_SIZE (PageCount); in ExecuteSmmCoreFromSmram()
/device/linaro/bootloader/edk2/EmbeddedPkg/Ebl/
DEfiDevice.c569 UINT64 PageCount[EfiMaxMemoryType]; in EblMemMapCmd() local
575 ZeroMem (PageCount, sizeof (PageCount)); in EblMemMapCmd()
598 PageCount[MemMap->Type % EfiMaxMemoryType] += MemMap->NumberOfPages; in EblMemMapCmd()
604 if (PageCount[Index] != 0) { in EblMemMapCmd()
605 …rint ("\n %a %,7ld Pages (%,14ld)", gMemMapType[Index], PageCount[Index], LShiftU64 (PageCount[In… in EblMemMapCmd()
618 TotalMemory += PageCount[Index]; in EblMemMapCmd()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Compatibility/SmmBaseHelper/
DSmmBaseHelper.c684 UINTN PageCount; in LoadImage() local
692 PageCount = 1; in LoadImage()
694 OrgPageCount = PageCount; in LoadImage()
699 PageCount, in LoadImage()
713 &PageCount, in LoadImage()
731 RegisterSmramProfileImage (FilePath, DstBuffer, PageCount); in LoadImage()
734 UnregisterSmramProfileImage (FilePath, DstBuffer, PageCount); in LoadImage()
737 FreePages ((VOID *)(UINTN)DstBuffer, PageCount); in LoadImage()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/
DIdeMode.c1533 UINTN PageCount; in AtaUdmaInOut() local
1554 PageCount = 0; in AtaUdmaInOut()
1617 PageCount = EFI_SIZE_TO_PAGES (PrdTableSize); in AtaUdmaInOut()
1618 RealPageCount = PageCount + EFI_SIZE_TO_PAGES (SIZE_64KB); in AtaUdmaInOut()
1623 ASSERT (RealPageCount > PageCount); in AtaUdmaInOut()
1756 Task->PageCount = RealPageCount; in AtaUdmaInOut()
1839 PciIo->FreeBuffer (PciIo, Task->PageCount, Task->MapBaseAddress); in AtaUdmaInOut()
DAtaAtapiPassThru.h142 UINTN PageCount; // The page numbers used by PCIO freebuffer. member
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/
DAta.c1534 UINTN PageCount; in DoAtaUdma() local
1644 PageCount = EFI_SIZE_TO_PAGES (2 * PrdTableNum * sizeof (IDE_DMA_PRD)); in DoAtaUdma()
1649 PageCount, in DoAtaUdma()
1656 ZeroMem ((VOID *) ((UINTN) MemPage), EFI_PAGES_TO_SIZE (PageCount)); in DoAtaUdma()
1684 IdeDev->PciIo->FreeBuffer (IdeDev->PciIo, PageCount, MemPage); in DoAtaUdma()
1768 IdeDev->PciIo->FreeBuffer (IdeDev->PciIo, PageCount, MemPage); in DoAtaUdma()
1826 IdeDev->PciIo->FreeBuffer (IdeDev->PciIo, PageCount, MemPage); in DoAtaUdma()