Home
last modified time | relevance | path

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

/optee_os/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/out/arm/export-ta_arm32/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.h244 #define __compiler_compare_and_swap(p, oval, nval) \ argument
245 __atomic_compare_exchange_n((p), (oval), (nval), true, \
/optee_os/out/arm/export-ta_arm64/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.h244 #define __compiler_compare_and_swap(p, oval, nval) \ argument
245 __atomic_compare_exchange_n((p), (oval), (nval), true, \
/optee_os/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.h244 #define __compiler_compare_and_swap(p, oval, nval) \ argument
245 __atomic_compare_exchange_n((p), (oval), (nval), true, \
/optee_os/out/arm/export-ta_arm32/host_include/
A Dcompiler.h244 #define __compiler_compare_and_swap(p, oval, nval) \ argument
245 __atomic_compare_exchange_n((p), (oval), (nval), true, \
/optee_os/out/arm/export-ta_arm64/host_include/
A Dcompiler.h244 #define __compiler_compare_and_swap(p, oval, nval) \ argument
245 __atomic_compare_exchange_n((p), (oval), (nval), true, \
/optee_os/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 10 milliseconds