Home
last modified time | relevance | path

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

/Zephyr-Core-3.6.0/subsys/net/lib/sockets/
Dsockets_select.c17 #define FD_SET_CALC_OFFSETS(set, word_idx, bit_mask) { \ argument
20 bit_mask = 1 << b_idx; \
34 uint32_t word_idx, bit_mask; in ZSOCK_FD_ISSET() local
40 FD_SET_CALC_OFFSETS(set, word_idx, bit_mask); in ZSOCK_FD_ISSET()
42 return (set->bitset[word_idx] & bit_mask) != 0U; in ZSOCK_FD_ISSET()
47 uint32_t word_idx, bit_mask; in ZSOCK_FD_CLR() local
53 FD_SET_CALC_OFFSETS(set, word_idx, bit_mask); in ZSOCK_FD_CLR()
55 set->bitset[word_idx] &= ~bit_mask; in ZSOCK_FD_CLR()
60 uint32_t word_idx, bit_mask; in ZSOCK_FD_SET() local
66 FD_SET_CALC_OFFSETS(set, word_idx, bit_mask); in ZSOCK_FD_SET()
[all …]
/Zephyr-Core-3.6.0/subsys/modbus/
Dmodbus_server.c117 uint8_t bit_mask; in mbs_fc01_coil_read() local
154 bit_mask = BIT(0); in mbs_fc01_coil_read()
169 *presp |= bit_mask; in mbs_fc01_coil_read()
178 bit_mask = BIT(0); in mbs_fc01_coil_read()
186 bit_mask <<= 1; in mbs_fc01_coil_read()
216 uint8_t bit_mask; in mbs_fc02_di_read() local
255 bit_mask = BIT(0); in mbs_fc02_di_read()
270 *presp |= bit_mask; in mbs_fc02_di_read()
279 bit_mask = BIT(0); in mbs_fc02_di_read()
287 bit_mask <<= 1; in mbs_fc02_di_read()
/Zephyr-Core-3.6.0/soc/riscv/ite_ec/common/
Dchip_chipregs.h27 #define SET_MASK(reg, bit_mask) ((reg) |= (bit_mask)) argument
28 #define CLEAR_MASK(reg, bit_mask) ((reg) &= (~(bit_mask))) argument
29 #define IS_MASK_SET(reg, bit_mask) (((reg) & (bit_mask)) != 0) argument