Home
last modified time | relevance | path

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

12

/Linux-v6.6/drivers/usb/dwc2/
Ddrd.c32 else if (hsotg->role_sw_default_mode == USB_DR_MODE_PERIPHERAL) in dwc2_ovr_init()
94 (role == USB_ROLE_HOST && hsotg->dr_mode == USB_DR_MODE_PERIPHERAL)) in dwc2_drd_role_sw_set()
126 else if (hsotg->role_sw_default_mode == USB_DR_MODE_PERIPHERAL) in dwc2_drd_role_sw_set()
220 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()
592 if (hsotg->dr_mode != USB_DR_MODE_PERIPHERAL) { in dwc2_driver_probe()
608 if (hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) in dwc2_driver_probe()
Dparams.c508 if ((hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) || in dwc2_set_default_params()
540 if ((hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) || in dwc2_get_device_properties()
809 if ((hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) || in dwc2_check_params()
834 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-v6.6/drivers/usb/mtu3/
Dmtu3_plat.c276 if (ssusb->dr_mode == USB_DR_MODE_PERIPHERAL) in get_ssusb_rscs()
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()
394 case USB_DR_MODE_PERIPHERAL: in mtu3_probe()
461 case USB_DR_MODE_PERIPHERAL: in mtu3_remove()
488 case USB_DR_MODE_PERIPHERAL: in resume_ip_and_ports()
515 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.c535 if (mtu->ssusb->dr_mode == USB_DR_MODE_PERIPHERAL) in mtu3_gadget_start()
590 if (mtu->ssusb->dr_mode == USB_DR_MODE_PERIPHERAL) in mtu3_gadget_stop()
/Linux-v6.6/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()
318 case USB_DR_MODE_PERIPHERAL: in cdns_drd_update_mode()
319 ret = cdns_set_mode(cdns, USB_DR_MODE_PERIPHERAL); in cdns_drd_update_mode()
457 cdns->dr_mode = USB_DR_MODE_PERIPHERAL; in cdns_drd_init()
Dcore.c106 dr_mode = USB_DR_MODE_PERIPHERAL; in cdns_core_init_role()
114 dr_mode = USB_DR_MODE_PERIPHERAL; in cdns_core_init_role()
155 if (dr_mode == USB_DR_MODE_OTG || dr_mode == USB_DR_MODE_PERIPHERAL) { in cdns_core_init_role()
185 case USB_DR_MODE_PERIPHERAL: in cdns_core_init_role()
378 if (cdns->dr_mode == USB_DR_MODE_PERIPHERAL) { in cdns_role_set()
Dcdns3-starfive.c68 case USB_DR_MODE_PERIPHERAL: in cdns_mode_init()
/Linux-v6.6/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-v6.6/drivers/usb/fotg210/
Dfotg210-core.c155 if (mode == USB_DR_MODE_PERIPHERAL) { in fotg210_probe()
175 if (mode == USB_DR_MODE_PERIPHERAL) in fotg210_remove()
/Linux-v6.6/include/linux/usb/
Dotg.h119 USB_DR_MODE_PERIPHERAL, enumerator
/Linux-v6.6/drivers/usb/isp1760/
Disp1760-if.c225 if (usb_get_dr_mode(&pdev->dev) == USB_DR_MODE_PERIPHERAL) in isp1760_plat_probe()
/Linux-v6.6/drivers/usb/musb/
Dmediatek.c435 pdata->mode = USB_DR_MODE_PERIPHERAL; in mtk_musb_probe()
442 case USB_DR_MODE_PERIPHERAL: in mtk_musb_probe()
Dsunxi.c706 case USB_DR_MODE_PERIPHERAL: in sunxi_musb_probe()
/Linux-v6.6/drivers/usb/common/
Dcommon.c179 [USB_DR_MODE_PERIPHERAL] = "peripheral",
/Linux-v6.6/drivers/usb/dwc3/
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()
1355 case USB_DR_MODE_PERIPHERAL: in dwc3_core_init_mode()
1396 case USB_DR_MODE_PERIPHERAL: in dwc3_core_exit_mode()
Ddwc3-st.c127 case USB_DR_MODE_PERIPHERAL: in st_dwc3_drd_init()
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()
Ddrd.c505 dwc->role_switch_default_mode = USB_DR_MODE_PERIPHERAL; in dwc3_setup_role_switch()
/Linux-v6.6/drivers/phy/tegra/
Dxusb.c583 [USB_DR_MODE_PERIPHERAL] = "peripheral",
732 else if (mode == USB_DR_MODE_PERIPHERAL) in tegra_xusb_parse_usb_role_default_mode()
764 if (usb2->mode == USB_DR_MODE_PERIPHERAL || in tegra_xusb_usb2_port_parse_dt()
1090 usb2->mode == USB_DR_MODE_PERIPHERAL) && in tegra_xusb_update_usb3_fake_port()
Dxusb-tegra186.c872 else if (port->mode == USB_DR_MODE_PERIPHERAL) in tegra186_utmi_phy_power_on()
1278 else if (usb2->mode == USB_DR_MODE_PERIPHERAL) in tegra186_usb3_phy_power_on()
/Linux-v6.6/drivers/usb/chipidea/
Dcore.c686 if (platdata->dr_mode != USB_DR_MODE_PERIPHERAL) { in ci_get_platdata()
929 return USB_DR_MODE_PERIPHERAL; in ci_hdrc_query_available_role()
1137 if (dr_mode == USB_DR_MODE_OTG || dr_mode == USB_DR_MODE_PERIPHERAL) { in ci_hdrc_probe()
/Linux-v6.6/drivers/phy/allwinner/
Dphy-sun4i-usb.c413 case USB_DR_MODE_PERIPHERAL: in sun4i_usb_phy0_get_id_det()
530 new_mode = USB_DR_MODE_PERIPHERAL; in sun4i_usb_phy_set_mode()

12