Lines Matching defs:phy
10 #include <linux/phy/phy.h>
299 static int qcom_dwmac_sgmii_phy_calibrate(struct phy *phy)
301 struct qcom_dwmac_sgmii_phy_data *data = phy_get_drvdata(phy);
302 struct device *dev = phy->dev.parent;
346 static int qcom_dwmac_sgmii_phy_power_on(struct phy *phy)
348 struct qcom_dwmac_sgmii_phy_data *data = phy_get_drvdata(phy);
353 static int qcom_dwmac_sgmii_phy_power_off(struct phy *phy)
355 struct qcom_dwmac_sgmii_phy_data *data = phy_get_drvdata(phy);
368 static int qcom_dwmac_sgmii_phy_set_speed(struct phy *phy, int speed)
370 struct qcom_dwmac_sgmii_phy_data *data = phy_get_drvdata(phy);
375 return qcom_dwmac_sgmii_phy_calibrate(phy);
400 struct phy *phy;
417 phy = devm_phy_create(dev, NULL, &qcom_dwmac_sgmii_phy_ops);
418 if (IS_ERR(phy))
419 return PTR_ERR(phy);
429 phy_set_drvdata(phy, data);
435 { .compatible = "qcom,sa8775p-dwmac-sgmii-phy" },
443 .name = "qcom-dwmac-sgmii-phy",