Home
last modified time | relevance | path

Searched refs:cur_role (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/drivers/usb/dwc3/
Ddwc3-rtk.c61 enum usb_role cur_role; member
98 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()
/linux-6.12.1/drivers/usb/typec/
Drt1719.c396 enum typec_data_role cur_role; in rt1719_dr_set() local
405 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()
/linux-6.12.1/drivers/usb/gadget/udc/
Drenesas_usb3.c2440 enum usb_role cur_role; in renesas_usb3_role_switch_get() local
2443 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() local
2459 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() local
2524 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()
/linux-6.12.1/drivers/usb/typec/ucsi/
Ducsi.c1463 enum typec_role cur_role; in ucsi_pr_swap() local
1474 cur_role = !!(con->status.flags & UCSI_CONSTAT_PWR_DIR); in ucsi_pr_swap()
1476 if (cur_role == role) in ucsi_pr_swap()