Lines Matching refs:cindex

852 	unsigned long cindex = get_index(tn->key, tp);  in resize()  local
862 BUG_ON(tn != get_child(tp, cindex)); in resize()
877 tn = get_child(tp, cindex); in resize()
900 tn = get_child(tp, cindex); in resize()
1408 t_key cindex; in fib_table_lookup() local
1411 cindex = 0; in fib_table_lookup()
1413 n = get_child_rcu(pn, cindex); in fib_table_lookup()
1453 cindex = index; in fib_table_lookup()
1493 while (!cindex) { in fib_table_lookup()
1510 cindex = get_index(pkey, pn); in fib_table_lookup()
1514 cindex &= cindex - 1; in fib_table_lookup()
1517 cptr = &pn->tnode[cindex]; in fib_table_lookup()
1736 unsigned long cindex; in leaf_walk_rcu() local
1742 cindex = (key > pn->key) ? get_index(key, pn) : 0; in leaf_walk_rcu()
1744 if (cindex >> pn->bits) in leaf_walk_rcu()
1748 n = get_child_rcu(pn, cindex++); in leaf_walk_rcu()
1760 if (cindex >= (1ul << pn->bits)) { in leaf_walk_rcu()
1764 cindex = get_index(pkey, pn) + 1; in leaf_walk_rcu()
1769 n = get_child_rcu(pn, cindex++); in leaf_walk_rcu()
1779 cindex = 0; in leaf_walk_rcu()
1794 unsigned long cindex = 1; in fib_trie_free() local
1802 if (!(cindex--)) { in fib_trie_free()
1815 cindex = get_index(pkey, pn); in fib_trie_free()
1821 n = get_child(pn, cindex); in fib_trie_free()
1828 cindex = 1ul << n->bits; in fib_trie_free()
1911 unsigned long cindex = 1; in fib_table_flush_external() local
1920 if (!(cindex--)) { in fib_table_flush_external()
1933 cindex = get_index(pkey, pn); in fib_table_flush_external()
1939 n = get_child(pn, cindex); in fib_table_flush_external()
1946 cindex = 1ul << n->bits; in fib_table_flush_external()
1980 unsigned long cindex = 1; in fib_table_flush() local
1990 if (!(cindex--)) { in fib_table_flush()
2003 cindex = get_index(pkey, pn); in fib_table_flush()
2009 n = get_child(pn, cindex); in fib_table_flush()
2016 cindex = 1ul << n->bits; in fib_table_flush()
2066 unsigned long cindex = 1; in __fib_info_notify_update() local
2072 if (!(cindex--)) { in __fib_info_notify_update()
2079 cindex = get_index(pkey, pn); in __fib_info_notify_update()
2084 n = get_child(pn, cindex); in __fib_info_notify_update()
2091 cindex = 1ul << n->bits; in __fib_info_notify_update()
2409 unsigned long cindex = iter->index; in fib_trie_get_next() local
2417 while (cindex < child_length(pn)) { in fib_trie_get_next()
2418 struct key_vector *n = get_child_rcu(pn, cindex++); in fib_trie_get_next()
2425 iter->index = cindex; in fib_trie_get_next()
2439 cindex = get_index(pkey, pn) + 1; in fib_trie_get_next()