Home
last modified time | relevance | path

Searched refs:Pfn (Results 1 – 20 of 20) sorted by relevance

/reactos/ntoskrnl/mm/
H A Dfreelist.c76 FirstUserLRUPfn = Pfn; in MmInsertLRULastUserPage()
82 LastUserLRUPfn = Pfn; in MmInsertLRULastUserPage()
96 ASSERT_IS_ROS_PFN(Pfn); in MmRemoveLRUUserPage()
98 if (Pfn->PreviousLRU) in MmRemoveLRUUserPage()
100 ASSERT(Pfn->PreviousLRU->NextLRU == Pfn); in MmRemoveLRUUserPage()
101 Pfn->PreviousLRU->NextLRU = Pfn->NextLRU; in MmRemoveLRUUserPage()
109 if (Pfn->NextLRU) in MmRemoveLRUUserPage()
111 ASSERT(Pfn->NextLRU->PreviousLRU == Pfn); in MmRemoveLRUUserPage()
112 Pfn->NextLRU->PreviousLRU = Pfn->PreviousLRU; in MmRemoveLRUUserPage()
120 Pfn->PreviousLRU = Pfn->NextLRU = NULL; in MmRemoveLRUUserPage()
[all …]
/reactos/ntoskrnl/mm/amd64/
H A Dinit.c415 PMMPFN Pfn; in MiSetupPfnForPageTable() local
440 Pfn->u2.ShareCount++; in MiSetupPfnForPageTable()
453 PMMPFN Pfn; in MiBuildPfnDatabaseFromPageTables() local
473 Pfn->u1.WsIndex = 0; in MiBuildPfnDatabaseFromPageTables()
474 Pfn->u2.ShareCount = 1; in MiBuildPfnDatabaseFromPageTables()
475 Pfn->PteAddress = NULL; in MiBuildPfnDatabaseFromPageTables()
478 Pfn->u4.PteFrame = 0; in MiBuildPfnDatabaseFromPageTables()
552 PMMPFN Pfn; in MiAddDescriptorToDatabase() local
570 Pfn--; in MiAddDescriptorToDatabase()
591 Pfn++; in MiAddDescriptorToDatabase()
[all …]
/reactos/ntoskrnl/mm/i386/
H A Dpagepae.c184 PFN_NUMBER Pfn[7]; in MmCreateProcessAddressSpace() local
262 PFN_NUMBER Pfn; in MmFreePageTable() local
324 PFN_NUMBER Pfn; in MmGetPageTableForProcessForPAE() local
439 PFN_NUMBER Pfn; in MmGetPageTableForProcess() local
620 PFN_NUMBER Pfn; in MmDeleteVirtualMapping() local
655 MmMarkPageUnmapped(Pfn); in MmDeleteVirtualMapping()
659 Pfn = 0; in MmDeleteVirtualMapping()
671 *Page = Pfn; in MmDeleteVirtualMapping()
704 Pfn = PTE_TO_PFN(Pte); in MmDeleteVirtualMapping()
709 Pfn = 0; in MmDeleteVirtualMapping()
[all …]
H A Dpage.c134 PMMPFN Pfn; in MiIsPageTablePresent()
147 Pfn = MiGetPfnEntry(PFN_FROM_PXE(PointerPxe)); in MiIsPageTablePresent()
148 if (Pfn->OriginalPte.u.Soft.UsedPageTableEntries == 0) in MiIsPageTablePresent()
165 Pfn = MiGetPfnEntry(PFN_FROM_PPE(PointerPpe)); in MiIsPageTablePresent()
166 if (Pfn->OriginalPte.u.Soft.UsedPageTableEntries == 0) in MiIsPageTablePresent()
186 Pfn = MiGetPfnEntry(PFN_FROM_PDE(PointerPde)); in MiIsPageTablePresent()
187 return Pfn->OriginalPte.u.Soft.UsedPageTableEntries != 0; in MiIsPageTablePresent()
/reactos/ntoskrnl/mm/ARM3/
H A Diosup.c52 PFN_NUMBER Pfn; in MmMapIoSpace() local
92 Pfn = (PFN_NUMBER)(PhysicalAddress.QuadPart >> PAGE_SHIFT); in MmMapIoSpace()
93 Pfn1 = MiGetPfnEntry(Pfn); in MmMapIoSpace()
165 Pfn = (PFN_NUMBER)(PhysicalAddress.QuadPart >> PAGE_SHIFT); in MmMapIoSpace()
166 ASSERT((Pfn1 == MiGetPfnEntry(Pfn)) || (Pfn1 == NULL)); in MmMapIoSpace()
178 TempPte.u.Hard.PageFrameNumber = Pfn++; in MmMapIoSpace()
196 PFN_NUMBER Pfn; in MmUnmapIoSpace() local
214 Pfn = PFN_FROM_PTE(PointerPte); in MmUnmapIoSpace()
219 if (!MiGetPfnEntry(Pfn)) in MmUnmapIoSpace()
H A Dwslist.cpp89 PMMPFN Pfn = MiGetPfnEntry(Page); in FreeWsleIndex() local
90 MI_SET_PFN_DELETED(Pfn); in FreeWsleIndex()
91 MiDecrementShareCount(MiGetPfnEntry(Pfn->u4.PteFrame), Pfn->u4.PteFrame); in FreeWsleIndex()
92 MiDecrementShareCount(Pfn, Page); in FreeWsleIndex()
274 PMMPFN Pfn = MiGetPfnEntry(Page); in TrimWsList() local
277 ASSERT(Pfn->u3.e1.PrototypePte == 0); in TrimWsList()
278 ASSERT(!MI_IS_ROS_PFN(Pfn)); in TrimWsList()
281 if (Pfn->Wsle.u1.e1.LockedInMemory || (Pfn->Wsle.u1.e1.LockedInWs)) in TrimWsList()
292 Pfn->u3.e1.Modified = 1; in TrimWsList()
299 MiDecrementShareCount(Pfn, Page); in TrimWsList()
H A Dmmdbg.c40 PFN_NUMBER Pfn; in MiDbgTranslatePhysicalAddress() local
75 Pfn = (PFN_NUMBER)(PhysicalAddress >> PAGE_SHIFT); in MiDbgTranslatePhysicalAddress()
78 if (!MiGetPfnEntry(Pfn)) in MiDbgTranslatePhysicalAddress()
83 (ULONG64)Pfn); in MiDbgTranslatePhysicalAddress()
89 TempPte.u.Hard.PageFrameNumber = Pfn; in MiDbgTranslatePhysicalAddress()
H A Dpfnlist.c265 MiUnlinkPageFromList(IN PMMPFN Pfn) in MiUnlinkPageFromList() argument
274 ASSERT(Pfn->u3.e2.ReferenceCount == 0); in MiUnlinkPageFromList()
284 ASSERT(Pfn->u3.e1.Rom == 0); in MiUnlinkPageFromList()
299 ASSERT(Pfn->OriginalPte.u.Soft.Prototype == 0); in MiUnlinkPageFromList()
318 ASSERT(Pfn->u3.e1.WriteInProgress == 0); in MiUnlinkPageFromList()
319 ASSERT(Pfn->u3.e1.ReadInProgress == 0); in MiUnlinkPageFromList()
323 OldFlink = Pfn->u1.Flink; in MiUnlinkPageFromList()
324 OldBlink = Pfn->u2.Blink; in MiUnlinkPageFromList()
351 Pfn->OriginalPte.u.Long = 0; in MiUnlinkPageFromList()
354 Pfn->u1.Flink = Pfn->u2.Blink = 0; in MiUnlinkPageFromList()
[all …]
H A Dmiarm.h1582 MI_PFN_ELEMENT(IN PFN_NUMBER Pfn) in MI_PFN_ELEMENT() argument
1585 return &MmPfnDatabase[Pfn]; in MI_PFN_ELEMENT()
2061 IN PMMPFN Pfn
2477 PMMPFN Pfn; in MiIncrementPageTableReferences() local
2490 Pfn = MiGetPfnEntry(PFN_FROM_PDE(PointerPde)); in MiIncrementPageTableReferences()
2491 Pfn->OriginalPte.u.Soft.UsedPageTableEntries++; in MiIncrementPageTableReferences()
2495 return Pfn->OriginalPte.u.Soft.UsedPageTableEntries; in MiIncrementPageTableReferences()
2503 PMMPFN Pfn; in MiDecrementPageTableReferences() local
2517 Pfn = MiGetPfnEntry(PFN_FROM_PDE(PointerPde)); in MiDecrementPageTableReferences()
2520 Pfn->OriginalPte.u.Soft.UsedPageTableEntries--; in MiDecrementPageTableReferences()
[all …]
H A Dspecial.c469 PMMPFN Pfn; in MmFreeSpecialPool() local
598 Pfn = MI_PFN_ELEMENT(PointerPte->u.Hard.PageFrameNumber); in MmFreeSpecialPool()
607 MI_SET_PFN_DELETED(Pfn); in MmFreeSpecialPool()
610 MiDecrementShareCount(Pfn, PointerPte->u.Hard.PageFrameNumber); in MmFreeSpecialPool()
H A Dprocsup.c948 PMMPFN Pfn; in MmInitializeProcessAddressSpace() local
1038 Pfn = MiGetPfnEntry(Process->Pcb.DirectoryTableBase[0] >> PAGE_SHIFT); in MmInitializeProcessAddressSpace()
1039 ASSERT(Pfn->u4.PteFrame == MiGetPfnEntryIndex(Pfn)); in MmInitializeProcessAddressSpace()
1040 ASSERT(Pfn->u1.WsIndex == 0); in MmInitializeProcessAddressSpace()
1041 Pfn->u1.Event = (PKEVENT)Process; in MmInitializeProcessAddressSpace()
H A Dmminit.c485 PFN_NUMBER Pfn; in MxGetNextPage() local
499 Pfn = MxFreeDescriptor->BasePage; in MxGetNextPage()
502 return Pfn; in MxGetNextPage()
614 IN PFN_NUMBER Pfn) in MiIsRegularMemory() argument
629 if (Pfn >= (MdBlock->BasePage)) in MiIsRegularMemory()
632 if (Pfn < (MdBlock->BasePage + MdBlock->PageCount)) in MiIsRegularMemory()
658 if ((Pfn >= MxOldFreeDescriptor.BasePage) && in MiIsRegularMemory()
659 (Pfn < MxOldFreeDescriptor.BasePage + MxOldFreeDescriptor.PageCount)) in MiIsRegularMemory()
H A Dmdlsup.c427 PFN_NUMBER Pfn, PageCount; in MmBuildMdlForNonPagedPool() local
469 Pfn = PFN_FROM_PTE(PointerPte++); in MmBuildMdlForNonPagedPool()
470 *MdlPages++ = Pfn; in MmBuildMdlForNonPagedPool()
481 if (!MiGetPfnEntry(Pfn)) Mdl->MdlFlags |= MDL_IO_SPACE; in MmBuildMdlForNonPagedPool()
H A Dvirtual.c1358 PMMPFN Pfn; in MiGetPageProtection() local
1431 Pfn = MI_PFN_ELEMENT(TempPte.u.Hard.PageFrameNumber); in MiGetPageProtection()
1432 Protect = MmProtectToValue[Pfn->OriginalPte.u.Soft.Protection]; in MiGetPageProtection()
1452 Pfn = MiGetPfnEntry(TempPte.u.Hard.PageFrameNumber); in MiGetPageProtection()
1453 if (!Pfn->u3.e1.PrototypePte) in MiGetPageProtection()
1456 ASSERT(Pfn->u4.AweAllocation == 0); in MiGetPageProtection()
1457 return MmProtectToValue[Pfn->OriginalPte.u.Soft.Protection]; in MiGetPageProtection()
1461 DPRINT("Prototype PTE: %lx %p\n", TempPte.u.Hard.PageFrameNumber, Pfn); in MiGetPageProtection()
1464 DPRINT("Mask2: %lx\n", Pfn->OriginalPte.u.Soft.Protection); in MiGetPageProtection()
/reactos/ntoskrnl/mm/arm/
H A Dstubs.c76 PFN_NUMBER Pfn; in MiGetPageTableForProcess() local
159 TempPte.u.Hard.PageFrameNumber = Pfn; in MiGetPageTableForProcess()
251 PFN_NUMBER Pfn[2]; in MmCreateProcessAddressSpace() local
260 for (i = 0; i < sizeof(Pfn) / sizeof(Pfn[0]); i++) in MmCreateProcessAddressSpace()
265 Status = MmRequestPageMemoryConsumer(MC_NPPOOL, FALSE, &Pfn[i]); in MmCreateProcessAddressSpace()
272 PageDirectory = MmCreateHyperspaceMapping(Pfn[0]); in MmCreateProcessAddressSpace()
317 DirectoryTableBase[0] = Pfn[0] << PAGE_SHIFT; in MmCreateProcessAddressSpace()
475 PFN_NUMBER Pfn = 0; in MmDeleteVirtualMapping() local
497 Pfn = Pte.u.Hard.PageFrameNumber; in MmDeleteVirtualMapping()
502 if ((FreePage) && (Pfn)) MmReleasePageMemoryConsumer(MC_NPPOOL, Pfn); in MmDeleteVirtualMapping()
[all …]
/reactos/boot/freeldr/freeldr/ntldr/arch/arm/
H A Dwinldr.c111 PFN_NUMBER Pfn; in WinLdrMapSpecialPages() local
129 Pfn = PaPtrToPdePfn(&PdrPage->PageDirPageTable); in WinLdrMapSpecialPages()
132 TempPde.PageFrameNumber = Pfn++; in WinLdrMapSpecialPages()
204 PFN_NUMBER Pfn; in MempAllocatePageTables() local
221 Pfn = PaToLargePfn(MMIO_BASE); in MempAllocatePageTables()
224 TempLargePte.PageFrameNumber = Pfn++; in MempAllocatePageTables()
230 Pfn = PaPtrToPdePfn(PdrPage->KernelPageTable); in MempAllocatePageTables()
233 TempPde.PageFrameNumber = Pfn; in MempAllocatePageTables()
235 Pfn++; in MempAllocatePageTables()
240 Pfn = PaPtrToPfn(MempKernelBaseAddress); in MempAllocatePageTables()
[all …]
/reactos/hal/halx86/generic/
H A Dx86bios.c53 PFN_NUMBER Pfn, Last; in HalInitializeBios() local
98 for (Pfn = 0; Pfn < 0x100; Pfn++) in HalInitializeBios()
100 PfnArray[Pfn] = x86BiosFallbackPfn; in HalInitializeBios()
122 for (Pfn = Descriptor->BasePage; Pfn < Last; Pfn++) in HalInitializeBios()
125 PfnArray[Pfn] = Pfn; in HalInitializeBios()
132 Pfn = x86BiosBufferPhysical / PAGE_SIZE; in HalInitializeBios()
133 PfnArray[Pfn] = Pfn; in HalInitializeBios()
/reactos/sdk/lib/drivers/wdf/shared/enhancedverif/km/
H A Dvfprivkm.hpp79 __in PVOID Pfn in VerifyCriticalRegionExit() argument
87 (ULONG_PTR)Pfn, in VerifyCriticalRegionExit()
/reactos/ntoskrnl/include/internal/
H A Dmm.h1047 MiGetPfnEntry(IN PFN_NUMBER Pfn) in MiGetPfnEntry() argument
1053 if (Pfn > MmHighestPhysicalPage) return NULL; in MiGetPfnEntry()
1056 if ((MiPfnBitMap.Buffer) && !(RtlTestBit(&MiPfnBitMap, (ULONG)Pfn))) return NULL; in MiGetPfnEntry()
1059 Page = &MmPfnDatabase[Pfn]; in MiGetPfnEntry()
/reactos/sdk/lib/drivers/wdf/shared/enhancedverif/um/
H A Dvfprivum.hpp320 __in PVOID Pfn in VerifyCriticalRegionExit() argument