Lines Matching defs:phy
17 #include <linux/phy/phy.h>
20 #include <dt-bindings/phy/phy.h>
48 struct phy *phy;
105 static int histb_combphy_init(struct phy *phy)
107 struct histb_combphy_priv *priv = phy_get_drvdata(phy);
134 /* Configure nano phy registers as suggested by vendor */
142 static int histb_combphy_exit(struct phy *phy)
144 struct histb_combphy_priv *priv = phy_get_drvdata(phy);
164 static struct phy *histb_combphy_xlate(struct device *dev,
178 dev_err(dev, "invalid phy mode select argument\n");
183 dev_err(dev, "mode select %d mismatch fixed phy mode %d\n",
188 return priv->phy;
222 dev_dbg(dev, "found fixed phy mode %d\n", mode->fixed);
228 dev_err(dev, "found select bits for fixed mode phy\n");
238 dev_err(dev, "no valid select bits found for non-fixed phy\n");
255 priv->phy = devm_phy_create(dev, NULL, &histb_combphy_ops);
256 if (IS_ERR(priv->phy)) {
258 return PTR_ERR(priv->phy);
262 phy_set_drvdata(priv->phy, priv);