Searched refs:bit_pos (Results 1 – 2 of 2) sorted by relevance
29 static void dvfs_service_handler_set_state_bit(uint32_t bit_pos) in dvfs_service_handler_set_state_bit() argument31 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() argument36 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() argument41 return atomic_test_bit(&dvfs_service_handler_state_bits, bit_pos); in dvfs_service_handler_get_state_bit()
264 int bit_pos; in pi3usb9201_client_detect_finish() local276 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()