Home
last modified time | relevance | path

Searched refs:ReferenceCount (Results 1 – 25 of 125) sorted by relevance

12345

/reactos/boot/freeldr/freeldr/lib/fs/
H A Dfs.c40 ULONG ReferenceCount; member
46 ULONG ReferenceCount; member
141 i, pFileData->ReferenceCount, in DumpFileTable()
273 if (pDevice->ReferenceCount == 0) in ArcOpen()
303 pDevice->ReferenceCount++; in ArcOpen()
304 FileData[DeviceId].ReferenceCount++; in ArcOpen()
356 FileData[i].ReferenceCount = 0; in ArcOpen()
370 FileData[i].ReferenceCount++; in ArcOpen()
385 if (--pDevice->ReferenceCount == 0) in ArcOpen()
437 if (--pDevice->ReferenceCount == 0) in ArcClose()
[all …]
/reactos/ntoskrnl/ob/
H A Ddevicemap.c57 DeviceMap->ReferenceCount = 1; in ObSetDeviceMap()
75 ++DeviceMap->ReferenceCount; in ObSetDeviceMap()
182 LocalMap->ReferenceCount = 1; in ObSetDirectoryDeviceMap()
200 ++LocalMap->ReferenceCount; in ObSetDirectoryDeviceMap()
303 ++DeviceMap->ReferenceCount; in ObpSetCurrentProcessDeviceMap()
381 ++DeviceMap->ReferenceCount; in ObpReferenceDeviceMap()
437 ++DeviceMap->ReferenceCount; in ObpReferenceDeviceMap()
485 DeviceMap->ReferenceCount--; in ObfDereferenceDeviceMap()
486 DPRINT("ReferenceCount: %lu\n", DeviceMap->ReferenceCount); in ObfDereferenceDeviceMap()
489 if (DeviceMap->ReferenceCount != 0) in ObfDereferenceDeviceMap()
[all …]
/reactos/ntoskrnl/mm/
H A Dfreelist.c169 !(Pfn1->u3.e2.ReferenceCount)); in MiIsPfnFree()
286 ASSERT(Pfn1->u3.e2.ReferenceCount == 0); in MiAllocatePagesForMdl()
289 Pfn1->u3.e2.ReferenceCount = 1; in MiAllocatePagesForMdl()
342 Pfn1->u3.e2.ReferenceCount = 1; in MiAllocatePagesForMdl()
532 ASSERT(Pfn1->u3.e2.ReferenceCount != 0); in MmReferencePage()
533 Pfn1->u3.e2.ReferenceCount++; in MmReferencePage()
551 RCount = Pfn1->u3.e2.ReferenceCount; in MmGetReferenceCountPage()
576 ASSERT(Pfn1->u3.e2.ReferenceCount != 0); in MmDereferencePage()
577 Pfn1->u3.e2.ReferenceCount--; in MmDereferencePage()
578 if (Pfn1->u3.e2.ReferenceCount == 0) in MmDereferencePage()
[all …]
/reactos/ntoskrnl/mm/ARM3/
H A Dpfnlist.c274 ASSERT(Pfn->u3.e2.ReferenceCount == 0); in MiUnlinkPageFromList()
526 ASSERT(Pfn1->u3.e2.ReferenceCount == 0); in MiRemoveAnyPage()
600 ASSERT(Pfn1->u3.e2.ReferenceCount == 0); in MiRemoveZeroPage()
634 ASSERT(Pfn1->u3.e2.ReferenceCount == 0); in MiInsertPageInFreeList()
737 ASSERT(Pfn1->u3.e2.ReferenceCount == 0); in MiInsertStandbyListAtFront()
1004 Pfn1->u3.e2.ReferenceCount = 1; in MiInitializePfn()
1062 Pfn1->u3.e2.ReferenceCount++; in MiInitializePfnAndMakePteValid()
1252 Pfn1->u3.e2.ReferenceCount == 0 || in MiDecrementReferenceCount()
1253 Pfn1->u3.e2.ReferenceCount >= 2500) in MiDecrementReferenceCount()
1265 if (Pfn1->u3.e2.ReferenceCount) return; in MiDecrementReferenceCount()
[all …]
H A Dsession.c254 ASSERT(Pfn1->u3.e2.ReferenceCount == 1); in MiReleaseProcessReferenceToSessionDataPage()
343 ULONG ReferenceCount, SessionId; in MiDereferenceSession() local
349 (MmSessionSpace->ReferenceCount == 1))); in MiDereferenceSession()
362 ReferenceCount = InterlockedDecrement(&MmSessionSpace->ReferenceCount); in MiDereferenceSession()
363 if (ReferenceCount == 0) in MiDereferenceSession()
438 InterlockedIncrement((PLONG)&SessionGlobal->ReferenceCount); in MiSessionAddProcess()
779 MmSessionSpace->ReferenceCount = 1; in MiSessionCreateInternal()
/reactos/boot/environ/lib/mm/
H A Dblkalloc.c30 ULONG ReferenceCount; member
111 if (BlockInfo->ReferenceCount) in BlpMmDeleteBlockAllocator()
132 BlockInfo->ReferenceCount--; in BlpMmDeleteBlockAllocator()
163 if (BlockInfo->ReferenceCount > 1) in MmBapFreeBlockAllocatorTableEntry()
196 if (BlockInfo->ReferenceCount) in MmBapPurgeBlockAllocatorTableEntry()
255 BlockInfo->ReferenceCount = 1; in BlpMmCreateBlockAllocator()
/reactos/drivers/filesystems/ext2/src/
H A Dclose.c76 Vcb, Vcb->ReferenceCount)); in Ext2Close()
93 Vcb->OpenHandleCount, Vcb->ReferenceCount)); in Ext2Close()
101 Ext2DerefXcb(&Vcb->ReferenceCount); in Ext2Close()
136 … Fcb, Fcb->OpenHandleCount, Fcb->ReferenceCount, Fcb->NonCachedOpenCount, &Fcb->Mcb->FullName )); in Ext2Close()
152 Ext2DerefXcb(&Vcb->ReferenceCount); in Ext2Close()
183 Ext2DerefXcb(&Fcb->ReferenceCount); in Ext2Close()
/reactos/drivers/filesystems/udfs/
H A Dclose.cpp271 AdPrint(("UDF: ReferenceCount: %x\n",Fcb->ReferenceCount)); in UDFCommonClose()
275 UDFInterlockedDecrement((PLONG)&(Fcb->ReferenceCount)); in UDFCommonClose()
301 UDFInterlockedDecrement((PLONG)&(Fcb->ReferenceCount)); in UDFCommonClose()
337 AdPrint(("UDF: ReferenceCount: %x\n",Fcb->ReferenceCount)); in UDFCommonClose()
475 ASSERT(Fcb->ReferenceCount); in UDFCleanUpFcbChain()
485 ASSERT(Fcb->OpenHandleCount <= Fcb->ReferenceCount); in UDFCleanUpFcbChain()
519 ASSERT(Fcb->ReferenceCount < fi->RefCount); in UDFCleanUpFcbChain()
523 ASSERT(Fcb->ReferenceCount == fi->RefCount); in UDFCleanUpFcbChain()
650 ASSERT(Fcb->ReferenceCount); in UDFCleanUpFcbChain()
652 ASSERT_REF(Fcb->ReferenceCount > fi->RefCount); in UDFCleanUpFcbChain()
[all …]
H A Dfileinfo.cpp1732 UDFInterlockedIncrement((PLONG)&(Fcb->ReferenceCount)); in UDFSetEOF()
1738 UDFInterlockedDecrement((PLONG)&(Fcb->ReferenceCount)); in UDFSetEOF()
2122 ASSERT_REF(Fcb1->ReferenceCount >= File1->RefCount); in UDFRename()
2225 ASSERT_REF(Dir1->Fcb->ReferenceCount >= Dir1->RefCount); in UDFRename()
2255 ASSERT_REF(NextFileInfo->Fcb->ReferenceCount); in UDFRename()
2286 ASSERT_REF(Dir2->Fcb->ReferenceCount >= Dir2->RefCount); in UDFRename()
2289 ASSERT_REF(Dir1->Fcb->ReferenceCount >= Dir1->RefCount); in UDFRename()
2333 ASSERT_REF(Fcb1->ReferenceCount >= File1->RefCount); in UDFRename()
2334 ASSERT_REF(Dir1->Fcb->ReferenceCount >= Dir1->RefCount); in UDFRename()
2335 ASSERT_REF(Dir2->Fcb->ReferenceCount >= Dir2->RefCount); in UDFRename()
[all …]
H A Dcreate.cpp162 UDFInterlockedIncrement((PLONG)&(RelatedFileInfo->Fcb->ReferenceCount)); in UDFAcquireParent()
165 ASSERT_REF(RelatedFileInfo->Fcb->ReferenceCount >= RelatedFileInfo->RefCount); in UDFAcquireParent()
1332 !PtrNewFcb->ReferenceCount && in UDFCommonCreate()
1341 (!PtrNewFcb || !PtrNewFcb->ReferenceCount)) { in UDFCommonCreate()
1402 UDFInterlockedDecrement((PLONG)&(PtrNewFcb->ReferenceCount)); in UDFCommonCreate()
1467 UDFInterlockedDecrement((PLONG)&(PtrNewFcb->ReferenceCount)); in UDFCommonCreate()
1470 ASSERT_REF(PtrNewFcb->ReferenceCount >= NewFileInfo->RefCount); in UDFCommonCreate()
1566 !PtrNewFcb->ReferenceCount && in UDFCommonCreate()
2461 UDFInterlockedIncrement((PLONG)&(PtrNewFcb->ReferenceCount)); in UDFOpenFile()
2488 UDFInterlockedIncrement((PLONG)&(PtrNewFcb->ReferenceCount)); in UDFOpenFile()
[all …]
/reactos/ntoskrnl/io/iomgr/
H A Dvolume.c40 ASSERT(DeviceObject->ReferenceCount > 0); in IopDecrementDeviceObjectRef()
42 if (--DeviceObject->ReferenceCount > 0) in IopDecrementDeviceObjectRef()
145 Vpb->ReferenceCount++; in IopCheckVpbMounted()
192 Vpb->ReferenceCount--; in IopDereferenceVpbAndFree()
195 if (!Vpb->ReferenceCount && Vpb->RealDevice->Vpb == Vpb && in IopDereferenceVpbAndFree()
238 LocalVpb->ReferenceCount++; in IopReferenceVerifyVpb()
273 Vpb->ReferenceCount++; in IopMountInitializeVpb()
376 … IopInterlockedIncrementUlong(LockQueueIoDatabaseLock, (PULONG)&DeviceObject->ReferenceCount); in IopShutdownBaseFileSystems()
968 IopInterlockedDecrementUlong(LockQueueIoVpbLock, &NewVpb->ReferenceCount); in IoVerifyVolume()
1048 IopInterlockedIncrementUlong(LockQueueIoDatabaseLock, (PULONG)&DeviceObject->ReferenceCount); in IoRegisterFileSystem()
[all …]
/reactos/drivers/bus/acpi/acpica/dispatcher/
H A Ddspkginit.c105 UINT16 ReferenceCount; in AcpiDsBuildInternalPackageObj() local
273 ReferenceCount = (*ObjDescPtr)->Common.ReferenceCount; in AcpiDsBuildInternalPackageObj()
274 if (ReferenceCount > 1) in AcpiDsBuildInternalPackageObj()
279 for (Index = 0; Index < ((UINT32) ReferenceCount - 1); Index++) in AcpiDsBuildInternalPackageObj()
/reactos/subsystems/csr/csrsrv/
H A Dsession.c87 NtSession->ReferenceCount = 1; in CsrAllocateNtSession()
126 ASSERT(Session->ReferenceCount != 0); in CsrReferenceNtSession()
129 Session->ReferenceCount++; in CsrReferenceNtSession()
165 ASSERT(Session->ReferenceCount != 0); in CsrDereferenceNtSession()
168 if ((--Session->ReferenceCount) == 0) in CsrDereferenceNtSession()
H A Dthredsup.c157 ++CsrThread->ReferenceCount; in CsrLockedReferenceThread()
472 LockCount = --CsrThread->ReferenceCount; in CsrLockedDereferenceThread()
782 ASSERT(CsrThread->ReferenceCount > 0); in CsrDereferenceThread()
783 if ((--CsrThread->ReferenceCount) == 0) in CsrDereferenceThread()
1050 ASSERT(CsrThread->ReferenceCount != 0); in CsrReferenceThread()
1053 CsrThread->ReferenceCount++; in CsrReferenceThread()
/reactos/drivers/filesystems/msfs/
H A Dcreate.c86 Fcb->ReferenceCount++; in MsfsCreate()
173 Fcb->ReferenceCount = 0; in MsfsCreateMailslot()
233 Fcb->ReferenceCount++; in MsfsCreateMailslot()
289 Fcb->ReferenceCount--; in MsfsClose()
316 if (Fcb->ReferenceCount == 0) in MsfsClose()
/reactos/drivers/bus/acpi/acpica/namespace/
H A Dnsrepair.c309 NewObject->Common.ReferenceCount = in AcpiNsSimpleRepair()
310 ReturnObject->Common.ReferenceCount; in AcpiNsSimpleRepair()
463 NewObject->Common.ReferenceCount = in AcpiNsRepairNullElement()
464 Info->ParentPackage->Common.ReferenceCount; in AcpiNsRepairNullElement()
/reactos/ntoskrnl/mm/amd64/
H A Dinit.c433 Pfn->u3.e2.ReferenceCount = 1; in MiSetupPfnForPageTable()
477 Pfn->u3.e2.ReferenceCount = 1; in MiBuildPfnDatabaseFromPageTables()
586 Pfn->u3.e2.ReferenceCount = 0; in MiAddDescriptorToDatabase()
730 Pfn->u3.e2.ReferenceCount = 0; in MiInitMachineDependent()
734 Pfn->u3.e2.ReferenceCount = 0; in MiInitMachineDependent()
738 Pfn->u3.e2.ReferenceCount = 0; in MiInitMachineDependent()
742 Pfn->u3.e2.ReferenceCount = 0; in MiInitMachineDependent()
746 Pfn->u3.e2.ReferenceCount = 0; in MiInitMachineDependent()
/reactos/drivers/bus/acpi/acpica/utilities/
H A Dutdelete.c444 OriginalCount = Object->Common.ReferenceCount; in AcpiUtUpdateRefCount()
453 Object->Common.ReferenceCount = NewCount; in AcpiUtUpdateRefCount()
479 Object->Common.ReferenceCount = NewCount; in AcpiUtUpdateRefCount()
768 Object, Object->Common.ReferenceCount)); in AcpiUtAddReference()
817 ACPI_GET_FUNCTION_NAME, Object, Object->Common.ReferenceCount)); in AcpiUtRemoveReference()
/reactos/hal/halx86/legacy/bus/
H A Dbushndlr.c98 if (AddReference) Bus->ReferenceCount++; in HalpLookupHandler()
177 Bus->ReferenceCount++; in HaliReferenceBusHandler()
188 Bus->ReferenceCount--; in HaliDereferenceBusHandler()
189 ASSERT(Bus->ReferenceCount != 0); in HaliDereferenceBusHandler()
331 Bus->ReferenceCount = 1; in HaliRegisterBusHandler()
/reactos/ntoskrnl/se/
H A Dsrm.c424 Token->LogonSession->ReferenceCount = LogonSession->ReferenceCount; in SepRmInsertLogonSessionIntoToken()
533 NewSession->ReferenceCount = 0; in SepRmCreateLogonSession()
644 if (SessionToDelete->ReferenceCount != 0) in SepRmDeleteLogonSession()
717 ++CurrentSession->ReferenceCount; in SepRmReferenceLogonSession()
718 DPRINT("ReferenceCount: %lu\n", CurrentSession->ReferenceCount); in SepRmReferenceLogonSession()
1030 RefCount = --CurrentSession->ReferenceCount; in SepRmDereferenceLogonSession()
1031 DPRINT("ReferenceCount: %lu\n", CurrentSession->ReferenceCount); in SepRmDereferenceLogonSession()
1406 CurrentSession->ReferenceCount += 1; in SeGetLogonIdDeviceMap()
/reactos/drivers/base/beep/
H A Dbeep.c23 LONG ReferenceCount; member
62 if (++DeviceExtension->ReferenceCount == 1) in BeepCreate()
88 if (!(--DeviceExtension->ReferenceCount)) in BeepClose()
400 DeviceExtension->ReferenceCount = 0; in DriverEntry()
/reactos/sdk/lib/cmlib/
H A Dcmse.c101 if (SecurityData->ReferenceCount > 1) in CmpFreeSecurityDescriptor()
103 SecurityData->ReferenceCount--; in CmpFreeSecurityDescriptor()
/reactos/win32ss/user/winsrv/consrv/
H A Dhandle.c43 Handle, Change, Object, Object->ReferenceCount, Object->Type); in AdjustHandleCounts()
50 Object->ReferenceCount += Change; in AdjustHandleCounts()
52 return Object->ReferenceCount; in AdjustHandleCounts()
220 Object->ReferenceCount = 0; in ConSrvInitObject()
365 _InterlockedIncrement(&ObjectEntry->Console->ReferenceCount); in ConSrvGetObject()
/reactos/drivers/ksfilter/ks/
H A Dclocks.c20 LONG ReferenceCount; member
423 InterlockedIncrement(&Clock->DefaultClock->ReferenceCount); in KsCreateDefaultClock()
468 Clock->ReferenceCount = 1; in KsAllocateDefaultClockEx()
503 InterlockedDecrement(&Clock->ReferenceCount); in KsFreeDefaultClock()
505 if (Clock->ReferenceCount == 0) in KsFreeDefaultClock()
/reactos/sdk/lib/rtl/
H A Datom.c346 if (++Entry->ReferenceCount == 0) in RtlAddAtomToAtomTable()
379 Entry->ReferenceCount = 1; in RtlAddAtomToAtomTable()
446 if (--Entry->ReferenceCount == 0) in RtlDeleteAtomFromAtomTable()
628 NumberEntry.AtomTableEntry.ReferenceCount = 1; in RtlQueryAtomInAtomTable()
646 *RefCount = Entry->ReferenceCount; in RtlQueryAtomInAtomTable()

12345