Searched refs:current_role (Results 1 – 3 of 3) 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()
87 enum usb_role current_role; member565 if (qcom->current_role == next_role) in dwc3_qcom_set_role_notifier()573 if (qcom->current_role == USB_ROLE_DEVICE) in dwc3_qcom_set_role_notifier()575 else if (qcom->current_role != USB_ROLE_DEVICE) in dwc3_qcom_set_role_notifier()585 qcom->current_role = next_role; in dwc3_qcom_set_role_notifier()689 qcom->current_role = USB_ROLE_HOST; in dwc3_qcom_probe()691 qcom->current_role = USB_ROLE_DEVICE; in dwc3_qcom_probe()696 qcom->current_role = USB_ROLE_HOST; in dwc3_qcom_probe()698 qcom->current_role = USB_ROLE_DEVICE; in dwc3_qcom_probe()
135 enum usb_role current_role; in ssusb_mode_sw_work() local137 current_role = ssusb->is_host ? USB_ROLE_HOST : USB_ROLE_DEVICE; in ssusb_mode_sw_work()146 if (current_role == desired_role) in ssusb_mode_sw_work()