Lines Matching defs:phydev
52 static int et1011c_config_aneg(struct phy_device *phydev)
55 ctl = phy_read(phydev, MII_BMCR);
61 phy_write(phydev, MII_BMCR, ctl | BMCR_RESET);
63 return genphy_config_aneg(phydev);
66 static int et1011c_read_status(struct phy_device *phydev)
71 ret = genphy_read_status(phydev);
73 if (speed != phydev->speed) {
74 speed = phydev->speed;
75 val = phy_read(phydev, ET1011C_STATUS_REG);
78 val = phy_read(phydev, ET1011C_CONFIG_REG);
80 phy_write(phydev, ET1011C_CONFIG_REG, val\