Home
last modified time | relevance | path

Searched refs:bit_pos (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/modules/hal_nordic/nrfs/dvfs/
Dld_dvfs_handler.c29 static void dvfs_service_handler_set_state_bit(uint32_t bit_pos) in dvfs_service_handler_set_state_bit() argument
31 atomic_set_bit(&dvfs_service_handler_state_bits, bit_pos); in dvfs_service_handler_set_state_bit()
34 static void dvfs_service_handler_clear_state_bit(uint32_t bit_pos) in dvfs_service_handler_clear_state_bit() argument
36 atomic_clear_bit(&dvfs_service_handler_state_bits, bit_pos); in dvfs_service_handler_clear_state_bit()
39 static bool dvfs_service_handler_get_state_bit(uint32_t bit_pos) in dvfs_service_handler_get_state_bit() argument
41 return atomic_test_bit(&dvfs_service_handler_state_bits, bit_pos); in dvfs_service_handler_get_state_bit()
/Zephyr-latest/drivers/usb/bc12/
Dbc12_pi3usb9201.c264 int bit_pos; in pi3usb9201_client_detect_finish() local
276 bit_pos = __builtin_ffs(status) - 1; in pi3usb9201_client_detect_finish()
278 new_partner_state.current_ua = bc12_chg_limits[bit_pos].current_limit; in pi3usb9201_client_detect_finish()
279 new_partner_state.type = bc12_chg_limits[bit_pos].partner_type; in pi3usb9201_client_detect_finish()