Lines Matching refs:phy_dev

117 	struct phy_device *phy_dev;  member
837 struct phy_device *phy_dev = pdata->phy_dev; in smsc911x_phy_loopbacktest() local
867 smsc911x_mii_write(phy_dev->bus, phy_dev->addr, MII_BMCR, in smsc911x_phy_loopbacktest()
896 smsc911x_mii_write(phy_dev->bus, phy_dev->addr, MII_BMCR, 0); in smsc911x_phy_loopbacktest()
907 struct phy_device *phy_dev = pdata->phy_dev; in smsc911x_phy_update_flowcontrol() local
912 if (phy_dev->duplex == DUPLEX_FULL) { in smsc911x_phy_update_flowcontrol()
913 u16 lcladv = phy_read(phy_dev, MII_ADVERTISE); in smsc911x_phy_update_flowcontrol()
914 u16 rmtadv = phy_read(phy_dev, MII_LPA); in smsc911x_phy_update_flowcontrol()
948 struct phy_device *phy_dev = pdata->phy_dev; in smsc911x_phy_adjust_link() local
952 if (phy_dev->duplex != pdata->last_duplex) { in smsc911x_phy_adjust_link()
958 if (phy_dev->duplex) { in smsc911x_phy_adjust_link()
971 pdata->last_duplex = phy_dev->duplex; in smsc911x_phy_adjust_link()
1043 pdata->phy_dev = phydev; in smsc911x_mii_probe()
1349 if (!pdata->phy_dev) in smsc911x_phy_general_power_up()
1359 rc = phy_read(pdata->phy_dev, MII_BMCR); in smsc911x_phy_general_power_up()
1369 rc = phy_write(pdata->phy_dev, MII_BMCR, rc & ~BMCR_PDOWN); in smsc911x_phy_general_power_up()
1385 if (!pdata->phy_dev) in smsc911x_phy_disable_energy_detect()
1388 rc = phy_read(pdata->phy_dev, MII_LAN83C185_CTRL_STATUS); in smsc911x_phy_disable_energy_detect()
1398 rc = phy_write(pdata->phy_dev, MII_LAN83C185_CTRL_STATUS, in smsc911x_phy_disable_energy_detect()
1416 if (!pdata->phy_dev) in smsc911x_phy_enable_energy_detect()
1419 rc = phy_read(pdata->phy_dev, MII_LAN83C185_CTRL_STATUS); in smsc911x_phy_enable_energy_detect()
1429 rc = phy_write(pdata->phy_dev, MII_LAN83C185_CTRL_STATUS, in smsc911x_phy_enable_energy_detect()
1526 if (!pdata->phy_dev) { in smsc911x_open()
1617 phy_start(pdata->phy_dev); in smsc911x_open()
1672 if (pdata->phy_dev) in smsc911x_stop()
1673 phy_stop(pdata->phy_dev); in smsc911x_stop()
1915 if (!netif_running(dev) || !pdata->phy_dev) in smsc911x_do_ioctl()
1918 return phy_mii_ioctl(pdata->phy_dev, ifr, cmd); in smsc911x_do_ioctl()
1928 return phy_ethtool_gset(pdata->phy_dev, cmd); in smsc911x_ethtool_getsettings()
1936 return phy_ethtool_sset(pdata->phy_dev, cmd); in smsc911x_ethtool_setsettings()
1952 return phy_start_aneg(pdata->phy_dev); in smsc911x_ethtool_nwayreset()
1978 struct phy_device *phy_dev = pdata->phy_dev; in smsc911x_ethtool_getregs() local
1995 data[j++] = smsc911x_mii_read(phy_dev->bus, phy_dev->addr, i); in smsc911x_ethtool_getregs()
2316 BUG_ON(!pdata->phy_dev); in smsc911x_drv_remove()
2320 phy_disconnect(pdata->phy_dev); in smsc911x_drv_remove()
2321 pdata->phy_dev = NULL; in smsc911x_drv_remove()