Searched refs:current_role (Results 1 – 3 of 3) sorted by relevance
299 enum usb_role real_role, current_role; in cdns_hw_role_switch() local308 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()
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()
610 enum usb_role current_role = ci_role_to_usb_role(ci); in ci_usb_role_switch_set() local615 (current_role == role)) in ci_usb_role_switch_set()621 if (current_role == USB_ROLE_DEVICE) in ci_usb_role_switch_set()623 else if (current_role == USB_ROLE_HOST) in ci_usb_role_switch_set()