Lines Matching refs:dsa_switch_tree

39 int dsa_tree_notify(struct dsa_switch_tree *dst, unsigned long e, void *v)  in dsa_tree_notify()
63 struct dsa_switch_tree *dst; in dsa_broadcast()
86 void dsa_lag_map(struct dsa_switch_tree *dst, struct dsa_lag *lag) in dsa_lag_map()
114 void dsa_lag_unmap(struct dsa_switch_tree *dst, struct dsa_lag *lag) in dsa_lag_unmap()
127 struct dsa_lag *dsa_tree_lag_find(struct dsa_switch_tree *dst, in dsa_tree_lag_find()
139 struct dsa_bridge *dsa_tree_bridge_find(struct dsa_switch_tree *dst, in dsa_tree_bridge_find()
153 struct dsa_switch_tree *dst; in dsa_bridge_num_find()
204 struct dsa_switch_tree *dst; in dsa_switch_find()
223 static struct dsa_switch_tree *dsa_tree_find(int index) in dsa_tree_find()
225 struct dsa_switch_tree *dst; in dsa_tree_find()
234 static struct dsa_switch_tree *dsa_tree_alloc(int index) in dsa_tree_alloc()
236 struct dsa_switch_tree *dst; in dsa_tree_alloc()
256 static void dsa_tree_free(struct dsa_switch_tree *dst) in dsa_tree_free()
264 static struct dsa_switch_tree *dsa_tree_get(struct dsa_switch_tree *dst) in dsa_tree_get()
272 static struct dsa_switch_tree *dsa_tree_touch(int index) in dsa_tree_touch()
274 struct dsa_switch_tree *dst; in dsa_tree_touch()
285 struct dsa_switch_tree *dst; in dsa_tree_release()
287 dst = container_of(ref, struct dsa_switch_tree, refcount); in dsa_tree_release()
292 static void dsa_tree_put(struct dsa_switch_tree *dst) in dsa_tree_put()
298 static struct dsa_port *dsa_tree_find_port_by_node(struct dsa_switch_tree *dst, in dsa_tree_find_port_by_node()
314 struct dsa_switch_tree *dst; in dsa_link_touch()
339 struct dsa_switch_tree *dst = ds->dst; in dsa_port_setup_routing_table()
363 static bool dsa_tree_setup_routing_table(struct dsa_switch_tree *dst) in dsa_tree_setup_routing_table()
379 static struct dsa_port *dsa_tree_find_first_cpu(struct dsa_switch_tree *dst) in dsa_tree_find_first_cpu()
390 struct net_device *dsa_tree_find_first_master(struct dsa_switch_tree *dst) in dsa_tree_find_first_master()
407 static int dsa_tree_setup_default_cpu(struct dsa_switch_tree *dst) in dsa_tree_setup_default_cpu()
433 static int dsa_tree_setup_cpu_ports(struct dsa_switch_tree *dst) in dsa_tree_setup_cpu_ports()
455 static void dsa_tree_teardown_cpu_ports(struct dsa_switch_tree *dst) in dsa_tree_teardown_cpu_ports()
467 struct dsa_switch_tree *dst = dp->ds->dst; in dsa_port_devlink_setup()
826 struct dsa_switch_tree *dst = ds->dst; in dsa_switch_setup_tag_protocol()
983 static void dsa_tree_teardown_ports(struct dsa_switch_tree *dst) in dsa_tree_teardown_ports()
998 static void dsa_tree_teardown_switches(struct dsa_switch_tree *dst) in dsa_tree_teardown_switches()
1007 static int dsa_tree_setup_ports(struct dsa_switch_tree *dst) in dsa_tree_setup_ports()
1039 static int dsa_tree_setup_switches(struct dsa_switch_tree *dst) in dsa_tree_setup_switches()
1055 static int dsa_tree_setup_master(struct dsa_switch_tree *dst) in dsa_tree_setup_master()
1082 static void dsa_tree_teardown_master(struct dsa_switch_tree *dst) in dsa_tree_teardown_master()
1103 static int dsa_tree_setup_lags(struct dsa_switch_tree *dst) in dsa_tree_setup_lags()
1124 static void dsa_tree_teardown_lags(struct dsa_switch_tree *dst) in dsa_tree_teardown_lags()
1129 static int dsa_tree_setup(struct dsa_switch_tree *dst) in dsa_tree_setup()
1182 static void dsa_tree_teardown(struct dsa_switch_tree *dst) in dsa_tree_teardown()
1209 static int dsa_tree_bind_tag_proto(struct dsa_switch_tree *dst, in dsa_tree_bind_tag_proto()
1244 int dsa_tree_change_tag_proto(struct dsa_switch_tree *dst, in dsa_tree_change_tag_proto()
1290 static void dsa_tree_master_state_change(struct dsa_switch_tree *dst, in dsa_tree_master_state_change()
1302 void dsa_tree_master_admin_state_change(struct dsa_switch_tree *dst, in dsa_tree_master_admin_state_change()
1325 void dsa_tree_master_oper_state_change(struct dsa_switch_tree *dst, in dsa_tree_master_oper_state_change()
1350 struct dsa_switch_tree *dst = ds->dst; in dsa_port_touch()
1424 struct dsa_switch_tree *dst = ds->dst; in dsa_port_parse_cpu()
1725 struct dsa_switch_tree *dst; in dsa_switch_probe()
1780 struct dsa_switch_tree *dst = ds->dst; in dsa_switch_remove()