| /Linux-v5.10/drivers/usb/cdns3/ |
| D | core.c | 34 if (WARN_ON(role > USB_ROLE_DEVICE)) in cdns3_role_start() 60 if (WARN_ON(role > USB_ROLE_DEVICE)) in cdns3_role_stop() 166 ret = cdns3_role_start(cdns, USB_ROLE_DEVICE); in cdns3_core_init_role() 201 role = USB_ROLE_DEVICE; in cdns3_hw_role_state_machine() 226 role = USB_ROLE_DEVICE; in cdns3_hw_role_state_machine() 232 case USB_ROLE_DEVICE: /* from GADGET, we can only change to NONE*/ in cdns3_hw_role_state_machine() 361 case USB_ROLE_DEVICE: in cdns3_role_set()
|
| D | core.h | 95 struct cdns3_role_driver *roles[USB_ROLE_DEVICE + 1];
|
| /Linux-v5.10/drivers/usb/typec/ |
| D | hd3ss3220.c | 65 attached_state = USB_ROLE_DEVICE; in hd3ss3220_get_attached_state() 85 role_val = USB_ROLE_DEVICE; in hd3ss3220_dr_set() 115 case USB_ROLE_DEVICE: in hd3ss3220_set_role()
|
| D | qcom-pmic-typec.c | 82 role = (stat & SNK_SRC_MODE) ? USB_ROLE_HOST : USB_ROLE_DEVICE; in qcom_pmic_typec_check_connection()
|
| D | tps6598x.c | 203 role_val = USB_ROLE_DEVICE; in tps6598x_set_data_role()
|
| D | stusb160x.c | 337 usb_role = USB_ROLE_DEVICE; in stusb160x_set_data_role()
|
| /Linux-v5.10/drivers/usb/dwc2/ |
| D | drd.c | 76 if ((role == USB_ROLE_DEVICE && hsotg->dr_mode == USB_DR_MODE_HOST) || in dwc2_drd_role_sw_set() 93 } else if (role == USB_ROLE_DEVICE) { in dwc2_drd_role_sw_set()
|
| /Linux-v5.10/drivers/usb/roles/ |
| D | intel-xhci-usb-role-switch.c | 95 case USB_ROLE_DEVICE: in intel_xhci_usb_set_role() 144 role = USB_ROLE_DEVICE; in intel_xhci_usb_get_role()
|
| D | class.c | 212 [USB_ROLE_DEVICE] = "device",
|
| /Linux-v5.10/drivers/usb/musb/ |
| D | mediatek.c | 139 case USB_ROLE_DEVICE: in mtk_otg_switch_set() 142 new_role = USB_ROLE_DEVICE; in mtk_otg_switch_set() 283 new_role = USB_ROLE_DEVICE; in mtk_musb_set_mode() 494 glue->role = USB_ROLE_DEVICE; in mtk_musb_probe()
|
| D | jz4740.c | 88 case USB_ROLE_DEVICE: in jz4740_musb_role_switch_set()
|
| /Linux-v5.10/include/linux/usb/ |
| D | role.h | 13 USB_ROLE_DEVICE, enumerator
|
| /Linux-v5.10/drivers/usb/chipidea/ |
| D | ci.h | 301 return USB_ROLE_DEVICE; in ci_role_to_usb_role() 310 else if (role == USB_ROLE_DEVICE) in usb_role_to_ci_role()
|
| D | core.c | 607 if (current_role == USB_ROLE_DEVICE) in ci_usb_role_switch_set() 625 if (role == USB_ROLE_DEVICE) in ci_usb_role_switch_set()
|
| /Linux-v5.10/drivers/usb/common/ |
| D | usb-conn-gpio.c | 82 role = USB_ROLE_DEVICE; in usb_conn_detect_cable() 143 val->intval = info->last_role == USB_ROLE_DEVICE; in usb_charger_get_property()
|
| /Linux-v5.10/drivers/usb/dwc3/ |
| D | drd.c | 491 case USB_ROLE_DEVICE: in dwc3_usb_role_switch_set() 518 role = USB_ROLE_DEVICE; in dwc3_usb_role_switch_get() 527 role = USB_ROLE_DEVICE; in dwc3_usb_role_switch_get()
|
| D | dwc3-meson-g12a.c | 547 USB_ROLE_HOST : USB_ROLE_DEVICE; in dwc3_meson_g12a_role_get()
|
| /Linux-v5.10/drivers/misc/ |
| D | hisi_hikey_usb.c | 119 case USB_ROLE_DEVICE: in relay_set_role_switch()
|
| /Linux-v5.10/drivers/usb/gadget/udc/ |
| D | renesas_usb3.c | 686 usb3->role = host ? USB_ROLE_HOST : USB_ROLE_DEVICE; in usb3_set_mode_by_role_sw() 2364 cur_role = usb3_is_host(usb3) ? USB_ROLE_HOST : USB_ROLE_DEVICE; in renesas_usb3_role_switch_get() 2384 case USB_ROLE_DEVICE: in handle_ext_role_switch_states() 2386 usb3->connection_state = USB_ROLE_DEVICE; in handle_ext_role_switch_states() 2408 } else if (cur_role == USB_ROLE_DEVICE) { in handle_ext_role_switch_states() 2429 if (cur_role == USB_ROLE_HOST && role == USB_ROLE_DEVICE) { in handle_role_switch_states() 2432 } else if (cur_role == USB_ROLE_DEVICE && role == USB_ROLE_HOST) { in handle_role_switch_states()
|
| /Linux-v5.10/drivers/usb/mtu3/ |
| D | mtu3_dr.c | 342 role = ssusb->is_host ? USB_ROLE_HOST : USB_ROLE_DEVICE; in ssusb_role_sw_get()
|
| /Linux-v5.10/drivers/extcon/ |
| D | extcon-axp288.c | 189 role = USB_ROLE_DEVICE; in axp288_usb_role_work()
|
| /Linux-v5.10/drivers/phy/tegra/ |
| D | xusb.c | 577 [USB_ROLE_DEVICE] = "device", 583 case USB_ROLE_DEVICE: in to_usb_phy_event()
|
| D | xusb-tegra186.c | 378 } else if (submode == USB_ROLE_DEVICE) { in tegra186_utmi_phy_set_mode()
|
| /Linux-v5.10/drivers/usb/typec/mux/ |
| D | intel_pmc_mux.c | 366 u8 ufp = role == USB_ROLE_DEVICE ? 1 : 0; in pmc_usb_connect()
|
| /Linux-v5.10/drivers/platform/chrome/ |
| D | cros_ec_typec.c | 550 ? USB_ROLE_HOST : USB_ROLE_DEVICE); in cros_typec_configure_mux()
|