Lines Matching defs:phy
14 #include <linux/phy.h>
15 #include <linux/phy/phy.h>
19 #include <dt-bindings/phy/phy-ocelot-serdes.h>
24 struct phy *phys[SERDES_MAX];
398 static int serdes_set_mode(struct phy *phy, enum phy_mode mode, int submode)
400 struct serdes_macro *macro = phy_get_drvdata(phy);
443 static struct phy *serdes_simple_xlate(struct device *dev,
472 static int serdes_phy_create(struct serdes_ctrl *ctrl, u8 idx, struct phy **phy)
476 *phy = devm_phy_create(ctrl->dev, NULL, &serdes_ops);
477 if (IS_ERR(*phy))
478 return PTR_ERR(*phy);
488 phy_set_drvdata(*phy, macro);