Lines Matching refs:r
22 r = v0; \
24 r c_op val; \
25 WARN(atomic##bit##_read(&v) != r, "%Lx != %Lx\n", \
27 (unsigned long long)r); \
38 int r; in test_atomic() local
50 #define INIT(c) do { atomic64_set(&v, c); r = c; } while (0)
60 long long r = v0; in test_atomic64() local
61 BUG_ON(v.counter != r); in test_atomic64()
64 r = v1; in test_atomic64()
65 BUG_ON(v.counter != r); in test_atomic64()
66 BUG_ON(atomic64_read(&v) != r); in test_atomic64()
78 r += onestwos; in test_atomic64()
79 BUG_ON(atomic64_add_return(onestwos, &v) != r); in test_atomic64()
80 BUG_ON(v.counter != r); in test_atomic64()
83 r += -one; in test_atomic64()
84 BUG_ON(atomic64_add_return(-one, &v) != r); in test_atomic64()
85 BUG_ON(v.counter != r); in test_atomic64()
88 r -= onestwos; in test_atomic64()
89 BUG_ON(atomic64_sub_return(onestwos, &v) != r); in test_atomic64()
90 BUG_ON(v.counter != r); in test_atomic64()
93 r -= -one; in test_atomic64()
94 BUG_ON(atomic64_sub_return(-one, &v) != r); in test_atomic64()
95 BUG_ON(v.counter != r); in test_atomic64()
99 r += one; in test_atomic64()
100 BUG_ON(v.counter != r); in test_atomic64()
103 r += one; in test_atomic64()
104 BUG_ON(atomic64_inc_return(&v) != r); in test_atomic64()
105 BUG_ON(v.counter != r); in test_atomic64()
109 r -= one; in test_atomic64()
110 BUG_ON(v.counter != r); in test_atomic64()
113 r -= one; in test_atomic64()
114 BUG_ON(atomic64_dec_return(&v) != r); in test_atomic64()
115 BUG_ON(v.counter != r); in test_atomic64()
119 r = v1; in test_atomic64()
120 BUG_ON(v.counter != r); in test_atomic64()
124 r = v1; in test_atomic64()
125 BUG_ON(v.counter != r); in test_atomic64()
129 BUG_ON(v.counter != r); in test_atomic64()
133 BUG_ON(v.counter != r); in test_atomic64()
137 r += one; in test_atomic64()
138 BUG_ON(v.counter != r); in test_atomic64()
143 r -= one; in test_atomic64()
144 BUG_ON(v.counter != r); in test_atomic64()
148 BUG_ON(v.counter != r); in test_atomic64()
152 BUG_ON(v.counter != r); in test_atomic64()
159 r += one; in test_atomic64()
160 BUG_ON(v.counter != r); in test_atomic64()
164 BUG_ON(v.counter != r); in test_atomic64()
168 r += one; in test_atomic64()
169 BUG_ON(v.counter != r); in test_atomic64()