Lines Matching refs:r

19 #define INIT(c) do { atomic64_set(&v, c); r = c; } while (0)
29 long long r = v0; in test_atomic64() local
30 BUG_ON(v.counter != r); in test_atomic64()
33 r = v1; in test_atomic64()
34 BUG_ON(v.counter != r); in test_atomic64()
35 BUG_ON(atomic64_read(&v) != r); in test_atomic64()
39 r += onestwos; in test_atomic64()
40 BUG_ON(v.counter != r); in test_atomic64()
44 r += -one; in test_atomic64()
45 BUG_ON(v.counter != r); in test_atomic64()
48 r += onestwos; in test_atomic64()
49 BUG_ON(atomic64_add_return(onestwos, &v) != r); in test_atomic64()
50 BUG_ON(v.counter != r); in test_atomic64()
53 r += -one; in test_atomic64()
54 BUG_ON(atomic64_add_return(-one, &v) != r); in test_atomic64()
55 BUG_ON(v.counter != r); in test_atomic64()
59 r -= onestwos; in test_atomic64()
60 BUG_ON(v.counter != r); in test_atomic64()
64 r -= -one; in test_atomic64()
65 BUG_ON(v.counter != r); in test_atomic64()
68 r -= onestwos; in test_atomic64()
69 BUG_ON(atomic64_sub_return(onestwos, &v) != r); in test_atomic64()
70 BUG_ON(v.counter != r); in test_atomic64()
73 r -= -one; in test_atomic64()
74 BUG_ON(atomic64_sub_return(-one, &v) != r); in test_atomic64()
75 BUG_ON(v.counter != r); in test_atomic64()
79 r += one; in test_atomic64()
80 BUG_ON(v.counter != r); in test_atomic64()
83 r += one; in test_atomic64()
84 BUG_ON(atomic64_inc_return(&v) != r); in test_atomic64()
85 BUG_ON(v.counter != r); in test_atomic64()
89 r -= one; in test_atomic64()
90 BUG_ON(v.counter != r); in test_atomic64()
93 r -= one; in test_atomic64()
94 BUG_ON(atomic64_dec_return(&v) != r); in test_atomic64()
95 BUG_ON(v.counter != r); in test_atomic64()
99 r = v1; in test_atomic64()
100 BUG_ON(v.counter != r); in test_atomic64()
104 r = v1; in test_atomic64()
105 BUG_ON(v.counter != r); in test_atomic64()
109 BUG_ON(v.counter != r); in test_atomic64()
113 BUG_ON(v.counter != r); in test_atomic64()
117 r += one; in test_atomic64()
118 BUG_ON(v.counter != r); in test_atomic64()
123 r -= one; in test_atomic64()
124 BUG_ON(v.counter != r); in test_atomic64()
128 BUG_ON(v.counter != r); in test_atomic64()
132 BUG_ON(v.counter != r); in test_atomic64()
139 r += one; in test_atomic64()
140 BUG_ON(v.counter != r); in test_atomic64()
144 BUG_ON(v.counter != r); in test_atomic64()
148 r += one; in test_atomic64()
149 BUG_ON(v.counter != r); in test_atomic64()