Lines Matching refs:target
23 static inline bool atomic_cas(atomic_t *target, atomic_val_t old_value, in atomic_cas() argument
26 return __atomic_compare_exchange_n(target, &old_value, new_value, in atomic_cas()
31 static inline bool atomic_ptr_cas(atomic_ptr_t *target, atomic_ptr_val_t old_value, in atomic_ptr_cas() argument
34 return __atomic_compare_exchange_n(target, &old_value, new_value, in atomic_ptr_cas()
39 static inline atomic_val_t atomic_add(atomic_t *target, atomic_val_t value) in atomic_add() argument
41 return __atomic_fetch_add(target, value, __ATOMIC_SEQ_CST); in atomic_add()
44 static inline atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value) in atomic_sub() argument
46 return __atomic_fetch_sub(target, value, __ATOMIC_SEQ_CST); in atomic_sub()
49 static inline atomic_val_t atomic_inc(atomic_t *target) in atomic_inc() argument
51 return atomic_add(target, 1); in atomic_inc()
54 static inline atomic_val_t atomic_dec(atomic_t *target) in atomic_dec() argument
56 return atomic_sub(target, 1); in atomic_dec()
59 static inline atomic_val_t atomic_get(const atomic_t *target) in atomic_get() argument
61 return __atomic_load_n(target, __ATOMIC_SEQ_CST); in atomic_get()
64 static inline atomic_ptr_val_t atomic_ptr_get(const atomic_ptr_t *target) in atomic_ptr_get() argument
66 return __atomic_load_n(target, __ATOMIC_SEQ_CST); in atomic_ptr_get()
69 static inline atomic_val_t atomic_set(atomic_t *target, atomic_val_t value) in atomic_set() argument
75 return __atomic_exchange_n(target, value, __ATOMIC_SEQ_CST); in atomic_set()
78 static inline atomic_ptr_val_t atomic_ptr_set(atomic_ptr_t *target, atomic_ptr_val_t value) in atomic_ptr_set() argument
80 return __atomic_exchange_n(target, value, __ATOMIC_SEQ_CST); in atomic_ptr_set()
83 static inline atomic_val_t atomic_clear(atomic_t *target) in atomic_clear() argument
85 return atomic_set(target, 0); in atomic_clear()
88 static inline atomic_ptr_val_t atomic_ptr_clear(atomic_ptr_t *target) in atomic_ptr_clear() argument
90 return atomic_ptr_set(target, NULL); in atomic_ptr_clear()
93 static inline atomic_val_t atomic_or(atomic_t *target, atomic_val_t value) in atomic_or() argument
95 return __atomic_fetch_or(target, value, __ATOMIC_SEQ_CST); in atomic_or()
98 static inline atomic_val_t atomic_xor(atomic_t *target, atomic_val_t value) in atomic_xor() argument
100 return __atomic_fetch_xor(target, value, __ATOMIC_SEQ_CST); in atomic_xor()
103 static inline atomic_val_t atomic_and(atomic_t *target, atomic_val_t value) in atomic_and() argument
105 return __atomic_fetch_and(target, value, __ATOMIC_SEQ_CST); in atomic_and()
108 static inline atomic_val_t atomic_nand(atomic_t *target, atomic_val_t value) in atomic_nand() argument
110 return __atomic_fetch_nand(target, value, __ATOMIC_SEQ_CST); in atomic_nand()