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()
1342 struct phy_device *phy_dev = ndev->phydev; in smsc911x_phy_general_power_up() local
1345 if (!phy_dev) in smsc911x_phy_general_power_up()
1355 rc = phy_read(phy_dev, MII_BMCR); in smsc911x_phy_general_power_up()
1365 rc = phy_write(phy_dev, MII_BMCR, rc & ~BMCR_PDOWN); in smsc911x_phy_general_power_up()
1380 struct phy_device *phy_dev = ndev->phydev; in smsc911x_phy_disable_energy_detect() local
1383 if (!phy_dev) in smsc911x_phy_disable_energy_detect()
1386 rc = phy_read(phy_dev, MII_LAN83C185_CTRL_STATUS); in smsc911x_phy_disable_energy_detect()
1396 rc = phy_write(phy_dev, MII_LAN83C185_CTRL_STATUS, in smsc911x_phy_disable_energy_detect()
1413 struct phy_device *phy_dev = ndev->phydev; in smsc911x_phy_enable_energy_detect() local
1416 if (!phy_dev) in smsc911x_phy_enable_energy_detect()
1419 rc = phy_read(phy_dev, MII_LAN83C185_CTRL_STATUS); in smsc911x_phy_enable_energy_detect()
1429 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()