Lines Matching refs:parent
442 struct lpm_trie_node *node, *parent; in trie_delete_elem() local
461 parent = NULL; in trie_delete_elem()
470 parent = node; in trie_delete_elem()
501 if (parent && (parent->flags & LPM_TREE_NODE_FLAG_IM) && in trie_delete_elem()
503 if (node == rcu_access_pointer(parent->child[0])) in trie_delete_elem()
505 *trim2, rcu_access_pointer(parent->child[1])); in trie_delete_elem()
508 *trim2, rcu_access_pointer(parent->child[0])); in trie_delete_elem()
509 kfree_rcu(parent, rcu); in trie_delete_elem()
620 struct lpm_trie_node *node, *next_node = NULL, *parent, *search_root; in trie_get_next_key() local
674 parent = node_stack[stack_ptr - 1]; in trie_get_next_key()
675 if (rcu_dereference(parent->child[0]) == node) { in trie_get_next_key()
676 search_root = rcu_dereference(parent->child[1]); in trie_get_next_key()
680 if (!(parent->flags & LPM_TREE_NODE_FLAG_IM)) { in trie_get_next_key()
681 next_node = parent; in trie_get_next_key()
685 node = parent; in trie_get_next_key()