Lines Matching refs:v

19 #define INIT(c) do { atomic64_set(&v, c); r = c; } while (0)
28 atomic64_t v = ATOMIC64_INIT(v0); in test_atomic64() local
30 BUG_ON(v.counter != r); in test_atomic64()
32 atomic64_set(&v, v1); in test_atomic64()
34 BUG_ON(v.counter != r); in test_atomic64()
35 BUG_ON(atomic64_read(&v) != r); in test_atomic64()
38 atomic64_add(onestwos, &v); in test_atomic64()
40 BUG_ON(v.counter != r); in test_atomic64()
43 atomic64_add(-one, &v); in test_atomic64()
45 BUG_ON(v.counter != r); in test_atomic64()
49 BUG_ON(atomic64_add_return(onestwos, &v) != r); in test_atomic64()
50 BUG_ON(v.counter != r); in test_atomic64()
54 BUG_ON(atomic64_add_return(-one, &v) != r); in test_atomic64()
55 BUG_ON(v.counter != r); in test_atomic64()
58 atomic64_sub(onestwos, &v); in test_atomic64()
60 BUG_ON(v.counter != r); in test_atomic64()
63 atomic64_sub(-one, &v); in test_atomic64()
65 BUG_ON(v.counter != r); in test_atomic64()
69 BUG_ON(atomic64_sub_return(onestwos, &v) != r); in test_atomic64()
70 BUG_ON(v.counter != r); in test_atomic64()
74 BUG_ON(atomic64_sub_return(-one, &v) != r); in test_atomic64()
75 BUG_ON(v.counter != r); in test_atomic64()
78 atomic64_inc(&v); in test_atomic64()
80 BUG_ON(v.counter != r); in test_atomic64()
84 BUG_ON(atomic64_inc_return(&v) != r); in test_atomic64()
85 BUG_ON(v.counter != r); in test_atomic64()
88 atomic64_dec(&v); in test_atomic64()
90 BUG_ON(v.counter != r); in test_atomic64()
94 BUG_ON(atomic64_dec_return(&v) != r); in test_atomic64()
95 BUG_ON(v.counter != r); in test_atomic64()
98 BUG_ON(atomic64_xchg(&v, v1) != v0); in test_atomic64()
100 BUG_ON(v.counter != r); in test_atomic64()
103 BUG_ON(atomic64_cmpxchg(&v, v0, v1) != v0); in test_atomic64()
105 BUG_ON(v.counter != r); in test_atomic64()
108 BUG_ON(atomic64_cmpxchg(&v, v2, v1) != v0); in test_atomic64()
109 BUG_ON(v.counter != r); in test_atomic64()
112 BUG_ON(atomic64_add_unless(&v, one, v0)); in test_atomic64()
113 BUG_ON(v.counter != r); in test_atomic64()
116 BUG_ON(!atomic64_add_unless(&v, one, v1)); in test_atomic64()
118 BUG_ON(v.counter != r); in test_atomic64()
122 BUG_ON(atomic64_dec_if_positive(&v) != (onestwos - 1)); in test_atomic64()
124 BUG_ON(v.counter != r); in test_atomic64()
127 BUG_ON(atomic64_dec_if_positive(&v) != -one); in test_atomic64()
128 BUG_ON(v.counter != r); in test_atomic64()
131 BUG_ON(atomic64_dec_if_positive(&v) != (-one - one)); in test_atomic64()
132 BUG_ON(v.counter != r); in test_atomic64()
138 BUG_ON(!atomic64_inc_not_zero(&v)); in test_atomic64()
140 BUG_ON(v.counter != r); in test_atomic64()
143 BUG_ON(atomic64_inc_not_zero(&v)); in test_atomic64()
144 BUG_ON(v.counter != r); in test_atomic64()
147 BUG_ON(!atomic64_inc_not_zero(&v)); in test_atomic64()
149 BUG_ON(v.counter != r); in test_atomic64()