Home
last modified time | relevance | path

Searched refs:current_role (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.1/drivers/usb/cdns3/
Dcore.c299 enum usb_role real_role, current_role; in cdns_hw_role_switch() local
308 current_role = cdns->role; in cdns_hw_role_switch()
312 if (current_role == real_role) in cdns_hw_role_switch()
317 dev_dbg(cdns->dev, "Switching role %d -> %d", current_role, real_role); in cdns_hw_role_switch()
323 real_role, current_role); in cdns_hw_role_switch()
324 ret = cdns_role_start(cdns, current_role); in cdns_hw_role_switch()
327 current_role); in cdns_hw_role_switch()
/Linux-v6.1/drivers/usb/mtu3/
Dmtu3_dr.c134 enum usb_role current_role; in ssusb_mode_sw_work() local
136 current_role = ssusb->is_host ? USB_ROLE_HOST : USB_ROLE_DEVICE; in ssusb_mode_sw_work()
145 if (current_role == desired_role) in ssusb_mode_sw_work()
/Linux-v6.1/drivers/usb/chipidea/
Dcore.c612 enum usb_role current_role = ci_role_to_usb_role(ci); in ci_usb_role_switch_set() local
617 (current_role == role)) in ci_usb_role_switch_set()
623 if (current_role == USB_ROLE_DEVICE) in ci_usb_role_switch_set()
625 else if (current_role == USB_ROLE_HOST) in ci_usb_role_switch_set()