Searched refs:USB_ROLE_HOST (Results 1 – 13 of 13) sorted by relevance
180 ret = cdns3_role_start(cdns, USB_ROLE_HOST); in cdns3_core_init_role()227 role = USB_ROLE_HOST; in cdsn3_hw_role_state_machine()231 case USB_ROLE_HOST: /* from HOST, we can only change to NONE */ in cdsn3_hw_role_state_machine()247 role = USB_ROLE_HOST; in cdsn3_hw_role_state_machine()395 case USB_ROLE_HOST: in cdns3_role_set()607 if (cdns->role == USB_ROLE_HOST) in cdns3_suspend()627 if (cdns->role == USB_ROLE_HOST) in cdns3_resume()
72 cdns->roles[USB_ROLE_HOST] = rdrv; in cdns3_host_init()
76 role = USB_ROLE_HOST; in usb_conn_detect_cable()90 if (info->last_role == USB_ROLE_HOST) in usb_conn_detect_cable()97 if (role == USB_ROLE_HOST) { in usb_conn_detect_cable()223 if (info->last_role == USB_ROLE_HOST) in usb_conn_remove()
88 case USB_ROLE_HOST: in intel_xhci_usb_set_role()114 if (!!(val & HOST_MODE) == (role == USB_ROLE_HOST)) { in intel_xhci_usb_set_role()140 role = USB_ROLE_HOST; in intel_xhci_usb_get_role()
192 [USB_ROLE_HOST] = "host",
12 USB_ROLE_HOST, enumerator
328 if (role == USB_ROLE_HOST) in ssusb_role_sw_set()342 role = ssusb->is_host ? USB_ROLE_HOST : USB_ROLE_DEVICE; in ssusb_role_sw_get()
174 return role != USB_ROLE_HOST; in axp288_get_id_pin()187 role = USB_ROLE_HOST; in axp288_usb_role_work()
332 mode = (role == USB_ROLE_HOST) ? PHY_MODE_USB_HOST in dwc3_meson_g12a_role_set()346 USB_ROLE_HOST : USB_ROLE_DEVICE; in dwc3_meson_g12a_role_get()
686 usb3->role = host ? USB_ROLE_HOST : USB_ROLE_DEVICE; in usb3_set_mode_by_role_sw()727 !usb3->forced_b_device) || usb3->connection_state == USB_ROLE_HOST) in usb3_check_id()2349 cur_role = usb3_is_host(usb3) ? USB_ROLE_HOST : USB_ROLE_DEVICE; in renesas_usb3_role_switch_get()2375 } else if (cur_role == USB_ROLE_HOST) { in handle_ext_role_switch_states()2383 case USB_ROLE_HOST: in handle_ext_role_switch_states()2388 usb3->connection_state = USB_ROLE_HOST; in handle_ext_role_switch_states()2414 if (cur_role == USB_ROLE_HOST && role == USB_ROLE_DEVICE) { in handle_role_switch_states()2417 } else if (cur_role == USB_ROLE_DEVICE && role == USB_ROLE_HOST) { in handle_role_switch_states()
298 return USB_ROLE_HOST; in ci_role_to_usb_role()
631 else if (current_role == USB_ROLE_HOST) in ci_usb_role_switch_set()649 else if (role == USB_ROLE_HOST) in ci_usb_role_switch_set()
801 usb_role = USB_ROLE_HOST; in tcpm_set_roles()