Lines Matching defs:phydev
47 static int et1011c_config_aneg(struct phy_device *phydev)
50 ctl = phy_read(phydev, MII_BMCR);
56 phy_write(phydev, MII_BMCR, ctl | BMCR_RESET);
58 return genphy_config_aneg(phydev);
61 static int et1011c_read_status(struct phy_device *phydev)
66 ret = genphy_read_status(phydev);
68 if (speed != phydev->speed) {
69 speed = phydev->speed;
70 val = phy_read(phydev, ET1011C_STATUS_REG);
73 val = phy_read(phydev, ET1011C_CONFIG_REG);
75 phy_write(phydev, ET1011C_CONFIG_REG, val\