Home
last modified time | relevance | path

Searched refs:rb_parent_color (Results 1 – 4 of 4) sorted by relevance

/external/blktrace/
Drbtree.h101 unsigned long rb_parent_color; member
124 #define rb_parent(r) ((struct rb_node *)((r)->rb_parent_color & ~3))
125 #define rb_color(r) ((r)->rb_parent_color & 1)
128 #define rb_set_red(r) do { (r)->rb_parent_color &= ~1; } while (0)
129 #define rb_set_black(r) do { (r)->rb_parent_color |= 1; } while (0)
133 rb->rb_parent_color = (rb->rb_parent_color & 3) | (unsigned long)p; in rb_set_parent()
137 rb->rb_parent_color = (rb->rb_parent_color & ~1) | color; in rb_set_color()
159 node->rb_parent_color = (unsigned long )parent; in rb_link_node()
Drbtree.c250 node->rb_parent_color = old->rb_parent_color; in rb_erase()
/external/e2fsprogs/lib/ext2fs/
Drbtree.h108 uintptr_t rb_parent_color; member
122 #define ext2fs_rb_parent(r) ((struct rb_node *)((r)->rb_parent_color & ~3))
123 #define ext2fs_rb_color(r) ((r)->rb_parent_color & 1)
126 #define ext2fs_rb_set_red(r) do { (r)->rb_parent_color &= ~1; } while (0)
127 #define ext2fs_rb_set_black(r) do { (r)->rb_parent_color |= 1; } while (0)
131 rb->rb_parent_color = (rb->rb_parent_color & 3) | (uintptr_t)p; in ext2fs_rb_set_parent()
135 rb->rb_parent_color = (rb->rb_parent_color & ~1) | color; in ext2fs_rb_set_color()
173 node->rb_parent_color = (uintptr_t)parent; in ext2fs_rb_link_node()
Drbtree.c256 node->rb_parent_color = old->rb_parent_color; in ext2fs_rb_erase()