Lines Matching full:one
99 i, (i) + one, (i) + one); \
105 i, (i) - one, (i) - one); \
113 int one = 1; in test_atomic() local
119 TEST(, add, +=, -one); in test_atomic()
121 TEST(, sub, -=, -one); in test_atomic()
128 RETURN_FAMILY_TEST(, add_return, +=, -one); in test_atomic()
130 RETURN_FAMILY_TEST(, sub_return, -=, -one); in test_atomic()
133 FETCH_FAMILY_TEST(, fetch_add, +=, -one); in test_atomic()
135 FETCH_FAMILY_TEST(, fetch_sub, -=, -one); in test_atomic()
158 long long one = 1LL; in test_atomic64() local
171 TEST(64, add, +=, -one); in test_atomic64()
173 TEST(64, sub, -=, -one); in test_atomic64()
180 RETURN_FAMILY_TEST(64, add_return, +=, -one); in test_atomic64()
182 RETURN_FAMILY_TEST(64, sub_return, -=, -one); in test_atomic64()
185 FETCH_FAMILY_TEST(64, fetch_add, +=, -one); in test_atomic64()
187 FETCH_FAMILY_TEST(64, fetch_sub, -=, -one); in test_atomic64()
196 r += one; in test_atomic64()
201 r -= one; in test_atomic64()
211 BUG_ON(atomic64_add_unless(&v, one, v0)); in test_atomic64()
215 BUG_ON(!atomic64_add_unless(&v, one, v1)); in test_atomic64()
216 r += one; in test_atomic64()
221 r -= one; in test_atomic64()
225 BUG_ON(atomic64_dec_if_positive(&v) != -one); in test_atomic64()
228 INIT(-one); in test_atomic64()
229 BUG_ON(atomic64_dec_if_positive(&v) != (-one - one)); in test_atomic64()
234 r += one; in test_atomic64()
241 INIT(-one); in test_atomic64()
243 r += one; in test_atomic64()