Home
last modified time | relevance | path

Searched refs:usb3_phy (Results 1 - 17 of 17) sorted by relevance

/kernel/linux/linux-5.10/drivers/usb/dwc3/
H A Ddwc3-keystone.c38 struct phy *usb3_phy; member
101 kdwc->usb3_phy = devm_phy_optional_get(dev, "usb3-phy"); in kdwc3_probe()
102 if (IS_ERR(kdwc->usb3_phy)) { in kdwc3_probe()
103 error = PTR_ERR(kdwc->usb3_phy); in kdwc3_probe()
110 phy_pm_runtime_get_sync(kdwc->usb3_phy); in kdwc3_probe()
112 error = phy_reset(kdwc->usb3_phy); in kdwc3_probe()
118 error = phy_init(kdwc->usb3_phy); in kdwc3_probe()
124 error = phy_power_on(kdwc->usb3_phy); in kdwc3_probe()
127 phy_exit(kdwc->usb3_phy); in kdwc3_probe()
173 phy_power_off(kdwc->usb3_phy); in kdwc3_probe()
[all...]
H A Dcore.c734 usb_phy_set_suspend(dwc->usb3_phy, 1); in dwc3_core_exit()
739 usb_phy_shutdown(dwc->usb3_phy); in dwc3_core_exit()
981 usb_phy_init(dwc->usb3_phy); in dwc3_core_init()
1024 usb_phy_set_suspend(dwc->usb3_phy, 0); in dwc3_core_init()
1116 usb_phy_set_suspend(dwc->usb3_phy, 1); in dwc3_core_init()
1120 usb_phy_shutdown(dwc->usb3_phy); in dwc3_core_init()
1139 dwc->usb3_phy = devm_usb_get_phy_by_phandle(dev, "usb-phy", 1); in dwc3_core_get_phy()
1142 dwc->usb3_phy = devm_usb_get_phy(dev, USB_PHY_TYPE_USB3); in dwc3_core_get_phy()
1157 if (IS_ERR(dwc->usb3_phy)) { in dwc3_core_get_phy()
1158 ret = PTR_ERR(dwc->usb3_phy); in dwc3_core_get_phy()
[all...]
H A Dcore.h981 * @usb3_phy: pointer to USB3 PHY
1102 struct usb_phy *usb3_phy; member
/kernel/linux/linux-6.6/drivers/usb/dwc3/
H A Ddwc3-keystone.c39 struct phy *usb3_phy; member
102 kdwc->usb3_phy = devm_phy_optional_get(dev, "usb3-phy"); in kdwc3_probe()
103 if (IS_ERR(kdwc->usb3_phy)) in kdwc3_probe()
104 return dev_err_probe(dev, PTR_ERR(kdwc->usb3_phy), "couldn't get usb3 phy\n"); in kdwc3_probe()
106 phy_pm_runtime_get_sync(kdwc->usb3_phy); in kdwc3_probe()
108 error = phy_reset(kdwc->usb3_phy); in kdwc3_probe()
114 error = phy_init(kdwc->usb3_phy); in kdwc3_probe()
120 error = phy_power_on(kdwc->usb3_phy); in kdwc3_probe()
123 phy_exit(kdwc->usb3_phy); in kdwc3_probe()
169 phy_power_off(kdwc->usb3_phy); in kdwc3_probe()
[all...]
H A Ddwc3-xilinx.c50 struct phy *usb3_phy; member
107 priv_data->usb3_phy = devm_phy_optional_get(dev, "usb3-phy"); in dwc3_xlnx_init_zynqmp()
108 if (IS_ERR(priv_data->usb3_phy)) { in dwc3_xlnx_init_zynqmp()
109 ret = PTR_ERR(priv_data->usb3_phy); in dwc3_xlnx_init_zynqmp()
124 if (!priv_data->usb3_phy) in dwc3_xlnx_init_zynqmp()
169 ret = phy_init(priv_data->usb3_phy); in dwc3_xlnx_init_zynqmp()
171 phy_exit(priv_data->usb3_phy); in dwc3_xlnx_init_zynqmp()
199 ret = phy_power_on(priv_data->usb3_phy); in dwc3_xlnx_init_zynqmp()
201 phy_exit(priv_data->usb3_phy); in dwc3_xlnx_init_zynqmp()
351 phy_exit(priv_data->usb3_phy); in dwc3_xlnx_suspend()
[all...]
H A Dcore.c739 usb_phy_init(dwc->usb3_phy); in dwc3_phy_init()
754 usb_phy_shutdown(dwc->usb3_phy); in dwc3_phy_init()
765 usb_phy_shutdown(dwc->usb3_phy); in dwc3_phy_exit()
774 usb_phy_set_suspend(dwc->usb3_phy, 0); in dwc3_phy_power_on()
789 usb_phy_set_suspend(dwc->usb3_phy, 1); in dwc3_phy_power_on()
800 usb_phy_set_suspend(dwc->usb3_phy, 1); in dwc3_phy_power_off()
1339 dwc->usb3_phy = devm_usb_get_phy_by_phandle(dev, "usb-phy", 1); in dwc3_core_get_phy()
1342 dwc->usb3_phy = devm_usb_get_phy(dev, USB_PHY_TYPE_USB3); in dwc3_core_get_phy()
1353 if (IS_ERR(dwc->usb3_phy)) { in dwc3_core_get_phy()
1354 ret = PTR_ERR(dwc->usb3_phy); in dwc3_core_get_phy()
[all...]
H A Dcore.h1031 * @usb3_phy: pointer to USB3 PHY
1172 struct usb_phy *usb3_phy; member
/kernel/linux/linux-6.6/drivers/usb/cdns3/
H A Dcdns3-plat.c34 ret = phy_power_on(cdns->usb3_phy); in set_phy_power_on()
43 phy_power_off(cdns->usb3_phy); in set_phy_power_off()
128 cdns->usb3_phy = devm_phy_optional_get(dev, "cdns3,usb3-phy"); in cdns3_plat_probe()
129 if (IS_ERR(cdns->usb3_phy)) in cdns3_plat_probe()
130 return PTR_ERR(cdns->usb3_phy); in cdns3_plat_probe()
132 ret = phy_init(cdns->usb3_phy); in cdns3_plat_probe()
166 phy_exit(cdns->usb3_phy); in cdns3_plat_probe()
190 phy_exit(cdns->usb3_phy); in cdns3_plat_remove()
246 phy_exit(cdns->usb3_phy); in cdns3_controller_resume()
247 ret = phy_init(cdns->usb3_phy); in cdns3_controller_resume()
[all...]
H A Ddrd.c201 phy_set_mode(cdns->usb3_phy, PHY_MODE_USB_HOST); in cdns_drd_host_on()
222 phy_set_mode(cdns->usb3_phy, PHY_MODE_INVALID); in cdns_drd_host_off()
255 phy_set_mode(cdns->usb3_phy, PHY_MODE_USB_DEVICE); in cdns_drd_gadget_on()
281 phy_set_mode(cdns->usb3_phy, PHY_MODE_INVALID); in cdns_drd_gadget_off()
H A Dcore.h69 * @usb3_phy: pointer to USB3 PHY
109 struct phy *usb3_phy; member
H A Dcore.c271 phy_reset(cdns->usb3_phy); in cdns_idle_role_stop()
/kernel/linux/linux-5.10/drivers/usb/cdns3/
H A Dcore.c261 phy_reset(cdns->usb3_phy); in cdns3_idle_role_stop()
396 ret = phy_power_on(cdns->usb3_phy); in set_phy_power_on()
405 phy_power_off(cdns->usb3_phy); in set_phy_power_off()
529 cdns->usb3_phy = devm_phy_optional_get(dev, "cdns3,usb3-phy"); in cdns3_probe()
530 if (IS_ERR(cdns->usb3_phy)) in cdns3_probe()
531 return PTR_ERR(cdns->usb3_phy); in cdns3_probe()
533 ret = phy_init(cdns->usb3_phy); in cdns3_probe()
603 phy_exit(cdns->usb3_phy); in cdns3_probe()
627 phy_exit(cdns->usb3_phy); in cdns3_remove()
H A Ddrd.c175 phy_set_mode(cdns->usb3_phy, PHY_MODE_USB_HOST); in cdns3_drd_host_on()
195 phy_set_mode(cdns->usb3_phy, PHY_MODE_INVALID); in cdns3_drd_host_off()
227 phy_set_mode(cdns->usb3_phy, PHY_MODE_USB_DEVICE); in cdns3_drd_gadget_on()
251 phy_set_mode(cdns->usb3_phy, PHY_MODE_INVALID); in cdns3_drd_gadget_off()
H A Dcore.h69 * @usb3_phy: pointer to USB3 PHY
108 struct phy *usb3_phy; member
/kernel/linux/linux-6.6/drivers/power/supply/
H A Dbq256xx_charger.c218 * @usb3_phy: usb_phy identifier
239 struct usb_phy *usb3_phy; member
906 if (!IS_ERR_OR_NULL(bq->usb3_phy)) in bq256xx_charger_reset()
907 usb_unregister_notifier(bq->usb3_phy, &bq->usb_nb); in bq256xx_charger_reset()
1742 bq->usb3_phy = devm_usb_get_phy(dev, USB_PHY_TYPE_USB3); in bq256xx_probe()
1743 if (!IS_ERR_OR_NULL(bq->usb3_phy)) { in bq256xx_probe()
1746 usb_register_notifier(bq->usb3_phy, &bq->usb_nb); in bq256xx_probe()
/kernel/linux/linux-6.6/drivers/usb/gadget/udc/
H A Dtegra-xudc.c507 struct phy **usb3_phy; member
819 xudc->curr_usb3_phy = xudc->usb3_phy[phy_index]; in tegra_xudc_update_data_role()
3502 xudc->usb3_phy = devm_kcalloc(xudc->dev, xudc->soc->num_phys, in tegra_xudc_phy_get()
3503 sizeof(*xudc->usb3_phy), GFP_KERNEL); in tegra_xudc_phy_get()
3504 if (!xudc->usb3_phy) in tegra_xudc_phy_get()
3548 xudc->usb3_phy[i] = devm_phy_optional_get(xudc->dev, phy_name); in tegra_xudc_phy_get()
3549 if (IS_ERR(xudc->usb3_phy[i])) { in tegra_xudc_phy_get()
3550 err = PTR_ERR(xudc->usb3_phy[i]); in tegra_xudc_phy_get()
3554 } else if (xudc->usb3_phy[i]) { in tegra_xudc_phy_get()
3558 tegra_xusb_padctl_get_port_number(xudc->usb3_phy[ in tegra_xudc_phy_get()
[all...]
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/
H A Dtegra-xudc.c508 struct phy **usb3_phy; member
821 xudc->curr_usb3_phy = xudc->usb3_phy[phy_index]; in tegra_xudc_vbus_notify()
3491 xudc->usb3_phy = devm_kcalloc(xudc->dev, xudc->soc->num_phys, in tegra_xudc_phy_get()
3492 sizeof(*xudc->usb3_phy), GFP_KERNEL); in tegra_xudc_phy_get()
3493 if (!xudc->usb3_phy) in tegra_xudc_phy_get()
3538 xudc->usb3_phy[i] = devm_phy_optional_get(xudc->dev, phy_name); in tegra_xudc_phy_get()
3539 if (IS_ERR(xudc->usb3_phy[i])) { in tegra_xudc_phy_get()
3540 err = PTR_ERR(xudc->usb3_phy[i]); in tegra_xudc_phy_get()
3546 } else if (xudc->usb3_phy[i]) in tegra_xudc_phy_get()
3554 xudc->usb3_phy[ in tegra_xudc_phy_get()
[all...]

Completed in 28 milliseconds