Lines Matching refs:val
30 _Atomic int val; member
35 *ret = atomic_fetch_add_explicit(&refcnt->val, 1, memory_order_relaxed) + 1; in CRYPTO_UP_REF()
51 *ret = atomic_fetch_sub_explicit(&refcnt->val, 1, memory_order_relaxed) - 1; in CRYPTO_DOWN_REF()
59 *ret = atomic_load_explicit(&refcnt->val, memory_order_relaxed); in CRYPTO_GET_REF()
68 int val; member
73 *ret = __atomic_fetch_add(&refcnt->val, 1, __ATOMIC_RELAXED) + 1; in CRYPTO_UP_REF()
79 *ret = __atomic_fetch_sub(&refcnt->val, 1, __ATOMIC_RELAXED) - 1; in CRYPTO_DOWN_REF()
87 *ret = __atomic_load_n(&refcnt->val, __ATOMIC_RELAXED); in CRYPTO_GET_REF()
95 volatile int val; member
100 *ret = _InterlockedExchangeAdd((void *)&refcnt->val, 1) + 1; in CRYPTO_UP_REF()
106 *ret = _InterlockedExchangeAdd((void *)&refcnt->val, -1) - 1; in CRYPTO_DOWN_REF()
112 *ret = _InterlockedOr((void *)&refcnt->val, 0); in CRYPTO_GET_REF()
121 volatile int val; member
132 *ret = _InterlockedExchangeAdd_nf(&refcnt->val, 1) + 1; in CRYPTO_UP_REF()
138 *ret = _InterlockedExchangeAdd_nf(&refcnt->val, -1) - 1; in CRYPTO_DOWN_REF()
146 *ret = _InterlockedOr_nf((void *)&refcnt->val, 0); in CRYPTO_GET_REF()
165 *ret = _InterlockedExchangeAdd(&refcnt->val, 1) + 1; in CRYPTO_UP_REF()
171 *ret = _InterlockedExchangeAdd(&refcnt->val, -1) - 1; in CRYPTO_DOWN_REF()
177 *ret = _InterlockedExchangeAdd(&refcnt->val, 0); in CRYPTO_GET_REF()
194 int val; member
205 return CRYPTO_atomic_add(&refcnt->val, 1, ret, refcnt->lock); in CRYPTO_UP_REF()
211 return CRYPTO_atomic_add(&refcnt->val, -1, ret, refcnt->lock); in CRYPTO_DOWN_REF()
217 return CRYPTO_atomic_load_int(&refcnt->val, ret, refcnt->lock); in CRYPTO_GET_REF()
223 refcnt->val = n; in CRYPTO_NEW_REF()
243 refcnt->val++; in CRYPTO_UP_REF()
244 *ret = refcnt->val; in CRYPTO_UP_REF()
251 refcnt->val--; in CRYPTO_DOWN_REF()
252 *ret = refcnt->val; in CRYPTO_DOWN_REF()
259 *ret = refcnt->val; in CRYPTO_GET_REF()
269 refcnt->val = n; in CRYPTO_NEW_REF()
289 REF_PRINT_EX(text, object->references.val, (void *)object)