Lines Matching full:target
20 __syscall bool atomic_cas(atomic_t *target, atomic_val_t old_value,
23 __syscall bool atomic_ptr_cas(atomic_ptr_t *target, atomic_ptr_val_t old_value,
26 __syscall atomic_val_t atomic_add(atomic_t *target, atomic_val_t value);
28 __syscall atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value);
30 static inline atomic_val_t atomic_inc(atomic_t *target) in atomic_inc() argument
32 return atomic_add(target, 1); in atomic_inc()
36 static inline atomic_val_t atomic_dec(atomic_t *target) in atomic_dec() argument
38 return atomic_sub(target, 1); in atomic_dec()
42 atomic_val_t atomic_get(const atomic_t *target);
44 atomic_ptr_val_t atomic_ptr_get(const atomic_ptr_t *target);
46 __syscall atomic_val_t atomic_set(atomic_t *target, atomic_val_t value);
48 __syscall atomic_ptr_val_t atomic_ptr_set(atomic_ptr_t *target, atomic_ptr_val_t value);
50 static inline atomic_val_t atomic_clear(atomic_t *target) in atomic_clear() argument
52 return atomic_set(target, 0); in atomic_clear()
56 static inline atomic_ptr_val_t atomic_ptr_clear(atomic_ptr_t *target) in atomic_ptr_clear() argument
58 return atomic_ptr_set(target, NULL); in atomic_ptr_clear()
62 __syscall atomic_val_t atomic_or(atomic_t *target, atomic_val_t value);
64 __syscall atomic_val_t atomic_xor(atomic_t *target, atomic_val_t value);
66 __syscall atomic_val_t atomic_and(atomic_t *target, atomic_val_t value);
68 __syscall atomic_val_t atomic_nand(atomic_t *target, atomic_val_t value);