Lines Matching defs:v
27 #define atomic_set(v, i) WRITE_ONCE((v)->counter, (i)) argument
35 static inline void atomic_add(int i, atomic_t *v) in atomic_add()
40 static inline int atomic_add_return(int i, atomic_t *v) in atomic_add_return()
49 static inline int __atomic_add_unless(atomic_t *v, int a, int u) in __atomic_add_unless()
61 static inline void atomic_and(int i, atomic_t *v) in atomic_and()
66 static inline void atomic_or(int i, atomic_t *v) in atomic_or()
71 static inline void atomic_xor(int i, atomic_t *v) in atomic_xor()
85 #define atomic64_read(v) READ_ONCE((v)->counter) argument
86 #define atomic64_set(v, i) WRITE_ONCE((v)->counter, (i)) argument
88 static inline void atomic64_add(long i, atomic64_t *v) in atomic64_add()
93 static inline long atomic64_add_return(long i, atomic64_t *v) in atomic64_add_return()
102 static inline long atomic64_add_unless(atomic64_t *v, long a, long u) in atomic64_add_unless()
114 static inline void atomic64_and(long i, atomic64_t *v) in atomic64_and()
119 static inline void atomic64_or(long i, atomic64_t *v) in atomic64_or()
124 static inline void atomic64_xor(long i, atomic64_t *v) in atomic64_xor()
134 #define atomic64_sub_return(i, v) atomic64_add_return(-(i), (v)) argument
135 #define atomic64_sub(i, v) atomic64_add(-(i), (v)) argument
136 #define atomic64_inc_return(v) atomic64_add_return(1, (v)) argument
137 #define atomic64_dec_return(v) atomic64_sub_return(1, (v)) argument
138 #define atomic64_inc(v) atomic64_add(1, (v)) argument
139 #define atomic64_dec(v) atomic64_sub(1, (v)) argument
141 #define atomic64_inc_and_test(v) (atomic64_inc_return(v) == 0) argument
142 #define atomic64_dec_and_test(v) (atomic64_dec_return(v) == 0) argument
143 #define atomic64_sub_and_test(i, v) (atomic64_sub_return((i), (v)) == 0) argument
144 #define atomic64_add_negative(i, v) (atomic64_add_return((i), (v)) < 0) argument
146 #define atomic64_inc_not_zero(v) atomic64_add_unless((v), 1, 0) argument