Lines Matching refs:tn_info
189 static inline struct tnode *tn_info(struct key_vector *kv) in tn_info() function
195 #define node_parent(tn) rtnl_dereference(tn_info(tn)->parent)
199 #define node_parent_rcu(tn) rcu_dereference_rtnl(tn_info(tn)->parent)
206 rcu_assign_pointer(tn_info(n)->parent, tp); in node_set_parent()
209 #define NODE_INIT_PARENT(n, p) RCU_INIT_POINTER(tn_info(n)->parent, p)
319 #define node_free(n) call_rcu(&tn_info(n)->rcu, __node_free_rcu)
340 tn_info(n)->empty_children++; in empty_child_inc()
342 if (!tn_info(n)->empty_children) in empty_child_inc()
343 tn_info(n)->full_children++; in empty_child_inc()
348 if (!tn_info(n)->empty_children) in empty_child_dec()
349 tn_info(n)->full_children--; in empty_child_dec()
351 tn_info(n)->empty_children--; in empty_child_dec()
437 tn_info(tn)->full_children--; in put_child()
439 tn_info(tn)->full_children++; in put_child()
480 tn_info(tn)->rcu.next = NULL; in tnode_free_init()
486 tn_info(n)->rcu.next = tn_info(tn)->rcu.next; in tnode_free_append()
487 tn_info(tn)->rcu.next = &tn_info(n)->rcu; in tnode_free_append()
492 struct callback_head *head = &tn_info(tn)->rcu; in tnode_free()
811 used -= tn_info(tn)->empty_children; in should_inflate()
812 used += tn_info(tn)->full_children; in should_inflate()
826 used -= tn_info(tn)->empty_children; in should_halve()
837 used -= tn_info(tn)->empty_children; in should_collapse()
840 if ((tn->bits == KEYLENGTH) && tn_info(tn)->full_children) in should_collapse()
2547 s->nullpointers += tn_info(n)->empty_children; in trie_collect_stats()
2812 tn_info(n)->full_children, in fib_trie_seq_show()
2813 tn_info(n)->empty_children); in fib_trie_seq_show()