Lines Matching refs:atomic_t
18 static ALWAYS_INLINE atomic_val_t atomic_get(const atomic_t *target) in atomic_get()
51 atomic_val_t xtensa_cas(atomic_t *addr, atomic_val_t oldval, in xtensa_cas()
62 bool atomic_cas(atomic_t *target, atomic_val_t oldval, atomic_val_t newval) in atomic_cas()
72 == xtensa_cas((atomic_t *) target, (atomic_val_t) oldval, in atomic_ptr_cas()
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()
132 static ALWAYS_INLINE atomic_val_t atomic_xor(atomic_t *target, in atomic_xor()
139 static ALWAYS_INLINE atomic_val_t atomic_and(atomic_t *target, in atomic_and()
146 static ALWAYS_INLINE atomic_val_t atomic_nand(atomic_t *target, in atomic_nand()
155 return (void *) atomic_get((atomic_t *)target); in atomic_ptr_get()
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()
173 return (void *) atomic_set((atomic_t *) target, 0); in atomic_ptr_clear()