Lines Matching refs:phydev

814 	struct phy_device *phydev = lp->phy_dev;  in dwceqos_ioctl()  local
819 if (!phydev) in dwceqos_ioctl()
826 return phy_mii_ioctl(phydev, rq, cmd); in dwceqos_ioctl()
874 struct phy_device *phydev = lp->phy_dev; in dwceqos_set_speed() local
881 if (phydev->duplex) in dwceqos_set_speed()
883 if (phydev->speed == SPEED_10) { in dwceqos_set_speed()
885 } else if (phydev->speed == SPEED_100) { in dwceqos_set_speed()
888 } else if (phydev->speed != SPEED_1000) { in dwceqos_set_speed()
891 phydev->speed); in dwceqos_set_speed()
901 struct phy_device *phydev = lp->phy_dev; in dwceqos_adjust_link() local
904 if (phydev->link) { in dwceqos_adjust_link()
905 if ((lp->speed != phydev->speed) || in dwceqos_adjust_link()
906 (lp->duplex != phydev->duplex)) { in dwceqos_adjust_link()
909 lp->speed = phydev->speed; in dwceqos_adjust_link()
910 lp->duplex = phydev->duplex; in dwceqos_adjust_link()
915 lp->flowcontrol.rx = phydev->pause || in dwceqos_adjust_link()
916 phydev->asym_pause; in dwceqos_adjust_link()
917 lp->flowcontrol.tx = phydev->pause || in dwceqos_adjust_link()
918 phydev->asym_pause; in dwceqos_adjust_link()
937 if (phydev->link != lp->link) { in dwceqos_adjust_link()
938 lp->link = phydev->link; in dwceqos_adjust_link()
943 if (phydev->link) { in dwceqos_adjust_link()
949 phy_print_status(phydev); in dwceqos_adjust_link()
956 struct phy_device *phydev = NULL; in dwceqos_mii_probe() local
959 phydev = of_phy_connect(lp->ndev, in dwceqos_mii_probe()
965 if (!phydev) { in dwceqos_mii_probe()
977 phydev, phydev->phy_id, phydev->addr); in dwceqos_mii_probe()
979 phydev->supported &= PHY_GBIT_FEATURES; in dwceqos_mii_probe()
984 lp->phy_dev = phydev; in dwceqos_mii_probe()
2533 struct phy_device *phydev = lp->phy_dev; in dwceqos_get_settings() local
2535 if (!phydev) in dwceqos_get_settings()
2538 return phy_ethtool_gset(phydev, ecmd); in dwceqos_get_settings()
2545 struct phy_device *phydev = lp->phy_dev; in dwceqos_set_settings() local
2547 if (!phydev) in dwceqos_set_settings()
2550 return phy_ethtool_sset(phydev, ecmd); in dwceqos_set_settings()