Home
last modified time | relevance | path

Searched refs:dr_mode (Results 1 – 25 of 803) sorted by relevance

12345678910>>...33

/linux-6.3-rc2/drivers/usb/cdns3/
A Dcore.c86 enum usb_dr_mode dr_mode; in cdns_core_init_role() local
101 dr_mode = USB_DR_MODE_OTG; in cdns_core_init_role()
109 dr_mode = USB_DR_MODE_OTG; in cdns_core_init_role()
121 best_dr_mode = cdns->dr_mode; in cdns_core_init_role()
130 best_dr_mode = dr_mode; in cdns_core_init_role()
131 } else if (cdns->dr_mode != dr_mode) { in cdns_core_init_role()
136 dr_mode = best_dr_mode; in cdns_core_init_role()
138 if (dr_mode == USB_DR_MODE_OTG || dr_mode == USB_DR_MODE_HOST) { in cdns_core_init_role()
154 if (dr_mode == USB_DR_MODE_OTG || dr_mode == USB_DR_MODE_PERIPHERAL) { in cdns_core_init_role()
167 cdns->dr_mode = dr_mode; in cdns_core_init_role()
[all …]
A Ddrd.c134 if (cdns->dr_mode == USB_DR_MODE_HOST) in cdns_is_host()
144 if (cdns->dr_mode == USB_DR_MODE_PERIPHERAL) in cdns_is_device()
146 else if (cdns->dr_mode == USB_DR_MODE_OTG) in cdns_is_device()
313 switch (cdns->dr_mode) { in cdns_drd_update_mode()
325 cdns->dr_mode); in cdns_drd_update_mode()
355 if (cdns->dr_mode != USB_DR_MODE_OTG) in cdns_drd_irq()
440 cdns->dr_mode = USB_DR_MODE_OTG; in cdns_drd_init()
447 cdns->dr_mode = USB_DR_MODE_HOST; in cdns_drd_init()
453 cdns->dr_mode = USB_DR_MODE_PERIPHERAL; in cdns_drd_init()
/linux-6.3-rc2/drivers/usb/phy/
A Dphy-am335x.c20 enum usb_dr_mode dr_mode; member
27 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, true); in am335x_init()
35 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, false); in am335x_shutdown()
58 am_phy->dr_mode = of_usb_get_dr_mode_by_phy(pdev->dev.of_node, -1); in am335x_phy_probe()
80 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, false); in am335x_phy_probe()
109 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, false); in am335x_phy_suspend()
118 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, true); in am335x_phy_resume()
A Dphy-am335x-control.h7 enum usb_dr_mode dr_mode, bool on);
12 enum usb_dr_mode dr_mode, bool on) in phy_ctrl_power() argument
14 phy_ctrl->phy_power(phy_ctrl, id, dr_mode, on); in phy_ctrl_power()
/linux-6.3-rc2/arch/powerpc/platforms/83xx/
A Dusb.c29 const void *prop, *dr_mode; in mpc834x_usb_cfg() local
53 dr_mode = of_get_property(np, "dr_mode", NULL); in mpc834x_usb_cfg()
54 if (dr_mode && !strcmp(dr_mode, "otg")) { in mpc834x_usb_cfg()
109 const void *dr_mode; in mpc831x_usb_cfg() local
193 dr_mode = of_get_property(np, "dr_mode", NULL); in mpc831x_usb_cfg()
194 if (dr_mode && !strcmp(dr_mode, "otg")) in mpc831x_usb_cfg()
/linux-6.3-rc2/drivers/usb/mtu3/
A Dmtu3_plat.c268 ssusb->dr_mode = usb_get_dr_mode(dev); in get_ssusb_rscs()
269 if (ssusb->dr_mode == USB_DR_MODE_UNKNOWN) in get_ssusb_rscs()
270 ssusb->dr_mode = USB_DR_MODE_OTG; in get_ssusb_rscs()
274 if (ssusb->dr_mode == USB_DR_MODE_PERIPHERAL) in get_ssusb_rscs()
294 if (ssusb->dr_mode == USB_DR_MODE_HOST) in get_ssusb_rscs()
384 ssusb->dr_mode = USB_DR_MODE_HOST; in mtu3_probe()
386 ssusb->dr_mode = USB_DR_MODE_PERIPHERAL; in mtu3_probe()
391 switch (ssusb->dr_mode) { in mtu3_probe()
458 switch (ssusb->dr_mode) { in mtu3_remove()
485 switch (ssusb->dr_mode) { in resume_ip_and_ports()
[all …]
/linux-6.3-rc2/drivers/phy/marvell/
A Dphy-mvebu-cp110-utmi.c106 enum usb_dr_mode dr_mode; member
210 if (port->dr_mode == USB_DR_MODE_PERIPHERAL) { in mvebu_cp110_utmi_phy_power_on()
329 port->dr_mode = of_usb_get_dr_mode_by_phy(child, -1); in mvebu_cp110_utmi_phy_probe()
330 if ((port->dr_mode != USB_DR_MODE_HOST) && in mvebu_cp110_utmi_phy_probe()
331 (port->dr_mode != USB_DR_MODE_PERIPHERAL)) { in mvebu_cp110_utmi_phy_probe()
335 port->dr_mode = USB_DR_MODE_HOST; in mvebu_cp110_utmi_phy_probe()
338 if (port->dr_mode == USB_DR_MODE_PERIPHERAL) { in mvebu_cp110_utmi_phy_probe()
344 port->dr_mode = USB_DR_MODE_HOST; in mvebu_cp110_utmi_phy_probe()
/linux-6.3-rc2/drivers/usb/common/
A Dcommon.c192 const char *dr_mode; in usb_get_dr_mode() local
195 err = device_property_read_string(dev, "dr_mode", &dr_mode); in usb_get_dr_mode()
199 return usb_get_dr_mode_from_string(dr_mode); in usb_get_dr_mode()
280 const char *dr_mode; in of_usb_get_dr_mode_by_phy() local
311 err = of_property_read_string(controller, "dr_mode", &dr_mode); in of_usb_get_dr_mode_by_phy()
317 return usb_get_dr_mode_from_string(dr_mode); in of_usb_get_dr_mode_by_phy()
/linux-6.3-rc2/drivers/usb/dwc2/
A Dplatform.c56 hsotg->dr_mode = usb_get_dr_mode(hsotg->dev); in dwc2_get_dr_mode()
57 if (hsotg->dr_mode == USB_DR_MODE_UNKNOWN) in dwc2_get_dr_mode()
58 hsotg->dr_mode = USB_DR_MODE_OTG; in dwc2_get_dr_mode()
60 mode = hsotg->dr_mode; in dwc2_get_dr_mode()
83 if (mode != hsotg->dr_mode) { in dwc2_get_dr_mode()
88 hsotg->dr_mode = mode; in dwc2_get_dr_mode()
539 if (hsotg->dr_mode != USB_DR_MODE_HOST) { in dwc2_driver_probe()
563 if (hsotg->dr_mode != USB_DR_MODE_PERIPHERAL) { in dwc2_driver_probe()
579 if (hsotg->dr_mode == USB_DR_MODE_PERIPHERAL || in dwc2_driver_probe()
580 (hsotg->dr_mode == USB_DR_MODE_OTG && dwc2_is_device_mode(hsotg))) in dwc2_driver_probe()
[all …]
A Dparams.c444 if ((hsotg->dr_mode == USB_DR_MODE_HOST) || in dwc2_set_default_params()
445 (hsotg->dr_mode == USB_DR_MODE_OTG)) { in dwc2_set_default_params()
457 if ((hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) || in dwc2_set_default_params()
458 (hsotg->dr_mode == USB_DR_MODE_OTG)) { in dwc2_set_default_params()
489 if ((hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) || in dwc2_get_device_properties()
490 (hsotg->dr_mode == USB_DR_MODE_OTG)) { in dwc2_get_device_properties()
738 if ((hsotg->dr_mode == USB_DR_MODE_HOST) || in dwc2_check_params()
739 (hsotg->dr_mode == USB_DR_MODE_OTG)) { in dwc2_check_params()
760 (hsotg->dr_mode == USB_DR_MODE_OTG)) { in dwc2_check_params()
784 if (hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) in dwc2_get_host_hwparams()
[all …]
A Ddrd.c38 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()
93 (role == USB_ROLE_HOST && hsotg->dr_mode == USB_DR_MODE_PERIPHERAL)) in dwc2_drd_role_sw_set()
149 if (!already && hsotg->dr_mode == USB_DR_MODE_OTG) in dwc2_drd_role_sw_set()
/linux-6.3-rc2/drivers/usb/chipidea/
A Dci_hdrc_tegra.c39 enum usb_dr_mode dr_mode; member
46 .dr_mode = USB_DR_MODE_HOST,
54 .dr_mode = USB_DR_MODE_HOST,
62 .dr_mode = USB_DR_MODE_UNKNOWN,
70 .dr_mode = USB_DR_MODE_UNKNOWN,
336 usb->data.dr_mode = soc->dr_mode; in tegra_usb_probe()
A Dcore.c680 if (!platdata->dr_mode) in ci_get_platdata()
681 platdata->dr_mode = usb_get_dr_mode(dev); in ci_get_platdata()
683 if (platdata->dr_mode == USB_DR_MODE_UNKNOWN) in ci_get_platdata()
684 platdata->dr_mode = USB_DR_MODE_OTG; in ci_get_platdata()
686 if (platdata->dr_mode != USB_DR_MODE_PERIPHERAL) { in ci_get_platdata()
705 if (platdata->dr_mode == USB_DR_MODE_OTG) { in ci_get_platdata()
1016 enum usb_dr_mode dr_mode; in ci_hdrc_probe() local
1115 dr_mode = ci->platdata->dr_mode; in ci_hdrc_probe()
1117 if (dr_mode == USB_DR_MODE_OTG || dr_mode == USB_DR_MODE_HOST) { in ci_hdrc_probe()
1127 if (dr_mode == USB_DR_MODE_OTG || dr_mode == USB_DR_MODE_PERIPHERAL) { in ci_hdrc_probe()
/linux-6.3-rc2/drivers/usb/host/
A Dfsl-mph-dr-of.c19 char *dr_mode; /* controller mode */ member
26 .dr_mode = "host",
31 .dr_mode = "otg",
36 .dr_mode = "peripheral",
50 if (!strcmp(prop, dr_mode_data[i].dr_mode)) in get_dr_mode_data()
/linux-6.3-rc2/arch/arm64/boot/dts/renesas/
A Dsalvator-xs.dtsi46 dr_mode = "otg";
51 dr_mode = "otg";
56 dr_mode = "otg";
A Drz-smarc-common.dtsi104 dr_mode = "otg";
113 dr_mode = "otg";
132 dr_mode = "otg";
/linux-6.3-rc2/Documentation/devicetree/bindings/usb/
A Dallwinner,sun4i-a10-musb.yaml56 dr_mode:
74 - dr_mode
103 dr_mode = "peripheral";
A Damlogic,meson-g12a-usb-ctrl.yaml72 dr_mode: true
99 - dr_mode
211 dr_mode = "otg";
223 dr_mode = "peripheral";
233 dr_mode = "host";
A Dmicrochip,mpfs-musb.yaml20 dr_mode: true
56 dr_mode = "host";
A Dnxp,isp1760.yaml44 dr_mode:
64 dr_mode = "host";
A Ddwc3-st.txt36 NB: The dr_mode property described in [1] is NOT optional for this driver, as the default value
37 is "otg", which isn't supported by this SoC. Valid dr_mode values for dwc3-st are either "host"
62 dr_mode = "host";
A Dux500-usb.txt7 - dr_mode : Dual-role; either host mode "host", peripheral mode "peripheral"
23 dr_mode = "otg";
/linux-6.3-rc2/drivers/phy/amlogic/
A Dphy-meson8b-usb2.c126 enum usb_dr_mode dr_mode; member
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()
276 priv->dr_mode = of_usb_get_dr_mode_by_phy(pdev->dev.of_node, -1); in phy_meson8b_usb2_probe()
277 if (priv->dr_mode == USB_DR_MODE_UNKNOWN) { in phy_meson8b_usb2_probe()
/linux-6.3-rc2/drivers/usb/dwc3/
A Ddwc3-st.c93 enum usb_dr_mode dr_mode; member
126 switch (dwc3_data->dr_mode) { in st_dwc3_drd_init()
162 dwc3_data->dr_mode); in st_dwc3_drd_init()
275 dwc3_data->dr_mode = usb_get_dr_mode(&child_pdev->dev); in st_dwc3_probe()
/linux-6.3-rc2/arch/arm/boot/dts/
A Dzynq-cc108.dts67 dr_mode = "host";
73 dr_mode = "host";

Completed in 48 milliseconds

12345678910>>...33