Lines Matching defs:phy
11 #include <linux/phy/phy.h>
12 #include <linux/phy.h>
112 static int a38x_comphy_set_mode(struct phy *phy, enum phy_mode mode, int sub)
114 struct a38x_comphy_lane *lane = phy_get_drvdata(phy);
156 static struct phy *a38x_comphy_xlate(struct device *dev,
160 struct phy *phy;
166 phy = of_phy_simple_xlate(dev, args);
167 if (IS_ERR(phy))
168 return phy;
170 lane = phy_get_drvdata(phy);
183 phy = ERR_PTR(-EINVAL);
186 return phy;
217 struct phy *phy;
233 phy = devm_phy_create(&pdev->dev, child, &a38x_comphy_ops);
234 if (IS_ERR(phy)) {
236 return PTR_ERR(phy);
243 phy_set_drvdata(phy, &priv->lane[val]);