Lines Matching refs:r
23 r = v0; \
25 r c_op val; \
26 WARN(atomic##bit##_read(&v) != r, "%Lx != %Lx\n", \
28 (unsigned long long)r); \
47 r = v0; \
48 r c_op val; \
49 BUG_ON(atomic##bit##_##op(val, &v) != r); \
50 BUG_ON(atomic##bit##_read(&v) != r); \
56 r = v0; \
57 r c_op val; \
59 BUG_ON(atomic##bit##_read(&v) != r); \
112 int r; in test_atomic() local
146 #define INIT(c) do { atomic64_set(&v, c); r = c; } while (0)
158 long long r = v0; in test_atomic64() local
159 BUG_ON(v.counter != r); in test_atomic64()
162 r = v1; in test_atomic64()
163 BUG_ON(v.counter != r); in test_atomic64()
164 BUG_ON(atomic64_read(&v) != r); in test_atomic64()
192 r += one; in test_atomic64()
193 BUG_ON(v.counter != r); in test_atomic64()
197 r -= one; in test_atomic64()
198 BUG_ON(v.counter != r); in test_atomic64()
208 BUG_ON(v.counter != r); in test_atomic64()
212 r += one; in test_atomic64()
213 BUG_ON(v.counter != r); in test_atomic64()
217 r -= one; in test_atomic64()
218 BUG_ON(v.counter != r); in test_atomic64()
222 BUG_ON(v.counter != r); in test_atomic64()
226 BUG_ON(v.counter != r); in test_atomic64()
230 r += one; in test_atomic64()
231 BUG_ON(v.counter != r); in test_atomic64()
235 BUG_ON(v.counter != r); in test_atomic64()
239 r += one; in test_atomic64()
240 BUG_ON(v.counter != r); in test_atomic64()