/kernel/linux/linux-5.10/drivers/usb/dwc2/ |
D | drd.c | 80 (role == USB_ROLE_HOST && hsotg->dr_mode == USB_DR_MODE_PERIPHERAL)) in dwc2_drd_role_sw_set() 108 if (role == USB_ROLE_HOST) { in dwc2_drd_role_sw_set() 128 dwc2_force_mode(hsotg, role == USB_ROLE_HOST); in dwc2_drd_role_sw_set() 135 role == USB_ROLE_HOST ? "A" : "B"); in dwc2_drd_role_sw_set()
|
/kernel/linux/linux-5.10/drivers/usb/roles/ |
D | intel-xhci-usb-role-switch.c | 90 case USB_ROLE_HOST: in intel_xhci_usb_set_role() 116 if (!!(val & HOST_MODE) == (role == USB_ROLE_HOST)) { in intel_xhci_usb_set_role() 142 role = USB_ROLE_HOST; in intel_xhci_usb_get_role()
|
D | class.c | 213 [USB_ROLE_HOST] = "host",
|
/kernel/linux/linux-5.10/drivers/usb/common/ |
D | usb-conn-gpio.c | 80 role = USB_ROLE_HOST; in usb_conn_detect_cable() 94 if (info->last_role == USB_ROLE_HOST && info->vbus) in usb_conn_detect_cable() 101 if (role == USB_ROLE_HOST && info->vbus) { in usb_conn_detect_cable() 295 if (info->last_role == USB_ROLE_HOST && info->vbus) in usb_conn_remove()
|
/kernel/linux/linux-5.10/drivers/usb/typec/ |
D | hd3ss3220.c | 62 attached_state = USB_ROLE_HOST; in hd3ss3220_get_attached_state() 82 role_val = USB_ROLE_HOST; in hd3ss3220_dr_set() 112 case USB_ROLE_HOST: 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() 83 if (role == USB_ROLE_HOST) in qcom_pmic_typec_check_connection()
|
D | tps6598x.c | 200 role_val = USB_ROLE_HOST; in tps6598x_set_data_role()
|
D | stusb160x.c | 335 usb_role = USB_ROLE_HOST; in stusb160x_set_data_role()
|
/kernel/linux/linux-5.10/drivers/usb/cdns3/ |
D | core.c | 171 ret = cdns3_role_start(cdns, USB_ROLE_HOST); in cdns3_core_init_role() 199 role = USB_ROLE_HOST; in cdns3_hw_role_state_machine() 224 role = USB_ROLE_HOST; in cdns3_hw_role_state_machine() 228 case USB_ROLE_HOST: /* from HOST, we can only change to NONE */ in cdns3_hw_role_state_machine() 351 case USB_ROLE_HOST: in cdns3_role_set() 413 if ((cdns->role == USB_ROLE_HOST) && cdns->host_dev) in cdns3_wakeup_irq()
|
D | host.c | 137 cdns->roles[USB_ROLE_HOST] = rdrv; in cdns3_host_init()
|
D | cdns3-imx.c | 256 if (cdns->role != USB_ROLE_HOST) in cdns_imx_platform_suspend()
|
/kernel/linux/linux-5.10/drivers/usb/musb/ |
D | mediatek.c | 128 case USB_ROLE_HOST: in mtk_otg_switch_set() 131 new_role = USB_ROLE_HOST; in mtk_otg_switch_set() 279 new_role = USB_ROLE_HOST; in mtk_musb_set_mode() 490 glue->role = USB_ROLE_HOST; in mtk_musb_probe()
|
D | jz4740.c | 91 case USB_ROLE_HOST: in jz4740_musb_role_switch_set()
|
/kernel/linux/linux-5.10/include/linux/usb/ |
D | role.h | 12 USB_ROLE_HOST, enumerator
|
/kernel/linux/linux-5.10/drivers/usb/chipidea/ |
D | ci.h | 299 return USB_ROLE_HOST; in ci_role_to_usb_role() 308 if (role == USB_ROLE_HOST) in usb_role_to_ci_role()
|
D | core.c | 618 else if (current_role == USB_ROLE_HOST) in ci_usb_role_switch_set() 636 else if (role == USB_ROLE_HOST) in ci_usb_role_switch_set()
|
/kernel/linux/linux-5.10/drivers/usb/dwc3/ |
D | drd.c | 488 case USB_ROLE_HOST: in dwc3_usb_role_switch_set() 515 role = USB_ROLE_HOST; in dwc3_usb_role_switch_get() 525 role = USB_ROLE_HOST; in dwc3_usb_role_switch_get()
|
D | dwc3-meson-g12a.c | 530 mode = (role == USB_ROLE_HOST) ? PHY_MODE_USB_HOST in dwc3_meson_g12a_role_set() 547 USB_ROLE_HOST : USB_ROLE_DEVICE; in dwc3_meson_g12a_role_get()
|
/kernel/linux/linux-5.10/drivers/usb/mtu3/ |
D | mtu3_dr.c | 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()
|
/kernel/linux/linux-5.10/drivers/extcon/ |
D | extcon-axp288.c | 174 return role != USB_ROLE_HOST; in axp288_get_id_pin() 187 role = USB_ROLE_HOST; in axp288_usb_role_work()
|
/kernel/linux/linux-5.10/drivers/misc/ |
D | hisi_hikey_usb.c | 114 case USB_ROLE_HOST: in relay_set_role_switch()
|
/kernel/linux/linux-5.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() 727 !usb3->forced_b_device) || usb3->connection_state == USB_ROLE_HOST) in usb3_check_id() 2365 cur_role = usb3_is_host(usb3) ? USB_ROLE_HOST : USB_ROLE_DEVICE; in renesas_usb3_role_switch_get() 2391 } else if (cur_role == USB_ROLE_HOST) { in handle_ext_role_switch_states() 2399 case USB_ROLE_HOST: in handle_ext_role_switch_states() 2404 usb3->connection_state = USB_ROLE_HOST; in handle_ext_role_switch_states() 2430 if (cur_role == USB_ROLE_HOST && role == USB_ROLE_DEVICE) { in handle_role_switch_states() 2433 } else if (cur_role == USB_ROLE_DEVICE && role == USB_ROLE_HOST) { in handle_role_switch_states()
|
/kernel/linux/linux-5.10/drivers/phy/tegra/ |
D | xusb.c | 576 [USB_ROLE_HOST] = "host", 586 case USB_ROLE_HOST: in to_usb_phy_event()
|
D | xusb-tegra186.c | 374 if (submode == USB_ROLE_HOST) { in tegra186_utmi_phy_set_mode()
|
/kernel/linux/linux-5.10/drivers/platform/chrome/ |
D | cros_ec_typec.c | 555 ? USB_ROLE_HOST : USB_ROLE_DEVICE); in cros_typec_configure_mux()
|