Home
last modified time | relevance | path

Searched refs:NumberOfPages (Results 1 – 25 of 77) sorted by relevance

1234

/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/
DMemMap.c177 …(SIZE_4KB,((EFI_MEMORY_DESCRIPTOR*)Walker)->NumberOfPages)-1, ((EFI_MEMORY_DESCRIPTOR*)Walker)->Nu… in ShellCommandRunMemMap()
178 ReservedPages += ((EFI_MEMORY_DESCRIPTOR*)Walker)->NumberOfPages; in ShellCommandRunMemMap()
181 …(SIZE_4KB,((EFI_MEMORY_DESCRIPTOR*)Walker)->NumberOfPages)-1, ((EFI_MEMORY_DESCRIPTOR*)Walker)->Nu… in ShellCommandRunMemMap()
182 LoadCodePages += ((EFI_MEMORY_DESCRIPTOR*)Walker)->NumberOfPages; in ShellCommandRunMemMap()
183 TotalPages += ((EFI_MEMORY_DESCRIPTOR*)Walker)->NumberOfPages; in ShellCommandRunMemMap()
186 …(SIZE_4KB,((EFI_MEMORY_DESCRIPTOR*)Walker)->NumberOfPages)-1, ((EFI_MEMORY_DESCRIPTOR*)Walker)->Nu… in ShellCommandRunMemMap()
187 LoadDataPages += ((EFI_MEMORY_DESCRIPTOR*)Walker)->NumberOfPages; in ShellCommandRunMemMap()
188 TotalPages += ((EFI_MEMORY_DESCRIPTOR*)Walker)->NumberOfPages; in ShellCommandRunMemMap()
191 …(SIZE_4KB,((EFI_MEMORY_DESCRIPTOR*)Walker)->NumberOfPages)-1, ((EFI_MEMORY_DESCRIPTOR*)Walker)->Nu… in ShellCommandRunMemMap()
192 BSCodePages += ((EFI_MEMORY_DESCRIPTOR*)Walker)->NumberOfPages; in ShellCommandRunMemMap()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Core/PiSmmCore/
DPage.c78 IN UINTN NumberOfPages,
262 IN UINTN NumberOfPages, in ConvertSmmMemoryMapEntry() argument
276 End = Memory + EFI_PAGES_TO_SIZE(NumberOfPages) - 1; in ConvertSmmMemoryMapEntry()
507 DEBUG ((DEBUG_INFO, "Pages->NumberOfPages - 0x%x\n", Pages->NumberOfPages)); in DumpSmmMemoryMap()
565 …ncyCheckRange ((EFI_PHYSICAL_ADDRESS)(UINTN)Pages, (UINTN)EFI_PAGES_TO_SIZE(Pages->NumberOfPages)); in SmmMemoryMapConsistencyCheck()
584 IN UINTN NumberOfPages, in InternalAllocPagesOnOneNode() argument
593 if (Top > Pages->NumberOfPages) { in InternalAllocPagesOnOneNode()
594 Top = Pages->NumberOfPages; in InternalAllocPagesOnOneNode()
596 Bottom = Top - NumberOfPages; in InternalAllocPagesOnOneNode()
598 if (Top < Pages->NumberOfPages) { in InternalAllocPagesOnOneNode()
[all …]
DMemoryAttributesTable.c141 Address = MemoryMap->PhysicalStart + EfiPagesToSize(MemoryMap->NumberOfPages); in SmmMemoryAttributesTableConsistencyCheck()
221 MemoryBlockLength = (UINT64) (EfiPagesToSize (MemoryMapEntry->NumberOfPages)); in MergeMemoryMap()
226 MemoryMapEntry->NumberOfPages += NextMemoryMapEntry->NumberOfPages; in MergeMemoryMap()
228 NewMemoryMapEntry->NumberOfPages += NextMemoryMapEntry->NumberOfPages; in MergeMemoryMap()
362 PhysicalEnd = TempRecord.PhysicalStart + EfiPagesToSize(TempRecord.NumberOfPages); in SetNewRecord()
372 NewRecord->NumberOfPages = EfiSizeToPages(ImageRecord->ImageBase - TempRecord.PhysicalStart); in SetNewRecord()
377 TempRecord.NumberOfPages = EfiSizeToPages(PhysicalEnd - TempRecord.PhysicalStart); in SetNewRecord()
400 …NewRecord->NumberOfPages = EfiSizeToPages(ImageRecordCodeSection->CodeSegmentBase - NewRecord->Phy… in SetNewRecord()
402 if (NewRecord->NumberOfPages != 0) { in SetNewRecord()
413 NewRecord->NumberOfPages = EfiSizeToPages(ImageRecordCodeSection->CodeSegmentSize); in SetNewRecord()
[all …]
DPiSmmCore.h280 IN UINTN NumberOfPages,
305 IN UINTN NumberOfPages,
324 IN UINTN NumberOfPages
342 IN UINTN NumberOfPages
1086 UINTN NumberOfPages; member
/device/linaro/bootloader/edk2/ArmPlatformPkg/MemoryInitPei/
DMemoryInitPeim.c49 Info[0].NumberOfPages = PcdGet32 (PcdMemoryTypeEfiACPIReclaimMemory); in BuildMemoryTypeInformationHob()
51 Info[1].NumberOfPages = PcdGet32 (PcdMemoryTypeEfiACPIMemoryNVS); in BuildMemoryTypeInformationHob()
53 Info[2].NumberOfPages = PcdGet32 (PcdMemoryTypeEfiReservedMemoryType); in BuildMemoryTypeInformationHob()
55 Info[3].NumberOfPages = PcdGet32 (PcdMemoryTypeEfiRuntimeServicesData); in BuildMemoryTypeInformationHob()
57 Info[4].NumberOfPages = PcdGet32 (PcdMemoryTypeEfiRuntimeServicesCode); in BuildMemoryTypeInformationHob()
59 Info[5].NumberOfPages = PcdGet32 (PcdMemoryTypeEfiBootServicesCode); in BuildMemoryTypeInformationHob()
61 Info[6].NumberOfPages = PcdGet32 (PcdMemoryTypeEfiBootServicesData); in BuildMemoryTypeInformationHob()
63 Info[7].NumberOfPages = PcdGet32 (PcdMemoryTypeEfiLoaderCode); in BuildMemoryTypeInformationHob()
65 Info[8].NumberOfPages = PcdGet32 (PcdMemoryTypeEfiLoaderData); in BuildMemoryTypeInformationHob()
69 Info[9].NumberOfPages = 0; in BuildMemoryTypeInformationHob()
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Mem/
DPage.c27 UINT64 NumberOfPages; member
534 IN UINT64 NumberOfPages, in CoreAddMemoryDescriptor() argument
551 End = Start + LShiftU64 (NumberOfPages, EFI_PAGE_SHIFT) - 1; in CoreAddMemoryDescriptor()
582 if (gMemoryTypeInformation[Index].NumberOfPages != 0) { in CoreAddMemoryDescriptor()
589 gMemoryTypeInformation[Index].NumberOfPages, in CoreAddMemoryDescriptor()
607 if (gMemoryTypeInformation[FreeIndex].NumberOfPages != 0) { in CoreAddMemoryDescriptor()
610 gMemoryTypeInformation[FreeIndex].NumberOfPages in CoreAddMemoryDescriptor()
624 LShiftU64 (gMemoryTypeInformation[Index].NumberOfPages, EFI_PAGE_SHIFT) - 1; in CoreAddMemoryDescriptor()
649 if (gMemoryTypeInformation[Index].NumberOfPages != 0) { in CoreAddMemoryDescriptor()
652 gMemoryTypeInformation[Index].NumberOfPages in CoreAddMemoryDescriptor()
[all …]
DImem.h71 IN UINTN NumberOfPages,
87 IN UINTN NumberOfPages
/device/linaro/bootloader/edk2/DuetPkg/EfiLdr/
DSupport.c51 if ((Desc[Index].PhysicalStart < BaseAddress) && (Desc[Index].NumberOfPages >= Temp)) { in EfiAddMemoryDescriptor()
52 if (Desc[Index].NumberOfPages > Temp) { in EfiAddMemoryDescriptor()
55 Desc[*NoDesc].NumberOfPages = Desc[Index].NumberOfPages - Temp; in EfiAddMemoryDescriptor()
60 Desc[Index].NumberOfPages = Temp - NoPages; in EfiAddMemoryDescriptor()
63 if ((Desc[Index].PhysicalStart == BaseAddress) && (Desc[Index].NumberOfPages == NoPages)) { in EfiAddMemoryDescriptor()
69 if ((Desc[Index].PhysicalStart == BaseAddress) && (Desc[Index].NumberOfPages > NoPages)) { in EfiAddMemoryDescriptor()
70 Desc[Index].NumberOfPages -= NoPages; in EfiAddMemoryDescriptor()
82 Desc[*NoDesc].NumberOfPages = NoPages; in EfiAddMemoryDescriptor()
108 …escriptor[Index].PhysicalStart + LShiftU64(EfiMemoryDescriptor[Index].NumberOfPages, EFI_PAGE_SHIF… in FindSpace()
112 (EfiMemoryDescriptor[Index].NumberOfPages >= NoPages)) { in FindSpace()
[all …]
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/Ipf/
DIpfBootSupport.c183 UINTN NumberOfPages; in RelocateImageUnder4GIfNeeded() local
198 NumberOfPages = (UINTN) (DivU64x32(LoadedImage->ImageSize, EFI_PAGE_SIZE) + 1); in RelocateImageUnder4GIfNeeded()
206 NumberOfPages, // do we have to convert this to pages?? in RelocateImageUnder4GIfNeeded()
236 gBS->FreePages (MemoryAddress, NumberOfPages); in RelocateImageUnder4GIfNeeded()
245 gBS->FreePages (MemoryAddress, NumberOfPages); in RelocateImageUnder4GIfNeeded()
267 gBS->FreePages (MemoryAddress, NumberOfPages); in RelocateImageUnder4GIfNeeded()
/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeCoreMemoryAllocationLib/
DDxeCoreMemoryAllocationServices.h45 IN UINTN NumberOfPages,
66 IN UINTN NumberOfPages
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Image/
DImage.c168 Image->NumberOfPages = (UINTN)(EFI_SIZE_TO_PAGES((UINTN)(DxeCoreImageLength))); in CoreInitializeImageServices()
524 Image->NumberOfPages = EFI_SIZE_TO_PAGES (Size); in CoreLoadPeImage()
550 Image->NumberOfPages, in CoreLoadPeImage()
559 Image->NumberOfPages, in CoreLoadPeImage()
567 Image->NumberOfPages, in CoreLoadPeImage()
590 if (Image->NumberOfPages != 0 && in CoreLoadPeImage()
591 Image->NumberOfPages < in CoreLoadPeImage()
593 …Image->NumberOfPages = EFI_SIZE_TO_PAGES ((UINTN)Image->ImageContext.ImageSize + Image->ImageConte… in CoreLoadPeImage()
597 …Image->NumberOfPages = EFI_SIZE_TO_PAGES ((UINTN)Image->ImageContext.ImageSize + Image->ImageConte… in CoreLoadPeImage()
789 CoreFreePages (Image->ImageContext.ImageAddress, Image->NumberOfPages); in CoreLoadPeImage()
[all …]
DImage.h89 OUT UINTN *NumberOfPages OPTIONAL,
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Misc/
DPropertiesTable.c227 MemoryBlockLength = (UINT64) (EfiPagesToSize (MemoryMapEntry->NumberOfPages)); in MergeMemoryMap()
232 MemoryMapEntry->NumberOfPages += NextMemoryMapEntry->NumberOfPages; in MergeMemoryMap()
234 NewMemoryMapEntry->NumberOfPages += NextMemoryMapEntry->NumberOfPages; in MergeMemoryMap()
369 PhysicalEnd = TempRecord.PhysicalStart + EfiPagesToSize(TempRecord.NumberOfPages); in SetNewRecord()
396 …NewRecord->NumberOfPages = EfiSizeToPages(ImageRecordCodeSection->CodeSegmentBase - NewRecord->Phy… in SetNewRecord()
398 if (NewRecord->NumberOfPages != 0) { in SetNewRecord()
413 NewRecord->NumberOfPages = EfiSizeToPages(ImageRecordCodeSection->CodeSegmentSize); in SetNewRecord()
415 if (NewRecord->NumberOfPages != 0) { in SetNewRecord()
421 TempRecord.NumberOfPages = EfiSizeToPages(PhysicalEnd - TempRecord.PhysicalStart); in SetNewRecord()
422 if (TempRecord.NumberOfPages == 0) { in SetNewRecord()
[all …]
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/PrePiHobLib/
DHob.c827 Info[0].NumberOfPages = PcdGet32 (PcdMemoryTypeEfiACPIReclaimMemory); in BuildMemoryTypeInformationHob()
829 Info[1].NumberOfPages = PcdGet32 (PcdMemoryTypeEfiACPIMemoryNVS); in BuildMemoryTypeInformationHob()
831 Info[2].NumberOfPages = PcdGet32 (PcdMemoryTypeEfiReservedMemoryType); in BuildMemoryTypeInformationHob()
833 Info[3].NumberOfPages = PcdGet32 (PcdMemoryTypeEfiRuntimeServicesData); in BuildMemoryTypeInformationHob()
835 Info[4].NumberOfPages = PcdGet32 (PcdMemoryTypeEfiRuntimeServicesCode); in BuildMemoryTypeInformationHob()
837 Info[5].NumberOfPages = PcdGet32 (PcdMemoryTypeEfiBootServicesCode); in BuildMemoryTypeInformationHob()
839 Info[6].NumberOfPages = PcdGet32 (PcdMemoryTypeEfiBootServicesData); in BuildMemoryTypeInformationHob()
841 Info[7].NumberOfPages = PcdGet32 (PcdMemoryTypeEfiLoaderCode); in BuildMemoryTypeInformationHob()
843 Info[8].NumberOfPages = PcdGet32 (PcdMemoryTypeEfiLoaderData); in BuildMemoryTypeInformationHob()
847 Info[9].NumberOfPages = 0; in BuildMemoryTypeInformationHob()
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/
DSmmCpuMemoryManagement.c794 DEBUG ((DEBUG_INFO, " NumberOfPages - 0x%016lx\n", MemoryMap->NumberOfPages)); in SetMemMapAttributes()
801 …"SetAttribute: Memory Entry - 0x%lx, 0x%x\n", MemoryMap->PhysicalStart, MemoryMap->NumberOfPages)); in SetMemMapAttributes()
806 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()
945 MemoryMapEntry->NumberOfPages += NextMemoryMapEntry->NumberOfPages; in MergeMemoryMapForNotPresentEntry()
947 NewMemoryMapEntry->NumberOfPages += NextMemoryMapEntry->NumberOfPages; in MergeMemoryMapForNotPresentEntry()
1055 …icalStart, MemoryMap->PhysicalStart + (UINT64)EFI_PAGES_TO_SIZE((UINTN)MemoryMap->NumberOfPages))); in SetUefiMemMapAttributes()
1058 EFI_PAGES_TO_SIZE((UINTN)MemoryMap->NumberOfPages), in SetUefiMemMapAttributes()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/
DPiSmmCoreMemoryAllocationServices.h133 IN UINTN NumberOfPages,
152 IN UINTN NumberOfPages
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/SmmCommunicationBufferDxe/
DSmmCommunicationBufferDxe.c78 Entry->NumberOfPages = DEFAULT_COMMON_PI_SMM_COMMUNIATION_REGION_PAGES; in SmmCommunicationBufferEntryPoint()
89 DEBUG ((EFI_D_INFO, " NumberOfPages - 0x%lx\n", Entry->NumberOfPages)); in SmmCommunicationBufferEntryPoint()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Guid/MemoryTypeInformation/
DMemoryTypeInformation.h34 UINT32 NumberOfPages; member
/device/linaro/bootloader/edk2/MdeModulePkg/Include/Guid/
DMemoryTypeInformation.h33 UINT32 NumberOfPages; ///< The pages of this type memory. member
/device/linaro/bootloader/edk2/OvmfPkg/VirtioGpuDxe/
DVirtioGpu.h145 UINTN NumberOfPages; member
252 IN UINTN NumberOfPages
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/PropertiesTableAttributesDxe/
DPropertiesTableAttributesDxe.c89 MemoryMapEntry->PhysicalStart + EfiPagesToSize (MemoryMapEntry->NumberOfPages), in SetMemorySpaceAttributesDefault()
94 EfiPagesToSize (MemoryMapEntry->NumberOfPages), in SetMemorySpaceAttributesDefault()
/device/linaro/bootloader/edk2/MdeModulePkg/Include/Protocol/
DLoadPe32Image.h70 IN OUT UINTN *NumberOfPages OPTIONAL,
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Protocol/LoadPe32Image/
DLoadPe32Image.h43 OUT UINTN *NumberOfPages OPTIONAL,
/device/linaro/bootloader/edk2/MdeModulePkg/Library/UefiBootManagerLib/
DBmMisc.c233 Previous = PreviousMemoryTypeInformation[Index].NumberOfPages; in BmSetMemoryTypeInformationVariable()
234 Current = CurrentMemoryTypeInformation[Index1].NumberOfPages; in BmSetMemoryTypeInformationVariable()
255 PreviousMemoryTypeInformation[Index].NumberOfPages = Next; in BmSetMemoryTypeInformationVariable()
/device/linaro/bootloader/edk2/DuetPkg/DxeIpl/
DHobGeneration.c646 …gHob->MemoryAbove1MB.ResourceLength = LShiftU64 (EfiMemoryDescriptor[Index].NumberOfPages, EFI_PAG… in PrepareHobMemory()
648 …emoryAbove1MB.ResourceLength += LShiftU64 (EfiMemoryDescriptor[Index].NumberOfPages, EFI_PAGE_SHIF… in PrepareHobMemory()
667 …gHob->MemoryAbove4GB.ResourceLength = LShiftU64 (EfiMemoryDescriptor[Index].NumberOfPages, EFI_PAG… in PrepareHobMemory()
671 …emoryAbove4GB.ResourceLength += LShiftU64 (EfiMemoryDescriptor[Index].NumberOfPages, EFI_PAGE_SHIF… in PrepareHobMemory()

1234