Lines Matching refs:cur
82 atomic_val_t res, cur; \
84 cur = *target; \
85 res = xtensa_cas(target, cur, (expr)); \
86 } while (res != cur); \
100 return Z__GEN_ATOMXCHG(cur + value); in atomic_add()
107 return Z__GEN_ATOMXCHG(cur - value); in atomic_sub()
114 return Z__GEN_ATOMXCHG(cur + 1); in atomic_inc()
121 return Z__GEN_ATOMXCHG(cur - 1); in atomic_dec()
128 return Z__GEN_ATOMXCHG(cur | value); in atomic_or()
135 return Z__GEN_ATOMXCHG(cur ^ value); in atomic_xor()
142 return Z__GEN_ATOMXCHG(cur & value); in atomic_and()
149 return Z__GEN_ATOMXCHG(~(cur & value)); in atomic_nand()