Lines Matching refs:v

35 #define atomic_read(v)		((v)->counter)  argument
45 #define atomic_set(v,i) (((v)->counter) = (i)) argument
55 static __inline__ void atomic_add(int i, atomic_t *v) in atomic_add() argument
59 :"=m" (v->counter) in atomic_add()
60 :"ir" (i), "m" (v->counter)); in atomic_add()
71 static __inline__ void atomic_sub(int i, atomic_t *v) in atomic_sub() argument
75 :"=m" (v->counter) in atomic_sub()
76 :"ir" (i), "m" (v->counter)); in atomic_sub()
89 static __inline__ int atomic_sub_and_test(int i, atomic_t *v) in atomic_sub_and_test() argument
95 :"=m" (v->counter), "=qm" (c) in atomic_sub_and_test()
96 :"ir" (i), "m" (v->counter) : "memory"); in atomic_sub_and_test()
107 static __inline__ void atomic_inc(atomic_t *v) in atomic_inc() argument
111 :"=m" (v->counter) in atomic_inc()
112 :"m" (v->counter)); in atomic_inc()
122 static __inline__ void atomic_dec(atomic_t *v) in atomic_dec() argument
126 :"=m" (v->counter) in atomic_dec()
127 :"m" (v->counter)); in atomic_dec()
139 static __inline__ int atomic_dec_and_test(atomic_t *v) in atomic_dec_and_test() argument
145 :"=m" (v->counter), "=qm" (c) in atomic_dec_and_test()
146 :"m" (v->counter) : "memory"); in atomic_dec_and_test()
159 static __inline__ int atomic_inc_and_test(atomic_t *v) in atomic_inc_and_test() argument
165 :"=m" (v->counter), "=qm" (c) in atomic_inc_and_test()
166 :"m" (v->counter) : "memory"); in atomic_inc_and_test()
180 static __inline__ int atomic_add_negative(int i, atomic_t *v) in atomic_add_negative() argument
186 :"=m" (v->counter), "=qm" (c) in atomic_add_negative()
187 :"ir" (i), "m" (v->counter) : "memory"); in atomic_add_negative()