Lines Matching refs:dsa_switch_tree
37 int dsa_tree_notify(struct dsa_switch_tree *dst, unsigned long e, void *v) in dsa_tree_notify()
61 struct dsa_switch_tree *dst; in dsa_broadcast()
84 void dsa_lag_map(struct dsa_switch_tree *dst, struct net_device *lag) in dsa_lag_map()
115 void dsa_lag_unmap(struct dsa_switch_tree *dst, struct net_device *lag) in dsa_lag_unmap()
134 struct dsa_switch_tree *dst; in dsa_bridge_num_find()
179 struct dsa_switch_tree *dst; in dsa_switch_find()
198 static struct dsa_switch_tree *dsa_tree_find(int index) in dsa_tree_find()
200 struct dsa_switch_tree *dst; in dsa_tree_find()
209 static struct dsa_switch_tree *dsa_tree_alloc(int index) in dsa_tree_alloc()
211 struct dsa_switch_tree *dst; in dsa_tree_alloc()
231 static void dsa_tree_free(struct dsa_switch_tree *dst) in dsa_tree_free()
239 static struct dsa_switch_tree *dsa_tree_get(struct dsa_switch_tree *dst) in dsa_tree_get()
247 static struct dsa_switch_tree *dsa_tree_touch(int index) in dsa_tree_touch()
249 struct dsa_switch_tree *dst; in dsa_tree_touch()
260 struct dsa_switch_tree *dst; in dsa_tree_release()
262 dst = container_of(ref, struct dsa_switch_tree, refcount); in dsa_tree_release()
267 static void dsa_tree_put(struct dsa_switch_tree *dst) in dsa_tree_put()
273 static struct dsa_port *dsa_tree_find_port_by_node(struct dsa_switch_tree *dst, in dsa_tree_find_port_by_node()
289 struct dsa_switch_tree *dst; in dsa_link_touch()
314 struct dsa_switch_tree *dst = ds->dst; in dsa_port_setup_routing_table()
338 static bool dsa_tree_setup_routing_table(struct dsa_switch_tree *dst) in dsa_tree_setup_routing_table()
354 static struct dsa_port *dsa_tree_find_first_cpu(struct dsa_switch_tree *dst) in dsa_tree_find_first_cpu()
368 static int dsa_tree_setup_default_cpu(struct dsa_switch_tree *dst) in dsa_tree_setup_default_cpu()
394 static int dsa_tree_setup_cpu_ports(struct dsa_switch_tree *dst) in dsa_tree_setup_cpu_ports()
419 static void dsa_tree_teardown_cpu_ports(struct dsa_switch_tree *dst) in dsa_tree_teardown_cpu_ports()
504 struct dsa_switch_tree *dst = dp->ds->dst; in dsa_port_devlink_setup()
804 struct dsa_switch_tree *dst = ds->dst; in dsa_switch_setup_tag_protocol()
956 static void dsa_tree_teardown_ports(struct dsa_switch_tree *dst) in dsa_tree_teardown_ports()
971 static void dsa_tree_teardown_switches(struct dsa_switch_tree *dst) in dsa_tree_teardown_switches()
979 static int dsa_tree_setup_switches(struct dsa_switch_tree *dst) in dsa_tree_setup_switches()
1009 static int dsa_tree_setup_master(struct dsa_switch_tree *dst) in dsa_tree_setup_master()
1025 static void dsa_tree_teardown_master(struct dsa_switch_tree *dst) in dsa_tree_teardown_master()
1034 static int dsa_tree_setup_lags(struct dsa_switch_tree *dst) in dsa_tree_setup_lags()
1055 static void dsa_tree_teardown_lags(struct dsa_switch_tree *dst) in dsa_tree_teardown_lags()
1060 static int dsa_tree_setup(struct dsa_switch_tree *dst) in dsa_tree_setup()
1108 static void dsa_tree_teardown(struct dsa_switch_tree *dst) in dsa_tree_teardown()
1139 int dsa_tree_change_tag_proto(struct dsa_switch_tree *dst, in dsa_tree_change_tag_proto()
1188 struct dsa_switch_tree *dst = ds->dst; in dsa_port_touch()
1257 struct dsa_switch_tree *dst = ds->dst; in dsa_port_parse_cpu()
1538 struct dsa_switch_tree *dst = ds->dst; in dsa_switch_release_ports()
1551 struct dsa_switch_tree *dst; in dsa_switch_probe()
1606 struct dsa_switch_tree *dst = ds->dst; in dsa_switch_remove()