Searched refs:cur_role (Results 1 – 4 of 4) sorted by relevance
61 enum usb_role cur_role; member98 role = rtk->cur_role; in dwc3_rtk_get_role()110 rtk->cur_role = role; in dwc3_rtk_set_role()322 rtk->cur_role = USB_ROLE_DEVICE; in dwc3_rtk_probe_dwc3_core()325 rtk->cur_role = USB_ROLE_HOST; in dwc3_rtk_probe_dwc3_core()338 rtk->cur_role = dwc3_rtk_get_role(rtk); in dwc3_rtk_probe_dwc3_core()341 switch_usb2_role(rtk, rtk->cur_role); in dwc3_rtk_probe_dwc3_core()423 switch_usb2_role(rtk, rtk->cur_role); in dwc3_rtk_resume()
396 enum typec_data_role cur_role; in rt1719_dr_set() local405 cur_role = rt1719_get_data_role(data->conn_info); in rt1719_dr_set()406 if (cur_role == role) in rt1719_dr_set()420 cur_role = rt1719_get_data_role(data->conn_info); in rt1719_dr_set()421 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()
1463 enum typec_role cur_role; in ucsi_pr_swap() local1474 cur_role = !!(con->status.flags & UCSI_CONSTAT_PWR_DIR); in ucsi_pr_swap()1476 if (cur_role == role) in ucsi_pr_swap()