Lines Matching refs:counter
174 ret = (v->counter += i);
185 v->counter = i;
192 return (*(volatile int *)&(v)->counter);
196 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n)))
197 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
269 ret = (v->counter += i);
281 v->counter = i;
289 return (*(volatile long *)&(v)->counter);
310 ((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n)))
311 #define atomic64_xchg(v, new) (xchg(&((v)->counter), new))