Searched refs:uphy (Results 1 – 7 of 7) sorted by relevance
/drivers/phy/qualcomm/ |
D | phy-qcom-usb-hs.c | 47 struct qcom_usb_hs_phy *uphy = phy_get_drvdata(phy); in qcom_usb_hs_phy_set_mode() local 51 if (!uphy->vbus_edev) { in qcom_usb_hs_phy_set_mode() 64 ret = ulpi_write(uphy->ulpi, ULPI_USB_INT_EN_RISE, val); in qcom_usb_hs_phy_set_mode() 67 ret = ulpi_write(uphy->ulpi, ULPI_USB_INT_EN_FALL, val); in qcom_usb_hs_phy_set_mode() 81 ret = ulpi_write(uphy->ulpi, ULPI_SET(ULPI_PWR_CLK_MNG_REG), in qcom_usb_hs_phy_set_mode() 85 ret = ulpi_write(uphy->ulpi, addr, ULPI_MISC_A_VBUSVLDEXTSEL); in qcom_usb_hs_phy_set_mode() 95 struct qcom_usb_hs_phy *uphy; in qcom_usb_hs_phy_vbus_notifier() local 98 uphy = container_of(nb, struct qcom_usb_hs_phy, vbus_notify); in qcom_usb_hs_phy_vbus_notifier() 105 return ulpi_write(uphy->ulpi, addr, ULPI_MISC_A_VBUSVLDEXT); in qcom_usb_hs_phy_vbus_notifier() 110 struct qcom_usb_hs_phy *uphy = phy_get_drvdata(phy); in qcom_usb_hs_phy_power_on() local [all …]
|
D | phy-qcom-usb-hsic.c | 31 struct qcom_usb_hsic_phy *uphy = phy_get_drvdata(phy); in qcom_usb_hsic_phy_power_on() local 32 struct ulpi *ulpi = uphy->ulpi; in qcom_usb_hsic_phy_power_on() 36 ret = clk_prepare_enable(uphy->phy_clk); in qcom_usb_hsic_phy_power_on() 40 ret = clk_prepare_enable(uphy->cal_clk); in qcom_usb_hsic_phy_power_on() 44 ret = clk_prepare_enable(uphy->cal_sleep_clk); in qcom_usb_hsic_phy_power_on() 59 pins_default = pinctrl_lookup_state(uphy->pctl, PINCTRL_STATE_DEFAULT); in qcom_usb_hsic_phy_power_on() 63 ret = pinctrl_select_state(uphy->pctl, pins_default); in qcom_usb_hsic_phy_power_on() 80 clk_disable_unprepare(uphy->cal_sleep_clk); in qcom_usb_hsic_phy_power_on() 82 clk_disable_unprepare(uphy->cal_clk); in qcom_usb_hsic_phy_power_on() 84 clk_disable_unprepare(uphy->phy_clk); in qcom_usb_hsic_phy_power_on() [all …]
|
/drivers/usb/dwc2/ |
D | platform.c | 139 if (hsotg->uphy) { in __dwc2_lowlevel_hw_enable() 140 ret = usb_phy_init(hsotg->uphy); in __dwc2_lowlevel_hw_enable() 173 if (hsotg->uphy) { in __dwc2_lowlevel_hw_disable() 174 usb_phy_shutdown(hsotg->uphy); in __dwc2_lowlevel_hw_disable() 247 hsotg->uphy = devm_usb_get_phy(hsotg->dev, USB_PHY_TYPE_USB2); in dwc2_lowlevel_hw_init() 248 if (IS_ERR(hsotg->uphy)) { in dwc2_lowlevel_hw_init() 249 ret = PTR_ERR(hsotg->uphy); in dwc2_lowlevel_hw_init() 253 hsotg->uphy = NULL; in dwc2_lowlevel_hw_init()
|
D | core_intr.c | 454 if (!IS_ERR_OR_NULL(hsotg->uphy)) in dwc2_handle_usb_suspend_intr() 455 usb_phy_set_suspend(hsotg->uphy, true); in dwc2_handle_usb_suspend_intr()
|
D | hcd.c | 4533 if (!IS_ERR_OR_NULL(hsotg->uphy)) { in _dwc2_hcd_suspend() 4535 usb_phy_set_suspend(hsotg->uphy, true); in _dwc2_hcd_suspend() 4580 if (!IS_ERR_OR_NULL(hsotg->uphy)) { in _dwc2_hcd_resume() 4582 usb_phy_set_suspend(hsotg->uphy, false); in _dwc2_hcd_resume() 5379 if (!IS_ERR_OR_NULL(hsotg->uphy)) in dwc2_hcd_init() 5380 otg_set_host(hsotg->uphy->otg, &hcd->self); in dwc2_hcd_init() 5437 if (!IS_ERR_OR_NULL(hsotg->uphy)) in dwc2_hcd_remove() 5438 otg_set_host(hsotg->uphy->otg, NULL); in dwc2_hcd_remove()
|
D | core.h | 914 struct usb_phy *uphy; member
|
D | gadget.c | 4293 if (!IS_ERR_OR_NULL(hsotg->uphy)) in dwc2_hsotg_udc_start() 4294 otg_set_peripheral(hsotg->uphy->otg, &hsotg->gadget); in dwc2_hsotg_udc_start() 4346 if (!IS_ERR_OR_NULL(hsotg->uphy)) in dwc2_hsotg_udc_stop() 4347 otg_set_peripheral(hsotg->uphy->otg, NULL); in dwc2_hsotg_udc_stop() 4445 if (IS_ERR_OR_NULL(hsotg->uphy)) in dwc2_hsotg_vbus_draw() 4447 return usb_phy_set_power(hsotg->uphy, mA); in dwc2_hsotg_vbus_draw()
|