Lines Matching refs:phy_dev
49 struct phy_device *phy_dev = ndev->phydev; in arc_emac_adjust_link() local
52 if (priv->link != phy_dev->link) { in arc_emac_adjust_link()
53 priv->link = phy_dev->link; in arc_emac_adjust_link()
57 if (priv->speed != phy_dev->speed) { in arc_emac_adjust_link()
58 priv->speed = phy_dev->speed; in arc_emac_adjust_link()
64 if (priv->duplex != phy_dev->duplex) { in arc_emac_adjust_link()
67 if (phy_dev->duplex == DUPLEX_FULL) in arc_emac_adjust_link()
73 priv->duplex = phy_dev->duplex; in arc_emac_adjust_link()
78 phy_print_status(phy_dev); in arc_emac_adjust_link()
427 struct phy_device *phy_dev = ndev->phydev; in arc_emac_open() local
431 phy_dev->autoneg = AUTONEG_ENABLE; in arc_emac_open()
432 phy_dev->speed = 0; in arc_emac_open()
433 phy_dev->duplex = 0; in arc_emac_open()
434 linkmode_and(phy_dev->advertising, phy_dev->advertising, in arc_emac_open()
435 phy_dev->supported); in arc_emac_open()