Lines Matching defs:phydev
1541 struct phy_device *phydev;
1547 phydev = of_phy_find_device(phy_dn);
1548 if (!phydev) {
1554 return phydev;
1633 struct phy_device *phydev = NULL;
1637 phydev = dp->slave->phydev;
1640 if (ds->ops->adjust_link && phydev)
1641 ds->ops->adjust_link(ds, dp->index, phydev);
1649 struct phy_device *phydev,
1659 if (ds->ops->adjust_link && phydev)
1660 ds->ops->adjust_link(ds, dp->index, phydev);
1664 ds->ops->phylink_mac_link_up(ds, dp->index, mode, interface, phydev,
1724 struct phy_device *phydev;
1728 phydev = dsa_port_get_phy_device(dp);
1729 if (!phydev)
1732 if (IS_ERR(phydev))
1733 return PTR_ERR(phydev);
1736 err = genphy_resume(phydev);
1740 err = genphy_read_status(phydev);
1744 err = genphy_suspend(phydev);
1750 ds->ops->adjust_link(ds, port, phydev);
1752 dev_dbg(ds->dev, "enabled port's phy: %s", phydev_name(phydev));
1755 put_device(&phydev->mdio.dev);
1763 struct phy_device *phydev;
1776 phydev = of_phy_find_device(dn);
1781 phydev->interface = mode;
1783 genphy_read_status(phydev);
1786 ds->ops->adjust_link(ds, port, phydev);
1788 put_device(&phydev->mdio.dev);