/kernel/linux/linux-5.10/drivers/usb/cdns3/ |
D | core.c | 88 enum usb_dr_mode dr_mode; in cdns3_core_init_role() local 91 dr_mode = usb_get_dr_mode(dev); in cdns3_core_init_role() 99 if (dr_mode == USB_DR_MODE_UNKNOWN) { in cdns3_core_init_role() 103 dr_mode = USB_DR_MODE_OTG; in cdns3_core_init_role() 105 dr_mode = USB_DR_MODE_HOST; in cdns3_core_init_role() 107 dr_mode = USB_DR_MODE_PERIPHERAL; in cdns3_core_init_role() 111 dr_mode = USB_DR_MODE_OTG; in cdns3_core_init_role() 113 dr_mode = USB_DR_MODE_HOST; in cdns3_core_init_role() 115 dr_mode = USB_DR_MODE_PERIPHERAL; in cdns3_core_init_role() 123 best_dr_mode = cdns->dr_mode; in cdns3_core_init_role() [all …]
|
D | drd.c | 110 if (cdns->dr_mode == USB_DR_MODE_HOST) in cdns3_is_host() 120 if (cdns->dr_mode == USB_DR_MODE_PERIPHERAL) in cdns3_is_device() 122 else if (cdns->dr_mode == USB_DR_MODE_OTG) in cdns3_is_device() 287 switch (cdns->dr_mode) { in cdns3_drd_update_mode() 299 cdns->dr_mode); in cdns3_drd_update_mode() 329 if (cdns->dr_mode != USB_DR_MODE_OTG) in cdns3_drd_irq() 414 cdns->dr_mode = USB_DR_MODE_OTG; in cdns3_drd_init() 421 cdns->dr_mode = USB_DR_MODE_HOST; in cdns3_drd_init() 427 cdns->dr_mode = USB_DR_MODE_PERIPHERAL; in cdns3_drd_init()
|
/kernel/linux/linux-5.10/drivers/usb/phy/ |
D | phy-am335x.c | 20 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()
|
D | phy-am335x-control.h | 7 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()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/83xx/ |
D | usb.c | 29 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()
|
/kernel/linux/linux-5.10/drivers/usb/mtu3/ |
D | mtu3_plat.c | 269 ssusb->dr_mode = usb_get_dr_mode(dev); in get_ssusb_rscs() 270 if (ssusb->dr_mode == USB_DR_MODE_UNKNOWN) in get_ssusb_rscs() 271 ssusb->dr_mode = USB_DR_MODE_OTG; in get_ssusb_rscs() 273 if (ssusb->dr_mode == USB_DR_MODE_PERIPHERAL) in get_ssusb_rscs() 293 if (ssusb->dr_mode == USB_DR_MODE_HOST) in get_ssusb_rscs() 312 ssusb->dr_mode, otg_sx->is_u3_drd, ssusb->u3p_dis_msk, in get_ssusb_rscs() 357 ssusb->dr_mode = USB_DR_MODE_HOST; in mtu3_probe() 359 ssusb->dr_mode = USB_DR_MODE_PERIPHERAL; in mtu3_probe() 362 ssusb->is_host = !(ssusb->dr_mode == USB_DR_MODE_PERIPHERAL); in mtu3_probe() 364 switch (ssusb->dr_mode) { in mtu3_probe() [all …]
|
/kernel/linux/linux-5.10/drivers/usb/common/ |
D | common.c | 192 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() 260 const char *dr_mode; in of_usb_get_dr_mode_by_phy() local 291 err = of_property_read_string(controller, "dr_mode", &dr_mode); in of_usb_get_dr_mode_by_phy() 297 return usb_get_dr_mode_from_string(dr_mode); in of_usb_get_dr_mode_by_phy()
|
/kernel/linux/linux-5.10/drivers/usb/dwc2/ |
D | platform.c | 86 hsotg->dr_mode = usb_get_dr_mode(hsotg->dev); in dwc2_get_dr_mode() 87 if (hsotg->dr_mode == USB_DR_MODE_UNKNOWN) in dwc2_get_dr_mode() 88 hsotg->dr_mode = USB_DR_MODE_OTG; in dwc2_get_dr_mode() 90 mode = hsotg->dr_mode; in dwc2_get_dr_mode() 113 if (mode != hsotg->dr_mode) { in dwc2_get_dr_mode() 118 hsotg->dr_mode = mode; in dwc2_get_dr_mode() 557 if (hsotg->dr_mode != USB_DR_MODE_HOST) { in dwc2_driver_probe() 581 if (hsotg->dr_mode != USB_DR_MODE_PERIPHERAL) { in dwc2_driver_probe() 597 if (hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) in dwc2_driver_probe() 628 if (hsotg->dr_mode != USB_DR_MODE_PERIPHERAL) in dwc2_driver_probe()
|
D | drd.c | 31 dwc2_force_mode(hsotg, (hsotg->dr_mode == USB_DR_MODE_HOST)); in dwc2_ovr_init() 79 if ((role == USB_ROLE_DEVICE && hsotg->dr_mode == USB_DR_MODE_HOST) || in dwc2_drd_role_sw_set() 80 (role == USB_ROLE_HOST && hsotg->dr_mode == USB_DR_MODE_PERIPHERAL)) in dwc2_drd_role_sw_set() 128 if (!already && hsotg->dr_mode == USB_DR_MODE_OTG) in dwc2_drd_role_sw_set()
|
D | params.c | 388 if ((hsotg->dr_mode == USB_DR_MODE_HOST) || in dwc2_set_default_params() 389 (hsotg->dr_mode == USB_DR_MODE_OTG)) { in dwc2_set_default_params() 401 if ((hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) || in dwc2_set_default_params() 402 (hsotg->dr_mode == USB_DR_MODE_OTG)) { in dwc2_set_default_params() 433 if ((hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) || in dwc2_get_device_properties() 434 (hsotg->dr_mode == USB_DR_MODE_OTG)) { in dwc2_get_device_properties() 682 if ((hsotg->dr_mode == USB_DR_MODE_HOST) || in dwc2_check_params() 683 (hsotg->dr_mode == USB_DR_MODE_OTG)) { in dwc2_check_params() 703 if ((hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) || in dwc2_check_params() 704 (hsotg->dr_mode == USB_DR_MODE_OTG)) { in dwc2_check_params() [all …]
|
/kernel/linux/linux-5.10/drivers/phy/amlogic/ |
D | phy-meson8b-usb2.c | 126 enum usb_dr_mode dr_mode; member 186 if (priv->dr_mode == USB_DR_MODE_HOST) { in phy_meson8b_usb2_power_on() 214 if (priv->dr_mode == USB_DR_MODE_HOST) in phy_meson8b_usb2_power_off() 268 priv->dr_mode = of_usb_get_dr_mode_by_phy(pdev->dev.of_node, -1); in phy_meson8b_usb2_probe() 269 if (priv->dr_mode == USB_DR_MODE_UNKNOWN) { in phy_meson8b_usb2_probe()
|
/kernel/linux/linux-5.10/drivers/usb/host/ |
D | fsl-mph-dr-of.c | 19 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()
|
/kernel/linux/linux-5.10/drivers/usb/dwc3/ |
D | dwc3-st.c | 93 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()
|
D | core.c | 53 if (dwc->dr_mode == USB_DR_MODE_UNKNOWN) in dwc3_get_dr_mode() 54 dwc->dr_mode = USB_DR_MODE_OTG; in dwc3_get_dr_mode() 56 mode = dwc->dr_mode; in dwc3_get_dr_mode() 94 if (mode != dwc->dr_mode) { in dwc3_get_dr_mode() 99 dwc->dr_mode = mode; in dwc3_get_dr_mode() 242 if (dwc->dr_mode != USB_DR_MODE_OTG) in dwc3_set_mode() 789 if ((dwc->dr_mode == USB_DR_MODE_HOST || in dwc3_core_setup_global_control() 790 dwc->dr_mode == USB_DR_MODE_OTG) && in dwc3_core_setup_global_control() 1069 if (dwc->dr_mode == USB_DR_MODE_HOST || in dwc3_core_init() 1070 dwc->dr_mode == USB_DR_MODE_OTG) { in dwc3_core_init() [all …]
|
/kernel/linux/linux-5.10/arch/arm/boot/dts/ |
D | zynq-cc108.dts | 67 dr_mode = "host"; 73 dr_mode = "host";
|
D | imx51-digi-connectcore-jsk.dts | 59 dr_mode = "otg"; 66 dr_mode = "host";
|
D | am335x-netcom-plus-8xx.dts | 56 dr_mode = "host"; 61 dr_mode = "host";
|
D | qcom-apq8064-cm-qs600.dts | 156 dr_mode = "otg"; 167 dr_mode = "host"; 178 dr_mode = "host";
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/usb/ |
D | dwc3-st.txt | 36 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";
|
D | ux500-usb.txt | 7 - dr_mode : Dual-role; either host mode "host", peripheral mode "peripheral" 23 dr_mode = "otg";
|
D | fsl-usb.txt | 26 - dr_mode : indicates the working mode for "fsl-usb2-dr" compatible 64 dr_mode = "otg"; 77 dr_mode = "otg";
|
D | mediatek,musb.txt | 14 - dr_mode : should be one of "host", "peripheral" or "otg", 44 dr_mode = "otg";
|
D | rockchip,dwc3.txt | 37 dr_mode = "otg"; 54 dr_mode = "otg";
|
/kernel/linux/linux-5.10/drivers/usb/chipidea/ |
D | core.c | 666 if (!platdata->dr_mode) in ci_get_platdata() 667 platdata->dr_mode = usb_get_dr_mode(dev); in ci_get_platdata() 669 if (platdata->dr_mode == USB_DR_MODE_UNKNOWN) in ci_get_platdata() 670 platdata->dr_mode = USB_DR_MODE_OTG; in ci_get_platdata() 672 if (platdata->dr_mode != USB_DR_MODE_PERIPHERAL) { in ci_get_platdata() 691 if (platdata->dr_mode == USB_DR_MODE_OTG) { in ci_get_platdata() 998 enum usb_dr_mode dr_mode; in ci_hdrc_probe() local 1097 dr_mode = ci->platdata->dr_mode; in ci_hdrc_probe() 1099 if (dr_mode == USB_DR_MODE_OTG || dr_mode == USB_DR_MODE_HOST) { in ci_hdrc_probe() 1109 if (dr_mode == USB_DR_MODE_OTG || dr_mode == USB_DR_MODE_PERIPHERAL) { in ci_hdrc_probe()
|
/kernel/linux/linux-5.10/arch/arm64/boot/dts/renesas/ |
D | r8a77951-salvator-xs.dts | 56 dr_mode = "otg"; 107 dr_mode = "otg"; 116 dr_mode = "otg";
|