Lines Matching refs:atomic_val_t
18 static ALWAYS_INLINE atomic_val_t atomic_get(const atomic_t *target) in atomic_get()
20 atomic_val_t ret; in atomic_get()
51 atomic_val_t xtensa_cas(atomic_t *addr, atomic_val_t oldval, in xtensa_cas()
52 atomic_val_t newval) in xtensa_cas()
62 bool atomic_cas(atomic_t *target, atomic_val_t oldval, atomic_val_t newval) in atomic_cas()
71 return (atomic_val_t) oldval in atomic_ptr_cas()
72 == xtensa_cas((atomic_t *) target, (atomic_val_t) oldval, in atomic_ptr_cas()
73 (atomic_val_t) newval); in atomic_ptr_cas()
82 atomic_val_t res, cur; \
91 atomic_val_t atomic_set(atomic_t *target, atomic_val_t value) in atomic_set()
98 atomic_val_t atomic_add(atomic_t *target, atomic_val_t value) in atomic_add()
105 atomic_val_t atomic_sub(atomic_t *target, atomic_val_t value) in atomic_sub()
112 atomic_val_t atomic_inc(atomic_t *target) in atomic_inc()
119 atomic_val_t atomic_dec(atomic_t *target) in atomic_dec()
125 static ALWAYS_INLINE atomic_val_t atomic_or(atomic_t *target, in atomic_or()
126 atomic_val_t value) in atomic_or()
132 static ALWAYS_INLINE atomic_val_t atomic_xor(atomic_t *target, in atomic_xor()
133 atomic_val_t value) in atomic_xor()
139 static ALWAYS_INLINE atomic_val_t atomic_and(atomic_t *target, in atomic_and()
140 atomic_val_t value) in atomic_and()
146 static ALWAYS_INLINE atomic_val_t atomic_nand(atomic_t *target, in atomic_nand()
147 atomic_val_t value) in atomic_nand()
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()