Lines Matching refs:port_np
1217 struct device_node *node = cpsw->dev->of_node, *tmp_node, *port_np; in cpsw_probe_dt() local
1256 for_each_child_of_node(tmp_node, port_np) { in cpsw_probe_dt()
1260 ret = of_property_read_u32(port_np, "reg", &port_id); in cpsw_probe_dt()
1263 port_np, ret); in cpsw_probe_dt()
1269 port_np, port_id); in cpsw_probe_dt()
1276 slave_data->disabled = !of_device_is_available(port_np); in cpsw_probe_dt()
1280 slave_data->slave_node = port_np; in cpsw_probe_dt()
1281 slave_data->ifphy = devm_of_phy_get(dev, port_np, NULL); in cpsw_probe_dt()
1285 port_np, ret); in cpsw_probe_dt()
1289 if (of_phy_is_fixed_link(port_np)) { in cpsw_probe_dt()
1290 ret = of_phy_register_fixed_link(port_np); in cpsw_probe_dt()
1293 port_np); in cpsw_probe_dt()
1296 slave_data->phy_node = of_node_get(port_np); in cpsw_probe_dt()
1299 of_parse_phandle(port_np, "phy-handle", 0); in cpsw_probe_dt()
1303 dev_err(dev, "%pOF no phy found\n", port_np); in cpsw_probe_dt()
1308 ret = of_get_phy_mode(port_np, &slave_data->phy_if); in cpsw_probe_dt()
1311 port_np, ret); in cpsw_probe_dt()
1315 ret = of_get_mac_address(port_np, slave_data->mac_addr); in cpsw_probe_dt()
1323 if (of_property_read_u32(port_np, "ti,dual-emac-pvid", in cpsw_probe_dt()
1326 port_np); in cpsw_probe_dt()
1329 port_np, slave_data->dual_emac_res_vlan); in cpsw_probe_dt()
1339 of_node_put(port_np); in cpsw_probe_dt()
1351 struct device_node *port_np = slave_data->phy_node; in cpsw_remove_dt() local
1353 if (port_np) { in cpsw_remove_dt()
1354 if (of_phy_is_fixed_link(port_np)) in cpsw_remove_dt()
1355 of_phy_deregister_fixed_link(port_np); in cpsw_remove_dt()
1357 of_node_put(port_np); in cpsw_remove_dt()