/Linux-v5.4/tools/include/linux/ |
D | rbtree.h | 30 struct rb_root { struct 36 #define RB_ROOT (struct rb_root) { NULL, } argument 48 extern void rb_insert_color(struct rb_node *, struct rb_root *); 49 extern void rb_erase(struct rb_node *, struct rb_root *); 55 extern struct rb_node *rb_first(const struct rb_root *); 56 extern struct rb_node *rb_last(const struct rb_root *); 59 extern struct rb_node *rb_first_postorder(const struct rb_root *); 64 struct rb_root *root); 103 static inline void rb_erase_init(struct rb_node *n, struct rb_root *root) in rb_erase_init() 120 struct rb_root rb_root; member [all …]
|
D | rbtree_augmented.h | 35 extern void __rb_insert_augmented(struct rb_node *node, struct rb_root *root, 49 rb_insert_augmented(struct rb_node *node, struct rb_root *root, in rb_insert_augmented() 62 rb_insert_augmented(node, &root->rb_root, augment); in rb_insert_augmented_cached() 172 struct rb_node *parent, struct rb_root *root) in __rb_change_child() 183 extern void __rb_erase_color(struct rb_node *parent, struct rb_root *root, 187 __rb_erase_augmented(struct rb_node *node, struct rb_root *root, in __rb_erase_augmented() 291 rb_erase_augmented(struct rb_node *node, struct rb_root *root, in rb_erase_augmented() 305 rb_erase_augmented(node, &root->rb_root, augment); in rb_erase_augmented_cached()
|
/Linux-v5.4/include/linux/ |
D | rbtree.h | 31 struct rb_root { struct 37 #define RB_ROOT (struct rb_root) { NULL, } argument 49 extern void rb_insert_color(struct rb_node *, struct rb_root *); 50 extern void rb_erase(struct rb_node *, struct rb_root *); 56 extern struct rb_node *rb_first(const struct rb_root *); 57 extern struct rb_node *rb_last(const struct rb_root *); 60 extern struct rb_node *rb_first_postorder(const struct rb_root *); 65 struct rb_root *root); 67 struct rb_root *root); 126 struct rb_root rb_root; member [all …]
|
D | rbtree_augmented.h | 33 extern void __rb_insert_augmented(struct rb_node *node, struct rb_root *root, 47 rb_insert_augmented(struct rb_node *node, struct rb_root *root, in rb_insert_augmented() 60 rb_insert_augmented(node, &root->rb_root, augment); in rb_insert_augmented_cached() 170 struct rb_node *parent, struct rb_root *root) in __rb_change_child() 183 struct rb_node *parent, struct rb_root *root) in __rb_change_child_rcu() 194 extern void __rb_erase_color(struct rb_node *parent, struct rb_root *root, 198 __rb_erase_augmented(struct rb_node *node, struct rb_root *root, in __rb_erase_augmented() 302 rb_erase_augmented(struct rb_node *node, struct rb_root *root, in rb_erase_augmented() 316 rb_erase_augmented(node, &root->rb_root, augment); in rb_erase_augmented_cached()
|
D | timerqueue.h | 15 struct rb_root_cached rb_root; member 36 struct rb_node *leftmost = rb_first_cached(&head->rb_root); in timerqueue_getnext() 58 head->rb_root = RB_ROOT_CACHED; in timerqueue_init_head()
|
/Linux-v5.4/lib/ |
D | timerqueue.c | 29 struct rb_node **p = &head->rb_root.rb_root.rb_node; in timerqueue_add() 48 rb_insert_color_cached(&node->node, &head->rb_root, leftmost); in timerqueue_add() 67 rb_erase_cached(&node->node, &head->rb_root); in timerqueue_del() 70 return !RB_EMPTY_ROOT(&head->rb_root.rb_root); in timerqueue_del()
|
D | rbtree_test.c | 34 struct rb_node **new = &root->rb_root.rb_node, *parent = NULL; in insert() 46 rb_insert_color(&node->rb, &root->rb_root); in insert() 51 struct rb_node **new = &root->rb_root.rb_node, *parent = NULL; in insert_cached() 71 rb_erase(&node->rb, &root->rb_root); in erase() 88 struct rb_node **new = &root->rb_root.rb_node, *rb_parent = NULL; in RB_DECLARE_CALLBACKS_MAX() 106 rb_insert_augmented(&node->rb, &root->rb_root, &augment_callbacks); in RB_DECLARE_CALLBACKS_MAX() 112 struct rb_node **new = &root->rb_root.rb_node, *rb_parent = NULL; in insert_augmented_cached() 140 rb_erase_augmented(&node->rb, &root->rb_root, &augment_callbacks); in erase_augmented() 175 rbtree_postorder_for_each_entry_safe(cur, n, &root.rb_root, rb) in check_postorder_foreach() 185 for (rb = rb_first_postorder(&root.rb_root); rb; rb = rb_next_postorder(rb)) in check_postorder() [all …]
|
D | rbtree.c | 76 struct rb_root *root, int color) in __rb_rotate_set_parents() 85 __rb_insert(struct rb_node *node, struct rb_root *root, in __rb_insert() 227 ____rb_erase_color(struct rb_node *parent, struct rb_root *root, in ____rb_erase_color() 410 void __rb_erase_color(struct rb_node *parent, struct rb_root *root, in __rb_erase_color() 434 void rb_insert_color(struct rb_node *node, struct rb_root *root) in rb_insert_color() 440 void rb_erase(struct rb_node *node, struct rb_root *root) in rb_erase() 456 void __rb_insert_augmented(struct rb_node *node, struct rb_root *root, in __rb_insert_augmented() 466 struct rb_node *rb_first(const struct rb_root *root) in rb_first() 479 struct rb_node *rb_last(const struct rb_root *root) in rb_last() 554 struct rb_root *root) in rb_replace_node() [all …]
|
/Linux-v5.4/arch/powerpc/kernel/ |
D | eeh_cache.c | 50 struct rb_root rb_root; member 56 struct rb_node *n = pci_io_addr_cache_root.rb_root.rb_node; in __eeh_addr_cache_get_device() 103 n = rb_first(&cache->rb_root); in eeh_addr_cache_print() 121 struct rb_node **p = &pci_io_addr_cache_root.rb_root.rb_node; in eeh_addr_cache_insert() 155 rb_insert_color(&piar->rb_node, &pci_io_addr_cache_root.rb_root); in eeh_addr_cache_insert() 226 n = rb_first(&pci_io_addr_cache_root.rb_root); in __eeh_addr_cache_rmv_dev() 234 rb_erase(n, &pci_io_addr_cache_root.rb_root); in __eeh_addr_cache_rmv_dev() 277 for (n = rb_first(&pci_io_addr_cache_root.rb_root); n; n = rb_next(n)) { in eeh_addr_cache_show()
|
/Linux-v5.4/drivers/block/drbd/ |
D | drbd_interval.h | 29 extern bool drbd_insert_interval(struct rb_root *, struct drbd_interval *); 30 extern bool drbd_contains_interval(struct rb_root *, sector_t, 32 extern void drbd_remove_interval(struct rb_root *, struct drbd_interval *); 33 extern struct drbd_interval *drbd_find_overlap(struct rb_root *, sector_t,
|
D | drbd_interval.c | 25 drbd_insert_interval(struct rb_root *root, struct drbd_interval *this) in drbd_insert_interval() 68 drbd_contains_interval(struct rb_root *root, sector_t sector, in drbd_contains_interval() 95 drbd_remove_interval(struct rb_root *root, struct drbd_interval *this) in drbd_remove_interval() 112 drbd_find_overlap(struct rb_root *root, sector_t sector, unsigned int size) in drbd_find_overlap()
|
/Linux-v5.4/drivers/mtd/ubi/ |
D | wl.h | 5 static int anchor_pebs_available(struct rb_root *root); 7 static struct ubi_wl_entry *find_anchor_wl_entry(struct rb_root *root); 18 struct rb_root *root); 25 struct rb_root *root) { in may_reserve_for_fm()
|
/Linux-v5.4/tools/lib/ |
D | rbtree.c | 76 struct rb_root *root, int color) in __rb_rotate_set_parents() 85 __rb_insert(struct rb_node *node, struct rb_root *root, in __rb_insert() 227 ____rb_erase_color(struct rb_node *parent, struct rb_root *root, in ____rb_erase_color() 410 void __rb_erase_color(struct rb_node *parent, struct rb_root *root, in __rb_erase_color() 433 void rb_insert_color(struct rb_node *node, struct rb_root *root) in rb_insert_color() 438 void rb_erase(struct rb_node *node, struct rb_root *root) in rb_erase() 453 void __rb_insert_augmented(struct rb_node *node, struct rb_root *root, in __rb_insert_augmented() 462 struct rb_node *rb_first(const struct rb_root *root) in rb_first() 474 struct rb_node *rb_last(const struct rb_root *root) in rb_last() 546 struct rb_root *root) in rb_replace_node() [all …]
|
/Linux-v5.4/tools/perf/util/ |
D | rb_resort.h | 72 struct rb_root entries; \ 92 struct rb_root *entries) \ 103 static struct __name##_sorted *__name##_sorted__new(struct rb_root *entries, \ 143 DECLARE_RESORT_RB(__name)(&__ilist->rblist.entries.rb_root, \ 148 DECLARE_RESORT_RB(__name)(&__machine->threads[hash_bucket].entries.rb_root, \
|
D | dsos.h | 19 struct rb_root root; /* rbtree root sorted by long name */ 31 struct dso *__dsos__findnew_link_by_longname(struct rb_root *root, struct dso *dso, const char *nam… 33 static inline struct dso *__dsos__findnew_by_longname(struct rb_root *root, const char *name) in __dsos__findnew_by_longname()
|
D | callchain.c | 372 rb_insert_callchain(struct rb_root *root, struct callchain_node *chain, in rb_insert_callchain() 413 __sort_chain_flat(struct rb_root *rb_root, struct callchain_node *node, in __sort_chain_flat() argument 424 __sort_chain_flat(rb_root, child, min_hit); in __sort_chain_flat() 428 rb_insert_callchain(rb_root, node, CHAIN_FLAT); in __sort_chain_flat() 436 sort_chain_flat(struct rb_root *rb_root, struct callchain_root *root, in sort_chain_flat() argument 439 *rb_root = RB_ROOT; in sort_chain_flat() 440 __sort_chain_flat(rb_root, &root->node, min_hit); in sort_chain_flat() 449 node->rb_root = RB_ROOT; in __sort_chain_graph_abs() 458 rb_insert_callchain(&node->rb_root, child, in __sort_chain_graph_abs() 464 sort_chain_graph_abs(struct rb_root *rb_root, struct callchain_root *chain_root, in sort_chain_graph_abs() argument [all …]
|
D | comm.c | 19 static struct rb_root comm_str_root; 61 struct comm_str *__comm_str__findnew(const char *str, struct rb_root *root) in __comm_str__findnew() 97 static struct comm_str *comm_str__findnew(const char *str, struct rb_root *root) in comm_str__findnew()
|
/Linux-v5.4/net/6lowpan/ |
D | nhc.c | 15 static struct rb_root rb_root = RB_ROOT; variable 21 struct rb_node **new = &rb_root.rb_node, *parent = NULL; in lowpan_nhc_insert() 51 rb_insert_color(&nhc->node, &rb_root); in lowpan_nhc_insert() 58 rb_erase(&nhc->node, &rb_root); in lowpan_nhc_remove() 63 struct rb_node *node = rb_root.rb_node; in lowpan_nhc_by_nhcid()
|
/Linux-v5.4/net/ipv4/ |
D | inetpeer.c | 59 bp->rb_root = RB_ROOT; in inet_peer_base_init() 109 pp = &base->rb_root.rb_node; in lookup() 170 rb_erase(&p->rb_node, &base->rb_root); in inet_peer_gc() 226 rb_insert_color(&p->rb_node, &base->rb_root); in inet_getpeer() 290 struct rb_node *p = rb_first(&base->rb_root); in inetpeer_invalidate_tree() 296 rb_erase(&peer->rb_node, &base->rb_root); in inetpeer_invalidate_tree()
|
/Linux-v5.4/include/net/netns/ |
D | nexthop.h | 12 struct rb_root rb_root; /* tree of nexthops by id */ member
|
/Linux-v5.4/arch/x86/mm/ |
D | pat_rbtree.c | 37 static struct rb_root memtype_rbroot = RB_ROOT; 63 static struct memtype *memtype_rb_lowest_match(struct rb_root *root, in RB_DECLARE_CALLBACKS_MAX() 93 static struct memtype *memtype_rb_match(struct rb_root *root, in memtype_rb_match() 120 static int memtype_rb_check_conflict(struct rb_root *root, in memtype_rb_check_conflict() 166 static void memtype_rb_insert(struct rb_root *root, struct memtype *newdata) in memtype_rb_insert()
|
/Linux-v5.4/include/linux/ceph/ |
D | osdmap.h | 168 struct rb_root pg_temp; 169 struct rb_root primary_temp; 172 struct rb_root pg_upmap; /* PG := raw set */ 173 struct rb_root pg_upmap_items; /* from -> to within raw set */ 177 struct rb_root pg_pools;
|
D | osd_client.h | 39 struct rb_root o_requests; 40 struct rb_root o_linger_requests; 41 struct rb_root o_backoff_mappings; 42 struct rb_root o_backoffs_by_id; 299 struct rb_root backoffs; 345 struct rb_root osds; /* osds */ 352 struct rb_root linger_requests; /* lingering requests */ 353 struct rb_root map_checks; 354 struct rb_root linger_map_checks;
|
/Linux-v5.4/fs/nfs/blocklayout/ |
D | extent_tree.c | 19 ext_tree_first(struct rb_root *root) in ext_tree_first() 46 __ext_tree_search(struct rb_root *root, sector_t start) in __ext_tree_search() 95 ext_try_to_merge_left(struct rb_root *root, struct pnfs_block_extent *be) in ext_try_to_merge_left() 111 ext_try_to_merge_right(struct rb_root *root, struct pnfs_block_extent *be) in ext_try_to_merge_right() 136 __ext_tree_insert(struct rb_root *root, in __ext_tree_insert() 177 __ext_tree_remove(struct rb_root *root, in __ext_tree_remove() 258 struct rb_root *root; in ext_tree_insert() 322 __ext_tree_lookup(struct rb_root *root, sector_t isect, in __ext_tree_lookup() 380 ext_tree_split(struct rb_root *root, struct pnfs_block_extent *be, in ext_tree_split() 408 struct rb_root *root = &bl->bl_ext_rw; in ext_tree_mark_written() [all …]
|
/Linux-v5.4/block/ |
D | bfq-iosched.h | 47 struct rb_root active; 49 struct rb_root idle; 157 struct rb_root *tree; 254 struct rb_root *pos_root; 257 struct rb_root sort_list; 912 struct rb_root rq_pos_tree; 924 struct rb_root rq_pos_tree;
|