Lines Matching refs:phydev
553 struct phy_device *phydev = ERR_PTR(-ENODEV);
556 phydev = get_phy_device(bus, addr, c45);
557 if (IS_ERR(phydev))
558 return phydev;
563 of_mdiobus_link_mdiodev(bus, &phydev->mdio);
565 err = phy_device_register(phydev);
567 phy_device_free(phydev);
571 return phydev;
615 struct phy_device *phydev;
617 phydev = mdiobus_scan_c22(bus, i);
618 if (IS_ERR(phydev) && (PTR_ERR(phydev) != -ENODEV))
619 return PTR_ERR(phydev);
631 struct phy_device *phydev;
637 phydev = mdiobus_scan_c45(bus, i);
638 if (IS_ERR(phydev) && (PTR_ERR(phydev) != -ENODEV))
639 return PTR_ERR(phydev);
657 struct phy_device *phydev;
660 phydev = mdiobus_get_phy(bus, i);
661 if (!phydev)
663 oui = phydev->phy_id >> 10;