Lines Matching refs:dsa_switch_tree
27 static struct dsa_switch_tree *dsa_tree_find(int index) in dsa_tree_find()
29 struct dsa_switch_tree *dst; in dsa_tree_find()
38 static struct dsa_switch_tree *dsa_tree_alloc(int index) in dsa_tree_alloc()
40 struct dsa_switch_tree *dst; in dsa_tree_alloc()
56 static void dsa_tree_free(struct dsa_switch_tree *dst) in dsa_tree_free()
62 static struct dsa_switch_tree *dsa_tree_get(struct dsa_switch_tree *dst) in dsa_tree_get()
70 static struct dsa_switch_tree *dsa_tree_touch(int index) in dsa_tree_touch()
72 struct dsa_switch_tree *dst; in dsa_tree_touch()
83 struct dsa_switch_tree *dst; in dsa_tree_release()
85 dst = container_of(ref, struct dsa_switch_tree, refcount); in dsa_tree_release()
90 static void dsa_tree_put(struct dsa_switch_tree *dst) in dsa_tree_put()
111 static struct dsa_port *dsa_tree_find_port_by_node(struct dsa_switch_tree *dst, in dsa_tree_find_port_by_node()
137 struct dsa_switch_tree *dst = ds->dst; in dsa_port_setup_routing_table()
178 static bool dsa_tree_setup_routing_table(struct dsa_switch_tree *dst) in dsa_tree_setup_routing_table()
197 static struct dsa_port *dsa_tree_find_first_cpu(struct dsa_switch_tree *dst) in dsa_tree_find_first_cpu()
219 static int dsa_tree_setup_default_cpu(struct dsa_switch_tree *dst) in dsa_tree_setup_default_cpu()
249 static void dsa_tree_teardown_default_cpu(struct dsa_switch_tree *dst) in dsa_tree_teardown_default_cpu()
258 struct dsa_switch_tree *dst = ds->dst; in dsa_port_setup()
443 static int dsa_tree_setup_switches(struct dsa_switch_tree *dst) in dsa_tree_setup_switches()
494 static void dsa_tree_teardown_switches(struct dsa_switch_tree *dst) in dsa_tree_teardown_switches()
515 static int dsa_tree_setup_master(struct dsa_switch_tree *dst) in dsa_tree_setup_master()
524 static void dsa_tree_teardown_master(struct dsa_switch_tree *dst) in dsa_tree_teardown_master()
532 static int dsa_tree_setup(struct dsa_switch_tree *dst) in dsa_tree_setup()
573 static void dsa_tree_teardown(struct dsa_switch_tree *dst) in dsa_tree_teardown()
589 static void dsa_tree_remove_switch(struct dsa_switch_tree *dst, in dsa_tree_remove_switch()
598 static int dsa_tree_add_switch(struct dsa_switch_tree *dst, in dsa_tree_add_switch()
640 struct dsa_switch_tree *dst = ds->dst; in dsa_port_parse_cpu()
825 struct dsa_switch_tree *dst = ds->dst; in dsa_switch_add()
885 struct dsa_switch_tree *dst = ds->dst; in dsa_switch_remove()