Searched refs:nval (Results 1 – 4 of 4) sorted by relevance
/optee_os-3.20.0/core/kernel/ |
A D | refcount.c | 12 unsigned int nval; in refcount_inc() local 16 nval = oval + 1; in refcount_inc() 22 if (atomic_cas_uint(&r->val, &oval, nval)) in refcount_inc() 33 unsigned int nval; in refcount_dec() local 38 nval = oval - 1; in refcount_dec() 40 if (atomic_cas_uint(&r->val, &oval, nval)) { in refcount_dec() 45 return !nval; in refcount_dec()
|
/optee_os-3.20.0/lib/libutils/ext/include/ |
A D | atomic.h | 16 unsigned int nval) in atomic_cas_uint() argument 18 return __compiler_compare_and_swap(p, oval, nval); in atomic_cas_uint() 21 static inline bool atomic_cas_u32(uint32_t *p, uint32_t *oval, uint32_t nval) in atomic_cas_u32() argument 23 return __compiler_compare_and_swap(p, oval, nval); in atomic_cas_u32()
|
A D | compiler.h | 259 #define __compiler_compare_and_swap(p, oval, nval) \ argument 260 __atomic_compare_exchange_n((p), (oval), (nval), true, \
|
/optee_os-3.20.0/core/crypto/ |
A D | rng_fortuna.c | 269 unsigned int nval; in get_next_pnum() local 273 nval = (oval + 1) % NUM_POOLS; in get_next_pnum() 275 if (atomic_cas_uint(pnum, &oval, nval)) { in get_next_pnum() 289 return (nval + NUM_POOLS - 1) % NUM_POOLS; in get_next_pnum()
|
Completed in 5 milliseconds