Searched refs:cur_role (Results 1 – 3 of 3) sorted by relevance
402 enum typec_data_role cur_role; in rt1719_dr_set() local411 cur_role = rt1719_get_data_role(data->conn_info); in rt1719_dr_set()412 if (cur_role == role) in rt1719_dr_set()426 cur_role = rt1719_get_data_role(data->conn_info); in rt1719_dr_set()427 if (cur_role != role) in rt1719_dr_set()
2440 enum usb_role cur_role; in renesas_usb3_role_switch_get() local2443 cur_role = usb3_is_host(usb3) ? USB_ROLE_HOST : USB_ROLE_DEVICE; in renesas_usb3_role_switch_get()2446 return cur_role; in renesas_usb3_role_switch_get()2454 enum usb_role cur_role = renesas_usb3_role_switch_get(usb3->role_sw); in handle_ext_role_switch_states() local2459 if (!usb3->is_rzv2m && cur_role == USB_ROLE_HOST) in handle_ext_role_switch_states()2482 } else if (cur_role == USB_ROLE_HOST) { in handle_ext_role_switch_states()2503 } else if (cur_role == USB_ROLE_DEVICE) { in handle_ext_role_switch_states()2522 enum usb_role cur_role = renesas_usb3_role_switch_get(usb3->role_sw); in handle_role_switch_states() local2524 if (cur_role == USB_ROLE_HOST && role == USB_ROLE_DEVICE) { in handle_role_switch_states()2527 } else if (cur_role == USB_ROLE_DEVICE && role == USB_ROLE_HOST) { in handle_role_switch_states()
1130 enum typec_role cur_role; in ucsi_pr_swap() local1141 cur_role = !!(con->status.flags & UCSI_CONSTAT_PWR_DIR); in ucsi_pr_swap()1143 if (cur_role == role) in ucsi_pr_swap()