Home
last modified time | relevance | path

Searched refs:generic_phy (Results 1 – 21 of 21) sorted by relevance

/drivers/phy/mediatek/
Dphy-mtk-ufs.c69 static struct ufs_mtk_phy *get_ufs_mtk_phy(struct phy *generic_phy) in get_ufs_mtk_phy() argument
71 return (struct ufs_mtk_phy *)phy_get_drvdata(generic_phy); in get_ufs_mtk_phy()
148 static int ufs_mtk_phy_power_on(struct phy *generic_phy) in ufs_mtk_phy_power_on() argument
150 struct ufs_mtk_phy *phy = get_ufs_mtk_phy(generic_phy); in ufs_mtk_phy_power_on()
175 static int ufs_mtk_phy_power_off(struct phy *generic_phy) in ufs_mtk_phy_power_off() argument
177 struct ufs_mtk_phy *phy = get_ufs_mtk_phy(generic_phy); in ufs_mtk_phy_power_off()
196 struct phy *generic_phy; in ufs_mtk_phy_probe() local
217 generic_phy = devm_phy_create(dev, NULL, &ufs_mtk_phy_ops); in ufs_mtk_phy_probe()
218 if (IS_ERR(generic_phy)) in ufs_mtk_phy_probe()
219 return PTR_ERR(generic_phy); in ufs_mtk_phy_probe()
[all …]
/drivers/phy/qualcomm/
Dphy-qcom-ipq806x-sata.c53 static int qcom_ipq806x_sata_phy_init(struct phy *generic_phy) in qcom_ipq806x_sata_phy_init() argument
55 struct qcom_ipq806x_sata_phy *phy = phy_get_drvdata(generic_phy); in qcom_ipq806x_sata_phy_init()
108 static int qcom_ipq806x_sata_phy_exit(struct phy *generic_phy) in qcom_ipq806x_sata_phy_exit() argument
110 struct qcom_ipq806x_sata_phy *phy = phy_get_drvdata(generic_phy); in qcom_ipq806x_sata_phy_exit()
133 struct phy *generic_phy; in qcom_ipq806x_sata_phy_probe() local
145 generic_phy = devm_phy_create(dev, NULL, &qcom_ipq806x_sata_phy_ops); in qcom_ipq806x_sata_phy_probe()
146 if (IS_ERR(generic_phy)) { in qcom_ipq806x_sata_phy_probe()
148 return PTR_ERR(generic_phy); in qcom_ipq806x_sata_phy_probe()
152 phy_set_drvdata(generic_phy, phy); in qcom_ipq806x_sata_phy_probe()
Dphy-qcom-apq8064-sata.c84 static int qcom_apq8064_sata_phy_init(struct phy *generic_phy) in qcom_apq8064_sata_phy_init() argument
86 struct qcom_apq8064_sata_phy *phy = phy_get_drvdata(generic_phy); in qcom_apq8064_sata_phy_init()
179 static int qcom_apq8064_sata_phy_exit(struct phy *generic_phy) in qcom_apq8064_sata_phy_exit() argument
181 struct qcom_apq8064_sata_phy *phy = phy_get_drvdata(generic_phy); in qcom_apq8064_sata_phy_exit()
206 struct phy *generic_phy; in qcom_apq8064_sata_phy_probe() local
218 generic_phy = devm_phy_create(dev, NULL, &qcom_apq8064_sata_phy_ops); in qcom_apq8064_sata_phy_probe()
219 if (IS_ERR(generic_phy)) { in qcom_apq8064_sata_phy_probe()
221 return PTR_ERR(generic_phy); in qcom_apq8064_sata_phy_probe()
225 phy_set_drvdata(generic_phy, phy); in qcom_apq8064_sata_phy_probe()
Dphy-qcom-snps-femto-v2.c315 struct phy *generic_phy; in qcom_snps_hsphy_probe() local
356 generic_phy = devm_phy_create(dev, NULL, &qcom_snps_hsphy_gen_ops); in qcom_snps_hsphy_probe()
357 if (IS_ERR(generic_phy)) { in qcom_snps_hsphy_probe()
358 ret = PTR_ERR(generic_phy); in qcom_snps_hsphy_probe()
362 hsphy->phy = generic_phy; in qcom_snps_hsphy_probe()
365 phy_set_drvdata(generic_phy, hsphy); in qcom_snps_hsphy_probe()
Dphy-qcom-ipq806x-usb.c489 struct phy *generic_phy; in qcom_ipq806x_usb_phy_probe() local
539 generic_phy = devm_phy_create(phy_dwc3->dev, pdev->dev.of_node, &data->ops); in qcom_ipq806x_usb_phy_probe()
541 if (IS_ERR(generic_phy)) in qcom_ipq806x_usb_phy_probe()
542 return PTR_ERR(generic_phy); in qcom_ipq806x_usb_phy_probe()
544 phy_set_drvdata(generic_phy, phy_dwc3); in qcom_ipq806x_usb_phy_probe()
Dphy-qcom-qusb2.c850 struct phy *generic_phy; in qusb2_phy_probe() local
973 generic_phy = devm_phy_create(dev, NULL, &qusb2_phy_gen_ops); in qusb2_phy_probe()
974 if (IS_ERR(generic_phy)) { in qusb2_phy_probe()
975 ret = PTR_ERR(generic_phy); in qusb2_phy_probe()
980 qphy->phy = generic_phy; in qusb2_phy_probe()
983 phy_set_drvdata(generic_phy, qphy); in qusb2_phy_probe()
Dphy-qcom-qmp.c3730 struct phy *generic_phy; in qcom_qmp_phy_create() local
3832 generic_phy = devm_phy_create(dev, np, ops); in qcom_qmp_phy_create()
3833 if (IS_ERR(generic_phy)) { in qcom_qmp_phy_create()
3834 ret = PTR_ERR(generic_phy); in qcom_qmp_phy_create()
3839 qphy->phy = generic_phy; in qcom_qmp_phy_create()
3843 phy_set_drvdata(generic_phy, qphy); in qcom_qmp_phy_create()
/drivers/phy/tegra/
Dphy-tegra194-p2u.c73 struct phy *generic_phy; in tegra_p2u_probe() local
88 generic_phy = devm_phy_create(dev, NULL, &ops); in tegra_p2u_probe()
89 if (IS_ERR(generic_phy)) in tegra_p2u_probe()
90 return PTR_ERR(generic_phy); in tegra_p2u_probe()
92 phy_set_drvdata(generic_phy, phy); in tegra_p2u_probe()
/drivers/phy/intel/
Dphy-intel-keembay-emmc.c264 struct phy *generic_phy; in keembay_emmc_phy_probe() local
280 generic_phy = devm_phy_create(dev, np, &ops); in keembay_emmc_phy_probe()
281 if (IS_ERR(generic_phy)) in keembay_emmc_phy_probe()
282 return dev_err_probe(dev, PTR_ERR(generic_phy), in keembay_emmc_phy_probe()
285 phy_set_drvdata(generic_phy, priv); in keembay_emmc_phy_probe()
Dphy-intel-lgm-emmc.c239 struct phy *generic_phy; in intel_emmc_phy_probe() local
253 generic_phy = devm_phy_create(dev, np, &ops); in intel_emmc_phy_probe()
254 if (IS_ERR(generic_phy)) { in intel_emmc_phy_probe()
256 return PTR_ERR(generic_phy); in intel_emmc_phy_probe()
259 phy_set_drvdata(generic_phy, priv); in intel_emmc_phy_probe()
/drivers/phy/ti/
Dphy-dm816x-usb.c187 struct phy *generic_phy; in dm816x_usb_phy_probe() local
244 generic_phy = devm_phy_create(phy->dev, NULL, &ops); in dm816x_usb_phy_probe()
245 if (IS_ERR(generic_phy)) { in dm816x_usb_phy_probe()
246 error = PTR_ERR(generic_phy); in dm816x_usb_phy_probe()
250 phy_set_drvdata(generic_phy, phy); in dm816x_usb_phy_probe()
Dphy-omap-usb2.c368 struct phy *generic_phy; in omap_usb2_probe() local
490 generic_phy = devm_phy_create(phy->dev, NULL, &ops); in omap_usb2_probe()
491 if (IS_ERR(generic_phy)) { in omap_usb2_probe()
493 return PTR_ERR(generic_phy); in omap_usb2_probe()
496 phy_set_drvdata(generic_phy, phy); in omap_usb2_probe()
497 omap_usb_power_off(generic_phy); in omap_usb2_probe()
Dphy-ti-pipe3.c783 struct phy *generic_phy; in ti_pipe3_probe() local
838 generic_phy = devm_phy_create(dev, NULL, &ops); in ti_pipe3_probe()
839 if (IS_ERR(generic_phy)) in ti_pipe3_probe()
840 return PTR_ERR(generic_phy); in ti_pipe3_probe()
842 phy_set_drvdata(generic_phy, phy); in ti_pipe3_probe()
844 ti_pipe3_power_off(generic_phy); in ti_pipe3_probe()
/drivers/phy/rockchip/
Dphy-rockchip-emmc.c336 struct phy *generic_phy; in rockchip_emmc_phy_probe() local
368 generic_phy = devm_phy_create(dev, dev->of_node, &ops); in rockchip_emmc_phy_probe()
369 if (IS_ERR(generic_phy)) { in rockchip_emmc_phy_probe()
371 return PTR_ERR(generic_phy); in rockchip_emmc_phy_probe()
374 phy_set_drvdata(generic_phy, rk_phy); in rockchip_emmc_phy_probe()
/drivers/phy/samsung/
Dphy-exynos-pcie.c233 struct phy *generic_phy; in exynos_pcie_phy_probe() local
258 generic_phy = devm_phy_create(dev, dev->of_node, drv_data->ops); in exynos_pcie_phy_probe()
259 if (IS_ERR(generic_phy)) { in exynos_pcie_phy_probe()
261 return PTR_ERR(generic_phy); in exynos_pcie_phy_probe()
264 phy_set_drvdata(generic_phy, exynos_phy); in exynos_pcie_phy_probe()
Dphy-samsung-ufs.c243 static int samsung_ufs_phy_set_mode(struct phy *generic_phy, in samsung_ufs_phy_set_mode() argument
246 struct samsung_ufs_phy *ss_phy = get_samsung_ufs_phy(generic_phy); in samsung_ufs_phy_set_mode()
/drivers/phy/motorola/
Dphy-mapphone-mdm6600.c92 struct phy *generic_phy; member
606 ddata->generic_phy = devm_phy_create(ddata->dev, NULL, &gpio_usb_ops); in phy_mdm6600_probe()
607 if (IS_ERR(ddata->generic_phy)) { in phy_mdm6600_probe()
608 error = PTR_ERR(ddata->generic_phy); in phy_mdm6600_probe()
612 phy_set_drvdata(ddata->generic_phy, ddata); in phy_mdm6600_probe()
Dphy-cpcap-usb.c620 struct phy *generic_phy; in cpcap_usb_phy_probe() local
662 generic_phy = devm_phy_create(ddata->dev, NULL, &ops); in cpcap_usb_phy_probe()
663 if (IS_ERR(generic_phy)) { in cpcap_usb_phy_probe()
664 error = PTR_ERR(generic_phy); in cpcap_usb_phy_probe()
668 phy_set_drvdata(generic_phy, ddata); in cpcap_usb_phy_probe()
/drivers/scsi/ufs/
Dufs-qcom.c300 struct phy *phy = host->generic_phy; in ufs_qcom_power_up_sequence()
595 struct phy *phy = host->generic_phy; in ufs_qcom_suspend()
619 struct phy *phy = host->generic_phy; in ufs_qcom_resume()
1042 host->generic_phy = devm_phy_get(dev, "ufsphy"); in ufs_qcom_init()
1044 if (host->generic_phy == ERR_PTR(-EPROBE_DEFER)) { in ufs_qcom_init()
1053 } else if (IS_ERR(host->generic_phy)) { in ufs_qcom_init()
1055 host->generic_phy = NULL; in ufs_qcom_init()
1057 err = PTR_ERR(host->generic_phy); in ufs_qcom_init()
1138 phy_power_off(host->generic_phy); in ufs_qcom_exit()
1139 phy_exit(host->generic_phy); in ufs_qcom_exit()
Dufs-exynos.c610 struct phy *generic_phy = ufs->phy; in exynos_ufs_pre_pwr_mode() local
651 phy_calibrate(generic_phy); in exynos_ufs_pre_pwr_mode()
672 struct phy *generic_phy = ufs->phy; in exynos_ufs_post_pwr_mode() local
691 phy_calibrate(generic_phy); in exynos_ufs_post_pwr_mode()
747 struct phy *generic_phy = ufs->phy; in exynos_ufs_phy_init() local
760 phy_set_bus_width(generic_phy, ufs->avail_ln_rx); in exynos_ufs_phy_init()
761 ret = phy_init(generic_phy); in exynos_ufs_phy_init()
771 phy_exit(generic_phy); in exynos_ufs_phy_init()
844 struct phy *generic_phy = ufs->phy; in exynos_ufs_post_link() local
898 phy_calibrate(generic_phy); in exynos_ufs_post_link()
Dufs-qcom.h207 struct phy *generic_phy; member