Home
last modified time | relevance | path

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

/linux/drivers/usb/cdns3/
H A Dcore.c300 enum usb_role real_role, current_role; in cdns_hw_role_switch() local
309 current_role = cdns->role; in cdns_hw_role_switch()
313 if (current_role == real_role) in cdns_hw_role_switch()
318 dev_dbg(cdns->dev, "Switching role %d -> %d", current_role, real_role); in cdns_hw_role_switch()
324 real_role, current_role); in cdns_hw_role_switch()
325 ret = cdns_role_start(cdns, current_role); in cdns_hw_role_switch()
328 current_role); in cdns_hw_role_switch()
/linux/drivers/usb/mtu3/
H A 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()