Lines Matching refs:target
18 static ALWAYS_INLINE atomic_val_t atomic_get(const atomic_t *target) in atomic_get() argument
29 : "=r"(ret) : "r"(target) : "memory"); in atomic_get()
62 bool atomic_cas(atomic_t *target, atomic_val_t oldval, atomic_val_t newval) in atomic_cas() argument
64 return oldval == xtensa_cas(target, oldval, newval); in atomic_cas()
69 bool atomic_ptr_cas(atomic_ptr_t *target, void *oldval, void *newval) in atomic_ptr_cas() argument
72 == xtensa_cas((atomic_t *) target, (atomic_val_t) oldval, in atomic_ptr_cas()
84 cur = *target; \
85 res = xtensa_cas(target, cur, (expr)); \
91 atomic_val_t atomic_set(atomic_t *target, atomic_val_t value) in atomic_set() argument
98 atomic_val_t atomic_add(atomic_t *target, atomic_val_t value) in atomic_add() argument
105 atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value) in atomic_sub() argument
112 atomic_val_t atomic_inc(atomic_t *target) in atomic_inc() argument
119 atomic_val_t atomic_dec(atomic_t *target) in atomic_dec() argument
125 static ALWAYS_INLINE atomic_val_t atomic_or(atomic_t *target, in atomic_or() argument
132 static ALWAYS_INLINE atomic_val_t atomic_xor(atomic_t *target, in atomic_xor() argument
139 static ALWAYS_INLINE atomic_val_t atomic_and(atomic_t *target, in atomic_and() argument
146 static ALWAYS_INLINE atomic_val_t atomic_nand(atomic_t *target, in atomic_nand() argument
153 static ALWAYS_INLINE void *atomic_ptr_get(const atomic_ptr_t *target) in atomic_ptr_get() argument
155 return (void *) atomic_get((atomic_t *)target); in atomic_ptr_get()
159 static ALWAYS_INLINE void *atomic_ptr_set(atomic_ptr_t *target, void *value) in atomic_ptr_set() argument
161 return (void *) atomic_set((atomic_t *) target, (atomic_val_t) value); in atomic_ptr_set()
165 static ALWAYS_INLINE atomic_val_t atomic_clear(atomic_t *target) in atomic_clear() argument
167 return atomic_set(target, 0); in atomic_clear()
171 static ALWAYS_INLINE void *atomic_ptr_clear(atomic_ptr_t *target) in atomic_ptr_clear() argument
173 return (void *) atomic_set((atomic_t *) target, 0); in atomic_ptr_clear()