Lines Matching refs:ns_tree

197 void __ns_tree_add_raw(struct ns_common *ns, struct ns_tree_root *ns_tree)  in __ns_tree_add_raw()  argument
207 node = ns_tree_node_add(&ns->ns_tree_node, ns_tree, ns_cmp); in __ns_tree_add_raw()
233 void __ns_tree_remove(struct ns_common *ns, struct ns_tree_root *ns_tree) in __ns_tree_remove() argument
244 ns_tree_node_del(&ns->ns_tree_node, ns_tree); in __ns_tree_remove()
327 struct ns_tree_root *ns_tree; in __ns_tree_lookup_rcu() local
331 ns_tree = ns_tree_from_type(ns_type); in __ns_tree_lookup_rcu()
332 if (!ns_tree) in __ns_tree_lookup_rcu()
337 node = rb_find_rcu(&ns_id, &ns_tree->ns_rb, ns_find); in __ns_tree_lookup_rcu()
366 struct ns_tree_root *ns_tree, bool previous) in __ns_tree_adjoined_rcu() argument
376 if (list_is_head(list, &ns_tree->ns_list_head)) in __ns_tree_adjoined_rcu()
628 struct ns_tree_root *ns_tree = NULL; in lookup_ns_id_at() local
632 ns_tree = ns_tree_from_type(ns_type); in lookup_ns_id_at()
633 if (!ns_tree) in lookup_ns_id_at()
639 if (ns_tree) in lookup_ns_id_at()
640 node = ns_tree->ns_rb.rb_node; in lookup_ns_id_at()
671 struct ns_tree_root *ns_tree) in first_ns_common() argument
673 if (ns_tree) in first_ns_common()
679 struct ns_tree_root *ns_tree) in next_ns_common() argument
681 if (ns_tree) in next_ns_common()
688 struct ns_tree_root *ns_tree) in ns_common_is_head() argument
690 if (ns_tree) in ns_common_is_head()
700 struct ns_tree_root *ns_tree = NULL; in do_listns() local
711 ns_tree = ns_tree_from_type(ns_type); in do_listns()
712 if (!ns_tree) in do_listns()
724 if (ns_tree) in do_listns()
725 head = &ns_tree->ns_list_head; in do_listns()
732 first_ns = first_ns_common(head, ns_tree); in do_listns()
734 for (ns = first_ns; !ns_common_is_head(ns, head, ns_tree) && nr_ns_ids; in do_listns()
735 ns = next_ns_common(ns, ns_tree)) { in do_listns()