Home
last modified time | relevance | path

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

/optee_os/core/kernel/
A Drefcount.c12 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/out/arm/export-ta_arm32/include/
A Datomic.h16 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 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.h16 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 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.h16 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 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.c269 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()
/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, \

Completed in 11 milliseconds