Lines Matching refs:phydev
1586 struct phy_device *phydev = ugeth->phydev; in adjust_link() local
1592 if (phydev->link) { in adjust_link()
1597 if (phydev->duplex != ugeth->oldduplex) { in adjust_link()
1599 if (!(phydev->duplex)) in adjust_link()
1603 ugeth->oldduplex = phydev->duplex; in adjust_link()
1606 if (phydev->speed != ugeth->oldspeed) { in adjust_link()
1608 switch (phydev->speed) { in adjust_link()
1626 if (phydev->speed == SPEED_10) in adjust_link()
1636 dev->name, phydev->speed); in adjust_link()
1639 ugeth->oldspeed = phydev->speed; in adjust_link()
1672 phy_print_status(phydev); in adjust_link()
1729 struct phy_device *phydev; in init_phy() local
1735 phydev = of_phy_connect(dev, ug_info->phy_node, &adjust_link, 0, in init_phy()
1737 if (!phydev) { in init_phy()
1745 phydev->supported &= (SUPPORTED_MII | in init_phy()
1753 phydev->supported |= ADVERTISED_1000baseT_Full; in init_phy()
1755 phydev->advertising = phydev->supported; in init_phy()
1757 priv->phydev = phydev; in init_phy()
2052 struct phy_device *phydev = ugeth->phydev; in ucc_geth_stop() local
2061 phy_stop(phydev); in ucc_geth_stop()
3482 phy_start(ugeth->phydev); in ucc_geth_open()
3487 qe_alive_during_sleep() || ugeth->phydev->irq); in ucc_geth_open()
3508 phy_disconnect(ugeth->phydev); in ucc_geth_close()
3509 ugeth->phydev = NULL; in ucc_geth_close()
3542 phy_start(ugeth->phydev); in ucc_geth_timeout_work()
3585 phy_stop(ugeth->phydev); in ucc_geth_suspend()
3625 phy_stop(ugeth->phydev); in ucc_geth_resume()
3626 phy_start(ugeth->phydev); in ucc_geth_resume()
3672 if (!ugeth->phydev) in ucc_geth_ioctl()
3675 return phy_mii_ioctl(ugeth->phydev, rq, cmd); in ucc_geth_ioctl()