Lines Matching refs:v

31 #define atomic_read(v)	((v)->counter)  argument
41 #define atomic_set(v,i) ((v)->counter = (i)) argument
58 static __inline__ void atomic_add(int i, atomic_t * v) in atomic_add() argument
63 v->counter += i; in atomic_add()
75 static __inline__ void atomic_sub(int i, atomic_t * v) in atomic_sub() argument
80 v->counter -= i; in atomic_sub()
84 static __inline__ int atomic_add_return(int i, atomic_t * v) in atomic_add_return() argument
90 temp = v->counter; in atomic_add_return()
92 v->counter = temp; in atomic_add_return()
98 static __inline__ int atomic_sub_return(int i, atomic_t * v) in atomic_sub_return() argument
104 temp = v->counter; in atomic_sub_return()
106 v->counter = temp; in atomic_sub_return()
127 static __inline__ void atomic_add(int i, atomic_t * v) in atomic_add() argument
136 : "=&r" (temp), "=m" (v->counter) in atomic_add()
137 : "Ir" (i), "m" (v->counter)); in atomic_add()
148 static __inline__ void atomic_sub(int i, atomic_t * v) in atomic_sub() argument
157 : "=&r" (temp), "=m" (v->counter) in atomic_sub()
158 : "Ir" (i), "m" (v->counter)); in atomic_sub()
164 static __inline__ int atomic_add_return(int i, atomic_t * v) in atomic_add_return() argument
178 : "=&r" (result), "=&r" (temp), "=m" (v->counter) in atomic_add_return()
179 : "Ir" (i), "m" (v->counter) in atomic_add_return()
185 static __inline__ int atomic_sub_return(int i, atomic_t * v) in atomic_sub_return() argument
199 : "=&r" (result), "=&r" (temp), "=m" (v->counter) in atomic_sub_return()
200 : "Ir" (i), "m" (v->counter) in atomic_sub_return()
207 #define atomic_dec_return(v) atomic_sub_return(1,(v)) argument
208 #define atomic_inc_return(v) atomic_add_return(1,(v)) argument
220 #define atomic_sub_and_test(i,v) (atomic_sub_return((i), (v)) == 0) argument
231 #define atomic_inc_and_test(v) (atomic_inc_return(v) == 0) argument
242 #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0) argument
251 #define atomic_inc(v) atomic_add(1,(v)) argument
260 #define atomic_dec(v) atomic_sub(1,(v)) argument
272 #define atomic_add_negative(i,v) (atomic_add_return(i, (v)) < 0) argument