Lines Matching refs:cur_node
284 rb_node *cur_node; in rbtree_insert() local
304 cur_node = tree->root; in rbtree_insert()
309 while (cur_node) { in rbtree_insert()
313 comp_result = COMP_NODES(object, cur_node->object); in rbtree_insert()
321 if (!(cur_node->left)) { in rbtree_insert()
325 cur_node->left = new_node; in rbtree_insert()
326 new_node->parent = cur_node; in rbtree_insert()
327 cur_node = NULL; /* Terminate the while loop */ in rbtree_insert()
330 cur_node = cur_node->left; in rbtree_insert()
333 if (!(cur_node->right)) { in rbtree_insert()
337 cur_node->right = new_node; in rbtree_insert()
338 new_node->parent = cur_node; in rbtree_insert()
339 cur_node = NULL; /* Terminate the while loop */ in rbtree_insert()
342 cur_node = cur_node->right; in rbtree_insert()
627 rb_node *cur_node = tree->root; in rbtree_find() local
630 while (cur_node) { in rbtree_find()
631 comp_result = COMP_NODES(object, cur_node->object); in rbtree_find()
636 return cur_node; in rbtree_find()
638 cur_node = (comp_result > 0) ? cur_node->left : cur_node->right; in rbtree_find()