Lines Matching refs:dsa_switch_tree

63 void dsa_lag_map(struct dsa_switch_tree *dst, struct dsa_lag *lag)  in dsa_lag_map()
91 void dsa_lag_unmap(struct dsa_switch_tree *dst, struct dsa_lag *lag) in dsa_lag_unmap()
104 struct dsa_lag *dsa_tree_lag_find(struct dsa_switch_tree *dst, in dsa_tree_lag_find()
116 struct dsa_bridge *dsa_tree_bridge_find(struct dsa_switch_tree *dst, in dsa_tree_bridge_find()
130 struct dsa_switch_tree *dst; in dsa_bridge_num_find()
181 struct dsa_switch_tree *dst; in dsa_switch_find()
200 static struct dsa_switch_tree *dsa_tree_find(int index) in dsa_tree_find()
202 struct dsa_switch_tree *dst; in dsa_tree_find()
211 static struct dsa_switch_tree *dsa_tree_alloc(int index) in dsa_tree_alloc()
213 struct dsa_switch_tree *dst; in dsa_tree_alloc()
233 static void dsa_tree_free(struct dsa_switch_tree *dst) in dsa_tree_free()
241 static struct dsa_switch_tree *dsa_tree_get(struct dsa_switch_tree *dst) in dsa_tree_get()
249 static struct dsa_switch_tree *dsa_tree_touch(int index) in dsa_tree_touch()
251 struct dsa_switch_tree *dst; in dsa_tree_touch()
262 struct dsa_switch_tree *dst; in dsa_tree_release()
264 dst = container_of(ref, struct dsa_switch_tree, refcount); in dsa_tree_release()
269 static void dsa_tree_put(struct dsa_switch_tree *dst) in dsa_tree_put()
275 static struct dsa_port *dsa_tree_find_port_by_node(struct dsa_switch_tree *dst, in dsa_tree_find_port_by_node()
291 struct dsa_switch_tree *dst; in dsa_link_touch()
316 struct dsa_switch_tree *dst = ds->dst; in dsa_port_setup_routing_table()
340 static bool dsa_tree_setup_routing_table(struct dsa_switch_tree *dst) in dsa_tree_setup_routing_table()
356 static struct dsa_port *dsa_tree_find_first_cpu(struct dsa_switch_tree *dst) in dsa_tree_find_first_cpu()
367 struct net_device *dsa_tree_find_first_conduit(struct dsa_switch_tree *dst) in dsa_tree_find_first_conduit()
384 static int dsa_tree_setup_default_cpu(struct dsa_switch_tree *dst) in dsa_tree_setup_default_cpu()
428 static int dsa_tree_setup_cpu_ports(struct dsa_switch_tree *dst) in dsa_tree_setup_cpu_ports()
454 static void dsa_tree_teardown_cpu_ports(struct dsa_switch_tree *dst) in dsa_tree_teardown_cpu_ports()
577 struct dsa_switch_tree *dst = ds->dst; in dsa_switch_setup_tag_protocol()
719 static void dsa_tree_teardown_ports(struct dsa_switch_tree *dst) in dsa_tree_teardown_ports()
734 static void dsa_tree_teardown_switches(struct dsa_switch_tree *dst) in dsa_tree_teardown_switches()
743 static int dsa_tree_setup_ports(struct dsa_switch_tree *dst) in dsa_tree_setup_ports()
775 static int dsa_tree_setup_switches(struct dsa_switch_tree *dst) in dsa_tree_setup_switches()
791 static int dsa_tree_setup_conduit(struct dsa_switch_tree *dst) in dsa_tree_setup_conduit()
818 static void dsa_tree_teardown_conduit(struct dsa_switch_tree *dst) in dsa_tree_teardown_conduit()
839 static int dsa_tree_setup_lags(struct dsa_switch_tree *dst) in dsa_tree_setup_lags()
860 static void dsa_tree_teardown_lags(struct dsa_switch_tree *dst) in dsa_tree_teardown_lags()
865 static void dsa_tree_teardown_routing_table(struct dsa_switch_tree *dst) in dsa_tree_teardown_routing_table()
875 static int dsa_tree_setup(struct dsa_switch_tree *dst) in dsa_tree_setup()
930 static void dsa_tree_teardown(struct dsa_switch_tree *dst) in dsa_tree_teardown()
952 static int dsa_tree_bind_tag_proto(struct dsa_switch_tree *dst, in dsa_tree_bind_tag_proto()
987 int dsa_tree_change_tag_proto(struct dsa_switch_tree *dst, in dsa_tree_change_tag_proto()
1033 static void dsa_tree_conduit_state_change(struct dsa_switch_tree *dst, in dsa_tree_conduit_state_change()
1045 void dsa_tree_conduit_admin_state_change(struct dsa_switch_tree *dst, in dsa_tree_conduit_admin_state_change()
1068 void dsa_tree_conduit_oper_state_change(struct dsa_switch_tree *dst, in dsa_tree_conduit_oper_state_change()
1093 struct dsa_switch_tree *dst = ds->dst; in dsa_port_touch()
1164 struct dsa_switch_tree *dst = ds->dst; in dsa_port_parse_cpu()
1533 struct dsa_switch_tree *dst; in dsa_switch_probe()
1588 struct dsa_switch_tree *dst = ds->dst; in dsa_switch_remove()