Lines Matching refs:rbtree_ctx
65 struct regcache_rbtree_ctx *rbtree_ctx = map->cache; in regcache_rbtree_lookup() local
70 rbnode = rbtree_ctx->cached_rbnode; in regcache_rbtree_lookup()
78 node = rbtree_ctx->root.rb_node; in regcache_rbtree_lookup()
84 rbtree_ctx->cached_rbnode = rbnode; in regcache_rbtree_lookup()
135 struct regcache_rbtree_ctx *rbtree_ctx = map->cache; in rbtree_show() local
146 mem_size = sizeof(*rbtree_ctx); in rbtree_show()
148 for (node = rb_first(&rbtree_ctx->root); node != NULL; in rbtree_show()
186 struct regcache_rbtree_ctx *rbtree_ctx; in regcache_rbtree_init() local
190 map->cache = kmalloc(sizeof *rbtree_ctx, GFP_KERNEL); in regcache_rbtree_init()
194 rbtree_ctx = map->cache; in regcache_rbtree_init()
195 rbtree_ctx->root = RB_ROOT; in regcache_rbtree_init()
196 rbtree_ctx->cached_rbnode = NULL; in regcache_rbtree_init()
216 struct regcache_rbtree_ctx *rbtree_ctx; in regcache_rbtree_exit() local
220 rbtree_ctx = map->cache; in regcache_rbtree_exit()
221 if (!rbtree_ctx) in regcache_rbtree_exit()
225 next = rb_first(&rbtree_ctx->root); in regcache_rbtree_exit()
229 rb_erase(&rbtree_node->node, &rbtree_ctx->root); in regcache_rbtree_exit()
371 struct regcache_rbtree_ctx *rbtree_ctx; in regcache_rbtree_write() local
377 rbtree_ctx = map->cache; in regcache_rbtree_write()
402 node = rbtree_ctx->root.rb_node; in regcache_rbtree_write()
445 rbtree_ctx->cached_rbnode = rbnode; in regcache_rbtree_write()
458 regcache_rbtree_insert(map, &rbtree_ctx->root, rbnode); in regcache_rbtree_write()
459 rbtree_ctx->cached_rbnode = rbnode; in regcache_rbtree_write()
468 struct regcache_rbtree_ctx *rbtree_ctx; in regcache_rbtree_sync() local
477 rbtree_ctx = map->cache; in regcache_rbtree_sync()
478 for (node = rb_first(&rbtree_ctx->root); node; node = rb_next(node)) { in regcache_rbtree_sync()
513 struct regcache_rbtree_ctx *rbtree_ctx; in regcache_rbtree_drop() local
519 rbtree_ctx = map->cache; in regcache_rbtree_drop()
520 for (node = rb_first(&rbtree_ctx->root); node; node = rb_next(node)) { in regcache_rbtree_drop()