Searched refs:ports_node (Results 1 – 2 of 2) sorted by relevance
/drivers/net/dsa/ocelot/ |
D | felix.c | 1249 struct device_node *ports_node, in felix_parse_ports_node() argument 1255 for_each_available_child_of_node(ports_node, child) { in felix_parse_ports_node() 1296 struct device_node *ports_node; in felix_parse_dt() local 1301 ports_node = of_get_child_by_name(switch_node, "ports"); in felix_parse_dt() 1302 if (!ports_node) in felix_parse_dt() 1303 ports_node = of_get_child_by_name(switch_node, "ethernet-ports"); in felix_parse_dt() 1304 if (!ports_node) { in felix_parse_dt() 1309 err = felix_parse_ports_node(felix, ports_node, port_phy_modes); in felix_parse_dt() 1310 of_node_put(ports_node); in felix_parse_dt()
|
/drivers/net/dsa/sja1105/ |
D | sja1105_main.c | 1187 struct device_node *ports_node) in sja1105_parse_ports_node() argument 1192 for_each_available_child_of_node(ports_node, child) { in sja1105_parse_ports_node() 1248 struct device_node *ports_node; in sja1105_parse_dt() local 1251 ports_node = of_get_child_by_name(switch_node, "ports"); in sja1105_parse_dt() 1252 if (!ports_node) in sja1105_parse_dt() 1253 ports_node = of_get_child_by_name(switch_node, "ethernet-ports"); in sja1105_parse_dt() 1254 if (!ports_node) { in sja1105_parse_dt() 1259 rc = sja1105_parse_ports_node(priv, ports_node); in sja1105_parse_dt() 1260 of_node_put(ports_node); in sja1105_parse_dt()
|