Home
last modified time | relevance | path

Searched refs:USB_ROLE_HOST (Results 1 – 13 of 13) sorted by relevance

/Linux-v5.4/drivers/usb/cdns3/
Dcore.c180 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()
Dhost.c72 cdns->roles[USB_ROLE_HOST] = rdrv; in cdns3_host_init()
/Linux-v5.4/drivers/usb/common/
Dusb-conn-gpio.c76 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()
/Linux-v5.4/drivers/usb/roles/
Dintel-xhci-usb-role-switch.c88 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()
Dclass.c192 [USB_ROLE_HOST] = "host",
/Linux-v5.4/include/linux/usb/
Drole.h12 USB_ROLE_HOST, enumerator
/Linux-v5.4/drivers/usb/mtu3/
Dmtu3_dr.c328 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()
/Linux-v5.4/drivers/extcon/
Dextcon-axp288.c174 return role != USB_ROLE_HOST; in axp288_get_id_pin()
187 role = USB_ROLE_HOST; in axp288_usb_role_work()
/Linux-v5.4/drivers/usb/dwc3/
Ddwc3-meson-g12a.c332 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()
/Linux-v5.4/drivers/usb/gadget/udc/
Drenesas_usb3.c686 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()
/Linux-v5.4/drivers/usb/chipidea/
Dci.h298 return USB_ROLE_HOST; in ci_role_to_usb_role()
Dcore.c631 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()
/Linux-v5.4/drivers/usb/typec/tcpm/
Dtcpm.c801 usb_role = USB_ROLE_HOST; in tcpm_set_roles()