Lines Matching defs:phy
9 * Structure inspired from phy-mvebu-cp110-comphy.c written by Antoine Tenart.
18 #include <linux/phy.h>
19 #include <linux/phy/phy.h>
153 static int mvebu_a3700_comphy_set_mode(struct phy *phy, enum phy_mode mode,
156 struct mvebu_a3700_comphy_lane *lane = phy_get_drvdata(phy);
176 static int mvebu_a3700_comphy_power_on(struct phy *phy)
178 struct mvebu_a3700_comphy_lane *lane = phy_get_drvdata(phy);
223 phy->attrs.bus_width);
238 static int mvebu_a3700_comphy_power_off(struct phy *phy)
240 struct mvebu_a3700_comphy_lane *lane = phy_get_drvdata(phy);
252 static struct phy *mvebu_a3700_comphy_xlate(struct device *dev,
256 struct phy *phy;
261 phy = of_phy_simple_xlate(dev, args);
262 if (IS_ERR(phy))
263 return phy;
265 lane = phy_get_drvdata(phy);
268 return phy;
278 struct phy *phy;
300 phy = devm_phy_create(&pdev->dev, child,
302 if (IS_ERR(phy)) {
304 return PTR_ERR(phy);
312 phy_set_drvdata(phy, lane);