Lines Matching refs:cindex

859 	unsigned long cindex = get_index(tn->key, tp);  in resize()  local
869 BUG_ON(tn != get_child(tp, cindex)); in resize()
884 tn = get_child(tp, cindex); in resize()
907 tn = get_child(tp, cindex); in resize()
1327 t_key cindex; in fib_table_lookup() local
1330 cindex = 0; in fib_table_lookup()
1332 n = get_child_rcu(pn, cindex); in fib_table_lookup()
1372 cindex = index; in fib_table_lookup()
1412 while (!cindex) { in fib_table_lookup()
1429 cindex = get_index(pkey, pn); in fib_table_lookup()
1433 cindex &= cindex - 1; in fib_table_lookup()
1436 cptr = &pn->tnode[cindex]; in fib_table_lookup()
1619 unsigned long cindex; in leaf_walk_rcu() local
1625 cindex = (key > pn->key) ? get_index(key, pn) : 0; in leaf_walk_rcu()
1627 if (cindex >> pn->bits) in leaf_walk_rcu()
1631 n = get_child_rcu(pn, cindex++); in leaf_walk_rcu()
1643 if (cindex >= (1ul << pn->bits)) { in leaf_walk_rcu()
1647 cindex = get_index(pkey, pn) + 1; in leaf_walk_rcu()
1652 n = get_child_rcu(pn, cindex++); in leaf_walk_rcu()
1662 cindex = 0; in leaf_walk_rcu()
1677 unsigned long cindex = 1; in fib_trie_free() local
1685 if (!(cindex--)) { in fib_trie_free()
1698 cindex = get_index(pkey, pn); in fib_trie_free()
1704 n = get_child(pn, cindex); in fib_trie_free()
1711 cindex = 1ul << n->bits; in fib_trie_free()
1794 unsigned long cindex = 1; in fib_table_flush_external() local
1803 if (!(cindex--)) { in fib_table_flush_external()
1816 cindex = get_index(pkey, pn); in fib_table_flush_external()
1822 n = get_child(pn, cindex); in fib_table_flush_external()
1829 cindex = 1ul << n->bits; in fib_table_flush_external()
1863 unsigned long cindex = 1; in fib_table_flush() local
1873 if (!(cindex--)) { in fib_table_flush()
1886 cindex = get_index(pkey, pn); in fib_table_flush()
1892 n = get_child(pn, cindex); in fib_table_flush()
1899 cindex = 1ul << n->bits; in fib_table_flush()
2141 unsigned long cindex = iter->index; in fib_trie_get_next() local
2149 while (cindex < child_length(pn)) { in fib_trie_get_next()
2150 struct key_vector *n = get_child_rcu(pn, cindex++); in fib_trie_get_next()
2157 iter->index = cindex; in fib_trie_get_next()
2171 cindex = get_index(pkey, pn) + 1; in fib_trie_get_next()