Lines Matching refs:tnode

129 		DECLARE_FLEX_ARRAY(struct key_vector __rcu *, tnode);
133 struct tnode { struct
142 #define TNODE_SIZE(n) offsetof(struct tnode, kv[0].tnode[n]) argument
188 static inline struct tnode *tn_info(struct key_vector *kv) in tn_info()
190 return container_of(kv, struct tnode, kv[0]); in tn_info()
195 #define get_child(tn, i) rtnl_dereference((tn)->tnode[i])
199 #define get_child_rcu(tn, i) rcu_dereference_rtnl((tn)->tnode[i])
310 struct tnode *n = container_of(head, struct tnode, rcu); in __node_free_rcu()
320 static struct tnode *tnode_alloc(int bits) in tnode_alloc()
356 struct tnode *kv; in leaf_new()
380 struct tnode *tnode; in tnode_new() local
385 tnode = tnode_alloc(bits); in tnode_new()
386 if (!tnode) in tnode_new()
389 pr_debug("AT %p s=%zu %zu\n", tnode, TNODE_SIZE(0), in tnode_new()
393 tnode->full_children = 1; in tnode_new()
395 tnode->empty_children = 1ul << bits; in tnode_new()
397 tn = tnode->kv; in tnode_new()
443 rcu_assign_pointer(tn->tnode[i], n); in put_child()
472 rcu_assign_pointer(tp->tnode[0], n); in put_child_root()
498 tn = container_of(head, struct tnode, rcu)->kv; in tnode_free()
1511 struct key_vector __rcu **cptr = n->tnode; in fib_table_lookup()
1564 cptr = &pn->tnode[cindex]; in fib_table_lookup()
2444 struct key_vector *tnode; member
2452 struct key_vector *pn = iter->tnode; in fib_trie_get_next()
2456 iter->tnode, iter->index, iter->depth); in fib_trie_get_next()
2466 iter->tnode = pn; in fib_trie_get_next()
2470 iter->tnode = n; in fib_trie_get_next()
2486 iter->tnode = pn; in fib_trie_get_next()
2501 n = rcu_dereference(pn->tnode[0]); in fib_trie_get_first()
2506 iter->tnode = n; in fib_trie_get_first()
2510 iter->tnode = pn; in fib_trie_get_first()
2845 struct key_vector *tnode; member
2853 struct key_vector *l, **tp = &iter->tnode; in fib_route_get_idx()
2899 iter->tnode = t->kv; in fib_route_seq_start()
2920 l = leaf_walk_rcu(&iter->tnode, key); in fib_route_seq_next()