/reactos/ntoskrnl/mm/ |
H A D | freelist.c | 193 PMMPFN Pfn1; in MiAllocatePagesForMdl() local 427 PMMPFN Pfn1; in MmSetRmapListHeadPage() local 433 ASSERT(Pfn1); in MmSetRmapListHeadPage() 460 PMMPFN Pfn1; in MmGetRmapListHeadPage() local 467 ASSERT(Pfn1); in MmGetRmapListHeadPage() 486 PMMPFN Pfn1; in MmSetSavedSwapEntryPage() local 503 PMMPFN Pfn1; in MmGetSavedSwapEntryPage() local 520 PMMPFN Pfn1; in MmReferencePage() local 541 PMMPFN Pfn1; in MmGetReferenceCountPage() local 567 PMMPFN Pfn1; in MmDereferencePage() local [all …]
|
/reactos/ntoskrnl/mm/ARM3/ |
H A D | pfnlist.c | 144 PMMPFN Pfn1; in MiUnlinkFreeOrZeroedPage() local 367 PMMPFN Pfn1; in MiRemovePageByColor() local 426 Pfn1->u1.Flink = Pfn1->u2.Blink = 0; in MiRemovePageByColor() 480 PMMPFN Pfn1; in MiRemoveAnyPage() local 540 PMMPFN Pfn1; in MiRemoveZeroPage() local 615 PMMPFN Pfn1; in MiInsertPageInFreeList() local 723 PMMPFN Pfn1, Pfn2; in MiInsertStandbyListAtFront() local 783 PMMPFN Pfn1, Pfn2; in MiInsertPageInList() local 974 PMMPFN Pfn1; in MiInitializePfn() local 1045 PMMPFN Pfn1; in MiInitializePfnAndMakePteValid() local [all …]
|
H A D | contmem.c | 30 PMMPFN Pfn1, EndPfn; in MiFindContiguousPages() local 74 for (Pfn1 = MI_PFN_ELEMENT(Page); Page < LastPage; Page++, Pfn1++) in MiFindContiguousPages() 79 if (MiIsPfnInUse(Pfn1)) in MiFindContiguousPages() 191 Pfn1++; in MiFindContiguousPages() 337 PMMPFN Pfn1, EndPfn; in MiFindContiguousMemory() local 361 Pfn1 = MiGetPfnEntry(Page); in MiFindContiguousMemory() 369 } while (++Pfn1 < EndPfn); in MiFindContiguousMemory() 465 PMMPFN Pfn1, StartPfn; in MiFreeContiguousMemory() local 493 if ((!Pfn1) || (Pfn1->u3.e1.StartOfAllocation == 0)) in MiFreeContiguousMemory() 508 StartPfn = Pfn1; in MiFreeContiguousMemory() [all …]
|
H A D | mminit.c | 774 PMMPFN Pfn1, Pfn2; in MiBuildPfnDatabaseFromPages() local 879 PMMPFN Pfn1; in MiBuildPfnDatabaseZeroPage() local 906 PMMPFN Pfn1; in MiBuildPfnDatabaseFromLoaderBlock() local 974 Pfn1--; in MiBuildPfnDatabaseFromLoaderBlock() 1029 Pfn1++; in MiBuildPfnDatabaseFromLoaderBlock() 1047 PMMPFN Pfn1; in MiBuildPfnDatabaseSelf() local 1099 PMMPFN Pfn1; in MmFreeLoaderBlock() local 1166 if (!(Pfn1->u3.e2.ReferenceCount) && (!Pfn1->u1.Flink)) in MmFreeLoaderBlock() 1186 Pfn1++; in MmFreeLoaderBlock() 1477 PMMPFN Pfn1; in MmDumpArmPfnDatabase() local [all …]
|
H A D | pagfault.c | 491 PMMPFN Pfn1; in MiZeroPfn() local 496 ASSERT(Pfn1); in MiZeroPfn() 609 PMMPFN Pfn1; in MiResolveDemandZeroFault() local 786 PMMPFN Pfn1, Pfn2; in MiCompleteProtoPteFault() local 910 PMMPFN Pfn1; in MiResolvePageFileFault() local 980 if (Pfn1->u1.Event) in MiResolvePageFileFault() 1000 PMMPFN Pfn1; in MiResolveTransitionFault() local 1072 if (Pfn1->u2.ShareCount == 0) MiDropLockCount(Pfn1); in MiResolveTransitionFault() 1075 Pfn1->u2.ShareCount++; in MiResolveTransitionFault() 1136 PMMPFN Pfn1; in MiResolveProtoPteFault() local [all …]
|
H A D | zeropage.c | 72 PMMPFN Pfn1 = (PMMPFN)LIST_HEAD; in MmZeroPageThread() local 100 Pfn2->u1.Flink = (PFN_NUMBER)Pfn1; in MmZeroPageThread() 101 Pfn1 = Pfn2; in MmZeroPageThread() 112 ZeroAddress = MiMapPagesInZeroSpace(Pfn1, PageCount); in MmZeroPageThread() 119 while (Pfn1 != (PMMPFN)LIST_HEAD) in MmZeroPageThread() 121 PageIndex = MiGetPfnEntryIndex(Pfn1); in MmZeroPageThread() 122 Pfn1 = (PMMPFN)Pfn1->u1.Flink; in MmZeroPageThread()
|
H A D | pool.c | 435 PMMPFN Pfn1; in MiAllocatePoolPages() local 879 Pfn1->u2.ShareCount = 1; in MiAllocatePoolPages() 892 Pfn1->u3.e1.EndOfAllocation = 1; in MiAllocatePoolPages() 921 PMMPFN Pfn1, StartPfn; in MiFreePoolPages() local 1031 Pfn1->u3.e1.EndOfAllocation = 0; in MiFreePoolPages() 1051 Pfn1 = NULL; in MiFreePoolPages() 1083 Pfn1 = NULL; in MiFreePoolPages() 1091 if ((Pfn1) && (Pfn1->u3.e1.StartOfAllocation == 0)) in MiFreePoolPages() 1124 Pfn1 = NULL; in MiFreePoolPages() 1153 Pfn1 = NULL; in MiFreePoolPages() [all …]
|
H A D | mdlsup.c | 53 PMMPFN Pfn1; in MiMapLockedPagesInUserSpace() local 260 Pfn1->u2.ShareCount++; in MiMapLockedPagesInUserSpace() 569 PMMPFN Pfn1; in MmFreePagesFromMdl() local 605 Pfn1 = MiGetPfnEntry(*Pages); in MmFreePagesFromMdl() 606 ASSERT(Pfn1); in MmFreePagesFromMdl() 621 Pfn1->u2.ShareCount = 0; in MmFreePagesFromMdl() 952 PMMPFN Pfn1; in MmProbeAndLockPages() local 1338 if (Pfn1) in MmProbeAndLockPages() 1442 PMMPFN Pfn1; in MmUnlockPages() local 1508 if (Pfn1) MiDereferencePfnAndDropLockCount(Pfn1); in MmUnlockPages() [all …]
|
H A D | miarm.h | 1116 IN PMMPFN Pfn1, 1593 MiDropLockCount(IN PMMPFN Pfn1) in MiDropLockCount() argument 1597 ASSERT(Pfn1->u2.ShareCount == 0); in MiDropLockCount() 1600 if (Pfn1->u3.e2.ReferenceCount == 1) in MiDropLockCount() 1670 if (Pfn1->u2.ShareCount >= 1) in MiDereferencePfnAndDropLockCount() 1703 if (MI_IS_ROS_PFN(Pfn1)) in MiReferenceProbedPageAndBumpLockCount() 1711 ASSERT((Pfn1->u2.ShareCount != 0) && (Pfn1->u3.e1.PageLocation == ActiveAndValid)); in MiReferenceProbedPageAndBumpLockCount() 1770 if (Pfn1->u2.ShareCount) in MiReferenceUsedPageAndBumpLockCount() 1800 ASSERT(Pfn1->u2.ShareCount == 0); in MiReferenceUnusedPageAndBumpLockCount() 2100 IN PMMPFN Pfn1, [all …]
|
H A D | hypermap.c | 111 MiMapPagesInZeroSpace(IN PMMPFN Pfn1, in MiMapPagesInZeroSpace() argument 158 ASSERT(Pfn1 != (PVOID)LIST_HEAD); in MiMapPagesInZeroSpace() 159 while (Pfn1 != (PVOID)LIST_HEAD) in MiMapPagesInZeroSpace() 162 PageFrameIndex = MiGetPfnEntryIndex(Pfn1); in MiMapPagesInZeroSpace() 176 Pfn1 = (PMMPFN)Pfn1->u1.Flink; in MiMapPagesInZeroSpace()
|
H A D | procsup.c | 192 PMMPFN Pfn1, Pfn2; in MmDeleteKernelStack() local 247 MI_SET_PFN_DELETED(Pfn1); in MmDeleteKernelStack() 1368 PMMPFN Pfn1, Pfn2; in MmDeleteProcessAddressSpace() local 1397 MI_SET_PFN_DELETED(Pfn1); in MmDeleteProcessAddressSpace() 1400 ASSERT((Pfn1->u3.e2.ReferenceCount == 0) || (Pfn1->u3.e1.WriteInProgress)); in MmDeleteProcessAddressSpace() 1404 Pfn1 = MiGetPfnEntry(PageFrameIndex); in MmDeleteProcessAddressSpace() 1408 MI_SET_PFN_DELETED(Pfn1); in MmDeleteProcessAddressSpace() 1411 ASSERT((Pfn1->u3.e2.ReferenceCount == 0) || (Pfn1->u3.e1.WriteInProgress)); in MmDeleteProcessAddressSpace() 1415 Pfn1 = MiGetPfnEntry(PageFrameIndex); in MmDeleteProcessAddressSpace() 1416 MI_SET_PFN_DELETED(Pfn1); in MmDeleteProcessAddressSpace() [all …]
|
H A D | wslist.cpp | 203 PMMPFN Pfn1 = MiGetPfnEntry(PFN_FROM_PTE(PointerPte)); in RemoveFromWsList() local 204 ASSERT(Pfn1->u3.e1.PageLocation == ActiveAndValid); in RemoveFromWsList() 207 ASSERT(Pfn1->u3.e1.PrototypePte == 0); in RemoveFromWsList() 210 ASSERT(MI_IS_ROS_PFN(Pfn1) == FALSE); in RemoveFromWsList() 213 ASSERT(Pfn1->u1.WsIndex != 0); in RemoveFromWsList() 215 FreeWsleIndex(WsList, Pfn1->u1.WsIndex); in RemoveFromWsList() 329 ASSERT(Pfn1->u3.e1.PageLocation == ActiveAndValid); in MiInsertInWorkingSetList() 332 ASSERT(Pfn1->u1.WsIndex == 0); in MiInsertInWorkingSetList() 333 ASSERT(Pfn1->u3.e1.PrototypePte == 0); in MiInsertInWorkingSetList() 336 ASSERT(MI_IS_ROS_PFN(Pfn1) == FALSE); in MiInsertInWorkingSetList() [all …]
|
H A D | virtual.c | 282 PMMPFN Pfn1, Pfn2; in MiDeleteSystemPageableVm() local 374 PMMPFN Pfn1; in MiDeletePte() local 422 ASSERT(Pfn1->u3.e2.ReferenceCount == Pfn1->u3.e1.WriteInProgress); in MiDeletePte() 2211 PMMPFN Pfn1; in MiProtectVirtualMemory() local 2582 PMMPFN Pfn1, Pfn2; in MiProcessValidPteList() local 2637 PMMPFN Pfn1; in MiDecommitPages() local 3278 PMMPFN Pfn1, in MI_IS_LOCKED_VA() argument 3295 PMMPFN Pfn1, in MI_LOCK_VA() argument 3316 PMMPFN Pfn1, in MI_UNLOCK_VA() argument 3397 PMMPFN Pfn1; in MiLockVirtualMemory() local [all …]
|
H A D | iosup.c | 57 PMMPFN Pfn1 = NULL; in MmMapIoSpace() local 93 Pfn1 = MiGetPfnEntry(Pfn); in MmMapIoSpace() 94 IsIoMapping = (Pfn1 == NULL) ? TRUE : FALSE; in MmMapIoSpace() 166 ASSERT((Pfn1 == MiGetPfnEntry(Pfn)) || (Pfn1 == NULL)); in MmMapIoSpace()
|
H A D | section.c | 597 PMMPFN Pfn1; in MiSegmentDelete() local 676 MiUnlinkPageFromList(Pfn1); in MiSegmentDelete() 680 MI_SET_PFN_DELETED(Pfn1); in MiSegmentDelete() 931 PMMPFN Pfn1; in MiSessionCommitPageTables() local 969 DBG_UNREFERENCED_LOCAL_VARIABLE(Pfn1); in MiSessionCommitPageTables() 1822 IN PMMPFN Pfn1, in MiFlushTbAndCapture() argument 1846 ASSERT(Pfn1 != NULL); in MiFlushTbAndCapture() 1901 if (!Pfn1->u3.e1.Modified) in MiFlushTbAndCapture() 1927 PMMPFN Pfn1, Pfn2; in MiRemoveMappedPtes() local 1951 ASSERT(((Pfn1->u3.e1.PrototypePte) && (Pfn1->OriginalPte.u.Soft.Prototype)) == 0); in MiRemoveMappedPtes() [all …]
|
H A D | session.c | 214 PMMPFN Pfn1; in MiReleaseProcessReferenceToSessionDataPage() local 243 Pfn1 = MI_PFN_ELEMENT(PageFrameIndex[i]); in MiReleaseProcessReferenceToSessionDataPage() 244 MI_SET_PFN_DELETED(Pfn1); in MiReleaseProcessReferenceToSessionDataPage() 252 Pfn1 = MI_PFN_ELEMENT(PageFrameIndex[i]); in MiReleaseProcessReferenceToSessionDataPage() 253 ASSERT(Pfn1->u2.ShareCount == 1); in MiReleaseProcessReferenceToSessionDataPage() 254 ASSERT(Pfn1->u3.e2.ReferenceCount == 1); in MiReleaseProcessReferenceToSessionDataPage() 255 MiDecrementShareCount(Pfn1, PageFrameIndex[i]); in MiReleaseProcessReferenceToSessionDataPage()
|
H A D | sysldr.c | 1744 PMMPFN Pfn1; in MiReloadBootLoadedDrivers() local 1775 Pfn1 = MiGetPfnEntry(PFN_FROM_PTE(PointerPte)); in MiReloadBootLoadedDrivers() 1777 snprintf(Pfn1->ProcessName, min(16, len), "%S", LdrEntry->BaseDllName.Buffer); in MiReloadBootLoadedDrivers() 1826 Pfn1 = MiGetPfnEntry(PFN_FROM_PTE(PointerPte)); in MiReloadBootLoadedDrivers() 1827 ASSERT(Pfn1->u3.e1.Rom == 0); in MiReloadBootLoadedDrivers() 1828 Pfn1->u3.e1.Modified = TRUE; in MiReloadBootLoadedDrivers() 2606 PMMPFN Pfn1; in MiSetPagingOfDriver() local 2632 Pfn1 = MiGetPfnEntry(PageFrameIndex); in MiSetPagingOfDriver() 2633 ASSERT(Pfn1->u2.ShareCount == 1); in MiSetPagingOfDriver()
|
/reactos/ntoskrnl/mm/ARM3/i386/ |
H A D | init.c | 250 PMMPFN Pfn1; in MiInitMachineDependent() local 542 Pfn1->u2.ShareCount = 0; in MiInitMachineDependent() 543 Pfn1->u3.e2.ReferenceCount = 0; in MiInitMachineDependent() 590 Pfn1 = MiGetPfnEntry(PFN_FROM_PTE(PointerPte)); in MiInitMachineDependent() 591 if (!Pfn1->u3.e2.ReferenceCount) in MiInitMachineDependent() 594 Pfn1->u4.PteFrame = PFN_FROM_PTE(StartPde); in MiInitMachineDependent() 595 Pfn1->PteAddress = PointerPte; in MiInitMachineDependent() 596 Pfn1->u2.ShareCount++; in MiInitMachineDependent() 597 Pfn1->u3.e2.ReferenceCount = 1; in MiInitMachineDependent() 598 Pfn1->u3.e1.PageLocation = ActiveAndValid; in MiInitMachineDependent() [all …]
|
/reactos/ntoskrnl/mm/i386/ |
H A D | page.c | 328 PMMPFN Pfn1; in _Success_() local 332 Pfn1 = &MmPfnDatabase[OldPte.u.Hard.PageFrameNumber]; in _Success_() 333 ASSERT(Pfn1->u3.e1.PageLocation == ActiveAndValid); in _Success_() 334 ASSERT(Pfn1->u2.ShareCount > 0); in _Success_() 335 if (--Pfn1->u2.ShareCount == 0) in _Success_() 337 Pfn1->u3.e1.PageLocation = TransitionPage; in _Success_() 699 PMMPFN Pfn1; in MmCreateVirtualMappingUnsafeEx() local 703 Pfn1 = &MmPfnDatabase[TempPte.u.Hard.PageFrameNumber]; in MmCreateVirtualMappingUnsafeEx() 704 Pfn1->u2.ShareCount++; in MmCreateVirtualMappingUnsafeEx() 705 Pfn1->u3.e1.PageLocation = ActiveAndValid; in MmCreateVirtualMappingUnsafeEx()
|
/reactos/ntoskrnl/include/internal/ |
H A D | mm.h | 1067 MiGetPfnEntryIndex(IN PMMPFN Pfn1) in MiGetPfnEntryIndex() argument 1072 return Pfn1 - MmPfnDatabase; in MiGetPfnEntryIndex() 1110 MiMapPagesInZeroSpace(IN PMMPFN Pfn1,
|