Home
last modified time | relevance | path

Searched refs:port_np (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.6/drivers/net/ethernet/sunplus/
Dspl2sw_driver.c301 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 …]
/Linux-v6.6/drivers/net/ethernet/ti/
Dcpsw_new.c1217 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()
[all …]
Dam65-cpsw-nuss.c1476 static int am65_cpsw_init_serdes_phy(struct device *dev, struct device_node *port_np, in am65_cpsw_init_serdes_phy() argument
1483 phy = devm_of_phy_optional_get(dev, port_np, name); in am65_cpsw_init_serdes_phy()
2006 struct device_node *node, *port_np; in am65_cpsw_nuss_init_slave_ports() local
2014 for_each_child_of_node(node, port_np) { in am65_cpsw_nuss_init_slave_ports()
2019 if (strcmp(port_np->name, "port")) in am65_cpsw_nuss_init_slave_ports()
2022 ret = of_property_read_u32(port_np, "reg", &port_id); in am65_cpsw_nuss_init_slave_ports()
2025 port_np, ret); in am65_cpsw_nuss_init_slave_ports()
2031 port_np, port_id, port_np->name); in am65_cpsw_nuss_init_slave_ports()
2045 port->name = of_get_property(port_np, "label", NULL); in am65_cpsw_nuss_init_slave_ports()
2056 port->disabled = !of_device_is_available(port_np); in am65_cpsw_nuss_init_slave_ports()
[all …]
/Linux-v6.6/drivers/usb/core/
Dledtrig-usbport.c135 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()