Lines Matching refs:cRefs
64 uint32_t volatile cRefs;
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);
366 Assert(cRefs < UINT32_MAX / 2);
368 return cRefs;
383 AssertReturn(pEntry->cRefs > 0, UINT32_MAX);
385 uint32_t cRefs = ASMAtomicDecU32(&pEntry->cRefs);
386 Assert(cRefs < UINT32_MAX / 2);
387 if (!cRefs)
390 pEntry->cRefs = UINT32_MAX - 2;
394 return cRefs;
404 uint32_t cRefs = ASMAtomicReadU32(&pEntry->cRefs);
405 Assert(cRefs < UINT32_MAX / 2);
407 return cRefs;