Lines Matching defs:v
28 #define atomic_read(v) ((v)->counter) argument
37 #define atomic_set(v,i) (((v)->counter) = (i)) argument
46 static __inline__ void atomic_add(int i, atomic_t *v) in atomic_add()
61 static __inline__ void atomic_sub(int i, atomic_t *v) in atomic_sub()
78 static __inline__ int atomic_sub_and_test(int i, atomic_t *v) in atomic_sub_and_test()
95 static __inline__ void atomic_inc(atomic_t *v) in atomic_inc()
108 static __inline__ void atomic_dec(atomic_t *v) in atomic_dec()
123 static __inline__ int atomic_dec_and_test(atomic_t *v) in atomic_dec_and_test()
142 static __inline__ int atomic_inc_and_test(atomic_t *v) in atomic_inc_and_test()
162 static __inline__ int atomic_add_negative(int i, atomic_t *v) in atomic_add_negative()
180 static __inline__ int atomic_add_return(int i, atomic_t *v) in atomic_add_return()
213 static __inline__ int atomic_sub_return(int i, atomic_t *v) in atomic_sub_return()
218 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new))) argument
219 #define atomic_xchg(v, new) (xchg(&((v)->counter), (new))) argument
230 static __inline__ int atomic_add_unless(atomic_t *v, int a, int u) in atomic_add_unless()
245 #define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0) argument
247 #define atomic_inc_return(v) (atomic_add_return(1,v)) argument
248 #define atomic_dec_return(v) (atomic_sub_return(1,v)) argument