Lines Matching refs:cindex
853 unsigned long cindex = get_index(tn->key, tp); in resize() local
863 BUG_ON(tn != get_child(tp, cindex)); in resize()
878 tn = get_child(tp, cindex); in resize()
901 tn = get_child(tp, cindex); in resize()
1455 t_key cindex; in fib_table_lookup() local
1458 cindex = 0; in fib_table_lookup()
1460 n = get_child_rcu(pn, cindex); in fib_table_lookup()
1500 cindex = index; in fib_table_lookup()
1540 while (!cindex) { in fib_table_lookup()
1557 cindex = get_index(pkey, pn); in fib_table_lookup()
1561 cindex &= cindex - 1; in fib_table_lookup()
1564 cptr = &pn->tnode[cindex]; in fib_table_lookup()
1786 unsigned long cindex; in leaf_walk_rcu() local
1792 cindex = (key > pn->key) ? get_index(key, pn) : 0; in leaf_walk_rcu()
1794 if (cindex >> pn->bits) in leaf_walk_rcu()
1798 n = get_child_rcu(pn, cindex++); in leaf_walk_rcu()
1810 if (cindex >= (1ul << pn->bits)) { in leaf_walk_rcu()
1814 cindex = get_index(pkey, pn) + 1; in leaf_walk_rcu()
1819 n = get_child_rcu(pn, cindex++); in leaf_walk_rcu()
1829 cindex = 0; in leaf_walk_rcu()
1844 unsigned long cindex = 1; in fib_trie_free() local
1852 if (!(cindex--)) { in fib_trie_free()
1865 cindex = get_index(pkey, pn); in fib_trie_free()
1871 n = get_child(pn, cindex); in fib_trie_free()
1878 cindex = 1ul << n->bits; in fib_trie_free()
1961 unsigned long cindex = 1; in fib_table_flush_external() local
1970 if (!(cindex--)) { in fib_table_flush_external()
1983 cindex = get_index(pkey, pn); in fib_table_flush_external()
1989 n = get_child(pn, cindex); in fib_table_flush_external()
1996 cindex = 1ul << n->bits; in fib_table_flush_external()
2030 unsigned long cindex = 1; in fib_table_flush() local
2040 if (!(cindex--)) { in fib_table_flush()
2053 cindex = get_index(pkey, pn); in fib_table_flush()
2059 n = get_child(pn, cindex); in fib_table_flush()
2066 cindex = 1ul << n->bits; in fib_table_flush()
2116 unsigned long cindex = 1; in __fib_info_notify_update() local
2122 if (!(cindex--)) { in __fib_info_notify_update()
2129 cindex = get_index(pkey, pn); in __fib_info_notify_update()
2134 n = get_child(pn, cindex); in __fib_info_notify_update()
2141 cindex = 1ul << n->bits; in __fib_info_notify_update()
2451 unsigned long cindex = iter->index; in fib_trie_get_next() local
2459 while (cindex < child_length(pn)) { in fib_trie_get_next()
2460 struct key_vector *n = get_child_rcu(pn, cindex++); in fib_trie_get_next()
2467 iter->index = cindex; in fib_trie_get_next()
2481 cindex = get_index(pkey, pn) + 1; in fib_trie_get_next()