/reactos/boot/freeldr/freeldr/arch/uefi/ |
H A D | uefimem.c | 26 _In_ TYPE_OF_MEMORY MemoryType); 92 _In_ TYPE_OF_MEMORY MemoryType) in UefiSetMemory() argument 104 MemoryType); in UefiSetMemory() 205 TYPE_OF_MEMORY MemoryType = UefiConvertToFreeldrDesc(MapEntry->Type); in UefiMemGetMemoryMap() local 206 if (MemoryType == LoaderFree) in UefiMemGetMemoryMap() 215 MemoryType = LoaderFirmwareTemporary; in UefiMemGetMemoryMap() 220 if (MemoryType == LoaderLoadedProgram) in UefiMemGetMemoryMap() 230 if (MemoryType != LoaderReserve) in UefiMemGetMemoryMap() 235 MemoryType); in UefiMemGetMemoryMap()
|
/reactos/boot/freeldr/freeldr/ntldr/ |
H A D | wlmemory.c | 98 Mad[MadCount].MemoryType = Type; in MempAddMemoryBlock() 296 Mad[MadCount].MemoryType = LoaderSpecialMemory; in WinLdrSetupMemoryLayout() 302 Mad[MadCount].MemoryType = LoaderSpecialMemory; in WinLdrSetupMemoryLayout() 308 Mad[MadCount].MemoryType = LoaderSpecialMemory; in WinLdrSetupMemoryLayout() 324 BiosMemoryMap->MemoryType); in WinLdrSetupMemoryLayout() 363 NewDescriptor->PageCount, MemTypeDesc[NewDescriptor->MemoryType]); in WinLdrInsertDescriptor() 382 if (NewDescriptor->MemoryType != LoaderFree) in WinLdrInsertDescriptor() 390 if ((PreviousEntry != ListHead) && (PreviousDescriptor->MemoryType == LoaderFree) && in WinLdrInsertDescriptor() 406 (NextDescriptor->MemoryType == LoaderFree) && in WinLdrInsertDescriptor()
|
H A D | winldr.c | 443 TYPE_OF_MEMORY MemoryType) in WinLdrLoadModule() argument 475 PhysicalBase = MmAllocateMemoryWithType(FileSize, MemoryType); in WinLdrLoadModule() 522 IN TYPE_OF_MEMORY MemoryType, in LoadModule() argument 538 Success = PeLdrLoadImage(FullFileName, MemoryType, &BaseAddress); in LoadModule() 1301 MemoryDescriptor->PageCount, MemoryDescriptor->MemoryType); in WinLdrpDumpMemoryDescriptors()
|
/reactos/boot/freeldr/freeldr/arch/i386/pc/ |
H A D | pcmem.c | 49 IN TYPE_OF_MEMORY MemoryType); 239 TYPE_OF_MEMORY MemoryType; in PcMemGetBiosMemoryMap() local 378 MemoryType = LoaderFree; in PcMemGetBiosMemoryMap() 408 MemoryType = LoaderFirmwarePermanent; in PcMemGetBiosMemoryMap() 412 MemoryType = LoaderSpecialMemory; in PcMemGetBiosMemoryMap() 488 TYPE_OF_MEMORY MemoryType, in ReserveMemory() argument 504 if (MemoryMap[i].MemoryType != LoaderFree) in ReserveMemory() 523 MemoryType); in ReserveMemory() 531 TYPE_OF_MEMORY MemoryType) in SetMemory() argument 543 MemoryType); in SetMemory() [all …]
|
/reactos/boot/freeldr/freeldr/lib/mm/ |
H A D | mm.c | 31 PVOID MmAllocateMemoryWithType(SIZE_T MemorySize, TYPE_OF_MEMORY MemoryType) in MmAllocateMemoryWithType() argument 68 …mAllocatePagesInLookupTable(PageLookupTableAddress, FirstFreePageFromEnd, PagesNeeded, MemoryType); in MmAllocateMemoryWithType() 74 MemorySize, PagesNeeded, MemoryType, FirstFreePageFromEnd); in MmAllocateMemoryWithType() 85 PVOID MmAllocateMemoryAtAddress(SIZE_T MemorySize, PVOID DesiredAddress, TYPE_OF_MEMORY MemoryType) in MmAllocateMemoryAtAddress() argument 128 MmAllocatePagesInLookupTable(PageLookupTableAddress, StartPageNumber, PagesNeeded, MemoryType); in MmAllocateMemoryAtAddress() 160 …locateHighestMemoryBelowAddress(SIZE_T MemorySize, PVOID DesiredAddress, TYPE_OF_MEMORY MemoryType) in MmAllocateHighestMemoryBelowAddress() argument 199 …mAllocatePagesInLookupTable(PageLookupTableAddress, FirstFreePageFromEnd, PagesNeeded, MemoryType); in MmAllocateHighestMemoryBelowAddress()
|
H A D | meminit.c | 95 MmGetSystemMemoryMapTypeString(List[i].MemoryType)); in DbgDumpMemoryMap() 107 IN TYPE_OF_MEMORY MemoryType) in AddMemoryDescriptor() argument 112 BasePage, PageCount, MemoryType); in AddMemoryDescriptor() 213 List[Index].MemoryType = MemoryType; in AddMemoryDescriptor() 336 MmGetSystemMemoryMapTypeString(MemoryDescriptor->MemoryType)); in MmInitializeMemoryManager() 394 if (MemoryDescriptor->MemoryType == LoaderFree) in MmGetAddressablePageCountIncludingHoles() 434 if (MemoryDescriptor->MemoryType != LoaderFree) continue; in MmFindLocationForPageLookupTable() 486 MmGetSystemMemoryMapTypeString(MemoryDescriptor->MemoryType)); in MmInitPageLookupTable() 490 MemoryDescriptor->MemoryType); in MmInitPageLookupTable() 496 MmGetSystemMemoryMapTypeString(MemoryDescriptor->MemoryType)); in MmInitPageLookupTable() [all …]
|
H A D | heap.c | 68 TYPE_OF_MEMORY MemoryType) in FrLdrHeapCreate() argument 75 TRACE("HeapCreate(MemoryType=%ld)\n", MemoryType); in FrLdrHeapCreate() 79 Heap = MmAllocateMemoryWithType(MaximumSize, MemoryType); in FrLdrHeapCreate() 83 MaximumSize, MemoryType); in FrLdrHeapCreate()
|
/reactos/boot/freeldr/freeldr/include/ |
H A D | mm.h | 43 TYPE_OF_MEMORY MemoryType; member 112 …ookupTable, PFN_NUMBER StartPage, PFN_NUMBER PageCount, TYPE_OF_MEMORY MemoryType); // Allocate… 127 PVOID MmAllocateMemoryWithType(SIZE_T MemorySize, TYPE_OF_MEMORY MemoryType); 129 …D MmAllocateMemoryAtAddress(SIZE_T MemorySize, PVOID DesiredAddress, TYPE_OF_MEMORY MemoryType); 130 …ocateHighestMemoryBelowAddress(SIZE_T MemorySize, PVOID DesiredAddress, TYPE_OF_MEMORY MemoryType); 143 TYPE_OF_MEMORY MemoryType);
|
H A D | peloader.h | 35 _In_ TYPE_OF_MEMORY MemoryType, 41 _In_ TYPE_OF_MEMORY MemoryType,
|
/reactos/boot/environ/lib/mm/ |
H A D | pagealloc.c | 20 ULONG MemoryType; member 385 _In_ BL_MEMORY_TYPE MemoryType in MmPaAllocatePages() argument 391 if ((MemoryType >= BlLoaderHeap) && (MemoryType <= BlLoaderReferencePage)) in MmPaAllocatePages() 397 Request->MemoryType = BlConventionalMemory; in MmPaAllocatePages() 402 MemoryType); in MmPaAllocatePages() 440 _In_ BL_MEMORY_TYPE MemoryType, in MmPapAllocatePhysicalPagesInRange() argument 531 MemoryType); in MmPapAllocatePhysicalPagesInRange() 709 _In_ BL_MEMORY_TYPE MemoryType, in MmPapAllocatePagesInRange() argument 812 MemoryType); in MmPapAllocatePagesInRange() 836 MemoryType); in MmPapAllocatePagesInRange() [all …]
|
/reactos/ntoskrnl/mm/ARM3/ |
H A D | mminit.c | 425 if (MiIsMemoryTypeInvisible(Descriptor->MemoryType)) in MiScanMemoryDescriptors() 429 if (Descriptor->MemoryType != LoaderBad) in MiScanMemoryDescriptors() 451 if (MiIsMemoryTypeFree(Descriptor->MemoryType)) in MiScanMemoryDescriptors() 627 (MdBlock->MemoryType == LoaderBBTMemory) || in MiIsRegularMemory() 684 if ((MdBlock->MemoryType == LoaderFirmwarePermanent) || in MiMapPfnDatabase() 685 (MdBlock->MemoryType == LoaderBBTMemory) || in MiMapPfnDatabase() 686 (MdBlock->MemoryType == LoaderSpecialMemory)) in MiMapPfnDatabase() 934 switch (MdBlock->MemoryType) in MiBuildPfnDatabaseFromLoaderBlock() 1121 switch (MdBlock->MemoryType) in MmFreeLoaderBlock() 1654 if ((MdBlock->MemoryType < LoaderMaximum) && in MmInitializeMemoryLimits() [all …]
|
H A D | miarm.h | 682 MiIsMemoryTypeFree(TYPE_OF_MEMORY MemoryType) in MiIsMemoryTypeFree() argument 684 return ((MemoryType == LoaderFree) || in MiIsMemoryTypeFree() 685 (MemoryType == LoaderLoadedProgram) || in MiIsMemoryTypeFree() 686 (MemoryType == LoaderFirmwareTemporary) || in MiIsMemoryTypeFree() 687 (MemoryType == LoaderOsloaderStack)); in MiIsMemoryTypeFree() 692 MiIsMemoryTypeInvisible(TYPE_OF_MEMORY MemoryType) in MiIsMemoryTypeInvisible() argument 694 return ((MemoryType == LoaderFirmwarePermanent) || in MiIsMemoryTypeInvisible() 695 (MemoryType == LoaderSpecialMemory) || in MiIsMemoryTypeInvisible() 696 (MemoryType == LoaderHALCachedMemory) || in MiIsMemoryTypeInvisible() 697 (MemoryType == LoaderBBTMemory)); in MiIsMemoryTypeInvisible()
|
/reactos/ntoskrnl/mm/amd64/ |
H A D | init.c | 550 TYPE_OF_MEMORY MemoryType) in MiAddDescriptorToDatabase() argument 554 ASSERT(!MiIsMemoryTypeInvisible(MemoryType)); in MiAddDescriptorToDatabase() 557 if (MiIsMemoryTypeFree(MemoryType)) in MiAddDescriptorToDatabase() 573 else if (MemoryType == LoaderXIPRom) in MiAddDescriptorToDatabase() 594 else if (MemoryType == LoaderBad) in MiAddDescriptorToDatabase() 647 if (MiIsMemoryTypeInvisible(Descriptor->MemoryType)) continue; in MiBuildPfnDatabase() 664 MiAddDescriptorToDatabase(BasePage, PageCount, Descriptor->MemoryType); in MiBuildPfnDatabase()
|
/reactos/hal/halx86/generic/ |
H A D | memory.c | 65 if ((MdBlock->MemoryType == LoaderFree) || in HalpAllocPhysicalMemory() 66 (MdBlock->MemoryType == LoaderFirmwareTemporary)) in HalpAllocPhysicalMemory() 91 NewBlock->MemoryType = LoaderHALCachedMemory; in HalpAllocPhysicalMemory()
|
H A D | x86bios.c | 117 if ((Descriptor->MemoryType == LoaderFirmwarePermanent) || in HalInitializeBios() 118 (Descriptor->MemoryType == LoaderSpecialMemory)) in HalInitializeBios()
|
/reactos/boot/environ/lib/misc/ |
H A D | image.c | 250 _In_ ULONG MemoryType, in BlImgAllocateImageBuffer() argument 285 MemoryType, in BlImgAllocateImageBuffer() 295 MemoryType, in BlImgAllocateImageBuffer() 325 MemoryType, in BlImgAllocateImageBuffer() 337 MemoryType, in BlImgAllocateImageBuffer() 360 _In_ BL_MEMORY_TYPE MemoryType, in BlImgLoadImageWithProgress2() argument 479 MemoryType, in BlImgLoadImageWithProgress2() 695 _In_ BL_MEMORY_TYPE MemoryType, in ImgpLoadPEImage() argument 871 MemoryType, in ImgpLoadPEImage() 1278 _In_ BL_MEMORY_TYPE MemoryType, in BlImgLoadPEImageEx() argument [all …]
|
/reactos/boot/freeldr/freeldr/arch/i386/pc98/ |
H A D | pc98mem.c | 21 TYPE_OF_MEMORY MemoryType); 29 TYPE_OF_MEMORY MemoryType,
|
/reactos/boot/freeldr/freeldr/arch/arm/ |
H A D | macharm.c | 163 ArmMemoryMap[i].MemoryType = MemoryFree; in ArmMemGetMemoryMap() 165 ArmMemoryMap[i].MemoryType = MemoryFirmwarePermanent; in ArmMemGetMemoryMap()
|
/reactos/boot/freeldr/freeldr/lib/ |
H A D | peloader.c | 854 _In_ TYPE_OF_MEMORY MemoryType, in PeLdrLoadImageEx() argument 869 TRACE("PeLdrLoadImage('%s', %ld)\n", FilePath, MemoryType); in PeLdrLoadImageEx() 912 MemoryType); in PeLdrLoadImageEx() 917 PhysicalBase = MmAllocateMemoryWithType(NtHeaders->OptionalHeader.SizeOfImage, MemoryType); in PeLdrLoadImageEx() 1046 _In_ TYPE_OF_MEMORY MemoryType, in PeLdrLoadImage() argument 1049 return PeLdrLoadImageEx(FilePath, MemoryType, ImageBasePA, TRUE); in PeLdrLoadImage()
|
/reactos/boot/freeldr/freeldr/arch/i386/xbox/ |
H A D | xboxmem.c | 43 TYPE_OF_MEMORY MemoryType); 50 TYPE_OF_MEMORY MemoryType,
|
/reactos/boot/environ/lib/firmware/efi/ |
H A D | firmware.c | 1783 _In_ EFI_MEMORY_TYPE MemoryType in MmFwpGetOsMemoryType() argument 1788 switch (MemoryType) in MmFwpGetOsMemoryType() 1860 BL_MEMORY_TYPE MemoryType; in MmFwGetMemoryMap() local 2055 MemoryType = MmFwpGetOsMemoryType(EfiDescriptor.Type); in MmFwGetMemoryMap() 2058 if (MemoryType == BlConventionalMemory) in MmFwGetMemoryMap() 2077 MemoryType, in MmFwGetMemoryMap() 2125 MemoryType, in MmFwGetMemoryMap() 2169 MemoryType, in MmFwGetMemoryMap()
|
/reactos/ntoskrnl/kd64/ |
H A D | kdinit.c | 68 if (MiIsMemoryTypeInvisible(Descriptor->MemoryType)) in KdpGetMemorySizeInMBs() 72 if (Descriptor->MemoryType != LoaderBad) in KdpGetMemorySizeInMBs()
|
/reactos/ntoskrnl/ex/ |
H A D | xipdisp.c | 45 if (Descriptor->MemoryType == LoaderXIPRom) return Descriptor; in XIPpFindMemoryDescriptor()
|
H A D | init.c | 240 if (MdBlock->MemoryType == LoaderNlsData) in ExpInitNls() 874 IN TYPE_OF_MEMORY MemoryType) in ExBurnMemory() argument 892 if (MemDescriptor->MemoryType == LoaderFree || in ExBurnMemory() 893 MemDescriptor->MemoryType == LoaderFirmwareTemporary) in ExBurnMemory() 905 MemDescriptor->MemoryType = MemoryType; in ExBurnMemory()
|
/reactos/drivers/filesystems/udfs/Include/ |
H A D | env_spec_w32.cpp | 953 ULONG MemoryType, in _ExAllocatePool_() argument 1062 ULONG MemoryType, in ExAllocatePool() argument 1070 Addr = _ExAllocatePool_(MemoryType, Size+8); in ExAllocatePool() 1079 Addr = _ExAllocatePool_(MemoryType, Size+PAGE_SIZE*2); in ExAllocatePool()
|