Lines Matching refs:phydev
184 struct phy_device *phydev; in dsa_cpu_dsa_setup() local
199 phydev = of_phy_find_device(port_dn); in dsa_cpu_dsa_setup()
204 phydev->interface = mode; in dsa_cpu_dsa_setup()
206 genphy_config_init(phydev); in dsa_cpu_dsa_setup()
207 genphy_read_status(phydev); in dsa_cpu_dsa_setup()
209 ds->drv->adjust_link(ds, port, phydev); in dsa_cpu_dsa_setup()
422 struct phy_device *phydev; in dsa_switch_destroy() local
438 phydev = of_phy_find_device(port_dn); in dsa_switch_destroy()
439 if (phydev) { in dsa_switch_destroy()
440 int addr = phydev->addr; in dsa_switch_destroy()
442 phy_device_free(phydev); in dsa_switch_destroy()