Lines Matching refs:dn
274 struct device_node *dn) in dsa_tree_find_port_by_node() argument
279 if (dp->dn == dn) in dsa_tree_find_port_by_node()
315 struct device_node *dn = dp->dn; in dsa_port_setup_routing_table() local
321 of_for_each_phandle(&it, err, dn, "link", NULL, 0) { in dsa_port_setup_routing_table()
477 of_get_mac_address(dp->dn, dp->mac); in dsa_port_setup()
1338 static int dsa_port_parse_of(struct dsa_port *dp, struct device_node *dn) in dsa_port_parse_of() argument
1340 struct device_node *ethernet = of_parse_phandle(dn, "ethernet", 0); in dsa_port_parse_of()
1341 const char *name = of_get_property(dn, "label", NULL); in dsa_port_parse_of()
1342 bool link = of_property_read_bool(dn, "link"); in dsa_port_parse_of()
1344 dp->dn = dn; in dsa_port_parse_of()
1355 user_protocol = of_get_property(dn, "dsa-tag-protocol", NULL); in dsa_port_parse_of()
1366 struct device_node *dn) in dsa_switch_parse_ports_of() argument
1373 ports = of_get_child_by_name(dn, "ports"); in dsa_switch_parse_ports_of()
1376 ports = of_get_child_by_name(dn, "ethernet-ports"); in dsa_switch_parse_ports_of()
1413 struct device_node *dn) in dsa_switch_parse_member_of() argument
1419 sz = of_property_read_variable_u32_array(dn, "dsa,member", m, 2, 2); in dsa_switch_parse_member_of()
1456 static int dsa_switch_parse_of(struct dsa_switch *ds, struct device_node *dn) in dsa_switch_parse_of() argument
1460 err = dsa_switch_parse_member_of(ds, dn); in dsa_switch_parse_of()
1468 return dsa_switch_parse_ports_of(ds, dn); in dsa_switch_parse_of()