Lines Matching refs:dsa_switch_tree
30 static struct dsa_switch_tree *dsa_tree_find(int index) in dsa_tree_find()
32 struct dsa_switch_tree *dst; in dsa_tree_find()
41 static struct dsa_switch_tree *dsa_tree_alloc(int index) in dsa_tree_alloc()
43 struct dsa_switch_tree *dst; in dsa_tree_alloc()
59 static void dsa_tree_free(struct dsa_switch_tree *dst) in dsa_tree_free()
65 static struct dsa_switch_tree *dsa_tree_get(struct dsa_switch_tree *dst) in dsa_tree_get()
73 static struct dsa_switch_tree *dsa_tree_touch(int index) in dsa_tree_touch()
75 struct dsa_switch_tree *dst; in dsa_tree_touch()
86 struct dsa_switch_tree *dst; in dsa_tree_release()
88 dst = container_of(ref, struct dsa_switch_tree, refcount); in dsa_tree_release()
93 static void dsa_tree_put(struct dsa_switch_tree *dst) in dsa_tree_put()
114 static struct dsa_port *dsa_tree_find_port_by_node(struct dsa_switch_tree *dst, in dsa_tree_find_port_by_node()
140 struct dsa_switch_tree *dst = ds->dst; in dsa_port_setup_routing_table()
181 static bool dsa_tree_setup_routing_table(struct dsa_switch_tree *dst) in dsa_tree_setup_routing_table()
200 static struct dsa_port *dsa_tree_find_first_cpu(struct dsa_switch_tree *dst) in dsa_tree_find_first_cpu()
222 static int dsa_tree_setup_default_cpu(struct dsa_switch_tree *dst) in dsa_tree_setup_default_cpu()
252 static void dsa_tree_teardown_default_cpu(struct dsa_switch_tree *dst) in dsa_tree_teardown_default_cpu()
401 static int dsa_tree_setup_switches(struct dsa_switch_tree *dst) in dsa_tree_setup_switches()
429 static void dsa_tree_teardown_switches(struct dsa_switch_tree *dst) in dsa_tree_teardown_switches()
450 static int dsa_tree_setup_master(struct dsa_switch_tree *dst) in dsa_tree_setup_master()
459 static void dsa_tree_teardown_master(struct dsa_switch_tree *dst) in dsa_tree_teardown_master()
467 static int dsa_tree_setup(struct dsa_switch_tree *dst) in dsa_tree_setup()
501 static void dsa_tree_teardown(struct dsa_switch_tree *dst) in dsa_tree_teardown()
517 static void dsa_tree_remove_switch(struct dsa_switch_tree *dst, in dsa_tree_remove_switch()
526 static int dsa_tree_add_switch(struct dsa_switch_tree *dst, in dsa_tree_add_switch()
566 struct dsa_switch_tree *dst = ds->dst; in dsa_port_parse_cpu()
744 struct dsa_switch_tree *dst = ds->dst; in dsa_switch_add()
819 struct dsa_switch_tree *dst = ds->dst; in dsa_switch_remove()