Lines Matching defs:phydev
47 static int et1011c_config_aneg(struct phy_device *phydev)
49 int 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)
67 ret = genphy_read_status(phydev);
69 if (speed != phydev->speed) {
70 speed = phydev->speed;
71 val = phy_read(phydev, ET1011C_STATUS_REG);
74 val = phy_read(phydev, ET1011C_CONFIG_REG);
76 phy_write(phydev, ET1011C_CONFIG_REG, val |