Home
last modified time | relevance | path

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

12345678910>>...37

/linux-6.12.1/drivers/usb/cdns3/
Dcore.c87 enum usb_dr_mode dr_mode; in cdns_core_init_role() local
90 dr_mode = usb_get_dr_mode(dev); in cdns_core_init_role()
98 if (dr_mode == USB_DR_MODE_UNKNOWN) { in cdns_core_init_role()
102 dr_mode = USB_DR_MODE_OTG; in cdns_core_init_role()
104 dr_mode = USB_DR_MODE_HOST; in cdns_core_init_role()
106 dr_mode = USB_DR_MODE_PERIPHERAL; in cdns_core_init_role()
110 dr_mode = USB_DR_MODE_OTG; in cdns_core_init_role()
112 dr_mode = USB_DR_MODE_HOST; in cdns_core_init_role()
114 dr_mode = USB_DR_MODE_PERIPHERAL; in cdns_core_init_role()
122 best_dr_mode = cdns->dr_mode; in cdns_core_init_role()
[all …]
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()
318 switch (cdns->dr_mode) { in cdns_drd_update_mode()
330 cdns->dr_mode); in cdns_drd_update_mode()
360 if (cdns->dr_mode != USB_DR_MODE_OTG) in cdns_drd_irq()
458 cdns->dr_mode = USB_DR_MODE_OTG; in cdns_drd_init()
465 cdns->dr_mode = USB_DR_MODE_HOST; in cdns_drd_init()
471 cdns->dr_mode = USB_DR_MODE_PERIPHERAL; in cdns_drd_init()
/linux-6.12.1/drivers/usb/phy/
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()
108 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, false); in am335x_phy_suspend()
117 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, true); in am335x_phy_resume()
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.12.1/drivers/usb/mtu3/
Dmtu3_plat.c270 ssusb->dr_mode = usb_get_dr_mode(dev); in get_ssusb_rscs()
271 if (ssusb->dr_mode == USB_DR_MODE_UNKNOWN) in get_ssusb_rscs()
272 ssusb->dr_mode = USB_DR_MODE_OTG; in get_ssusb_rscs()
276 if (ssusb->dr_mode == USB_DR_MODE_PERIPHERAL) in get_ssusb_rscs()
296 if (ssusb->dr_mode == USB_DR_MODE_HOST) in get_ssusb_rscs()
319 dev_info(dev, "dr_mode: %d, drd: %s\n", ssusb->dr_mode, in get_ssusb_rscs()
386 ssusb->dr_mode = USB_DR_MODE_HOST; in mtu3_probe()
388 ssusb->dr_mode = USB_DR_MODE_PERIPHERAL; in mtu3_probe()
391 ssusb->is_host = !(ssusb->dr_mode == USB_DR_MODE_PERIPHERAL); in mtu3_probe()
393 switch (ssusb->dr_mode) { in mtu3_probe()
[all …]
/linux-6.12.1/arch/powerpc/platforms/83xx/
Dusb_834x.c26 const void *prop, *dr_mode; in mpc834x_usb_cfg() local
50 dr_mode = of_get_property(np, "dr_mode", NULL); in mpc834x_usb_cfg()
51 if (dr_mode && !strcmp(dr_mode, "otg")) { in mpc834x_usb_cfg()
Dusb_831x.c30 const void *dr_mode; in mpc831x_usb_cfg() local
113 dr_mode = of_get_property(np, "dr_mode", NULL); in mpc831x_usb_cfg()
114 if (dr_mode && !strcmp(dr_mode, "otg")) in mpc831x_usb_cfg()
/linux-6.12.1/drivers/usb/dwc3/
Ddwc3-rtk.c277 enum usb_dr_mode dr_mode; in dwc3_rtk_probe_dwc3_core() local
313 dr_mode = usb_get_dr_mode(dwc3_dev); in dwc3_rtk_probe_dwc3_core()
314 if (dr_mode != rtk->dwc->dr_mode) { in dwc3_rtk_probe_dwc3_core()
316 dr_mode, rtk->dwc->dr_mode); in dwc3_rtk_probe_dwc3_core()
317 dr_mode = rtk->dwc->dr_mode; in dwc3_rtk_probe_dwc3_core()
320 switch (dr_mode) { in dwc3_rtk_probe_dwc3_core()
328 dev_dbg(rtk->dev, "%s: dr_mode=%d\n", __func__, dr_mode); in dwc3_rtk_probe_dwc3_core()
Ddwc3-st.c94 enum usb_dr_mode dr_mode; member
127 switch (dwc3_data->dr_mode) { in st_dwc3_drd_init()
163 dwc3_data->dr_mode); in st_dwc3_drd_init()
272 dwc3_data->dr_mode = usb_get_dr_mode(&child_pdev->dev); in st_dwc3_probe()
/linux-6.12.1/drivers/phy/marvell/
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.12.1/drivers/usb/common/
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
310 err = of_property_read_string(controller, "dr_mode", &dr_mode); in of_usb_get_dr_mode_by_phy()
316 return usb_get_dr_mode_from_string(dr_mode); in of_usb_get_dr_mode_by_phy()
/linux-6.12.1/drivers/usb/chipidea/
Dci_hdrc_tegra.c40 enum usb_dr_mode dr_mode; member
47 .dr_mode = USB_DR_MODE_HOST,
55 .dr_mode = USB_DR_MODE_HOST,
63 .dr_mode = USB_DR_MODE_UNKNOWN,
71 .dr_mode = USB_DR_MODE_UNKNOWN,
335 usb->data.dr_mode = soc->dr_mode; in tegra_usb_probe()
Dcore.c687 if (!platdata->dr_mode) in ci_get_platdata()
688 platdata->dr_mode = usb_get_dr_mode(dev); in ci_get_platdata()
690 if (platdata->dr_mode == USB_DR_MODE_UNKNOWN) in ci_get_platdata()
691 platdata->dr_mode = USB_DR_MODE_OTG; in ci_get_platdata()
693 if (platdata->dr_mode != USB_DR_MODE_PERIPHERAL) { in ci_get_platdata()
712 if (platdata->dr_mode == USB_DR_MODE_OTG) { in ci_get_platdata()
1052 enum usb_dr_mode dr_mode; in ci_hdrc_probe() local
1155 dr_mode = ci->platdata->dr_mode; in ci_hdrc_probe()
1157 if (dr_mode == USB_DR_MODE_OTG || dr_mode == USB_DR_MODE_HOST) { in ci_hdrc_probe()
1167 if (dr_mode == USB_DR_MODE_OTG || dr_mode == USB_DR_MODE_PERIPHERAL) { in ci_hdrc_probe()
/linux-6.12.1/drivers/usb/dwc2/
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()
570 if (hsotg->dr_mode != USB_DR_MODE_HOST) { in dwc2_driver_probe()
594 if (hsotg->dr_mode != USB_DR_MODE_PERIPHERAL) { in dwc2_driver_probe()
610 if (hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) in dwc2_driver_probe()
Ddrd.c38 dwc2_force_mode(hsotg, (hsotg->dr_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()
94 (role == USB_ROLE_HOST && hsotg->dr_mode == USB_DR_MODE_PERIPHERAL)) in dwc2_drd_role_sw_set()
159 if (!already && hsotg->dr_mode == USB_DR_MODE_OTG) in dwc2_drd_role_sw_set()
Dparams.c539 if ((hsotg->dr_mode == USB_DR_MODE_HOST) || in dwc2_set_default_params()
540 (hsotg->dr_mode == USB_DR_MODE_OTG)) { in dwc2_set_default_params()
552 if ((hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) || in dwc2_set_default_params()
553 (hsotg->dr_mode == USB_DR_MODE_OTG)) { in dwc2_set_default_params()
584 if ((hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) || in dwc2_get_device_properties()
585 (hsotg->dr_mode == USB_DR_MODE_OTG)) { in dwc2_get_device_properties()
853 if ((hsotg->dr_mode == USB_DR_MODE_HOST) || in dwc2_check_params()
854 (hsotg->dr_mode == USB_DR_MODE_OTG)) { in dwc2_check_params()
874 if ((hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) || in dwc2_check_params()
875 (hsotg->dr_mode == USB_DR_MODE_OTG)) { in dwc2_check_params()
[all …]
/linux-6.12.1/drivers/usb/host/
Dfsl-mph-dr-of.c20 char *dr_mode; /* controller mode */ member
27 .dr_mode = "host",
32 .dr_mode = "otg",
37 .dr_mode = "peripheral",
51 if (!strcmp(prop, dr_mode_data[i].dr_mode)) in get_dr_mode_data()
/linux-6.12.1/arch/arm64/boot/dts/renesas/
Dsalvator-xs.dtsi46 dr_mode = "otg";
51 dr_mode = "otg";
56 dr_mode = "otg";
Drz-smarc-common.dtsi96 dr_mode = "otg";
105 dr_mode = "otg";
124 dr_mode = "otg";
/linux-6.12.1/drivers/phy/amlogic/
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.12.1/arch/arm/boot/dts/xilinx/
Dzynq-cc108.dts67 dr_mode = "host";
73 dr_mode = "host";
/linux-6.12.1/Documentation/devicetree/bindings/usb/
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";
Dux500-usb.txt7 - dr_mode : Dual-role; either host mode "host", peripheral mode "peripheral"
23 dr_mode = "otg";
/linux-6.12.1/arch/arm/boot/dts/qcom/
Dqcom-apq8064-cm-qs600.dts222 dr_mode = "otg";
227 dr_mode = "host";
232 dr_mode = "host";
/linux-6.12.1/arch/arm/boot/dts/nxp/imx/
Dimx51-digi-connectcore-jsk.dts66 dr_mode = "otg";
74 dr_mode = "host";

12345678910>>...37