Home
last modified time | relevance | path

Searched refs:bundles (Results 1 – 3 of 3) sorted by relevance

/Zephyr-Core-3.7.0/tests/kernel/common/src/
Dbitarray.c70 zassert_equal(ba->bundles[i], FREE, in validate_bitarray_define()
110 if (ba->bundles[i] != 0) { in bitarray_bundles_is_zero()
142 bundle_idx = bit / (sizeof(ba.bundles[0]) * 8); in ZTEST()
143 bit_idx_in_bundle = bit % (sizeof(ba.bundles[0]) * 8); in ZTEST()
148 zassert_equal(ba.bundles[bundle_idx], BIT(bit_idx_in_bundle), in ZTEST()
150 zassert_not_equal(sys_bitfield_test_bit((mem_addr_t)ba.bundles, bit), in ZTEST()
162 zassert_equal(ba.bundles[bundle_idx], 0, in ZTEST()
164 zassert_equal(sys_bitfield_test_bit((mem_addr_t)ba.bundles, bit), in ZTEST()
180 zassert_equal(ba.bundles[bundle_idx], BIT(bit_idx_in_bundle), in ZTEST()
182 zassert_not_equal(sys_bitfield_test_bit((mem_addr_t)ba.bundles, bit), in ZTEST()
[all …]
/Zephyr-Core-3.7.0/lib/utils/
Dbitarray.c16 #define bundle_bitness(ba) (sizeof((ba)->bundles[0]) * 8)
79 bundle = bitarray->bundles[bd->sidx]; in match_region()
98 bundle = bitarray->bundles[bd->sidx]; in match_region()
111 bundle = bitarray->bundles[bd->eidx]; in match_region()
128 bundle = bitarray->bundles[idx]; in match_region()
187 bitarray->bundles[bd->sidx] |= bd->smask; in set_region()
189 bitarray->bundles[bd->sidx] &= ~bd->smask; in set_region()
198 bitarray->bundles[bd->sidx] |= bd->smask; in set_region()
199 bitarray->bundles[bd->eidx] |= bd->emask; in set_region()
201 bitarray->bundles[idx] = ~0U; in set_region()
[all …]
/Zephyr-Core-3.7.0/include/zephyr/sys/
Dbitarray.h40 uint32_t *bundles; member
65 .bundles = _sys_bitarray_bundles_##name, \