/Linux-v6.6/drivers/usb/dwc2/ |
D | drd.c | 30 if (hsotg->role_sw_default_mode == USB_DR_MODE_HOST) in dwc2_ovr_init() 38 dwc2_force_mode(hsotg, (hsotg->dr_mode == USB_DR_MODE_HOST) || in dwc2_ovr_init() 39 (hsotg->role_sw_default_mode == USB_DR_MODE_HOST)); in dwc2_ovr_init() 93 if ((role == USB_ROLE_DEVICE && hsotg->dr_mode == USB_DR_MODE_HOST) || in dwc2_drd_role_sw_set() 124 if (hsotg->role_sw_default_mode == USB_DR_MODE_HOST) in dwc2_drd_role_sw_set() 218 if (hsotg->role_sw_default_mode == USB_DR_MODE_HOST) in dwc2_drd_resume()
|
D | platform.c | 75 mode = USB_DR_MODE_HOST; in dwc2_get_dr_mode() 78 mode = USB_DR_MODE_HOST; in dwc2_get_dr_mode() 86 mode == USB_DR_MODE_HOST ? "host" : "device"); in dwc2_get_dr_mode() 568 if (hsotg->dr_mode != USB_DR_MODE_HOST) { in dwc2_driver_probe()
|
D | params.c | 495 if ((hsotg->dr_mode == USB_DR_MODE_HOST) || in dwc2_set_default_params() 788 if ((hsotg->dr_mode == USB_DR_MODE_HOST) || in dwc2_check_params() 859 if (hsotg->dr_mode == USB_DR_MODE_HOST) in dwc2_get_dev_hwparams()
|
D | core.c | 523 if (WARN_ON(!host && hsotg->dr_mode == USB_DR_MODE_HOST)) in dwc2_force_mode() 574 case USB_DR_MODE_HOST: in dwc2_force_dr_mode()
|
/Linux-v6.6/drivers/usb/cdns3/ |
D | drd.c | 36 case USB_DR_MODE_HOST: in cdns_set_mode() 134 if (cdns->dr_mode == USB_DR_MODE_HOST) in cdns_is_host() 321 case USB_DR_MODE_HOST: in cdns_drd_update_mode() 322 ret = cdns_set_mode(cdns, USB_DR_MODE_HOST); in cdns_drd_update_mode() 451 cdns->dr_mode = USB_DR_MODE_HOST; in cdns_drd_init()
|
D | core.c | 104 dr_mode = USB_DR_MODE_HOST; in cdns_core_init_role() 112 dr_mode = USB_DR_MODE_HOST; in cdns_core_init_role() 139 if (dr_mode == USB_DR_MODE_OTG || dr_mode == USB_DR_MODE_HOST) { in cdns_core_init_role() 190 case USB_DR_MODE_HOST: in cdns_core_init_role() 368 if (cdns->dr_mode == USB_DR_MODE_HOST) { in cdns_role_set()
|
D | cdns3-starfive.c | 57 case USB_DR_MODE_HOST: in cdns_mode_init()
|
/Linux-v6.6/drivers/usb/fotg210/ |
D | fotg210-core.c | 67 if (mode == USB_DR_MODE_HOST) in fotg210_gemini_init() 77 if (mode == USB_DR_MODE_HOST) in fotg210_gemini_init() 92 (mode == USB_DR_MODE_HOST) ? "host" : "gadget"); in fotg210_gemini_init()
|
/Linux-v6.6/drivers/usb/mtu3/ |
D | mtu3_plat.c | 296 if (ssusb->dr_mode == USB_DR_MODE_HOST) in get_ssusb_rscs() 386 ssusb->dr_mode = USB_DR_MODE_HOST; in mtu3_probe() 401 case USB_DR_MODE_HOST: in mtu3_probe() 464 case USB_DR_MODE_HOST: in mtu3_remove() 491 case USB_DR_MODE_HOST: in resume_ip_and_ports() 521 case USB_DR_MODE_HOST: in mtu3_suspend_common()
|
/Linux-v6.6/drivers/phy/marvell/ |
D | phy-mvebu-cp110-utmi.c | 330 if ((port->dr_mode != USB_DR_MODE_HOST) && in mvebu_cp110_utmi_phy_probe() 335 port->dr_mode = USB_DR_MODE_HOST; in mvebu_cp110_utmi_phy_probe() 344 port->dr_mode = USB_DR_MODE_HOST; in mvebu_cp110_utmi_phy_probe()
|
/Linux-v6.6/drivers/usb/phy/ |
D | phy-tegra-usb.c | 544 if (phy->mode != USB_DR_MODE_HOST) { in utmi_phy_power_on() 636 if (phy->mode == USB_DR_MODE_HOST) in utmi_phy_power_on() 658 if (phy->wakeup_enabled && phy->mode != USB_DR_MODE_HOST) in utmi_phy_power_off() 699 if (phy->mode != USB_DR_MODE_HOST) { in utmi_phy_power_off() 942 if (phy->wakeup_enabled && phy->mode != USB_DR_MODE_HOST && in tegra_usb_phy_set_wakeup() 957 if (enable && phy->mode != USB_DR_MODE_HOST && phy->irq > 0) { in tegra_usb_phy_set_wakeup() 1031 if (phy->mode != USB_DR_MODE_HOST) in tegra_usb_phy_configure_pmc() 1381 tegra_phy->mode = USB_DR_MODE_HOST; in tegra_usb_phy_probe()
|
D | phy-am335x-control.c | 86 if (dr_mode == USB_DR_MODE_HOST) { in am335x_phy_power()
|
/Linux-v6.6/include/linux/usb/ |
D | otg.h | 118 USB_DR_MODE_HOST, enumerator
|
/Linux-v6.6/drivers/usb/dwc3/ |
D | drd.c | 457 if (dwc->role_switch_default_mode == USB_DR_MODE_HOST) in dwc3_usb_role_switch_set() 486 if (dwc->role_switch_default_mode == USB_DR_MODE_HOST) in dwc3_usb_role_switch_get() 502 if (dwc->role_switch_default_mode == USB_DR_MODE_HOST) { in dwc3_setup_role_switch()
|
D | core.c | 76 mode = USB_DR_MODE_HOST; in dwc3_get_dr_mode() 80 mode = USB_DR_MODE_HOST; in dwc3_get_dr_mode() 99 mode == USB_DR_MODE_HOST ? "host" : "gadget"); in dwc3_get_dr_mode() 296 if (dwc->dr_mode == USB_DR_MODE_HOST) { in dwc3_core_soft_reset() 923 if ((dwc->dr_mode == USB_DR_MODE_HOST || in dwc3_core_setup_global_control() 1253 if (!DWC3_IP_IS(DWC3) && dwc->dr_mode == USB_DR_MODE_HOST) { in dwc3_core_init() 1367 case USB_DR_MODE_HOST: in dwc3_core_init_mode() 1399 case USB_DR_MODE_HOST: in dwc3_core_exit_mode()
|
D | dwc3-qcom.c | 142 qcom->mode = event ? USB_DR_MODE_PERIPHERAL : USB_DR_MODE_HOST; in dwc3_qcom_vbus_notifier() 154 qcom->mode = event ? USB_DR_MODE_HOST : USB_DR_MODE_PERIPHERAL; in dwc3_qcom_host_notifier() 912 if (qcom->mode != USB_DR_MODE_HOST) in dwc3_qcom_probe()
|
D | dwc3-st.c | 143 case USB_DR_MODE_HOST: in st_dwc3_drd_init()
|
/Linux-v6.6/drivers/phy/amlogic/ |
D | phy-meson8b-usb2.c | 188 if (priv->dr_mode == USB_DR_MODE_HOST) { in phy_meson8b_usb2_power_on() 217 if (priv->dr_mode == USB_DR_MODE_HOST) in phy_meson8b_usb2_power_off()
|
/Linux-v6.6/drivers/usb/chipidea/ |
D | ci_hdrc_tegra.c | 47 .dr_mode = USB_DR_MODE_HOST, 55 .dr_mode = USB_DR_MODE_HOST,
|
/Linux-v6.6/drivers/usb/musb/ |
D | mediatek.c | 433 pdata->mode = USB_DR_MODE_HOST; in mtk_musb_probe() 438 case USB_DR_MODE_HOST: in mtk_musb_probe()
|
/Linux-v6.6/drivers/usb/common/ |
D | common.c | 178 [USB_DR_MODE_HOST] = "host",
|
/Linux-v6.6/drivers/phy/rockchip/ |
D | phy-rockchip-inno-usb2.c | 478 if (rport->mode != USB_DR_MODE_HOST && in rockchip_usb2phy_init() 609 rport->mode != USB_DR_MODE_HOST && in rockchip_usb2phy_exit() 1100 if (rport->mode != USB_DR_MODE_HOST && in rockchip_usb2phy_irq() 1264 if (rport->mode == USB_DR_MODE_HOST || in rockchip_usb2phy_otg_port_init()
|
/Linux-v6.6/drivers/phy/tegra/ |
D | xusb-tegra186.c | 874 else if (port->mode == USB_DR_MODE_HOST) in tegra186_utmi_phy_power_on() 938 if (port->supply && port->mode == USB_DR_MODE_HOST) { in tegra186_utmi_phy_init() 965 if (port->supply && port->mode == USB_DR_MODE_HOST) { in tegra186_utmi_phy_exit() 1280 else if (usb2->mode == USB_DR_MODE_HOST) in tegra186_usb3_phy_power_on()
|
D | xusb.c | 582 [USB_DR_MODE_HOST] = "host", 730 if (mode == USB_DR_MODE_HOST) in tegra_xusb_parse_usb_role_default_mode() 760 usb2->mode = USB_DR_MODE_HOST; in tegra_xusb_usb2_port_parse_dt()
|
/Linux-v6.6/drivers/phy/allwinner/ |
D | phy-sun4i-usb.c | 411 case USB_DR_MODE_HOST: in sun4i_usb_phy0_get_id_det() 527 new_mode = USB_DR_MODE_HOST; in sun4i_usb_phy_set_mode()
|