Lines Matching refs:bit
63 __STATIC_INLINE bool nrf_bitmask_bit_is_set(uint32_t bit, void const * p_mask) in nrf_bitmask_bit_is_set() argument
66 uint32_t byte_idx = BITMASK_BYTE_GET(bit); in nrf_bitmask_bit_is_set()
67 bit = BITMASK_RELBIT_GET(bit); in nrf_bitmask_bit_is_set()
68 return ((1U << bit) & p_mask8[byte_idx]) != 0U; in nrf_bitmask_bit_is_set()
77 __STATIC_INLINE void nrf_bitmask_bit_set(uint32_t bit, void * p_mask) in nrf_bitmask_bit_set() argument
80 uint32_t byte_idx = BITMASK_BYTE_GET(bit); in nrf_bitmask_bit_set()
81 bit = BITMASK_RELBIT_GET(bit); in nrf_bitmask_bit_set()
82 p_mask8[byte_idx] |= (1 << bit); in nrf_bitmask_bit_set()
91 __STATIC_INLINE void nrf_bitmask_bit_clear(uint32_t bit, void * p_mask) in nrf_bitmask_bit_clear() argument
94 uint32_t byte_idx = BITMASK_BYTE_GET(bit); in nrf_bitmask_bit_clear()
95 bit = BITMASK_RELBIT_GET(bit); in nrf_bitmask_bit_clear()
96 p_mask8[byte_idx] &= ~(1 << bit); in nrf_bitmask_bit_clear()