Lines Matching refs:phy_dev
842 struct phy_device *phy_dev = dev->phydev; in smsc911x_phy_loopbacktest() local
872 smsc911x_mii_write(phy_dev->mdio.bus, phy_dev->mdio.addr, in smsc911x_phy_loopbacktest()
901 smsc911x_mii_write(phy_dev->mdio.bus, phy_dev->mdio.addr, MII_BMCR, 0); in smsc911x_phy_loopbacktest()
913 struct phy_device *phy_dev = ndev->phydev; in smsc911x_phy_update_flowcontrol() local
918 if (phy_dev->duplex == DUPLEX_FULL) { in smsc911x_phy_update_flowcontrol()
919 u16 lcladv = phy_read(phy_dev, MII_ADVERTISE); in smsc911x_phy_update_flowcontrol()
920 u16 rmtadv = phy_read(phy_dev, MII_LPA); in smsc911x_phy_update_flowcontrol()
954 struct phy_device *phy_dev = dev->phydev; in smsc911x_phy_adjust_link() local
958 if (phy_dev->duplex != pdata->last_duplex) { in smsc911x_phy_adjust_link()
964 if (phy_dev->duplex) { in smsc911x_phy_adjust_link()
977 pdata->last_duplex = phy_dev->duplex; in smsc911x_phy_adjust_link()
1340 struct phy_device *phy_dev = ndev->phydev; in smsc911x_phy_general_power_up() local
1343 if (!phy_dev) in smsc911x_phy_general_power_up()
1353 rc = phy_read(phy_dev, MII_BMCR); in smsc911x_phy_general_power_up()
1363 rc = phy_write(phy_dev, MII_BMCR, rc & ~BMCR_PDOWN); in smsc911x_phy_general_power_up()
1378 struct phy_device *phy_dev = ndev->phydev; in smsc911x_phy_disable_energy_detect() local
1381 if (!phy_dev) in smsc911x_phy_disable_energy_detect()
1384 rc = phy_read(phy_dev, MII_LAN83C185_CTRL_STATUS); in smsc911x_phy_disable_energy_detect()
1394 rc = phy_write(phy_dev, MII_LAN83C185_CTRL_STATUS, in smsc911x_phy_disable_energy_detect()
1411 struct phy_device *phy_dev = ndev->phydev; in smsc911x_phy_enable_energy_detect() local
1414 if (!phy_dev) in smsc911x_phy_enable_energy_detect()
1417 rc = phy_read(phy_dev, MII_LAN83C185_CTRL_STATUS); in smsc911x_phy_enable_energy_detect()
1427 rc = phy_write(phy_dev, MII_LAN83C185_CTRL_STATUS, in smsc911x_phy_enable_energy_detect()
1985 struct phy_device *phy_dev = dev->phydev; in smsc911x_ethtool_getregs() local
2002 data[j++] = smsc911x_mii_read(phy_dev->mdio.bus, in smsc911x_ethtool_getregs()
2003 phy_dev->mdio.addr, i); in smsc911x_ethtool_getregs()