Home
last modified time | relevance | path

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

/Linux-v5.4/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 …]
/Linux-v5.4/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.c89 static int qcom_apq8064_sata_phy_init(struct phy *generic_phy) in qcom_apq8064_sata_phy_init() argument
91 struct qcom_apq8064_sata_phy *phy = phy_get_drvdata(generic_phy); in qcom_apq8064_sata_phy_init()
184 static int qcom_apq8064_sata_phy_exit(struct phy *generic_phy) in qcom_apq8064_sata_phy_exit() argument
186 struct qcom_apq8064_sata_phy *phy = phy_get_drvdata(generic_phy); in qcom_apq8064_sata_phy_exit()
211 struct phy *generic_phy; in qcom_apq8064_sata_phy_probe() local
223 generic_phy = devm_phy_create(dev, NULL, &qcom_apq8064_sata_phy_ops); in qcom_apq8064_sata_phy_probe()
224 if (IS_ERR(generic_phy)) { in qcom_apq8064_sata_phy_probe()
226 return PTR_ERR(generic_phy); in qcom_apq8064_sata_phy_probe()
230 phy_set_drvdata(generic_phy, phy); in qcom_apq8064_sata_phy_probe()
Dphy-qcom-ufs-qmp-14nm.c37 int ufs_qcom_phy_qmp_14nm_set_mode(struct phy *generic_phy, in ufs_qcom_phy_qmp_14nm_set_mode() argument
40 struct ufs_qcom_phy *phy_common = get_ufs_qcom_phy(generic_phy); in ufs_qcom_phy_qmp_14nm_set_mode()
113 struct phy *generic_phy; in ufs_qcom_phy_qmp_14nm_probe() local
125 generic_phy = ufs_qcom_phy_generic_probe(pdev, phy_common, in ufs_qcom_phy_qmp_14nm_probe()
128 if (!generic_phy) { in ufs_qcom_phy_qmp_14nm_probe()
146 phy_set_drvdata(generic_phy, phy); in ufs_qcom_phy_qmp_14nm_probe()
Dphy-qcom-ufs.c68 struct ufs_qcom_phy *get_ufs_qcom_phy(struct phy *generic_phy) in get_ufs_qcom_phy() argument
70 return (struct ufs_qcom_phy *)phy_get_drvdata(generic_phy); in get_ufs_qcom_phy()
109 struct phy *generic_phy = NULL; in ufs_qcom_phy_generic_probe() local
125 generic_phy = devm_phy_create(dev, NULL, ufs_qcom_phy_gen_ops); in ufs_qcom_phy_generic_probe()
126 if (IS_ERR(generic_phy)) { in ufs_qcom_phy_generic_probe()
127 err = PTR_ERR(generic_phy); in ufs_qcom_phy_generic_probe()
129 generic_phy = NULL; in ufs_qcom_phy_generic_probe()
137 return generic_phy; in ufs_qcom_phy_generic_probe()
492 int ufs_qcom_phy_set_tx_lane_enable(struct phy *generic_phy, u32 tx_lanes) in ufs_qcom_phy_set_tx_lane_enable() argument
494 struct ufs_qcom_phy *ufs_qcom_phy = get_ufs_qcom_phy(generic_phy); in ufs_qcom_phy_set_tx_lane_enable()
[all …]
Dphy-qcom-ufs-qmp-20nm.c56 int ufs_qcom_phy_qmp_20nm_set_mode(struct phy *generic_phy, in ufs_qcom_phy_qmp_20nm_set_mode() argument
59 struct ufs_qcom_phy *phy_common = get_ufs_qcom_phy(generic_phy); in ufs_qcom_phy_qmp_20nm_set_mode()
171 struct phy *generic_phy; in ufs_qcom_phy_qmp_20nm_probe() local
183 generic_phy = ufs_qcom_phy_generic_probe(pdev, phy_common, in ufs_qcom_phy_qmp_20nm_probe()
186 if (!generic_phy) { in ufs_qcom_phy_qmp_20nm_probe()
201 phy_set_drvdata(generic_phy, phy); in ufs_qcom_phy_qmp_20nm_probe()
Dphy-qcom-ufs-i.h116 struct ufs_qcom_phy *get_ufs_qcom_phy(struct phy *generic_phy);
117 int ufs_qcom_phy_power_on(struct phy *generic_phy);
118 int ufs_qcom_phy_power_off(struct phy *generic_phy);
121 int ufs_qcom_phy_remove(struct phy *generic_phy,
Dphy-qcom-qusb2.c794 struct phy *generic_phy; in qusb2_phy_probe() local
897 generic_phy = devm_phy_create(dev, NULL, &qusb2_phy_gen_ops); in qusb2_phy_probe()
898 if (IS_ERR(generic_phy)) { in qusb2_phy_probe()
899 ret = PTR_ERR(generic_phy); in qusb2_phy_probe()
904 qphy->phy = generic_phy; in qusb2_phy_probe()
907 phy_set_drvdata(generic_phy, qphy); in qusb2_phy_probe()
Dphy-qcom-qmp.c1865 struct phy *generic_phy; in qcom_qmp_phy_create() local
1957 generic_phy = devm_phy_create(dev, np, ops); in qcom_qmp_phy_create()
1958 if (IS_ERR(generic_phy)) { in qcom_qmp_phy_create()
1959 ret = PTR_ERR(generic_phy); in qcom_qmp_phy_create()
1964 qphy->phy = generic_phy; in qcom_qmp_phy_create()
1968 phy_set_drvdata(generic_phy, qphy); in qcom_qmp_phy_create()
/Linux-v5.4/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()
/Linux-v5.4/drivers/phy/ti/
Dphy-dm816x-usb.c188 struct phy *generic_phy; in dm816x_usb_phy_probe() local
248 generic_phy = devm_phy_create(phy->dev, NULL, &ops); in dm816x_usb_phy_probe()
249 if (IS_ERR(generic_phy)) in dm816x_usb_phy_probe()
250 return PTR_ERR(generic_phy); in dm816x_usb_phy_probe()
252 phy_set_drvdata(generic_phy, phy); in dm816x_usb_phy_probe()
Dphy-omap-usb2.c283 struct phy *generic_phy; in omap_usb2_probe() local
406 generic_phy = devm_phy_create(phy->dev, NULL, &ops); in omap_usb2_probe()
407 if (IS_ERR(generic_phy)) { in omap_usb2_probe()
409 return PTR_ERR(generic_phy); in omap_usb2_probe()
412 phy_set_drvdata(generic_phy, phy); in omap_usb2_probe()
413 omap_usb_power_off(generic_phy); in omap_usb2_probe()
Dphy-ti-pipe3.c784 struct phy *generic_phy; in ti_pipe3_probe() local
839 generic_phy = devm_phy_create(dev, NULL, &ops); in ti_pipe3_probe()
840 if (IS_ERR(generic_phy)) in ti_pipe3_probe()
841 return PTR_ERR(generic_phy); in ti_pipe3_probe()
843 phy_set_drvdata(generic_phy, phy); in ti_pipe3_probe()
845 ti_pipe3_power_off(generic_phy); in ti_pipe3_probe()
/Linux-v5.4/drivers/phy/rockchip/
Dphy-rockchip-emmc.c334 struct phy *generic_phy; in rockchip_emmc_phy_probe() local
366 generic_phy = devm_phy_create(dev, dev->of_node, &ops); in rockchip_emmc_phy_probe()
367 if (IS_ERR(generic_phy)) { in rockchip_emmc_phy_probe()
369 return PTR_ERR(generic_phy); in rockchip_emmc_phy_probe()
372 phy_set_drvdata(generic_phy, rk_phy); in rockchip_emmc_phy_probe()
/Linux-v5.4/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()
/Linux-v5.4/drivers/phy/motorola/
Dphy-cpcap-usb.c566 struct phy *generic_phy; in cpcap_usb_phy_probe() local
608 generic_phy = devm_phy_create(ddata->dev, NULL, &ops); in cpcap_usb_phy_probe()
609 if (IS_ERR(generic_phy)) { in cpcap_usb_phy_probe()
610 error = PTR_ERR(generic_phy); in cpcap_usb_phy_probe()
611 return PTR_ERR(generic_phy); in cpcap_usb_phy_probe()
614 phy_set_drvdata(generic_phy, ddata); in cpcap_usb_phy_probe()
Dphy-mapphone-mdm6600.c91 struct phy *generic_phy; member
594 ddata->generic_phy = devm_phy_create(ddata->dev, NULL, &gpio_usb_ops); in phy_mdm6600_probe()
595 if (IS_ERR(ddata->generic_phy)) { in phy_mdm6600_probe()
596 error = PTR_ERR(ddata->generic_phy); in phy_mdm6600_probe()
600 phy_set_drvdata(ddata->generic_phy, ddata); in phy_mdm6600_probe()
/Linux-v5.4/drivers/scsi/ufs/
Dufs-qcom.c252 struct phy *phy = host->generic_phy; in ufs_qcom_power_up_sequence()
532 struct phy *phy = host->generic_phy; in ufs_qcom_suspend()
554 struct phy *phy = host->generic_phy; in ufs_qcom_resume()
1120 host->generic_phy = devm_phy_get(dev, "ufsphy"); in ufs_qcom_init()
1122 if (host->generic_phy == ERR_PTR(-EPROBE_DEFER)) { in ufs_qcom_init()
1131 } else if (IS_ERR(host->generic_phy)) { in ufs_qcom_init()
1133 host->generic_phy = NULL; in ufs_qcom_init()
1135 err = PTR_ERR(host->generic_phy); in ufs_qcom_init()
1215 phy_power_off(host->generic_phy); in ufs_qcom_exit()
1216 phy_exit(host->generic_phy); in ufs_qcom_exit()
Dufs-qcom.h216 struct phy *generic_phy; member