Searched refs:current_role (Results 1 – 2 of 2) sorted by relevance
300 enum usb_role real_role, current_role; in cdns_hw_role_switch() local309 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()
134 enum usb_role current_role; in ssusb_mode_sw_work() local136 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()