Lines Matching refs:RB_COLOR
319 #define RB_COLOR(elm, field) (elm)->field.rbe_color
326 RB_COLOR(elm, field) = RB_RED; \
330 RB_COLOR(black, field) = RB_BLACK; \
331 RB_COLOR(red, field) = RB_RED; \
408 RB_COLOR(parent, field) == RB_RED) { \
412 if (tmp && RB_COLOR(tmp, field) == RB_RED) { \
413 RB_COLOR(tmp, field) = RB_BLACK; \
428 if (tmp && RB_COLOR(tmp, field) == RB_RED) { \
429 RB_COLOR(tmp, field) = RB_BLACK; \
444 RB_COLOR(head->rbh_root, field) = RB_BLACK; \
451 while ((elm == NULL || RB_COLOR(elm, field) == RB_BLACK) && \
455 if (RB_COLOR(tmp, field) == RB_RED) { \
461 RB_COLOR(RB_LEFT(tmp, field), field) == RB_BLACK) &&\
463 RB_COLOR(RB_RIGHT(tmp, field), field) == RB_BLACK)) {\
464 RB_COLOR(tmp, field) = RB_RED; \
469 RB_COLOR(RB_RIGHT(tmp, field), field) == RB_BLACK) {\
473 RB_COLOR(oleft, field) = RB_BLACK;\
474 RB_COLOR(tmp, field) = RB_RED; \
478 RB_COLOR(tmp, field) = RB_COLOR(parent, field);\
479 RB_COLOR(parent, field) = RB_BLACK; \
481 RB_COLOR(RB_RIGHT(tmp, field), field) = RB_BLACK;\
488 if (RB_COLOR(tmp, field) == RB_RED) { \
494 RB_COLOR(RB_LEFT(tmp, field), field) == RB_BLACK) &&\
496 RB_COLOR(RB_RIGHT(tmp, field), field) == RB_BLACK)) {\
497 RB_COLOR(tmp, field) = RB_RED; \
502 RB_COLOR(RB_LEFT(tmp, field), field) == RB_BLACK) {\
506 RB_COLOR(oright, field) = RB_BLACK;\
507 RB_COLOR(tmp, field) = RB_RED; \
511 RB_COLOR(tmp, field) = RB_COLOR(parent, field);\
512 RB_COLOR(parent, field) = RB_BLACK; \
514 RB_COLOR(RB_LEFT(tmp, field), field) = RB_BLACK;\
522 RB_COLOR(elm, field) = RB_BLACK; \
541 color = RB_COLOR(elm, field); \
575 color = RB_COLOR(elm, field); \