Lines Matching refs:b2
40 unsigned char b2[BITFIELD_SIZE >> 3] = { 0 }; in ZTEST()
87 sys_bitfield_set_bit((mem_addr_t)b2, bit); in ZTEST()
88 zassert_equal(b2[BIT_INDEX(bit)], BIT_VAL(bit), in ZTEST()
91 zassert_true(sys_bitfield_test_bit((mem_addr_t)b2, bit), in ZTEST()
95 sys_bitfield_clear_bit((mem_addr_t)b2, bit); in ZTEST()
96 zassert_equal(b2[BIT_INDEX(bit)], 0, in ZTEST()
99 zassert_false(sys_bitfield_test_bit((mem_addr_t)b2, bit), in ZTEST()
103 ret = sys_bitfield_test_and_set_bit((mem_addr_t)b2, bit); in ZTEST()
107 zassert_equal(b2[BIT_INDEX(bit)], BIT_VAL(bit), in ZTEST()
110 zassert_true(sys_bitfield_test_and_set_bit((mem_addr_t)b2, bit), in ZTEST()
113 zassert_equal(b2[BIT_INDEX(bit)], BIT_VAL(bit), in ZTEST()
117 zassert_true(sys_bitfield_test_and_clear_bit((mem_addr_t)b2, in ZTEST()
120 zassert_equal(b2[BIT_INDEX(bit)], 0, in ZTEST()
123 zassert_false(sys_bitfield_test_and_clear_bit((mem_addr_t)b2, in ZTEST()
126 zassert_equal(b2[BIT_INDEX(bit)], 0, in ZTEST()