Lines Matching refs:phydev
1584 struct phy_device *phydev = ugeth->phydev; in adjust_link() local
1590 if (phydev->link) { in adjust_link()
1595 if (phydev->duplex != ugeth->oldduplex) { in adjust_link()
1597 if (!(phydev->duplex)) in adjust_link()
1601 ugeth->oldduplex = phydev->duplex; in adjust_link()
1604 if (phydev->speed != ugeth->oldspeed) { in adjust_link()
1606 switch (phydev->speed) { in adjust_link()
1624 if (phydev->speed == SPEED_10) in adjust_link()
1634 dev->name, phydev->speed); in adjust_link()
1637 ugeth->oldspeed = phydev->speed; in adjust_link()
1670 phy_print_status(phydev); in adjust_link()
1723 struct phy_device *phydev; in init_phy() local
1729 phydev = of_phy_connect(dev, ug_info->phy_node, &adjust_link, 0, in init_phy()
1731 if (!phydev) { in init_phy()
1739 phydev->supported &= (SUPPORTED_MII | in init_phy()
1747 phydev->supported |= ADVERTISED_1000baseT_Full; in init_phy()
1749 phydev->advertising = phydev->supported; in init_phy()
1751 priv->phydev = phydev; in init_phy()
2046 struct phy_device *phydev = ugeth->phydev; in ucc_geth_stop() local
2055 phy_stop(phydev); in ucc_geth_stop()
3476 phy_start(ugeth->phydev); in ucc_geth_open()
3481 qe_alive_during_sleep() || ugeth->phydev->irq); in ucc_geth_open()
3502 phy_disconnect(ugeth->phydev); in ucc_geth_close()
3503 ugeth->phydev = NULL; in ucc_geth_close()
3536 phy_start(ugeth->phydev); in ucc_geth_timeout_work()
3579 phy_stop(ugeth->phydev); in ucc_geth_suspend()
3619 phy_stop(ugeth->phydev); in ucc_geth_resume()
3620 phy_start(ugeth->phydev); in ucc_geth_resume()
3666 if (!ugeth->phydev) in ucc_geth_ioctl()
3669 return phy_mii_ioctl(ugeth->phydev, rq, cmd); in ucc_geth_ioctl()