Lines Matching refs:matchlen
239 size_t matchlen; in trie_lookup_elem() local
245 matchlen = longest_prefix_match(trie, node, key); in trie_lookup_elem()
246 if (matchlen == trie->max_prefixlen) { in trie_lookup_elem()
255 if (matchlen < node->prefixlen) in trie_lookup_elem()
312 size_t matchlen = 0; in trie_update_elem() local
352 matchlen = longest_prefix_match(trie, node, key); in trie_update_elem()
354 if (node->prefixlen != matchlen || in trie_update_elem()
374 if (node->prefixlen == matchlen) { in trie_update_elem()
390 if (matchlen == key->prefixlen) { in trie_update_elem()
391 next_bit = extract_bit(node->data, matchlen); in trie_update_elem()
403 im_node->prefixlen = matchlen; in trie_update_elem()
408 if (extract_bit(key->data, matchlen)) { in trie_update_elem()
442 size_t matchlen = 0; in trie_delete_elem() local
461 matchlen = longest_prefix_match(trie, node, key); in trie_delete_elem()
463 if (node->prefixlen != matchlen || in trie_delete_elem()
474 node->prefixlen != matchlen || in trie_delete_elem()
623 size_t matchlen; in trie_get_next_key() local
654 matchlen = longest_prefix_match(trie, node, key); in trie_get_next_key()
655 if (node->prefixlen != matchlen || in trie_get_next_key()