/reactos/boot/freeldr/freeldr/lib/fs/ |
H A D | fs.c | 40 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 D | devicemap.c | 57 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 D | freelist.c | 169 !(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 D | pfnlist.c | 274 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 D | session.c | 254 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 D | blkalloc.c | 30 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 D | close.c | 76 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 D | close.cpp | 271 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 D | fileinfo.cpp | 1732 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 D | create.cpp | 162 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 D | volume.c | 40 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 D | dspkginit.c | 105 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 D | session.c | 87 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 D | thredsup.c | 157 ++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 D | create.c | 86 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 D | nsrepair.c | 309 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 D | init.c | 433 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 D | utdelete.c | 444 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 D | bushndlr.c | 98 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 D | srm.c | 424 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 D | beep.c | 23 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 D | cmse.c | 101 if (SecurityData->ReferenceCount > 1) in CmpFreeSecurityDescriptor() 103 SecurityData->ReferenceCount--; in CmpFreeSecurityDescriptor()
|
/reactos/win32ss/user/winsrv/consrv/ |
H A D | handle.c | 43 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 D | clocks.c | 20 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 D | atom.c | 346 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()
|