Home
last modified time | relevance | path

Searched refs:USB_ROLE_DEVICE (Results 1 – 14 of 14) sorted by relevance

/Linux-v5.4/drivers/usb/cdns3/
Dcore.c41 if (WARN_ON(role > USB_ROLE_DEVICE)) in cdns3_role_start()
67 if (WARN_ON(role > USB_ROLE_DEVICE)) in cdns3_role_stop()
175 ret = cdns3_role_start(cdns, USB_ROLE_DEVICE); in cdns3_core_init_role()
229 role = USB_ROLE_DEVICE; in cdsn3_hw_role_state_machine()
235 case USB_ROLE_DEVICE: /* from GADGET, we can only change to NONE*/ in cdsn3_hw_role_state_machine()
249 role = USB_ROLE_DEVICE; in cdsn3_hw_role_state_machine()
406 case USB_ROLE_DEVICE: in cdns3_role_set()
Dcore.h83 struct cdns3_role_driver *roles[USB_ROLE_DEVICE + 1];
Dgadget.c2773 cdns->roles[USB_ROLE_DEVICE] = rdrv; in cdns3_gadget_init()
/Linux-v5.4/drivers/usb/roles/
Dintel-xhci-usb-role-switch.c93 case USB_ROLE_DEVICE: in intel_xhci_usb_set_role()
142 role = USB_ROLE_DEVICE; in intel_xhci_usb_get_role()
Dclass.c193 [USB_ROLE_DEVICE] = "device",
/Linux-v5.4/include/linux/usb/
Drole.h13 USB_ROLE_DEVICE, enumerator
/Linux-v5.4/drivers/usb/common/
Dusb-conn-gpio.c78 role = USB_ROLE_DEVICE; in usb_conn_detect_cable()
/Linux-v5.4/drivers/usb/chipidea/
Dci.h300 return USB_ROLE_DEVICE; in ci_role_to_usb_role()
Dcore.c629 if (current_role == USB_ROLE_DEVICE) in ci_usb_role_switch_set()
647 if (role == USB_ROLE_DEVICE) in ci_usb_role_switch_set()
/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()
2349 cur_role = usb3_is_host(usb3) ? USB_ROLE_HOST : USB_ROLE_DEVICE; in renesas_usb3_role_switch_get()
2369 case USB_ROLE_DEVICE: in handle_ext_role_switch_states()
2371 usb3->connection_state = USB_ROLE_DEVICE; in handle_ext_role_switch_states()
2393 } else if (cur_role == USB_ROLE_DEVICE) { 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/mtu3/
Dmtu3_dr.c342 role = ssusb->is_host ? USB_ROLE_HOST : USB_ROLE_DEVICE; in ssusb_role_sw_get()
/Linux-v5.4/drivers/extcon/
Dextcon-axp288.c189 role = USB_ROLE_DEVICE; in axp288_usb_role_work()
/Linux-v5.4/drivers/usb/dwc3/
Ddwc3-meson-g12a.c346 USB_ROLE_HOST : USB_ROLE_DEVICE; in dwc3_meson_g12a_role_get()
/Linux-v5.4/drivers/usb/typec/tcpm/
Dtcpm.c803 usb_role = USB_ROLE_DEVICE; in tcpm_set_roles()