Searched refs:cRefs (Results 1 - 25 of 152) sorted by relevance

1234567

/vbox/src/VBox/Additions/WINNT/VBoxCredProv/
H A DVBoxCredProvFactory.cpp45 LONG cRefs = InterlockedIncrement(&m_cRefs); local
47 cRefs);
48 return cRefs;
54 LONG cRefs = InterlockedDecrement(&m_cRefs); local
56 cRefs);
57 if (!cRefs)
62 return cRefs;
/vbox/src/VBox/Runtime/r0drv/solaris/
H A Dthreadctxhooks-r0drv-solaris.c62 uint32_t volatile cRefs; member in struct:RTTHREADCTXINT
74 AssertReturn((pThis)->cRefs > 0, (rc)); \
133 uint32_t cRefs = ASMAtomicReadU32(&pThis->cRefs); local
134 if (RT_UNLIKELY(!cRefs))
137 AssertMsgFailed(("rtThreadCtxHooksSolFree with cRefs=0 pThis=%p\n", pThis));
141 cRefs = ASMAtomicDecU32(&pThis->cRefs);
142 if (!cRefs)
162 pThis->cRefs
201 uint32_t cRefs = ASMAtomicIncU32(&pThis->cRefs); local
217 uint32_t cRefs = ASMAtomicDecU32(&pThis->cRefs); local
[all...]
H A Ddbgkrnlinfo-r0drv-solaris.c57 uint32_t volatile cRefs; member in struct:RTDBGKRNLINFOINT
155 pThis->cRefs = 1;
173 uint32_t cRefs = ASMAtomicIncU32(&pThis->cRefs); local
174 Assert(cRefs && cRefs < 100000);
175 return cRefs;
189 uint32_t cRefs = ASMAtomicDecU32(&pThis->cRefs); local
190 if (cRefs
[all...]
H A Dsemeventmulti-r0drv-solaris.c80 uint32_t volatile cRefs; member in struct:RTSEMEVENTMULTIINTERNAL
111 pThis->cRefs = 1;
130 uint32_t cRefs = ASMAtomicIncU32(&pThis->cRefs); local
131 Assert(cRefs && cRefs < 100000);
132 NOREF(cRefs);
137 * Destructor that is called when cRefs == 0.
157 if (RT_UNLIKELY(ASMAtomicDecU32(&pThis->cRefs) == 0))
170 AssertMsgReturn(pThis->cRefs >
[all...]
H A Dsemevent-r0drv-solaris.c82 uint32_t volatile cRefs; member in struct:RTSEMEVENTINTERNAL
114 pThis->cRefs = 1;
132 uint32_t cRefs = ASMAtomicIncU32(&pThis->cRefs); local
133 Assert(cRefs && cRefs < 100000);
134 NOREF(cRefs);
159 if (RT_UNLIKELY(ASMAtomicDecU32(&pThis->cRefs) == 0))
174 Assert(pThis->cRefs > 0);
/vbox/src/VBox/Runtime/common/log/
H A Dtracedefault.cpp26 uint32_t cRefs = RTTraceBufRetain(hTraceBuf); local
27 if (cRefs >= _1M)
H A Dtracebuf.cpp57 uint32_t volatile cRefs; member in struct:RTTRACEBUFVOLATILE
136 AssertReturn(RTTRACEBUF_TO_VOLATILE(a_pThis)->cRefs > 0, (a_rc)); \
147 uint32_t cRefs; \
162 cRefs = ASMAtomicIncU32(&RTTRACEBUF_TO_VOLATILE(a_pThis)->cRefs); \
163 if (RT_UNLIKELY(cRefs < 1 || cRefs >= _1M)) \
165 ASMAtomicDecU32(&RTTRACEBUF_TO_VOLATILE(a_pThis)->cRefs); \
178 uint32_t cRefs = ASMAtomicDecU32(&RTTRACEBUF_TO_VOLATILE(a_pThis)->cRefs); \
451 uint32_t cRefs = ASMAtomicDecU32(&RTTRACEBUF_TO_VOLATILE(pThis)->cRefs); local
[all...]
/vbox/src/VBox/Runtime/generic/
H A Dmempool-generic.cpp64 uint32_t volatile cRefs; member in struct:RTMEMPOOLENTRY
109 Assert((pEntry)->cRefs < UINT32_MAX / 2); \
179 Assert(pFree->cRefs > 0 && pFree->cRefs < UINT32_MAX / 2);
185 pFree->cRefs = UINT32_MAX - 3;
201 pEntry->cRefs = 1;
333 AssertReturn(pOldEntry->cRefs == 1, NULL);
365 uint32_t cRefs = ASMAtomicIncU32(&pEntry->cRefs); variable
366 Assert(cRefs < UINT32_MA
385 uint32_t cRefs = ASMAtomicDecU32(&pEntry->cRefs); variable
[all...]
/vbox/src/VBox/VMM/include/
H A DPDMNetShaperInternal.h42 volatile uint32_t cRefs; member in struct:PDMNSBWGROUP
H A DIOMInline.h86 uint32_t cRefs = ASMAtomicIncU32(&pRange->cRefs); local
87 Assert(cRefs > 1);
88 Assert(cRefs < _1M);
89 NOREF(cRefs);
130 uint32_t cRefs = ASMAtomicDecU32(&pRange->cRefs);
131 if (!cRefs)
/vbox/src/VBox/HostDrivers/VBoxNetFlt/
H A DVBoxNetFlt.c649 uint32_t cRefs = ASMAtomicUoReadU32((uint32_t volatile *)&pThis->cRefs); local
664 Assert(!pThis->cRefs);
692 NOREF(cRefs);
709 uint32_t cRefs; local
729 cRefs = ASMAtomicDecU32(&pThis->cBusy);
730 if (!cRefs)
736 Assert(cRefs < UINT32_MAX / 2);
742 cRefs = ASMAtomicDecU32(&pThis->cRefs);
778 uint32_t cRefs; local
823 uint32_t cRefs; local
869 uint32_t cRefs; local
1135 uint32_t cRefs = ASMAtomicIncU32(&pCur->cRefs); local
1258 uint32_t cRefs = ASMAtomicIncU32(&pCur->cRefs); local
1320 int32_t cRefs = ASMAtomicDecS32(&pGlobals->cFactoryRefs); local
[all...]
/vbox/src/VBox/Runtime/common/crypto/
H A Dpkix-signature-core.cpp53 uint32_t volatile cRefs; member in struct:RTCRPKIXSIGNATUREINT
113 pThis->cRefs = 1;
140 uint32_t cRefs = ASMAtomicIncU32(&pThis->cRefs); local
141 Assert(cRefs < 64);
142 return cRefs;
154 uint32_t cRefs = ASMAtomicDecU32(&pThis->cRefs); local
155 Assert(cRefs < 64);
156 if (!cRefs)
[all...]
H A Ddigest-core.cpp51 uint32_t volatile cRefs; member in struct:RTCRDIGESTINT
95 pThis->cRefs = 1;
127 pThis->cRefs = 1;
180 uint32_t cRefs = ASMAtomicIncU32(&pThis->cRefs); local
181 Assert(cRefs < 64);
182 return cRefs;
194 uint32_t cRefs = ASMAtomicDecU32(&pThis->cRefs); local
195 if (!cRefs)
[all...]
/vbox/src/VBox/HostDrivers/VBoxUSB/win/cmn/
H A DVBoxDrvTool.h89 volatile uint32_t cRefs; member in struct:VBOXDRVTOOL_REF
94 pRef->cRefs = 1;
99 Assert(pRef->cRefs);
100 Assert(pRef->cRefs < UINT32_MAX / 2);
101 return ASMAtomicIncU32(&pRef->cRefs);
106 uint32_t cRefs = ASMAtomicDecU32(&pRef->cRefs); local
107 Assert(cRefs < UINT32_MAX/2);
108 return cRefs;
/vbox/src/VBox/Runtime/r0drv/linux/
H A Dthreadctxhooks-r0drv-linux.c73 uint32_t volatile cRefs; member in struct:RTTHREADCTXINT
175 pThis->cRefs = 1;
188 uint32_t cRefs; local
194 cRefs = ASMAtomicIncU32(&pThis->cRefs);
195 Assert(cRefs < UINT32_MAX / 2);
196 return cRefs;
207 uint32_t cRefs; local
217 cRefs = ASMAtomicDecU32(&pThis->cRefs);
[all...]
H A Dsemevent-r0drv-linux.c59 uint32_t volatile cRefs; member in struct:RTSEMEVENTINTERNAL
85 pThis->cRefs = 1;
101 uint32_t cRefs = ASMAtomicIncU32(&pThis->cRefs); local
102 Assert(cRefs < 100000); NOREF(cRefs);
113 if (RT_UNLIKELY(ASMAtomicDecU32(&pThis->cRefs) == 0))
127 Assert(pThis->cRefs > 0);
H A Dsemeventmulti-r0drv-linux.c79 uint32_t volatile cRefs; member in struct:RTSEMEVENTMULTIINTERNAL
105 pThis->cRefs = 1;
123 uint32_t cRefs = ASMAtomicIncU32(&pThis->cRefs); local
124 NOREF(cRefs);
125 Assert(cRefs && cRefs < 100000);
136 if (RT_UNLIKELY(ASMAtomicDecU32(&pThis->cRefs) == 0))
154 Assert(pThis->cRefs > 0);
/vbox/src/VBox/Runtime/r0drv/freebsd/
H A Dsemevent-r0drv-freebsd.c62 uint32_t volatile cRefs; member in struct:RTSEMEVENTINTERNAL
84 pThis->cRefs = 1;
99 uint32_t cRefs = ASMAtomicIncU32(&pThis->cRefs); local
100 Assert(cRefs < 100000); NOREF(cRefs);
111 if (RT_UNLIKELY(ASMAtomicDecU32(&pThis->cRefs) == 0))
125 Assert(pThis->cRefs > 0);
/vbox/src/VBox/Runtime/r0drv/haiku/
H A Dsemevent-r0drv-haiku.c55 uint32_t volatile cRefs; member in struct:RTSEMEVENTINTERNAL
79 pThis->cRefs = 1;
100 uint32_t cRefs = ASMAtomicIncU32(&pThis->cRefs); local
101 Assert(cRefs < 100000); NOREF(cRefs);
112 if (RT_UNLIKELY(ASMAtomicDecU32(&pThis->cRefs) == 0))
126 Assert(pThis->cRefs > 0);
/vbox/src/VBox/Runtime/testcase/
H A DtstRTStrCache.cpp190 for (uint32_t cRefs = 3;; cRefs--)
192 RTTESTI_CHECK(RTStrCacheRelease(hStrCache, psz) == cRefs);
193 if (cRefs == 0)
195 RTTESTI_CHECK_MSG_RETV((pv2 = ASMMemIsAll8(psz, i, 'a')) == NULL && !psz[i], ("i=%#x psz=%p off=%#x cRefs=%d\n", i, psz, (uintptr_t)pv2 - (uintptr_t)psz, cRefs));
202 RTTESTI_CHECK_MSG_RETV((pv2 = ASMMemIsAll8(psz, i, 'a')) == NULL && !psz[i], ("i=%#x psz=%p off=%#x cRefs=%d\n", i, psz, (uintptr_t)pv2 - (uintptr_t)psz, cRefs));
224 uint32_t cRefs; local
228 RTTESTI_CHECK_MSG((cRefs
235 uint32_t cRefs; local
[all...]
/vbox/src/VBox/Runtime/common/dvm/
H A Ddvm.cpp61 uint32_t volatile cRefs; member in struct:RTDVMINTERNAL
86 uint32_t volatile cRefs; member in struct:RTDVMVOLUMEINTERNAL
149 pVol->cRefs = 0;
207 pThis->cRefs = 1;
223 uint32_t cRefs = ASMAtomicIncU32(&pThis->cRefs); local
224 AssertMsg(cRefs > 1 && cRefs < _1M, ("%#x %p\n", cRefs, pThis));
225 return cRefs;
260 uint32_t cRefs = ASMAtomicDecU32(&pThis->cRefs); local
557 uint32_t cRefs = ASMAtomicIncU32(&pThis->cRefs); local
572 uint32_t cRefs = ASMAtomicDecU32(&pThis->cRefs); local
[all...]
/vbox/include/VBox/
H A DVBoxVideo3D.h94 int cRefs = ASMAtomicIncS32(&(_p)->cTlsRefs); \
95 VBoxTlsRefAssertImpl(cRefs > 1 || (_p)->enmTlsRefState == VBOXTLSREFDATA_STATE_DESTROYING); \
101 int cRefs = ASMAtomicDecS32(&(_p)->cTlsRefs); \
102 VBoxTlsRefAssertImpl(cRefs >= 0); \
103 if (!cRefs && (_p)->enmTlsRefState != VBOXTLSREFDATA_STATE_DESTROYING /* <- avoid recursion if VBoxTlsRefAddRef/Release is called from dtor */) { \
/vbox/src/VBox/Main/src-all/
H A DSecretKeyStore.cpp60 uint32_t cRefs = ASMAtomicIncU32(&m_cRefs); local
61 if (cRefs == 1)
67 return cRefs;
72 uint32_t cRefs = ASMAtomicDecU32(&m_cRefs); local
73 if (!cRefs)
79 return cRefs;
/vbox/src/VBox/VMM/VMMRZ/
H A DPGMRZDynMap.cpp144 (pEntry)->cRefs = 0; \
207 int32_t volatile cRefs; member in struct:PGMR0DYNMAPENTRY
326 static void pgmRZDynMapReleasePage(PPGMRZDYNMAP pThis, uint32_t iPage, uint32_t cRefs);
562 int32_t cRefs = pSet->aEntries[j].cRefs; local
564 LogRel(("PGMR0DynMapTermVM: %d dangling refs to %#x\n", cRefs, iPage));
565 if (iPage < pThis->cPages && cRefs > 0)
566 pgmRZDynMapReleasePage(pThis, iPage, cRefs);
568 AssertLogRelMsgFailed(("cRefs=%d iPage=%#x cPages=%u\n", cRefs, iPag
1308 pgmRZDynMapReleasePageLocked(PPGMRZDYNMAP pThis, uint32_t iPage, int32_t cRefs) argument
1331 pgmRZDynMapReleasePage(PPGMRZDYNMAP pThis, uint32_t iPage, uint32_t cRefs) argument
1508 int32_t cRefs = ASMAtomicIncS32(&paPages[iPage].cRefs); local
1911 int32_t cRefs = pSet->aEntries[i].cRefs; local
2076 int32_t cRefs = pSet->aEntries[i].cRefs; local
[all...]
/vbox/src/VBox/Runtime/r0drv/
H A Dmp-r0drv.h61 int32_t volatile cRefs; member in struct:RTMPARGS

Completed in 1532 milliseconds

1234567