Lines Matching refs:phy_dev
841 struct phy_device *phy_dev = dev->phydev; in smsc911x_phy_loopbacktest() local
871 smsc911x_mii_write(phy_dev->mdio.bus, phy_dev->mdio.addr, in smsc911x_phy_loopbacktest()
900 smsc911x_mii_write(phy_dev->mdio.bus, phy_dev->mdio.addr, MII_BMCR, 0); in smsc911x_phy_loopbacktest()
912 struct phy_device *phy_dev = ndev->phydev; in smsc911x_phy_update_flowcontrol() local
917 if (phy_dev->duplex == DUPLEX_FULL) { in smsc911x_phy_update_flowcontrol()
918 u16 lcladv = phy_read(phy_dev, MII_ADVERTISE); in smsc911x_phy_update_flowcontrol()
919 u16 rmtadv = phy_read(phy_dev, MII_LPA); in smsc911x_phy_update_flowcontrol()
953 struct phy_device *phy_dev = dev->phydev; in smsc911x_phy_adjust_link() local
957 if (phy_dev->duplex != pdata->last_duplex) { in smsc911x_phy_adjust_link()
963 if (phy_dev->duplex) { in smsc911x_phy_adjust_link()
976 pdata->last_duplex = phy_dev->duplex; in smsc911x_phy_adjust_link()
1344 struct phy_device *phy_dev = ndev->phydev; in smsc911x_phy_general_power_up() local
1347 if (!phy_dev) in smsc911x_phy_general_power_up()
1357 rc = phy_read(phy_dev, MII_BMCR); in smsc911x_phy_general_power_up()
1367 rc = phy_write(phy_dev, MII_BMCR, rc & ~BMCR_PDOWN); in smsc911x_phy_general_power_up()
1382 struct phy_device *phy_dev = ndev->phydev; in smsc911x_phy_disable_energy_detect() local
1385 if (!phy_dev) in smsc911x_phy_disable_energy_detect()
1388 rc = phy_read(phy_dev, MII_LAN83C185_CTRL_STATUS); in smsc911x_phy_disable_energy_detect()
1398 rc = phy_write(phy_dev, MII_LAN83C185_CTRL_STATUS, in smsc911x_phy_disable_energy_detect()
1415 struct phy_device *phy_dev = ndev->phydev; in smsc911x_phy_enable_energy_detect() local
1418 if (!phy_dev) in smsc911x_phy_enable_energy_detect()
1421 rc = phy_read(phy_dev, MII_LAN83C185_CTRL_STATUS); in smsc911x_phy_enable_energy_detect()
1431 rc = phy_write(phy_dev, MII_LAN83C185_CTRL_STATUS, in smsc911x_phy_enable_energy_detect()
1987 struct phy_device *phy_dev = dev->phydev; in smsc911x_ethtool_getregs() local
2004 data[j++] = smsc911x_mii_read(phy_dev->mdio.bus, in smsc911x_ethtool_getregs()
2005 phy_dev->mdio.addr, i); in smsc911x_ethtool_getregs()