Lines Matching refs:dsa_switch_tree
64 void dsa_lag_map(struct dsa_switch_tree *dst, struct dsa_lag *lag) in dsa_lag_map()
92 void dsa_lag_unmap(struct dsa_switch_tree *dst, struct dsa_lag *lag) in dsa_lag_unmap()
105 struct dsa_lag *dsa_tree_lag_find(struct dsa_switch_tree *dst, in dsa_tree_lag_find()
117 struct dsa_bridge *dsa_tree_bridge_find(struct dsa_switch_tree *dst, in dsa_tree_bridge_find()
131 struct dsa_switch_tree *dst; in dsa_bridge_num_find()
182 struct dsa_switch_tree *dst; in dsa_switch_find()
201 static struct dsa_switch_tree *dsa_tree_find(int index) in dsa_tree_find()
203 struct dsa_switch_tree *dst; in dsa_tree_find()
212 static struct dsa_switch_tree *dsa_tree_alloc(int index) in dsa_tree_alloc()
214 struct dsa_switch_tree *dst; in dsa_tree_alloc()
234 static void dsa_tree_free(struct dsa_switch_tree *dst) in dsa_tree_free()
242 static struct dsa_switch_tree *dsa_tree_get(struct dsa_switch_tree *dst) in dsa_tree_get()
250 static struct dsa_switch_tree *dsa_tree_touch(int index) in dsa_tree_touch()
252 struct dsa_switch_tree *dst; in dsa_tree_touch()
263 struct dsa_switch_tree *dst; in dsa_tree_release()
265 dst = container_of(ref, struct dsa_switch_tree, refcount); in dsa_tree_release()
270 static void dsa_tree_put(struct dsa_switch_tree *dst) in dsa_tree_put()
276 static struct dsa_port *dsa_tree_find_port_by_node(struct dsa_switch_tree *dst, in dsa_tree_find_port_by_node()
292 struct dsa_switch_tree *dst; in dsa_link_touch()
317 struct dsa_switch_tree *dst = ds->dst; in dsa_port_setup_routing_table()
341 static bool dsa_tree_setup_routing_table(struct dsa_switch_tree *dst) in dsa_tree_setup_routing_table()
357 static struct dsa_port *dsa_tree_find_first_cpu(struct dsa_switch_tree *dst) in dsa_tree_find_first_cpu()
368 struct net_device *dsa_tree_find_first_conduit(struct dsa_switch_tree *dst) in dsa_tree_find_first_conduit()
379 static int dsa_tree_setup_default_cpu(struct dsa_switch_tree *dst) in dsa_tree_setup_default_cpu()
423 static int dsa_tree_setup_cpu_ports(struct dsa_switch_tree *dst) in dsa_tree_setup_cpu_ports()
449 static void dsa_tree_teardown_cpu_ports(struct dsa_switch_tree *dst) in dsa_tree_teardown_cpu_ports()
572 struct dsa_switch_tree *dst = ds->dst; in dsa_switch_setup_tag_protocol()
714 static void dsa_tree_teardown_ports(struct dsa_switch_tree *dst) in dsa_tree_teardown_ports()
729 static void dsa_tree_teardown_switches(struct dsa_switch_tree *dst) in dsa_tree_teardown_switches()
738 static int dsa_tree_setup_ports(struct dsa_switch_tree *dst) in dsa_tree_setup_ports()
770 static int dsa_tree_setup_switches(struct dsa_switch_tree *dst) in dsa_tree_setup_switches()
786 static int dsa_tree_setup_conduit(struct dsa_switch_tree *dst) in dsa_tree_setup_conduit()
813 static void dsa_tree_teardown_conduit(struct dsa_switch_tree *dst) in dsa_tree_teardown_conduit()
834 static int dsa_tree_setup_lags(struct dsa_switch_tree *dst) in dsa_tree_setup_lags()
855 static void dsa_tree_teardown_lags(struct dsa_switch_tree *dst) in dsa_tree_teardown_lags()
860 static void dsa_tree_teardown_routing_table(struct dsa_switch_tree *dst) in dsa_tree_teardown_routing_table()
870 static int dsa_tree_setup(struct dsa_switch_tree *dst) in dsa_tree_setup()
925 static void dsa_tree_teardown(struct dsa_switch_tree *dst) in dsa_tree_teardown()
947 static int dsa_tree_bind_tag_proto(struct dsa_switch_tree *dst, in dsa_tree_bind_tag_proto()
982 int dsa_tree_change_tag_proto(struct dsa_switch_tree *dst, in dsa_tree_change_tag_proto()
1028 static void dsa_tree_conduit_state_change(struct dsa_switch_tree *dst, in dsa_tree_conduit_state_change()
1040 void dsa_tree_conduit_admin_state_change(struct dsa_switch_tree *dst, in dsa_tree_conduit_admin_state_change()
1063 void dsa_tree_conduit_oper_state_change(struct dsa_switch_tree *dst, in dsa_tree_conduit_oper_state_change()
1088 struct dsa_switch_tree *dst = ds->dst; in dsa_port_touch()
1159 struct dsa_switch_tree *dst = ds->dst; in dsa_port_parse_cpu()
1535 struct dsa_switch_tree *dst; in dsa_switch_probe()
1590 struct dsa_switch_tree *dst = ds->dst; in dsa_switch_remove()