Lines Matching defs:phydev
23 * @phydev: target phy_device struct
32 static int asix_soft_reset(struct phy_device *phydev)
37 ret = phy_write(phydev, MII_BMCR, 0);
41 return genphy_soft_reset(phydev);
48 static int asix_ax88772a_read_status(struct phy_device *phydev)
52 ret = genphy_update_link(phydev);
56 if (!phydev->link)
62 val = phy_read(phydev, MII_BMCR);
67 phydev->speed = SPEED_100;
69 phydev->speed = SPEED_10;
72 phydev->duplex = DUPLEX_FULL;
74 phydev->duplex = DUPLEX_HALF;
76 ret = genphy_read_lpa(phydev);
80 if (phydev->autoneg == AUTONEG_ENABLE && phydev->autoneg_complete)
81 phy_resolve_aneg_linkmode(phydev);
86 static void asix_ax88772a_link_change_notify(struct phy_device *phydev)
91 if (phydev->state == PHY_NOLINK) {
92 phy_init_hw(phydev);
93 phy_start_aneg(phydev);