Lines Matching refs:b1
39 uint32_t b1 = 0U; in ZTEST()
47 sys_set_bit((mem_addr_t)&b1, bit); in ZTEST()
49 zassert_equal(b1, (1 << bit), in ZTEST()
52 zassert_true(sys_test_bit((mem_addr_t)&b1, bit), in ZTEST()
55 sys_clear_bit((mem_addr_t)&b1, bit); in ZTEST()
56 zassert_equal(b1, 0, "sys_clear_bit failed for bit %d\n", bit); in ZTEST()
58 zassert_false(sys_test_bit((mem_addr_t)&b1, bit), in ZTEST()
62 zassert_false(sys_test_and_set_bit((mem_addr_t)&b1, bit), in ZTEST()
65 zassert_equal(b1, (1 << bit), in ZTEST()
68 zassert_true(sys_test_and_set_bit((mem_addr_t)&b1, bit), in ZTEST()
71 zassert_equal(b1, (1 << bit), in ZTEST()
74 zassert_true(sys_test_and_clear_bit((mem_addr_t)&b1, bit), in ZTEST()
77 zassert_equal(b1, 0, "sys_test_and_clear_bit did not clear" in ZTEST()
79 zassert_false(sys_test_and_clear_bit((mem_addr_t)&b1, bit), in ZTEST()
82 zassert_equal(b1, 0, "sys_test_and_clear_bit set bit %d\n", in ZTEST()