Lines Matching defs:phy
7 #include <linux/phy.h>
8 #include <linux/phy/phy.h>
11 #include <dt-bindings/phy/phy-lan966x-serdes.h>
128 struct phy *phys[SERDES_MAX];
444 static int serdes_set_speed(struct phy *phy, int speed)
446 struct serdes_macro *macro = phy_get_drvdata(phy);
457 static int serdes_set_mode(struct phy *phy, enum phy_mode mode, int submode)
459 struct serdes_macro *macro = phy_get_drvdata(phy);
518 static struct phy *serdes_simple_xlate(struct device *dev,
543 static int serdes_phy_create(struct serdes_ctrl *ctrl, u8 idx, struct phy **phy)
547 *phy = devm_phy_create(ctrl->dev, NULL, &serdes_ops);
548 if (IS_ERR(*phy))
549 return PTR_ERR(*phy);
559 phy_set_drvdata(*phy, macro);