Lines Matching defs:v
30 #define atomic_read(v) ((v)->counter) argument
31 #define atomic_set(v, i) ((v)->counter = (i)) argument
32 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) argument
34 #define atomic_xchg(v, new) (xchg(&((v)->counter), (new))) argument
35 #define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0) argument
36 #define atomic_dec_return(v) atomic_sub_return(1, (v)) argument
37 #define atomic_inc_return(v) atomic_add_return(1, (v)) argument
39 #define atomic_sub_and_test(i, v) (atomic_sub_return((i), (v)) == 0) argument
40 #define atomic_inc_and_test(v) (atomic_inc_return(v) == 0) argument
41 #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0) argument
42 #define atomic_dec_if_positive(v) atomic_sub_if_positive(1, v) argument
44 #define atomic_inc(v) atomic_add(1, (v)) argument
45 #define atomic_dec(v) atomic_sub(1, (v)) argument
46 #define atomic_add_negative(i, v) (atomic_add_return(i, (v)) < 0) argument