Home
last modified time | relevance | path

Searched refs:USB_DR_MODE_HOST (Results 1 – 25 of 31) sorted by relevance

12

/Linux-v6.6/drivers/usb/dwc2/
Ddrd.c30 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()
Dplatform.c75 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()
Dparams.c495 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()
Dcore.c523 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/
Ddrd.c36 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()
Dcore.c104 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()
Dcdns3-starfive.c57 case USB_DR_MODE_HOST: in cdns_mode_init()
/Linux-v6.6/drivers/usb/fotg210/
Dfotg210-core.c67 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/
Dmtu3_plat.c296 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/
Dphy-mvebu-cp110-utmi.c330 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/
Dphy-tegra-usb.c544 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()
Dphy-am335x-control.c86 if (dr_mode == USB_DR_MODE_HOST) { in am335x_phy_power()
/Linux-v6.6/include/linux/usb/
Dotg.h118 USB_DR_MODE_HOST, enumerator
/Linux-v6.6/drivers/usb/dwc3/
Ddrd.c457 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()
Dcore.c76 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()
Ddwc3-qcom.c142 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()
Ddwc3-st.c143 case USB_DR_MODE_HOST: in st_dwc3_drd_init()
/Linux-v6.6/drivers/phy/amlogic/
Dphy-meson8b-usb2.c188 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/
Dci_hdrc_tegra.c47 .dr_mode = USB_DR_MODE_HOST,
55 .dr_mode = USB_DR_MODE_HOST,
/Linux-v6.6/drivers/usb/musb/
Dmediatek.c433 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/
Dcommon.c178 [USB_DR_MODE_HOST] = "host",
/Linux-v6.6/drivers/phy/rockchip/
Dphy-rockchip-inno-usb2.c478 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/
Dxusb-tegra186.c874 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()
Dxusb.c582 [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/
Dphy-sun4i-usb.c411 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()

12