/kernel/linux/linux-5.10/drivers/phy/qualcomm/ |
H A D | phy-qcom-usb-hs.c | 45 struct qcom_usb_hs_phy *uphy = phy_get_drvdata(phy); in qcom_usb_hs_phy_set_mode() local 49 if (!uphy->vbus_edev) { in qcom_usb_hs_phy_set_mode() 63 ret = ulpi_write(uphy->ulpi, ULPI_USB_INT_EN_RISE, val); in qcom_usb_hs_phy_set_mode() 66 ret = ulpi_write(uphy->ulpi, ULPI_USB_INT_EN_FALL, val); in qcom_usb_hs_phy_set_mode() 80 ret = ulpi_write(uphy->ulpi, ULPI_SET(ULPI_PWR_CLK_MNG_REG), in qcom_usb_hs_phy_set_mode() 84 ret = ulpi_write(uphy->ulpi, addr, ULPI_MISC_A_VBUSVLDEXTSEL); in qcom_usb_hs_phy_set_mode() 94 struct qcom_usb_hs_phy *uphy; in qcom_usb_hs_phy_vbus_notifier() local 97 uphy = container_of(nb, struct qcom_usb_hs_phy, vbus_notify); in qcom_usb_hs_phy_vbus_notifier() 104 return ulpi_write(uphy->ulpi, addr, ULPI_MISC_A_VBUSVLDEXT); in qcom_usb_hs_phy_vbus_notifier() 109 struct qcom_usb_hs_phy *uphy in qcom_usb_hs_phy_power_on() local 181 struct qcom_usb_hs_phy *uphy = phy_get_drvdata(phy); qcom_usb_hs_phy_power_off() local 203 struct qcom_usb_hs_phy *uphy; qcom_usb_hs_phy_probe() local [all...] |
H A D | phy-qcom-usb-hsic.c | 28 struct qcom_usb_hsic_phy *uphy = phy_get_drvdata(phy); in qcom_usb_hsic_phy_power_on() local 29 struct ulpi *ulpi = uphy->ulpi; in qcom_usb_hsic_phy_power_on() 33 ret = clk_prepare_enable(uphy->phy_clk); in qcom_usb_hsic_phy_power_on() 37 ret = clk_prepare_enable(uphy->cal_clk); in qcom_usb_hsic_phy_power_on() 41 ret = clk_prepare_enable(uphy->cal_sleep_clk); in qcom_usb_hsic_phy_power_on() 56 pins_default = pinctrl_lookup_state(uphy->pctl, PINCTRL_STATE_DEFAULT); in qcom_usb_hsic_phy_power_on() 62 ret = pinctrl_select_state(uphy->pctl, pins_default); in qcom_usb_hsic_phy_power_on() 79 clk_disable_unprepare(uphy->cal_sleep_clk); in qcom_usb_hsic_phy_power_on() 81 clk_disable_unprepare(uphy->cal_clk); in qcom_usb_hsic_phy_power_on() 83 clk_disable_unprepare(uphy in qcom_usb_hsic_phy_power_on() 89 struct qcom_usb_hsic_phy *uphy = phy_get_drvdata(phy); qcom_usb_hsic_phy_power_off() local 106 struct qcom_usb_hsic_phy *uphy; qcom_usb_hsic_phy_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/phy/qualcomm/ |
H A D | phy-qcom-usb-hs.c | 45 struct qcom_usb_hs_phy *uphy = phy_get_drvdata(phy); in qcom_usb_hs_phy_set_mode() local 49 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 in qcom_usb_hs_phy_power_on() local 182 struct qcom_usb_hs_phy *uphy = phy_get_drvdata(phy); qcom_usb_hs_phy_power_off() local 204 struct qcom_usb_hs_phy *uphy; qcom_usb_hs_phy_probe() local [all...] |
H A D | phy-qcom-usb-hsic.c | 28 struct qcom_usb_hsic_phy *uphy = phy_get_drvdata(phy); in qcom_usb_hsic_phy_power_on() local 29 struct ulpi *ulpi = uphy->ulpi; in qcom_usb_hsic_phy_power_on() 33 ret = clk_prepare_enable(uphy->phy_clk); in qcom_usb_hsic_phy_power_on() 37 ret = clk_prepare_enable(uphy->cal_clk); in qcom_usb_hsic_phy_power_on() 41 ret = clk_prepare_enable(uphy->cal_sleep_clk); in qcom_usb_hsic_phy_power_on() 56 pins_default = pinctrl_lookup_state(uphy->pctl, PINCTRL_STATE_DEFAULT); in qcom_usb_hsic_phy_power_on() 62 ret = pinctrl_select_state(uphy->pctl, pins_default); in qcom_usb_hsic_phy_power_on() 79 clk_disable_unprepare(uphy->cal_sleep_clk); in qcom_usb_hsic_phy_power_on() 81 clk_disable_unprepare(uphy->cal_clk); in qcom_usb_hsic_phy_power_on() 83 clk_disable_unprepare(uphy in qcom_usb_hsic_phy_power_on() 89 struct qcom_usb_hsic_phy *uphy = phy_get_drvdata(phy); qcom_usb_hsic_phy_power_off() local 106 struct qcom_usb_hsic_phy *uphy; qcom_usb_hsic_phy_probe() local [all...] |
/kernel/linux/linux-5.10/drivers/usb/dwc2/ |
H A D | platform.c | 140 if (hsotg->uphy) { in __dwc2_lowlevel_hw_enable() 141 ret = usb_phy_init(hsotg->uphy); in __dwc2_lowlevel_hw_enable() 174 if (hsotg->uphy) { in __dwc2_lowlevel_hw_disable() 175 usb_phy_shutdown(hsotg->uphy); in __dwc2_lowlevel_hw_disable() 251 hsotg->uphy = devm_usb_get_phy(hsotg->dev, USB_PHY_TYPE_USB2); in dwc2_lowlevel_hw_init() 252 if (IS_ERR(hsotg->uphy)) { in dwc2_lowlevel_hw_init() 253 ret = PTR_ERR(hsotg->uphy); in dwc2_lowlevel_hw_init() 257 hsotg->uphy = NULL; in dwc2_lowlevel_hw_init()
|
H A D | core_intr.c | 532 if (!IS_ERR_OR_NULL(hsotg->uphy)) in dwc2_handle_usb_suspend_intr() 533 usb_phy_set_suspend(hsotg->uphy, true); in dwc2_handle_usb_suspend_intr()
|
H A D | hcd.c | 4367 if (!IS_ERR_OR_NULL(hsotg->uphy)) { in _dwc2_hcd_suspend() 4369 usb_phy_set_suspend(hsotg->uphy, true); in _dwc2_hcd_suspend() 4406 if (!IS_ERR_OR_NULL(hsotg->uphy)) { in _dwc2_hcd_resume() 4408 usb_phy_set_suspend(hsotg->uphy, false); in _dwc2_hcd_resume() 5228 if (!IS_ERR_OR_NULL(hsotg->uphy)) in dwc2_hcd_init() 5229 otg_set_host(hsotg->uphy->otg, &hcd->self); in dwc2_hcd_init() 5286 if (!IS_ERR_OR_NULL(hsotg->uphy)) in dwc2_hcd_remove() 5287 otg_set_host(hsotg->uphy->otg, NULL); in dwc2_hcd_remove()
|
H A D | core.h | 879 * @uphy: The otg phy transceiver structure for old USB phy 1071 struct usb_phy *uphy; member
|
H A D | gadget.c | 4532 if (!IS_ERR_OR_NULL(hsotg->uphy)) in dwc2_hsotg_udc_start() 4533 otg_set_peripheral(hsotg->uphy->otg, &hsotg->gadget); in dwc2_hsotg_udc_start() 4585 if (!IS_ERR_OR_NULL(hsotg->uphy)) in dwc2_hsotg_udc_stop() 4586 otg_set_peripheral(hsotg->uphy->otg, NULL); in dwc2_hsotg_udc_stop() 4709 if (IS_ERR_OR_NULL(hsotg->uphy)) in dwc2_hsotg_vbus_draw() 4711 return usb_phy_set_power(hsotg->uphy, mA); in dwc2_hsotg_vbus_draw()
|
/kernel/linux/linux-6.6/drivers/usb/dwc2/ |
H A D | platform.c | 116 if (hsotg->uphy) { in __dwc2_lowlevel_hw_enable() 117 ret = usb_phy_init(hsotg->uphy); in __dwc2_lowlevel_hw_enable() 169 if (hsotg->uphy) { in __dwc2_lowlevel_hw_disable() 170 usb_phy_shutdown(hsotg->uphy); in __dwc2_lowlevel_hw_disable() 255 hsotg->uphy = devm_usb_get_phy(hsotg->dev, USB_PHY_TYPE_USB2); in dwc2_lowlevel_hw_init() 256 if (IS_ERR(hsotg->uphy)) { in dwc2_lowlevel_hw_init() 257 ret = PTR_ERR(hsotg->uphy); in dwc2_lowlevel_hw_init() 261 hsotg->uphy = NULL; in dwc2_lowlevel_hw_init()
|
H A D | core_intr.c | 515 if (!IS_ERR_OR_NULL(hsotg->uphy)) in dwc2_handle_usb_suspend_intr() 516 usb_phy_set_suspend(hsotg->uphy, true); in dwc2_handle_usb_suspend_intr()
|
H A D | hcd.c | 4389 if (!IS_ERR_OR_NULL(hsotg->uphy)) { in _dwc2_hcd_suspend() 4391 usb_phy_set_suspend(hsotg->uphy, true); in _dwc2_hcd_suspend() 4489 if (!IS_ERR_OR_NULL(hsotg->uphy)) { in _dwc2_hcd_resume() 4491 usb_phy_set_suspend(hsotg->uphy, false); in _dwc2_hcd_resume() 5315 if (!IS_ERR_OR_NULL(hsotg->uphy)) in dwc2_hcd_init() 5316 otg_set_host(hsotg->uphy->otg, &hcd->self); in dwc2_hcd_init() 5373 if (!IS_ERR_OR_NULL(hsotg->uphy)) in dwc2_hcd_remove() 5374 otg_set_host(hsotg->uphy->otg, NULL); in dwc2_hcd_remove()
|
H A D | core.h | 864 * @uphy: The otg phy transceiver structure for old USB phy 1059 struct usb_phy *uphy; member
|
H A D | gadget.c | 4557 if (!IS_ERR_OR_NULL(hsotg->uphy)) in dwc2_hsotg_udc_start() 4558 otg_set_peripheral(hsotg->uphy->otg, &hsotg->gadget); in dwc2_hsotg_udc_start() 4610 if (!IS_ERR_OR_NULL(hsotg->uphy)) in dwc2_hsotg_udc_stop() 4611 otg_set_peripheral(hsotg->uphy->otg, NULL); in dwc2_hsotg_udc_stop() 4738 if (IS_ERR_OR_NULL(hsotg->uphy)) in dwc2_hsotg_vbus_draw() 4740 return usb_phy_set_power(hsotg->uphy, mA); in dwc2_hsotg_vbus_draw()
|