Lines Matching defs:v
21 #define atomic_read(v) READ_ONCE((v)->counter) argument
22 #define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i)) argument
125 static inline void atomic_inc(atomic_t *v) in atomic_inc()
131 static inline void atomic_dec(atomic_t *v) in atomic_dec()
137 static inline int atomic_dec_and_test(atomic_t *v) in atomic_dec_and_test()
145 static inline int atomic_dec_and_test_lt(atomic_t *v) in atomic_dec_and_test_lt()
155 static inline int atomic_inc_and_test(atomic_t *v) in atomic_inc_and_test()
165 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) argument
166 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) argument
170 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg()
183 static inline int atomic_xchg(atomic_t *v, int new) in atomic_xchg()
197 static inline int atomic_sub_and_test(int i, atomic_t *v) in atomic_sub_and_test()
207 static inline int atomic_add_negative(int i, atomic_t *v) in atomic_add_negative()