/drivers/usb/phy/ |
D | phy-am335x.c | 19 enum usb_dr_mode dr_mode; member 26 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, true); in am335x_init() 34 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, false); in am335x_shutdown() 57 am_phy->dr_mode = of_usb_get_dr_mode_by_phy(pdev->dev.of_node, -1); in am335x_phy_probe() 82 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, false); in am335x_phy_probe() 112 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, false); in am335x_phy_suspend() 122 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, am_phy->dr_mode, true); in am335x_phy_resume()
|
D | phy-am335x-control.h | 6 enum usb_dr_mode dr_mode, bool on); 11 enum usb_dr_mode dr_mode, bool on) in phy_ctrl_power() argument 13 phy_ctrl->phy_power(phy_ctrl, id, dr_mode, on); in phy_ctrl_power()
|
D | phy-am335x-control.c | 63 enum usb_dr_mode dr_mode, bool on) in am335x_phy_power() argument 85 if (dr_mode == USB_DR_MODE_HOST) { in am335x_phy_power()
|
/drivers/usb/common/ |
D | common.c | 118 const char *dr_mode; in usb_get_dr_mode() local 121 err = device_property_read_string(dev, "dr_mode", &dr_mode); in usb_get_dr_mode() 125 return usb_get_dr_mode_from_string(dr_mode); in usb_get_dr_mode() 145 const char *dr_mode; in of_usb_get_dr_mode_by_phy() local 174 err = of_property_read_string(controller, "dr_mode", &dr_mode); in of_usb_get_dr_mode_by_phy() 180 return usb_get_dr_mode_from_string(dr_mode); in of_usb_get_dr_mode_by_phy()
|
/drivers/usb/dwc3/ |
D | core.c | 62 if (dwc->dr_mode == USB_DR_MODE_UNKNOWN) in dwc3_get_dr_mode() 63 dwc->dr_mode = USB_DR_MODE_OTG; in dwc3_get_dr_mode() 65 mode = dwc->dr_mode; in dwc3_get_dr_mode() 92 if (mode != dwc->dr_mode) { in dwc3_get_dr_mode() 97 dwc->dr_mode = mode; in dwc3_get_dr_mode() 154 if (dwc->dr_mode == USB_DR_MODE_HOST) in dwc3_core_soft_reset() 673 if ((dwc->dr_mode == USB_DR_MODE_HOST || in dwc3_core_init() 674 dwc->dr_mode == USB_DR_MODE_OTG) && in dwc3_core_init() 749 switch (dwc->dr_mode) { in dwc3_core_init() 760 dev_warn(dwc->dev, "Unsupported mode %d\n", dwc->dr_mode); in dwc3_core_init() [all …]
|
D | dwc3-st.c | 97 enum usb_dr_mode dr_mode; member 130 switch (dwc3_data->dr_mode) { in st_dwc3_drd_init() 166 dwc3_data->dr_mode); in st_dwc3_drd_init() 280 dwc3_data->dr_mode = usb_get_dr_mode(&child_pdev->dev); in st_dwc3_probe()
|
D | core.h | 874 enum usb_dr_mode dr_mode; member
|
D | gadget.c | 3003 dwc->gadget.is_otg = dwc->dr_mode == USB_DR_MODE_OTG; in dwc3_gadget_init()
|
/drivers/usb/dwc2/ |
D | platform.c | 244 hsotg->dr_mode = usb_get_dr_mode(hsotg->dev); in dwc2_get_dr_mode() 245 if (hsotg->dr_mode == USB_DR_MODE_UNKNOWN) in dwc2_get_dr_mode() 246 hsotg->dr_mode = USB_DR_MODE_OTG; in dwc2_get_dr_mode() 248 mode = hsotg->dr_mode; in dwc2_get_dr_mode() 271 if (mode != hsotg->dr_mode) { in dwc2_get_dr_mode() 276 hsotg->dr_mode = mode; in dwc2_get_dr_mode() 639 if (hsotg->dr_mode != USB_DR_MODE_HOST) { in dwc2_driver_probe() 646 if (hsotg->dr_mode != USB_DR_MODE_PERIPHERAL) { in dwc2_driver_probe() 661 if (hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) in dwc2_driver_probe()
|
D | core.c | 420 if (WARN_ON(host && hsotg->dr_mode == USB_DR_MODE_PERIPHERAL)) in dwc2_force_mode() 423 if (WARN_ON(!host && hsotg->dr_mode == USB_DR_MODE_HOST)) in dwc2_force_mode() 468 switch (hsotg->dr_mode) { in dwc2_force_dr_mode() 487 __func__, hsotg->dr_mode); in dwc2_force_dr_mode() 1457 if (hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) in dwc2_get_host_hwparams() 1487 if (hsotg->dr_mode == USB_DR_MODE_HOST) in dwc2_get_dev_hwparams()
|
D | core.h | 856 enum usb_dr_mode dr_mode; member
|
D | gadget.c | 3458 if (hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) { in dwc2_hsotg_udc_start() 3520 if (hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) in dwc2_hsotg_udc_stop() 3891 if (hsotg->dr_mode == USB_DR_MODE_OTG) in dwc2_gadget_init() 3893 else if (hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) in dwc2_gadget_init()
|
/drivers/usb/host/ |
D | fsl-mph-dr-of.c | 23 char *dr_mode; /* controller mode */ member 30 .dr_mode = "host", 35 .dr_mode = "otg", 40 .dr_mode = "peripheral", 54 if (!strcmp(prop, dr_mode_data[i].dr_mode)) in get_dr_mode_data()
|
/drivers/usb/chipidea/ |
D | core.c | 616 if (!platdata->dr_mode) in ci_get_platdata() 617 platdata->dr_mode = usb_get_dr_mode(dev); in ci_get_platdata() 619 if (platdata->dr_mode == USB_DR_MODE_UNKNOWN) in ci_get_platdata() 620 platdata->dr_mode = USB_DR_MODE_OTG; in ci_get_platdata() 622 if (platdata->dr_mode != USB_DR_MODE_PERIPHERAL) { in ci_get_platdata() 641 if (platdata->dr_mode == USB_DR_MODE_OTG) { in ci_get_platdata() 869 enum usb_dr_mode dr_mode; in ci_hdrc_probe() local 938 dr_mode = ci->platdata->dr_mode; in ci_hdrc_probe() 940 if (dr_mode == USB_DR_MODE_OTG || dr_mode == USB_DR_MODE_HOST) { in ci_hdrc_probe() 950 if (dr_mode == USB_DR_MODE_OTG || dr_mode == USB_DR_MODE_PERIPHERAL) { in ci_hdrc_probe()
|
/drivers/phy/ |
D | phy-sun4i-usb.c | 117 enum usb_dr_mode dr_mode; member 329 switch (data->dr_mode) { in sun4i_usb_phy0_get_id_det() 445 data->dr_mode = USB_DR_MODE_HOST; in sun4i_usb_phy_set_mode() 448 data->dr_mode = USB_DR_MODE_PERIPHERAL; in sun4i_usb_phy_set_mode() 451 data->dr_mode = USB_DR_MODE_OTG; in sun4i_usb_phy_set_mode() 457 dev_info(&_phy->dev, "Changing dr_mode to %d\n", (int)data->dr_mode); in sun4i_usb_phy_set_mode() 507 if (data->dr_mode == USB_DR_MODE_OTG && in sun4i_usb_phy0_id_vbus_det_scan() 653 data->dr_mode = of_usb_get_dr_mode_by_phy(np, 0); in sun4i_usb_phy_probe()
|