Home
last modified time | relevance | path

Searched refs:bitset (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/tests/net/socket/select/src/
Dmain.c38 zassert_equal(sizeof(set.bitset), sizeof(uint32_t) * 2, ""); in ZTEST_USER()
41 zassert_equal(set.bitset[0], 0, ""); in ZTEST_USER()
42 zassert_equal(set.bitset[1], 0, ""); in ZTEST_USER()
52 zassert_equal(set.bitset[0], 0x00000001, ""); in ZTEST_USER()
53 zassert_equal(set.bitset[1], 0, ""); in ZTEST_USER()
56 zassert_equal(set.bitset[0], 0x80000001, ""); in ZTEST_USER()
57 zassert_equal(set.bitset[1], 0, ""); in ZTEST_USER()
60 zassert_equal(set.bitset[0], 0x80000001, ""); in ZTEST_USER()
61 zassert_equal(set.bitset[1], 0x00000002, ""); in ZTEST_USER()
64 zassert_equal(set.bitset[0], 0, ""); in ZTEST_USER()
[all …]
/Zephyr-latest/lib/os/zvfs/
Dzvfs_select.c20 unsigned int b_idx = fd % (sizeof(set->bitset[0]) * 8); \
21 word_idx = fd / (sizeof(set->bitset[0]) * 8); \
31 for (i = 0; i < ARRAY_SIZE(set->bitset); i++) { in ZVFS_FD_ZERO()
32 set->bitset[i] = 0U; in ZVFS_FD_ZERO()
46 return (set->bitset[word_idx] & bit_mask) != 0U; in ZVFS_FD_ISSET()
59 set->bitset[word_idx] &= ~bit_mask; in ZVFS_FD_CLR()
72 set->bitset[word_idx] |= bit_mask; in ZVFS_FD_SET()
87 for (i = 0; i < STRUCT_MEMBER_ARRAY_SIZE(struct zvfs_fd_set, bitset); i++) { in z_impl_zvfs_select()
93 read_mask = readfds->bitset[i]; in z_impl_zvfs_select()
97 write_mask = writefds->bitset[i]; in z_impl_zvfs_select()
[all …]
/Zephyr-latest/include/zephyr/sys/
Dfdtable.h227 uint32_t bitset[(CONFIG_ZVFS_OPEN_MAX + 31) / 32]; member
231 #define ZVFS_FD_SETSIZE (sizeof(((struct zvfs_fd_set *)0)->bitset) * 8)
/Zephyr-latest/drivers/clock_control/
Dclock_control_litex.c486 uint16_t bitset) in litex_clk_calc_DI() argument
491 DI_val |= bitset; in litex_clk_calc_DI()
517 static int litex_clk_change_value(uint16_t mask, uint16_t bitset, in litex_clk_change_value() argument
529 DI_val = litex_clk_calc_DI(DO_val, mask, bitset); in litex_clk_change_value()
584 uint16_t bitset = 0; in litex_clk_set_divreg() local
597 bitset = (edge << EDGE_DIVREG_POS) | in litex_clk_set_divreg()
602 ret = litex_clk_change_value(KEEP_IN_DIV, bitset, DIV_REG); in litex_clk_set_divreg()