Home
last modified time | relevance | path

Searched refs:USB_DR_MODE_PERIPHERAL (Results 1 – 25 of 28) sorted by relevance

12

/linux-6.1.9/drivers/usb/dwc2/
Ddrd.c32 else if (hsotg->role_sw_default_mode == USB_DR_MODE_PERIPHERAL) in dwc2_ovr_init()
93 (role == USB_ROLE_HOST && hsotg->dr_mode == USB_DR_MODE_PERIPHERAL)) in dwc2_drd_role_sw_set()
125 else if (hsotg->role_sw_default_mode == USB_DR_MODE_PERIPHERAL) in dwc2_drd_role_sw_set()
219 else if (hsotg->role_sw_default_mode == USB_DR_MODE_PERIPHERAL) in dwc2_drd_resume()
Dplatform.c68 mode = USB_DR_MODE_PERIPHERAL; in dwc2_get_dr_mode()
80 mode = USB_DR_MODE_PERIPHERAL; in dwc2_get_dr_mode()
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()
610 if (hsotg->dr_mode != USB_DR_MODE_PERIPHERAL) in dwc2_driver_probe()
Dparams.c453 if ((hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) || in dwc2_set_default_params()
485 if ((hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) || in dwc2_get_device_properties()
755 if ((hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) || in dwc2_check_params()
780 if (hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) in dwc2_get_host_hwparams()
Dcore.c520 if (WARN_ON(host && hsotg->dr_mode == USB_DR_MODE_PERIPHERAL)) in dwc2_force_mode()
583 case USB_DR_MODE_PERIPHERAL: in dwc2_force_dr_mode()
/linux-6.1.9/drivers/usb/mtu3/
Dmtu3_plat.c274 if (ssusb->dr_mode == USB_DR_MODE_PERIPHERAL) in get_ssusb_rscs()
386 ssusb->dr_mode = USB_DR_MODE_PERIPHERAL; in mtu3_probe()
389 ssusb->is_host = !(ssusb->dr_mode == USB_DR_MODE_PERIPHERAL); in mtu3_probe()
392 case USB_DR_MODE_PERIPHERAL: in mtu3_probe()
459 case USB_DR_MODE_PERIPHERAL: in mtu3_remove()
486 case USB_DR_MODE_PERIPHERAL: in resume_ip_and_ports()
513 case USB_DR_MODE_PERIPHERAL: in mtu3_suspend_common()
Dmtu3_dr.c288 if (mode == USB_DR_MODE_PERIPHERAL) in ssusb_role_sw_register()
Dmtu3_gadget.c536 if (mtu->ssusb->dr_mode == USB_DR_MODE_PERIPHERAL) in mtu3_gadget_start()
591 if (mtu->ssusb->dr_mode == USB_DR_MODE_PERIPHERAL) in mtu3_gadget_stop()
/linux-6.1.9/drivers/usb/cdns3/
Ddrd.c34 case USB_DR_MODE_PERIPHERAL: in cdns_set_mode()
144 if (cdns->dr_mode == USB_DR_MODE_PERIPHERAL) in cdns_is_device()
314 case USB_DR_MODE_PERIPHERAL: in cdns_drd_update_mode()
315 ret = cdns_set_mode(cdns, USB_DR_MODE_PERIPHERAL); in cdns_drd_update_mode()
453 cdns->dr_mode = USB_DR_MODE_PERIPHERAL; in cdns_drd_init()
Dcore.c105 dr_mode = USB_DR_MODE_PERIPHERAL; in cdns_core_init_role()
113 dr_mode = USB_DR_MODE_PERIPHERAL; in cdns_core_init_role()
154 if (dr_mode == USB_DR_MODE_OTG || dr_mode == USB_DR_MODE_PERIPHERAL) { in cdns_core_init_role()
184 case USB_DR_MODE_PERIPHERAL: in cdns_core_init_role()
377 if (cdns->dr_mode == USB_DR_MODE_PERIPHERAL) { in cdns_role_set()
/linux-6.1.9/drivers/phy/marvell/
Dphy-mvebu-cp110-utmi.c210 if (port->dr_mode == USB_DR_MODE_PERIPHERAL) { in mvebu_cp110_utmi_phy_power_on()
331 (port->dr_mode != USB_DR_MODE_PERIPHERAL)) { in mvebu_cp110_utmi_phy_probe()
338 if (port->dr_mode == USB_DR_MODE_PERIPHERAL) { in mvebu_cp110_utmi_phy_probe()
/linux-6.1.9/include/linux/usb/
Dotg.h119 USB_DR_MODE_PERIPHERAL, enumerator
/linux-6.1.9/drivers/usb/isp1760/
Disp1760-if.c225 if (usb_get_dr_mode(&pdev->dev) == USB_DR_MODE_PERIPHERAL) in isp1760_plat_probe()
/linux-6.1.9/drivers/usb/musb/
Dmediatek.c433 pdata->mode = USB_DR_MODE_PERIPHERAL; in mtk_musb_probe()
440 case USB_DR_MODE_PERIPHERAL: in mtk_musb_probe()
Dsunxi.c700 case USB_DR_MODE_PERIPHERAL: in sunxi_musb_probe()
Dmusb_dsps.c902 if (usb_get_dr_mode(&pdev->dev) == USB_DR_MODE_PERIPHERAL) { in dsps_probe()
/linux-6.1.9/drivers/usb/dwc3/
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()
904 if (qcom->mode == USB_DR_MODE_PERIPHERAL) in dwc3_qcom_probe()
Ddwc3-st.c127 case USB_DR_MODE_PERIPHERAL: in st_dwc3_drd_init()
Dcore.c68 mode = USB_DR_MODE_PERIPHERAL; in dwc3_get_dr_mode()
82 mode = USB_DR_MODE_PERIPHERAL; in dwc3_get_dr_mode()
93 mode = USB_DR_MODE_PERIPHERAL; in dwc3_get_dr_mode()
1379 case USB_DR_MODE_PERIPHERAL: in dwc3_core_init_mode()
1420 case USB_DR_MODE_PERIPHERAL: in dwc3_core_exit_mode()
Ddrd.c505 dwc->role_switch_default_mode = USB_DR_MODE_PERIPHERAL; in dwc3_setup_role_switch()
Ddwc3-meson-g12a.c773 if (priv->otg_mode == USB_DR_MODE_PERIPHERAL) in dwc3_meson_g12a_probe()
/linux-6.1.9/drivers/usb/common/
Dcommon.c178 [USB_DR_MODE_PERIPHERAL] = "peripheral",
/linux-6.1.9/drivers/usb/chipidea/
Dcore.c679 if (platdata->dr_mode != USB_DR_MODE_PERIPHERAL) { in ci_get_platdata()
922 return USB_DR_MODE_PERIPHERAL; in ci_hdrc_query_available_role()
1120 if (dr_mode == USB_DR_MODE_OTG || dr_mode == USB_DR_MODE_PERIPHERAL) { in ci_hdrc_probe()
/linux-6.1.9/drivers/phy/tegra/
Dxusb.c576 [USB_DR_MODE_PERIPHERAL] = "peripheral",
738 if (usb2->mode == USB_DR_MODE_PERIPHERAL || in tegra_xusb_usb2_port_parse_dt()
1069 usb2->mode == USB_DR_MODE_PERIPHERAL) && in tegra_xusb_update_usb3_fake_port()
Dxusb-tegra186.c817 else if (port->mode == USB_DR_MODE_PERIPHERAL) in tegra186_utmi_phy_power_on()
1224 else if (usb2->mode == USB_DR_MODE_PERIPHERAL) in tegra186_usb3_phy_power_on()
/linux-6.1.9/drivers/phy/allwinner/
Dphy-sun4i-usb.c427 case USB_DR_MODE_PERIPHERAL: in sun4i_usb_phy0_get_id_det()
545 new_mode = USB_DR_MODE_PERIPHERAL; in sun4i_usb_phy_set_mode()

12