Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/usb/cdns3/
Ddrd.c36 case USB_DR_MODE_PERIPHERAL: in cdns3_set_mode()
111 if (cdns->dr_mode == USB_DR_MODE_PERIPHERAL) in cdns3_is_device()
269 case USB_DR_MODE_PERIPHERAL: in cdns3_drd_update_mode()
270 ret = cdns3_set_mode(cdns, USB_DR_MODE_PERIPHERAL); in cdns3_drd_update_mode()
386 cdns->dr_mode = USB_DR_MODE_PERIPHERAL; in cdns3_drd_init()
Dcore.c106 dr_mode = USB_DR_MODE_PERIPHERAL; in cdns3_core_init_role()
139 if (dr_mode == USB_DR_MODE_OTG || dr_mode == USB_DR_MODE_PERIPHERAL) { in cdns3_core_init_role()
165 case USB_DR_MODE_PERIPHERAL: in cdns3_core_init_role()
358 if (cdns->dr_mode == USB_DR_MODE_PERIPHERAL) { in cdns3_role_set()
/kernel/linux/linux-5.10/drivers/usb/mtu3/
Dmtu3_plat.c273 if (ssusb->dr_mode == USB_DR_MODE_PERIPHERAL) in get_ssusb_rscs()
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()
365 case USB_DR_MODE_PERIPHERAL: in mtu3_probe()
425 case USB_DR_MODE_PERIPHERAL: in mtu3_remove()
Dmtu3_gadget.c514 if (mtu->ssusb->dr_mode == USB_DR_MODE_PERIPHERAL) in mtu3_gadget_start()
568 if (mtu->ssusb->dr_mode == USB_DR_MODE_PERIPHERAL) in mtu3_gadget_stop()
/kernel/linux/linux-5.10/drivers/usb/dwc2/
Dplatform.c98 mode = USB_DR_MODE_PERIPHERAL; in dwc2_get_dr_mode()
110 mode = USB_DR_MODE_PERIPHERAL; in dwc2_get_dr_mode()
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()
Dparams.c401 if ((hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) || in dwc2_set_default_params()
433 if ((hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) || in dwc2_get_device_properties()
703 if ((hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) || in dwc2_check_params()
728 if (hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) in dwc2_get_host_hwparams()
Ddrd.c80 (role == USB_ROLE_HOST && hsotg->dr_mode == USB_DR_MODE_PERIPHERAL)) in dwc2_drd_role_sw_set()
Dcore.c606 if (WARN_ON(host && hsotg->dr_mode == USB_DR_MODE_PERIPHERAL)) in dwc2_force_mode()
669 case USB_DR_MODE_PERIPHERAL: in dwc2_force_dr_mode()
Dgadget.c4526 if (hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) { in dwc2_hsotg_udc_start()
4588 if (hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) in dwc2_hsotg_udc_stop()
4934 else if (hsotg->dr_mode == USB_DR_MODE_PERIPHERAL) in dwc2_gadget_init()
/kernel/linux/linux-5.10/include/linux/usb/
Dotg.h119 USB_DR_MODE_PERIPHERAL, enumerator
/kernel/linux/linux-5.10/drivers/usb/common/
Dcommon.c119 [USB_DR_MODE_PERIPHERAL] = "peripheral",
/kernel/linux/linux-5.10/drivers/usb/dwc3/
Ddwc3-qcom.c140 qcom->mode = event ? USB_DR_MODE_PERIPHERAL : USB_DR_MODE_HOST; in dwc3_qcom_vbus_notifier()
152 qcom->mode = event ? USB_DR_MODE_HOST : USB_DR_MODE_PERIPHERAL; in dwc3_qcom_host_notifier()
823 if (qcom->mode == USB_DR_MODE_PERIPHERAL) in dwc3_qcom_probe()
Dcore.c66 mode = USB_DR_MODE_PERIPHERAL; in dwc3_get_dr_mode()
80 mode = USB_DR_MODE_PERIPHERAL; in dwc3_get_dr_mode()
91 mode = USB_DR_MODE_PERIPHERAL; in dwc3_get_dr_mode()
1206 case USB_DR_MODE_PERIPHERAL: in dwc3_core_init_mode()
1256 case USB_DR_MODE_PERIPHERAL: in dwc3_core_exit_mode()
Ddwc3-st.c127 case USB_DR_MODE_PERIPHERAL: in st_dwc3_drd_init()
Ddrd.c547 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()
/kernel/linux/linux-5.10/drivers/usb/musb/
Dmediatek.c485 pdata->mode = USB_DR_MODE_PERIPHERAL; in mtk_musb_probe()
492 case USB_DR_MODE_PERIPHERAL: in mtk_musb_probe()
Dsunxi.c692 case USB_DR_MODE_PERIPHERAL: in sunxi_musb_probe()
Dmusb_dsps.c899 if (usb_get_dr_mode(&pdev->dev) == USB_DR_MODE_PERIPHERAL) { in dsps_probe()
/kernel/linux/linux-5.10/drivers/usb/chipidea/
Dcore.c672 if (platdata->dr_mode != USB_DR_MODE_PERIPHERAL) { in ci_get_platdata()
911 return USB_DR_MODE_PERIPHERAL; in ci_hdrc_query_available_role()
1109 if (dr_mode == USB_DR_MODE_OTG || dr_mode == USB_DR_MODE_PERIPHERAL) { in ci_hdrc_probe()
/kernel/linux/linux-5.10/drivers/phy/tegra/
Dxusb.c570 [USB_DR_MODE_PERIPHERAL] = "peripheral",
731 if (usb2->mode == USB_DR_MODE_PERIPHERAL || in tegra_xusb_usb2_port_parse_dt()
1062 usb2->mode == USB_DR_MODE_PERIPHERAL) && in tegra_xusb_update_usb3_fake_port()
Dxusb-tegra186.c426 else if (port->mode == USB_DR_MODE_PERIPHERAL) in tegra186_utmi_phy_power_on()
716 else if (usb2->mode == USB_DR_MODE_PERIPHERAL) in tegra186_usb3_phy_power_on()
Dxusb-tegra210.c1103 else if (port->mode == USB_DR_MODE_PERIPHERAL) in tegra210_usb2_phy_power_on()
/kernel/linux/linux-5.10/drivers/phy/allwinner/
Dphy-sun4i-usb.c373 case USB_DR_MODE_PERIPHERAL: in sun4i_usb_phy0_get_id_det()
491 new_mode = USB_DR_MODE_PERIPHERAL; in sun4i_usb_phy_set_mode()
/kernel/linux/linux-5.10/drivers/usb/phy/
Dphy-tegra-usb.c506 if (phy->mode == USB_DR_MODE_PERIPHERAL) { in utmi_phy_power_on()
608 if (phy->mode == USB_DR_MODE_PERIPHERAL) { in utmi_phy_power_off()

12