Lines Matching refs:phydev
32 struct phy_device *phydev; member
59 if (!net->phydev) in ax88172a_ioctl()
62 return phy_mii_ioctl(net->phydev, rq, cmd); in ax88172a_ioctl()
68 struct phy_device *phydev = netdev->phydev; in ax88172a_adjust_link() local
73 if (phydev->link) { in ax88172a_adjust_link()
76 if (phydev->duplex == DUPLEX_HALF) in ax88172a_adjust_link()
79 if (phydev->speed != SPEED_100) in ax88172a_adjust_link()
87 phydev->speed, phydev->duplex, mode); in ax88172a_adjust_link()
88 phy_print_status(phydev); in ax88172a_adjust_link()
166 if (!net->phydev) in ax88172a_get_settings()
169 return phy_ethtool_gset(net->phydev, cmd); in ax88172a_get_settings()
175 if (!net->phydev) in ax88172a_set_settings()
178 return phy_ethtool_sset(net->phydev, cmd); in ax88172a_set_settings()
183 if (!net->phydev) in ax88172a_nway_reset()
186 return phy_start_aneg(net->phydev); in ax88172a_nway_reset()
307 if (priv->phydev) { in ax88172a_stop()
310 phy_stop(priv->phydev); in ax88172a_stop()
311 phy_disconnect(priv->phydev); in ax88172a_stop()
378 priv->phydev = phy_connect(dev->net, priv->phy_name, in ax88172a_reset()
381 if (IS_ERR(priv->phydev)) { in ax88172a_reset()
384 ret = PTR_ERR(priv->phydev); in ax88172a_reset()
393 genphy_resume(priv->phydev); in ax88172a_reset()
394 phy_start(priv->phydev); in ax88172a_reset()