Lines Matching refs:dsa_switch_tree
26 struct dsa_switch_tree *dst; in dsa_switch_find()
45 static struct dsa_switch_tree *dsa_tree_find(int index) in dsa_tree_find()
47 struct dsa_switch_tree *dst; in dsa_tree_find()
56 static struct dsa_switch_tree *dsa_tree_alloc(int index) in dsa_tree_alloc()
58 struct dsa_switch_tree *dst; in dsa_tree_alloc()
78 static void dsa_tree_free(struct dsa_switch_tree *dst) in dsa_tree_free()
84 static struct dsa_switch_tree *dsa_tree_get(struct dsa_switch_tree *dst) in dsa_tree_get()
92 static struct dsa_switch_tree *dsa_tree_touch(int index) in dsa_tree_touch()
94 struct dsa_switch_tree *dst; in dsa_tree_touch()
105 struct dsa_switch_tree *dst; in dsa_tree_release()
107 dst = container_of(ref, struct dsa_switch_tree, refcount); in dsa_tree_release()
112 static void dsa_tree_put(struct dsa_switch_tree *dst) in dsa_tree_put()
133 static struct dsa_port *dsa_tree_find_port_by_node(struct dsa_switch_tree *dst, in dsa_tree_find_port_by_node()
149 struct dsa_switch_tree *dst; in dsa_link_touch()
174 struct dsa_switch_tree *dst = ds->dst; in dsa_port_setup_routing_table()
198 static bool dsa_tree_setup_routing_table(struct dsa_switch_tree *dst) in dsa_tree_setup_routing_table()
214 static struct dsa_port *dsa_tree_find_first_cpu(struct dsa_switch_tree *dst) in dsa_tree_find_first_cpu()
225 static int dsa_tree_setup_default_cpu(struct dsa_switch_tree *dst) in dsa_tree_setup_default_cpu()
243 static void dsa_tree_teardown_default_cpu(struct dsa_switch_tree *dst) in dsa_tree_teardown_default_cpu()
315 struct dsa_switch_tree *dst = dp->ds->dst; in dsa_port_devlink_setup()
516 static int dsa_tree_setup_switches(struct dsa_switch_tree *dst) in dsa_tree_setup_switches()
545 static void dsa_tree_teardown_switches(struct dsa_switch_tree *dst) in dsa_tree_teardown_switches()
556 static int dsa_tree_setup_master(struct dsa_switch_tree *dst) in dsa_tree_setup_master()
572 static void dsa_tree_teardown_master(struct dsa_switch_tree *dst) in dsa_tree_teardown_master()
581 static int dsa_tree_setup(struct dsa_switch_tree *dst) in dsa_tree_setup()
622 static void dsa_tree_teardown(struct dsa_switch_tree *dst) in dsa_tree_teardown()
647 struct dsa_switch_tree *dst = ds->dst; in dsa_port_touch()
714 struct dsa_switch_tree *dst = ds->dst; in dsa_port_parse_cpu()
926 struct dsa_switch_tree *dst = ds->dst; in dsa_switch_release_ports()
939 struct dsa_switch_tree *dst; in dsa_switch_probe()
994 struct dsa_switch_tree *dst = ds->dst; in dsa_switch_remove()