Searched refs:port_np (Results 1 – 4 of 4) sorted by relevance
/drivers/net/ethernet/sunplus/ |
D | spl2sw_driver.c | 301 struct device_node *port_np; in spl2sw_get_eth_child_node() local 304 for_each_child_of_node(ether_np, port_np) { in spl2sw_get_eth_child_node() 306 if (strcmp(port_np->name, "port")) in spl2sw_get_eth_child_node() 309 if (of_property_read_u32(port_np, "reg", &port_id) < 0) in spl2sw_get_eth_child_node() 313 return port_np; in spl2sw_get_eth_child_node() 323 struct device_node *port_np; in spl2sw_probe() local 422 port_np = spl2sw_get_eth_child_node(eth_ports_np, i); in spl2sw_probe() 423 if (!port_np) in spl2sw_probe() 427 if (of_get_phy_mode(port_np, &phy_mode)) { in spl2sw_probe() 434 phy_np = of_parse_phandle(port_np, "phy-handle", 0); in spl2sw_probe() [all …]
|
/drivers/net/ethernet/ti/ |
D | cpsw_new.c | 1219 struct device_node *node = cpsw->dev->of_node, *tmp_node, *port_np; in cpsw_probe_dt() local 1258 for_each_child_of_node(tmp_node, port_np) { in cpsw_probe_dt() 1262 ret = of_property_read_u32(port_np, "reg", &port_id); in cpsw_probe_dt() 1265 port_np, ret); in cpsw_probe_dt() 1271 port_np, port_id); in cpsw_probe_dt() 1278 slave_data->disabled = !of_device_is_available(port_np); in cpsw_probe_dt() 1282 slave_data->slave_node = port_np; in cpsw_probe_dt() 1283 slave_data->ifphy = devm_of_phy_get(dev, port_np, NULL); in cpsw_probe_dt() 1287 port_np, ret); in cpsw_probe_dt() 1291 if (of_phy_is_fixed_link(port_np)) { in cpsw_probe_dt() [all …]
|
D | am65-cpsw-nuss.c | 1834 struct device_node *node, *port_np; in am65_cpsw_nuss_init_slave_ports() local 1842 for_each_child_of_node(node, port_np) { in am65_cpsw_nuss_init_slave_ports() 1847 if (strcmp(port_np->name, "port")) in am65_cpsw_nuss_init_slave_ports() 1850 ret = of_property_read_u32(port_np, "reg", &port_id); in am65_cpsw_nuss_init_slave_ports() 1853 port_np, ret); in am65_cpsw_nuss_init_slave_ports() 1859 port_np, port_id, port_np->name); in am65_cpsw_nuss_init_slave_ports() 1873 port->name = of_get_property(port_np, "label", NULL); in am65_cpsw_nuss_init_slave_ports() 1884 port->disabled = !of_device_is_available(port_np); in am65_cpsw_nuss_init_slave_ports() 1890 port->slave.ifphy = devm_of_phy_get(dev, port_np, NULL); in am65_cpsw_nuss_init_slave_ports() 1894 port_np, ret); in am65_cpsw_nuss_init_slave_ports() [all …]
|
/drivers/usb/core/ |
D | ledtrig-usbport.c | 135 struct device_node *port_np; in usbport_trig_port_observed() local 146 port_np = usb_of_get_device_node(usb_dev, port1); in usbport_trig_port_observed() 147 if (!port_np) in usbport_trig_port_observed() 150 of_node_put(port_np); in usbport_trig_port_observed() 176 if (args.np == port_np) in usbport_trig_port_observed()
|