Lines Matching refs:v
22 atomic##bit##_set(&v, v0); \
24 atomic##bit##_##op(val, &v); \
26 WARN(atomic##bit##_read(&v) != r, "%Lx != %Lx\n", \
27 (unsigned long long)atomic##bit##_read(&v), \
46 atomic##bit##_set(&v, v0); \
49 BUG_ON(atomic##bit##_##op(val, &v) != r); \
50 BUG_ON(atomic##bit##_read(&v) != r); \
55 atomic##bit##_set(&v, v0); \
58 BUG_ON(atomic##bit##_##op(val, &v) != v0); \
59 BUG_ON(atomic##bit##_read(&v) != r); \
74 atomic##bit##_set(&v, init); \
75 BUG_ON(atomic##bit##_##op(&v, ##args) != ret); \
76 BUG_ON(atomic##bit##_read(&v) != expect); \
111 atomic_t v; in test_atomic() local
146 #define INIT(c) do { atomic64_set(&v, c); r = c; } while (0)
157 atomic64_t v = ATOMIC64_INIT(v0); in test_atomic64() local
159 BUG_ON(v.counter != r); in test_atomic64()
161 atomic64_set(&v, v1); in test_atomic64()
163 BUG_ON(v.counter != r); in test_atomic64()
164 BUG_ON(atomic64_read(&v) != r); in test_atomic64()
191 atomic64_inc(&v); in test_atomic64()
193 BUG_ON(v.counter != r); in test_atomic64()
196 atomic64_dec(&v); in test_atomic64()
198 BUG_ON(v.counter != r); in test_atomic64()
207 BUG_ON(atomic64_add_unless(&v, one, v0)); in test_atomic64()
208 BUG_ON(v.counter != r); in test_atomic64()
211 BUG_ON(!atomic64_add_unless(&v, one, v1)); in test_atomic64()
213 BUG_ON(v.counter != r); in test_atomic64()
216 BUG_ON(atomic64_dec_if_positive(&v) != (onestwos - 1)); in test_atomic64()
218 BUG_ON(v.counter != r); in test_atomic64()
221 BUG_ON(atomic64_dec_if_positive(&v) != -one); in test_atomic64()
222 BUG_ON(v.counter != r); in test_atomic64()
225 BUG_ON(atomic64_dec_if_positive(&v) != (-one - one)); in test_atomic64()
226 BUG_ON(v.counter != r); in test_atomic64()
229 BUG_ON(!atomic64_inc_not_zero(&v)); in test_atomic64()
231 BUG_ON(v.counter != r); in test_atomic64()
234 BUG_ON(atomic64_inc_not_zero(&v)); in test_atomic64()
235 BUG_ON(v.counter != r); in test_atomic64()
238 BUG_ON(!atomic64_inc_not_zero(&v)); in test_atomic64()
240 BUG_ON(v.counter != r); in test_atomic64()
244 r_int = atomic64_inc_not_zero(&v); in test_atomic64()