Home
last modified time | relevance | path

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

12

/linux-6.1.9/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()
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()
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()
539 if (hsotg->dr_mode != USB_DR_MODE_HOST) { in dwc2_driver_probe()
Dparams.c440 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()
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-6.1.9/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()
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()
Dcore.c103 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/
Dmtu3_plat.c294 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/
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-6.1.9/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-6.1.9/include/linux/usb/
Dotg.h118 USB_DR_MODE_HOST, enumerator
/linux-6.1.9/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()
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()
Ddwc3-st.c143 case USB_DR_MODE_HOST: in st_dwc3_drd_init()
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()
/linux-6.1.9/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-6.1.9/drivers/usb/chipidea/
Dci_hdrc_tegra.c46 .dr_mode = USB_DR_MODE_HOST,
54 .dr_mode = USB_DR_MODE_HOST,
Dcore.c920 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/
Dmediatek.c431 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/
Dphy-rockchip-inno-usb2.c417 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/
Dcommon.c177 [USB_DR_MODE_HOST] = "host",
/linux-6.1.9/drivers/phy/tegra/
Dxusb-tegra186.c819 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()
Dxusb.c575 [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/
Dphy-sun4i-usb.c425 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/
Dphy-rcar-gen3-usb2.c273 return (ch->dr_mode == USB_DR_MODE_HOST) ? false : true; in rcar_gen3_check_id()

12