uphy 45 drivers/phy/qualcomm/phy-qcom-usb-hs.c struct qcom_usb_hs_phy *uphy = phy_get_drvdata(phy); uphy 49 drivers/phy/qualcomm/phy-qcom-usb-hs.c if (!uphy->vbus_edev) { uphy 63 drivers/phy/qualcomm/phy-qcom-usb-hs.c ret = ulpi_write(uphy->ulpi, ULPI_USB_INT_EN_RISE, val); uphy 66 drivers/phy/qualcomm/phy-qcom-usb-hs.c ret = ulpi_write(uphy->ulpi, ULPI_USB_INT_EN_FALL, val); uphy 80 drivers/phy/qualcomm/phy-qcom-usb-hs.c ret = ulpi_write(uphy->ulpi, ULPI_SET(ULPI_PWR_CLK_MNG_REG), uphy 84 drivers/phy/qualcomm/phy-qcom-usb-hs.c ret = ulpi_write(uphy->ulpi, addr, ULPI_MISC_A_VBUSVLDEXTSEL); uphy 94 drivers/phy/qualcomm/phy-qcom-usb-hs.c struct qcom_usb_hs_phy *uphy; uphy 97 drivers/phy/qualcomm/phy-qcom-usb-hs.c uphy = container_of(nb, struct qcom_usb_hs_phy, vbus_notify); uphy 104 drivers/phy/qualcomm/phy-qcom-usb-hs.c return ulpi_write(uphy->ulpi, addr, ULPI_MISC_A_VBUSVLDEXT); uphy 109 drivers/phy/qualcomm/phy-qcom-usb-hs.c struct qcom_usb_hs_phy *uphy = phy_get_drvdata(phy); uphy 110 drivers/phy/qualcomm/phy-qcom-usb-hs.c struct ulpi *ulpi = uphy->ulpi; uphy 114 drivers/phy/qualcomm/phy-qcom-usb-hs.c ret = clk_prepare_enable(uphy->ref_clk); uphy 118 drivers/phy/qualcomm/phy-qcom-usb-hs.c ret = clk_prepare_enable(uphy->sleep_clk); uphy 122 drivers/phy/qualcomm/phy-qcom-usb-hs.c ret = regulator_set_load(uphy->v1p8, 50000); uphy 126 drivers/phy/qualcomm/phy-qcom-usb-hs.c ret = regulator_enable(uphy->v1p8); uphy 130 drivers/phy/qualcomm/phy-qcom-usb-hs.c ret = regulator_set_voltage_triplet(uphy->v3p3, 3050000, 3300000, uphy 135 drivers/phy/qualcomm/phy-qcom-usb-hs.c ret = regulator_set_load(uphy->v3p3, 50000); uphy 139 drivers/phy/qualcomm/phy-qcom-usb-hs.c ret = regulator_enable(uphy->v3p3); uphy 143 drivers/phy/qualcomm/phy-qcom-usb-hs.c for (seq = uphy->init_seq; seq->addr; seq++) { uphy 150 drivers/phy/qualcomm/phy-qcom-usb-hs.c if (uphy->reset) { uphy 151 drivers/phy/qualcomm/phy-qcom-usb-hs.c ret = reset_control_reset(uphy->reset); uphy 156 drivers/phy/qualcomm/phy-qcom-usb-hs.c if (uphy->vbus_edev) { uphy 157 drivers/phy/qualcomm/phy-qcom-usb-hs.c state = extcon_get_state(uphy->vbus_edev, EXTCON_USB); uphy 159 drivers/phy/qualcomm/phy-qcom-usb-hs.c qcom_usb_hs_phy_vbus_notifier(&uphy->vbus_notify, state, uphy 160 drivers/phy/qualcomm/phy-qcom-usb-hs.c uphy->vbus_edev); uphy 161 drivers/phy/qualcomm/phy-qcom-usb-hs.c ret = extcon_register_notifier(uphy->vbus_edev, EXTCON_USB, uphy 162 drivers/phy/qualcomm/phy-qcom-usb-hs.c &uphy->vbus_notify); uphy 169 drivers/phy/qualcomm/phy-qcom-usb-hs.c regulator_disable(uphy->v3p3); uphy 171 drivers/phy/qualcomm/phy-qcom-usb-hs.c regulator_disable(uphy->v1p8); uphy 173 drivers/phy/qualcomm/phy-qcom-usb-hs.c clk_disable_unprepare(uphy->sleep_clk); uphy 175 drivers/phy/qualcomm/phy-qcom-usb-hs.c clk_disable_unprepare(uphy->ref_clk); uphy 181 drivers/phy/qualcomm/phy-qcom-usb-hs.c struct qcom_usb_hs_phy *uphy = phy_get_drvdata(phy); uphy 183 drivers/phy/qualcomm/phy-qcom-usb-hs.c if (uphy->vbus_edev) uphy 184 drivers/phy/qualcomm/phy-qcom-usb-hs.c extcon_unregister_notifier(uphy->vbus_edev, EXTCON_USB, uphy 185 drivers/phy/qualcomm/phy-qcom-usb-hs.c &uphy->vbus_notify); uphy 186 drivers/phy/qualcomm/phy-qcom-usb-hs.c regulator_disable(uphy->v3p3); uphy 187 drivers/phy/qualcomm/phy-qcom-usb-hs.c regulator_disable(uphy->v1p8); uphy 188 drivers/phy/qualcomm/phy-qcom-usb-hs.c clk_disable_unprepare(uphy->sleep_clk); uphy 189 drivers/phy/qualcomm/phy-qcom-usb-hs.c clk_disable_unprepare(uphy->ref_clk); uphy 203 drivers/phy/qualcomm/phy-qcom-usb-hs.c struct qcom_usb_hs_phy *uphy; uphy 211 drivers/phy/qualcomm/phy-qcom-usb-hs.c uphy = devm_kzalloc(&ulpi->dev, sizeof(*uphy), GFP_KERNEL); uphy 212 drivers/phy/qualcomm/phy-qcom-usb-hs.c if (!uphy) uphy 214 drivers/phy/qualcomm/phy-qcom-usb-hs.c ulpi_set_drvdata(ulpi, uphy); uphy 215 drivers/phy/qualcomm/phy-qcom-usb-hs.c uphy->ulpi = ulpi; uphy 220 drivers/phy/qualcomm/phy-qcom-usb-hs.c uphy->init_seq = devm_kmalloc_array(&ulpi->dev, (size / 2) + 1, uphy 221 drivers/phy/qualcomm/phy-qcom-usb-hs.c sizeof(*uphy->init_seq), GFP_KERNEL); uphy 222 drivers/phy/qualcomm/phy-qcom-usb-hs.c if (!uphy->init_seq) uphy 225 drivers/phy/qualcomm/phy-qcom-usb-hs.c (u8 *)uphy->init_seq, size); uphy 229 drivers/phy/qualcomm/phy-qcom-usb-hs.c uphy->init_seq[size / 2].addr = uphy->init_seq[size / 2].val = 0; uphy 231 drivers/phy/qualcomm/phy-qcom-usb-hs.c uphy->ref_clk = clk = devm_clk_get(&ulpi->dev, "ref"); uphy 235 drivers/phy/qualcomm/phy-qcom-usb-hs.c uphy->sleep_clk = clk = devm_clk_get(&ulpi->dev, "sleep"); uphy 239 drivers/phy/qualcomm/phy-qcom-usb-hs.c uphy->v1p8 = reg = devm_regulator_get(&ulpi->dev, "v1p8"); uphy 243 drivers/phy/qualcomm/phy-qcom-usb-hs.c uphy->v3p3 = reg = devm_regulator_get(&ulpi->dev, "v3p3"); uphy 247 drivers/phy/qualcomm/phy-qcom-usb-hs.c uphy->reset = reset = devm_reset_control_get(&ulpi->dev, "por"); uphy 251 drivers/phy/qualcomm/phy-qcom-usb-hs.c uphy->reset = NULL; uphy 254 drivers/phy/qualcomm/phy-qcom-usb-hs.c uphy->phy = devm_phy_create(&ulpi->dev, ulpi->dev.of_node, uphy 256 drivers/phy/qualcomm/phy-qcom-usb-hs.c if (IS_ERR(uphy->phy)) uphy 257 drivers/phy/qualcomm/phy-qcom-usb-hs.c return PTR_ERR(uphy->phy); uphy 259 drivers/phy/qualcomm/phy-qcom-usb-hs.c uphy->vbus_edev = extcon_get_edev_by_phandle(&ulpi->dev, 0); uphy 260 drivers/phy/qualcomm/phy-qcom-usb-hs.c if (IS_ERR(uphy->vbus_edev)) { uphy 261 drivers/phy/qualcomm/phy-qcom-usb-hs.c if (PTR_ERR(uphy->vbus_edev) != -ENODEV) uphy 262 drivers/phy/qualcomm/phy-qcom-usb-hs.c return PTR_ERR(uphy->vbus_edev); uphy 263 drivers/phy/qualcomm/phy-qcom-usb-hs.c uphy->vbus_edev = NULL; uphy 266 drivers/phy/qualcomm/phy-qcom-usb-hs.c uphy->vbus_notify.notifier_call = qcom_usb_hs_phy_vbus_notifier; uphy 267 drivers/phy/qualcomm/phy-qcom-usb-hs.c phy_set_drvdata(uphy->phy, uphy); uphy 28 drivers/phy/qualcomm/phy-qcom-usb-hsic.c struct qcom_usb_hsic_phy *uphy = phy_get_drvdata(phy); uphy 29 drivers/phy/qualcomm/phy-qcom-usb-hsic.c struct ulpi *ulpi = uphy->ulpi; uphy 33 drivers/phy/qualcomm/phy-qcom-usb-hsic.c ret = clk_prepare_enable(uphy->phy_clk); uphy 37 drivers/phy/qualcomm/phy-qcom-usb-hsic.c ret = clk_prepare_enable(uphy->cal_clk); uphy 41 drivers/phy/qualcomm/phy-qcom-usb-hsic.c ret = clk_prepare_enable(uphy->cal_sleep_clk); uphy 56 drivers/phy/qualcomm/phy-qcom-usb-hsic.c pins_default = pinctrl_lookup_state(uphy->pctl, PINCTRL_STATE_DEFAULT); uphy 60 drivers/phy/qualcomm/phy-qcom-usb-hsic.c ret = pinctrl_select_state(uphy->pctl, pins_default); uphy 77 drivers/phy/qualcomm/phy-qcom-usb-hsic.c clk_disable_unprepare(uphy->cal_sleep_clk); uphy 79 drivers/phy/qualcomm/phy-qcom-usb-hsic.c clk_disable_unprepare(uphy->cal_clk); uphy 81 drivers/phy/qualcomm/phy-qcom-usb-hsic.c clk_disable_unprepare(uphy->phy_clk); uphy 87 drivers/phy/qualcomm/phy-qcom-usb-hsic.c struct qcom_usb_hsic_phy *uphy = phy_get_drvdata(phy); uphy 89 drivers/phy/qualcomm/phy-qcom-usb-hsic.c clk_disable_unprepare(uphy->cal_sleep_clk); uphy 90 drivers/phy/qualcomm/phy-qcom-usb-hsic.c clk_disable_unprepare(uphy->cal_clk); uphy 91 drivers/phy/qualcomm/phy-qcom-usb-hsic.c clk_disable_unprepare(uphy->phy_clk); uphy 104 drivers/phy/qualcomm/phy-qcom-usb-hsic.c struct qcom_usb_hsic_phy *uphy; uphy 108 drivers/phy/qualcomm/phy-qcom-usb-hsic.c uphy = devm_kzalloc(&ulpi->dev, sizeof(*uphy), GFP_KERNEL); uphy 109 drivers/phy/qualcomm/phy-qcom-usb-hsic.c if (!uphy) uphy 111 drivers/phy/qualcomm/phy-qcom-usb-hsic.c ulpi_set_drvdata(ulpi, uphy); uphy 113 drivers/phy/qualcomm/phy-qcom-usb-hsic.c uphy->ulpi = ulpi; uphy 114 drivers/phy/qualcomm/phy-qcom-usb-hsic.c uphy->pctl = devm_pinctrl_get(&ulpi->dev); uphy 115 drivers/phy/qualcomm/phy-qcom-usb-hsic.c if (IS_ERR(uphy->pctl)) uphy 116 drivers/phy/qualcomm/phy-qcom-usb-hsic.c return PTR_ERR(uphy->pctl); uphy 118 drivers/phy/qualcomm/phy-qcom-usb-hsic.c uphy->phy_clk = clk = devm_clk_get(&ulpi->dev, "phy"); uphy 122 drivers/phy/qualcomm/phy-qcom-usb-hsic.c uphy->cal_clk = clk = devm_clk_get(&ulpi->dev, "cal"); uphy 126 drivers/phy/qualcomm/phy-qcom-usb-hsic.c uphy->cal_sleep_clk = clk = devm_clk_get(&ulpi->dev, "cal_sleep"); uphy 130 drivers/phy/qualcomm/phy-qcom-usb-hsic.c uphy->phy = devm_phy_create(&ulpi->dev, ulpi->dev.of_node, uphy 132 drivers/phy/qualcomm/phy-qcom-usb-hsic.c if (IS_ERR(uphy->phy)) uphy 133 drivers/phy/qualcomm/phy-qcom-usb-hsic.c return PTR_ERR(uphy->phy); uphy 134 drivers/phy/qualcomm/phy-qcom-usb-hsic.c phy_set_drvdata(uphy->phy, uphy); uphy 1060 drivers/usb/dwc2/core.h struct usb_phy *uphy; uphy 526 drivers/usb/dwc2/core_intr.c if (!IS_ERR_OR_NULL(hsotg->uphy)) uphy 527 drivers/usb/dwc2/core_intr.c usb_phy_set_suspend(hsotg->uphy, true); uphy 4445 drivers/usb/dwc2/gadget.c if (!IS_ERR_OR_NULL(hsotg->uphy)) uphy 4446 drivers/usb/dwc2/gadget.c otg_set_peripheral(hsotg->uphy->otg, &hsotg->gadget); uphy 4498 drivers/usb/dwc2/gadget.c if (!IS_ERR_OR_NULL(hsotg->uphy)) uphy 4499 drivers/usb/dwc2/gadget.c otg_set_peripheral(hsotg->uphy->otg, NULL); uphy 4602 drivers/usb/dwc2/gadget.c if (IS_ERR_OR_NULL(hsotg->uphy)) uphy 4604 drivers/usb/dwc2/gadget.c return usb_phy_set_power(hsotg->uphy, mA); uphy 4365 drivers/usb/dwc2/hcd.c if (!IS_ERR_OR_NULL(hsotg->uphy)) { uphy 4367 drivers/usb/dwc2/hcd.c usb_phy_set_suspend(hsotg->uphy, true); uphy 4404 drivers/usb/dwc2/hcd.c if (!IS_ERR_OR_NULL(hsotg->uphy)) { uphy 4406 drivers/usb/dwc2/hcd.c usb_phy_set_suspend(hsotg->uphy, false); uphy 5222 drivers/usb/dwc2/hcd.c if (!IS_ERR_OR_NULL(hsotg->uphy)) uphy 5223 drivers/usb/dwc2/hcd.c otg_set_host(hsotg->uphy->otg, &hcd->self); uphy 5280 drivers/usb/dwc2/hcd.c if (!IS_ERR_OR_NULL(hsotg->uphy)) uphy 5281 drivers/usb/dwc2/hcd.c otg_set_host(hsotg->uphy->otg, NULL); uphy 140 drivers/usb/dwc2/platform.c if (hsotg->uphy) { uphy 141 drivers/usb/dwc2/platform.c ret = usb_phy_init(hsotg->uphy); uphy 174 drivers/usb/dwc2/platform.c if (hsotg->uphy) { uphy 175 drivers/usb/dwc2/platform.c usb_phy_shutdown(hsotg->uphy); uphy 254 drivers/usb/dwc2/platform.c hsotg->uphy = devm_usb_get_phy(hsotg->dev, USB_PHY_TYPE_USB2); uphy 255 drivers/usb/dwc2/platform.c if (IS_ERR(hsotg->uphy)) { uphy 256 drivers/usb/dwc2/platform.c ret = PTR_ERR(hsotg->uphy); uphy 260 drivers/usb/dwc2/platform.c hsotg->uphy = NULL;