/linux-6.1.9/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() 92 if ((role == USB_ROLE_DEVICE && hsotg->dr_mode == USB_DR_MODE_HOST) || in dwc2_drd_role_sw_set() 123 if (hsotg->role_sw_default_mode == USB_DR_MODE_HOST) in dwc2_drd_role_sw_set() 217 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() 539 if (hsotg->dr_mode != USB_DR_MODE_HOST) { in dwc2_driver_probe()
|
D | params.c | 440 if ((hsotg->dr_mode == USB_DR_MODE_HOST) || in dwc2_set_default_params() 734 if ((hsotg->dr_mode == USB_DR_MODE_HOST) || in dwc2_check_params() 805 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-6.1.9/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() 317 case USB_DR_MODE_HOST: in cdns_drd_update_mode() 318 ret = cdns_set_mode(cdns, USB_DR_MODE_HOST); in cdns_drd_update_mode() 447 cdns->dr_mode = USB_DR_MODE_HOST; in cdns_drd_init()
|
D | core.c | 103 dr_mode = USB_DR_MODE_HOST; in cdns_core_init_role() 111 dr_mode = USB_DR_MODE_HOST; in cdns_core_init_role() 138 if (dr_mode == USB_DR_MODE_OTG || dr_mode == USB_DR_MODE_HOST) { in cdns_core_init_role() 189 case USB_DR_MODE_HOST: in cdns_core_init_role() 367 if (cdns->dr_mode == USB_DR_MODE_HOST) { in cdns_role_set()
|
/linux-6.1.9/drivers/usb/mtu3/ |
D | mtu3_plat.c | 294 if (ssusb->dr_mode == USB_DR_MODE_HOST) in get_ssusb_rscs() 384 ssusb->dr_mode = USB_DR_MODE_HOST; in mtu3_probe() 399 case USB_DR_MODE_HOST: in mtu3_probe() 462 case USB_DR_MODE_HOST: in mtu3_remove() 489 case USB_DR_MODE_HOST: in resume_ip_and_ports() 519 case USB_DR_MODE_HOST: in mtu3_suspend_common()
|
/linux-6.1.9/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-6.1.9/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-6.1.9/include/linux/usb/ |
D | otg.h | 118 USB_DR_MODE_HOST, enumerator
|
/linux-6.1.9/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() 900 if ((dwc->dr_mode == USB_DR_MODE_HOST || in dwc3_core_setup_global_control() 1244 if (dwc->dr_mode == USB_DR_MODE_HOST || in dwc3_core_init() 1264 if (!DWC3_IP_IS(DWC3) && dwc->dr_mode == USB_DR_MODE_HOST) { in dwc3_core_init() 1391 case USB_DR_MODE_HOST: in dwc3_core_init_mode() 1423 case USB_DR_MODE_HOST: in dwc3_core_exit_mode()
|
D | dwc3-st.c | 143 case USB_DR_MODE_HOST: in st_dwc3_drd_init()
|
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()
|
/linux-6.1.9/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-6.1.9/drivers/usb/chipidea/ |
D | ci_hdrc_tegra.c | 46 .dr_mode = USB_DR_MODE_HOST, 54 .dr_mode = USB_DR_MODE_HOST,
|
D | core.c | 920 return USB_DR_MODE_HOST; in ci_hdrc_query_available_role() 1110 if (dr_mode == USB_DR_MODE_OTG || dr_mode == USB_DR_MODE_HOST) { in ci_hdrc_probe()
|
/linux-6.1.9/drivers/usb/musb/ |
D | mediatek.c | 431 pdata->mode = USB_DR_MODE_HOST; in mtk_musb_probe() 436 case USB_DR_MODE_HOST: in mtk_musb_probe()
|
/linux-6.1.9/drivers/phy/rockchip/ |
D | phy-rockchip-inno-usb2.c | 417 if (rport->mode != USB_DR_MODE_HOST && in rockchip_usb2phy_init() 527 rport->mode != USB_DR_MODE_HOST && in rockchip_usb2phy_exit() 983 if (rport->mode != USB_DR_MODE_HOST && in rockchip_usb2phy_irq() 1147 if (rport->mode == USB_DR_MODE_HOST || in rockchip_usb2phy_otg_port_init()
|
/linux-6.1.9/drivers/usb/common/ |
D | common.c | 177 [USB_DR_MODE_HOST] = "host",
|
/linux-6.1.9/drivers/phy/tegra/ |
D | xusb-tegra186.c | 819 else if (port->mode == USB_DR_MODE_HOST) in tegra186_utmi_phy_power_on() 883 if (port->supply && port->mode == USB_DR_MODE_HOST) { in tegra186_utmi_phy_init() 910 if (port->supply && port->mode == USB_DR_MODE_HOST) { in tegra186_utmi_phy_exit() 1226 else if (usb2->mode == USB_DR_MODE_HOST) in tegra186_usb3_phy_power_on()
|
D | xusb.c | 575 [USB_DR_MODE_HOST] = "host", 734 usb2->mode = USB_DR_MODE_HOST; in tegra_xusb_usb2_port_parse_dt()
|
/linux-6.1.9/drivers/phy/allwinner/ |
D | phy-sun4i-usb.c | 425 case USB_DR_MODE_HOST: in sun4i_usb_phy0_get_id_det() 542 new_mode = USB_DR_MODE_HOST; in sun4i_usb_phy_set_mode()
|
/linux-6.1.9/drivers/phy/renesas/ |
D | phy-rcar-gen3-usb2.c | 273 return (ch->dr_mode == USB_DR_MODE_HOST) ? false : true; in rcar_gen3_check_id()
|