Lines Matching refs:r
26 r = v0; \
28 r c_op val; \
29 WARN(atomic##bit##_read(&v) != r, "%Lx != %Lx\n", \
31 (unsigned long long)r); \
50 r = v0; \
51 r c_op val; \
52 BUG_ON(atomic##bit##_##op(val, &v) != r); \
53 BUG_ON(atomic##bit##_read(&v) != r); \
59 r = v0; \
60 r c_op val; \
62 BUG_ON(atomic##bit##_read(&v) != r); \
115 int r; in test_atomic() local
149 #define INIT(c) do { atomic64_set(&v, c); r = c; } while (0)
159 long long r = v0; in test_atomic64() local
160 BUG_ON(v.counter != r); in test_atomic64()
163 r = v1; in test_atomic64()
164 BUG_ON(v.counter != r); in test_atomic64()
165 BUG_ON(atomic64_read(&v) != r); in test_atomic64()
193 r += one; in test_atomic64()
194 BUG_ON(v.counter != r); in test_atomic64()
198 r -= one; in test_atomic64()
199 BUG_ON(v.counter != r); in test_atomic64()
209 BUG_ON(v.counter != r); in test_atomic64()
213 r += one; in test_atomic64()
214 BUG_ON(v.counter != r); in test_atomic64()
218 r -= one; in test_atomic64()
219 BUG_ON(v.counter != r); in test_atomic64()
223 BUG_ON(v.counter != r); in test_atomic64()
227 BUG_ON(v.counter != r); in test_atomic64()
231 r += one; in test_atomic64()
232 BUG_ON(v.counter != r); in test_atomic64()
236 BUG_ON(v.counter != r); in test_atomic64()
240 r += one; in test_atomic64()
241 BUG_ON(v.counter != r); in test_atomic64()