Home
last modified time | relevance | path

Searched refs:oval (Results 1 – 4 of 4) sorted by relevance

/optee_os-3.20.0/core/kernel/
A Drefcount.c13 unsigned int oval = atomic_load_uint(&r->val); in refcount_inc() local
16 nval = oval + 1; in refcount_inc()
19 if (!oval) in refcount_inc()
22 if (atomic_cas_uint(&r->val, &oval, nval)) in refcount_inc()
34 unsigned int oval = atomic_load_uint(&r->val); in refcount_dec() local
37 assert(oval); in refcount_dec()
38 nval = oval - 1; in refcount_dec()
40 if (atomic_cas_uint(&r->val, &oval, nval)) { in refcount_dec()
/optee_os-3.20.0/lib/libutils/ext/include/
A Datomic.h15 static inline bool atomic_cas_uint(unsigned int *p, unsigned int *oval, 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 Dcompiler.h259 #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 Drng_fortuna.c270 unsigned int oval = atomic_load_uint(pnum); 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()

Completed in 6 milliseconds