Lines Matching refs:phy_dev
838 struct phy_device *phy_dev = dev->phydev; in smsc911x_phy_loopbacktest() local
868 smsc911x_mii_write(phy_dev->mdio.bus, phy_dev->mdio.addr, in smsc911x_phy_loopbacktest()
897 smsc911x_mii_write(phy_dev->mdio.bus, phy_dev->mdio.addr, MII_BMCR, 0); in smsc911x_phy_loopbacktest()
909 struct phy_device *phy_dev = ndev->phydev; in smsc911x_phy_update_flowcontrol() local
914 if (phy_dev->duplex == DUPLEX_FULL) { in smsc911x_phy_update_flowcontrol()
915 u16 lcladv = phy_read(phy_dev, MII_ADVERTISE); in smsc911x_phy_update_flowcontrol()
916 u16 rmtadv = phy_read(phy_dev, MII_LPA); in smsc911x_phy_update_flowcontrol()
950 struct phy_device *phy_dev = dev->phydev; in smsc911x_phy_adjust_link() local
954 if (phy_dev->duplex != pdata->last_duplex) { in smsc911x_phy_adjust_link()
960 if (phy_dev->duplex) { in smsc911x_phy_adjust_link()
973 pdata->last_duplex = phy_dev->duplex; in smsc911x_phy_adjust_link()
1336 struct phy_device *phy_dev = ndev->phydev; in smsc911x_phy_general_power_up() local
1339 if (!phy_dev) in smsc911x_phy_general_power_up()
1349 rc = phy_read(phy_dev, MII_BMCR); in smsc911x_phy_general_power_up()
1359 rc = phy_write(phy_dev, MII_BMCR, rc & ~BMCR_PDOWN); in smsc911x_phy_general_power_up()
1374 struct phy_device *phy_dev = ndev->phydev; in smsc911x_phy_disable_energy_detect() local
1377 if (!phy_dev) in smsc911x_phy_disable_energy_detect()
1380 rc = phy_read(phy_dev, MII_LAN83C185_CTRL_STATUS); in smsc911x_phy_disable_energy_detect()
1390 rc = phy_write(phy_dev, MII_LAN83C185_CTRL_STATUS, in smsc911x_phy_disable_energy_detect()
1407 struct phy_device *phy_dev = ndev->phydev; in smsc911x_phy_enable_energy_detect() local
1410 if (!phy_dev) in smsc911x_phy_enable_energy_detect()
1413 rc = phy_read(phy_dev, MII_LAN83C185_CTRL_STATUS); in smsc911x_phy_enable_energy_detect()
1423 rc = phy_write(phy_dev, MII_LAN83C185_CTRL_STATUS, in smsc911x_phy_enable_energy_detect()
1977 struct phy_device *phy_dev = dev->phydev; in smsc911x_ethtool_getregs() local
1994 data[j++] = smsc911x_mii_read(phy_dev->mdio.bus, in smsc911x_ethtool_getregs()
1995 phy_dev->mdio.addr, i); in smsc911x_ethtool_getregs()