Lines Matching refs:rb_right
115 tmp = gparent->rb_right; in __rb_insert()
139 tmp = parent->rb_right; in __rb_insert()
155 WRITE_ONCE(parent->rb_right, tmp); in __rb_insert()
163 tmp = node->rb_right; in __rb_insert()
177 WRITE_ONCE(parent->rb_right, gparent); in __rb_insert()
198 tmp = node->rb_right; in __rb_insert()
200 WRITE_ONCE(node->rb_right, parent); in __rb_insert()
211 WRITE_ONCE(gparent->rb_right, tmp); /* == parent->rb_left */ in __rb_insert()
240 sibling = parent->rb_right; in ____rb_erase_color()
253 WRITE_ONCE(parent->rb_right, tmp1); in ____rb_erase_color()
261 tmp1 = sibling->rb_right; in ____rb_erase_color()
319 tmp1 = tmp2->rb_right; in ____rb_erase_color()
321 WRITE_ONCE(tmp2->rb_right, sibling); in ____rb_erase_color()
322 WRITE_ONCE(parent->rb_right, tmp2); in ____rb_erase_color()
343 WRITE_ONCE(parent->rb_right, tmp2); in ____rb_erase_color()
356 tmp1 = sibling->rb_right; in ____rb_erase_color()
358 WRITE_ONCE(sibling->rb_right, parent); in ____rb_erase_color()
367 tmp2 = sibling->rb_right; in ____rb_erase_color()
384 WRITE_ONCE(sibling->rb_right, tmp1); in ____rb_erase_color()
395 tmp2 = sibling->rb_right; in ____rb_erase_color()
397 WRITE_ONCE(sibling->rb_right, parent); in ____rb_erase_color()
481 while (n->rb_right) in rb_last()
482 n = n->rb_right; in rb_last()
497 if (node->rb_right) { in rb_next()
498 node = node->rb_right; in rb_next()
511 while ((parent = rb_parent(node)) && node == parent->rb_right) in rb_next()
530 while (node->rb_right) in rb_prev()
531 node = node->rb_right; in rb_prev()
556 if (victim->rb_right) in rb_replace_node()
557 rb_set_parent(victim->rb_right, new); in rb_replace_node()
566 else if (node->rb_right) in rb_left_deepest_node()
567 node = node->rb_right; in rb_left_deepest_node()
581 if (parent && node == parent->rb_left && parent->rb_right) { in rb_next_postorder()
584 return rb_left_deepest_node(parent->rb_right); in rb_next_postorder()