• Home
  • Raw
  • Download

Lines Matching refs:v

25 	atomic##bit##_set(&v, v0);				\
27 atomic##bit##_##op(val, &v); \
29 WARN(atomic##bit##_read(&v) != r, "%Lx != %Lx\n", \
30 (unsigned long long)atomic##bit##_read(&v), \
41 atomic_t v; in test_atomic() local
54 #define INIT(c) do { atomic64_set(&v, c); r = c; } while (0)
63 atomic64_t v = ATOMIC64_INIT(v0); in test_atomic64() local
65 BUG_ON(v.counter != r); in test_atomic64()
67 atomic64_set(&v, v1); in test_atomic64()
69 BUG_ON(v.counter != r); in test_atomic64()
70 BUG_ON(atomic64_read(&v) != r); in test_atomic64()
83 BUG_ON(atomic64_add_return(onestwos, &v) != r); in test_atomic64()
84 BUG_ON(v.counter != r); in test_atomic64()
88 BUG_ON(atomic64_add_return(-one, &v) != r); in test_atomic64()
89 BUG_ON(v.counter != r); in test_atomic64()
93 BUG_ON(atomic64_sub_return(onestwos, &v) != r); in test_atomic64()
94 BUG_ON(v.counter != r); in test_atomic64()
98 BUG_ON(atomic64_sub_return(-one, &v) != r); in test_atomic64()
99 BUG_ON(v.counter != r); in test_atomic64()
102 atomic64_inc(&v); in test_atomic64()
104 BUG_ON(v.counter != r); in test_atomic64()
108 BUG_ON(atomic64_inc_return(&v) != r); in test_atomic64()
109 BUG_ON(v.counter != r); in test_atomic64()
112 atomic64_dec(&v); in test_atomic64()
114 BUG_ON(v.counter != r); in test_atomic64()
118 BUG_ON(atomic64_dec_return(&v) != r); in test_atomic64()
119 BUG_ON(v.counter != r); in test_atomic64()
122 BUG_ON(atomic64_xchg(&v, v1) != v0); in test_atomic64()
124 BUG_ON(v.counter != r); in test_atomic64()
127 BUG_ON(atomic64_cmpxchg(&v, v0, v1) != v0); in test_atomic64()
129 BUG_ON(v.counter != r); in test_atomic64()
132 BUG_ON(atomic64_cmpxchg(&v, v2, v1) != v0); in test_atomic64()
133 BUG_ON(v.counter != r); in test_atomic64()
136 BUG_ON(atomic64_add_unless(&v, one, v0)); in test_atomic64()
137 BUG_ON(v.counter != r); in test_atomic64()
140 BUG_ON(!atomic64_add_unless(&v, one, v1)); in test_atomic64()
142 BUG_ON(v.counter != r); in test_atomic64()
146 BUG_ON(atomic64_dec_if_positive(&v) != (onestwos - 1)); in test_atomic64()
148 BUG_ON(v.counter != r); in test_atomic64()
151 BUG_ON(atomic64_dec_if_positive(&v) != -one); in test_atomic64()
152 BUG_ON(v.counter != r); in test_atomic64()
155 BUG_ON(atomic64_dec_if_positive(&v) != (-one - one)); in test_atomic64()
156 BUG_ON(v.counter != r); in test_atomic64()
162 BUG_ON(!atomic64_inc_not_zero(&v)); in test_atomic64()
164 BUG_ON(v.counter != r); in test_atomic64()
167 BUG_ON(atomic64_inc_not_zero(&v)); in test_atomic64()
168 BUG_ON(v.counter != r); in test_atomic64()
171 BUG_ON(!atomic64_inc_not_zero(&v)); in test_atomic64()
173 BUG_ON(v.counter != r); in test_atomic64()