Lines Matching refs:matchlen
238 size_t matchlen; in trie_lookup_elem() local
244 matchlen = longest_prefix_match(trie, node, key); in trie_lookup_elem()
245 if (matchlen == trie->max_prefixlen) { in trie_lookup_elem()
254 if (matchlen < node->prefixlen) in trie_lookup_elem()
311 size_t matchlen = 0; in trie_update_elem() local
351 matchlen = longest_prefix_match(trie, node, key); in trie_update_elem()
353 if (node->prefixlen != matchlen || in trie_update_elem()
373 if (node->prefixlen == matchlen) { in trie_update_elem()
389 if (matchlen == key->prefixlen) { in trie_update_elem()
390 next_bit = extract_bit(node->data, matchlen); in trie_update_elem()
402 im_node->prefixlen = matchlen; in trie_update_elem()
407 if (extract_bit(key->data, matchlen)) { in trie_update_elem()
441 size_t matchlen = 0; in trie_delete_elem() local
460 matchlen = longest_prefix_match(trie, node, key); in trie_delete_elem()
462 if (node->prefixlen != matchlen || in trie_delete_elem()
473 node->prefixlen != matchlen || in trie_delete_elem()
622 size_t matchlen; in trie_get_next_key() local
653 matchlen = longest_prefix_match(trie, node, key); in trie_get_next_key()
654 if (node->prefixlen != matchlen || in trie_get_next_key()