Lines Matching refs:tn_info
162 static inline struct tnode *tn_info(struct key_vector *kv) in tn_info() function
168 #define node_parent(tn) rtnl_dereference(tn_info(tn)->parent)
172 #define node_parent_rcu(tn) rcu_dereference_rtnl(tn_info(tn)->parent)
179 rcu_assign_pointer(tn_info(n)->parent, tp); in node_set_parent()
182 #define NODE_INIT_PARENT(n, p) RCU_INIT_POINTER(tn_info(n)->parent, p)
296 #define node_free(n) call_rcu(&tn_info(n)->rcu, __node_free_rcu)
317 ++tn_info(n)->empty_children ? : ++tn_info(n)->full_children; in empty_child_inc()
322 tn_info(n)->empty_children-- ? : tn_info(n)->full_children--; in empty_child_dec()
404 tn_info(tn)->full_children--; in put_child()
406 tn_info(tn)->full_children++; in put_child()
447 tn_info(tn)->rcu.next = NULL; in tnode_free_init()
453 tn_info(n)->rcu.next = tn_info(tn)->rcu.next; in tnode_free_append()
454 tn_info(tn)->rcu.next = &tn_info(n)->rcu; in tnode_free_append()
459 struct callback_head *head = &tn_info(tn)->rcu; in tnode_free()
775 used -= tn_info(tn)->empty_children; in should_inflate()
776 used += tn_info(tn)->full_children; in should_inflate()
790 used -= tn_info(tn)->empty_children; in should_halve()
801 used -= tn_info(tn)->empty_children; in should_collapse()
804 if ((tn->bits == KEYLENGTH) && tn_info(tn)->full_children) in should_collapse()
2101 s->nullpointers += tn_info(n)->empty_children; in trie_collect_stats()
2376 tn_info(n)->full_children, in fib_trie_seq_show()
2377 tn_info(n)->empty_children); in fib_trie_seq_show()