Lines Matching refs:port_dn
183 struct device_node *port_dn; in dsa_cpu_dsa_setup() local
191 port_dn = cd->port_dn[port]; in dsa_cpu_dsa_setup()
192 if (of_phy_is_fixed_link(port_dn)) { in dsa_cpu_dsa_setup()
193 ret = of_phy_register_fixed_link(port_dn); in dsa_cpu_dsa_setup()
199 phydev = of_phy_find_device(port_dn); in dsa_cpu_dsa_setup()
201 mode = of_get_phy_mode(port_dn); in dsa_cpu_dsa_setup()
421 struct device_node *port_dn; in dsa_switch_destroy() local
436 port_dn = cd->port_dn[port]; in dsa_switch_destroy()
437 if (of_phy_is_fixed_link(port_dn)) { in dsa_switch_destroy()
438 phydev = of_phy_find_device(port_dn); in dsa_switch_destroy()
443 of_node_put(port_dn); in dsa_switch_destroy()
783 cd->port_dn[port_index] = port; in dsa_of_probe()