Lines Matching defs:phy
11 #include <linux/phy/phy.h>
16 #include <dt-bindings/phy/phy.h>
50 static int qcom_pcie2_phy_init(struct phy *phy)
52 struct qcom_phy *qphy = phy_get_drvdata(phy);
68 static int qcom_pcie2_phy_power_on(struct phy *phy)
70 struct qcom_phy *qphy = phy_get_drvdata(phy);
166 dev_err(qphy->dev, "phy initialization failed\n");
172 static int qcom_pcie2_phy_power_off(struct phy *phy)
174 struct qcom_phy *qphy = phy_get_drvdata(phy);
187 static int qcom_pcie2_phy_exit(struct phy *phy)
189 struct qcom_phy *qphy = phy_get_drvdata(phy);
255 struct phy *phy;
287 qphy->phy_reset = devm_reset_control_get_exclusive(dev, "phy");
289 dev_err(dev, "failed to acquire phy reset\n");
299 phy = devm_phy_create(dev, dev->of_node, &qcom_pcie2_ops);
300 if (IS_ERR(phy)) {
301 dev_err(dev, "failed to create phy\n");
302 return PTR_ERR(phy);
305 phy_set_drvdata(phy, qphy);
309 dev_err(dev, "failed to register phy provider\n");
315 { .compatible = "qcom,pcie2-phy" },
323 .name = "phy-qcom-pcie2",