Lines Matching refs:rbtree_ctx
69 struct regcache_rbtree_ctx *rbtree_ctx = map->cache; in regcache_rbtree_lookup() local
74 rbnode = rbtree_ctx->cached_rbnode; in regcache_rbtree_lookup()
82 node = rbtree_ctx->root.rb_node; in regcache_rbtree_lookup()
88 rbtree_ctx->cached_rbnode = rbnode; in regcache_rbtree_lookup()
140 struct regcache_rbtree_ctx *rbtree_ctx = map->cache; in rbtree_show() local
151 mem_size = sizeof(*rbtree_ctx); in rbtree_show()
153 for (node = rb_first(&rbtree_ctx->root); node != NULL; in rbtree_show()
201 struct regcache_rbtree_ctx *rbtree_ctx; in regcache_rbtree_init() local
205 map->cache = kmalloc(sizeof *rbtree_ctx, GFP_KERNEL); in regcache_rbtree_init()
209 rbtree_ctx = map->cache; in regcache_rbtree_init()
210 rbtree_ctx->root = RB_ROOT; in regcache_rbtree_init()
211 rbtree_ctx->cached_rbnode = NULL; in regcache_rbtree_init()
231 struct regcache_rbtree_ctx *rbtree_ctx; in regcache_rbtree_exit() local
235 rbtree_ctx = map->cache; in regcache_rbtree_exit()
236 if (!rbtree_ctx) in regcache_rbtree_exit()
240 next = rb_first(&rbtree_ctx->root); in regcache_rbtree_exit()
244 rb_erase(&rbtree_node->node, &rbtree_ctx->root); in regcache_rbtree_exit()
387 struct regcache_rbtree_ctx *rbtree_ctx; in regcache_rbtree_write() local
393 rbtree_ctx = map->cache; in regcache_rbtree_write()
418 node = rbtree_ctx->root.rb_node; in regcache_rbtree_write()
461 rbtree_ctx->cached_rbnode = rbnode; in regcache_rbtree_write()
473 regcache_rbtree_insert(map, &rbtree_ctx->root, rbnode); in regcache_rbtree_write()
474 rbtree_ctx->cached_rbnode = rbnode; in regcache_rbtree_write()
483 struct regcache_rbtree_ctx *rbtree_ctx; in regcache_rbtree_sync() local
490 rbtree_ctx = map->cache; in regcache_rbtree_sync()
491 for (node = rb_first(&rbtree_ctx->root); node; node = rb_next(node)) { in regcache_rbtree_sync()
524 struct regcache_rbtree_ctx *rbtree_ctx; in regcache_rbtree_drop() local
530 rbtree_ctx = map->cache; in regcache_rbtree_drop()
531 for (node = rb_first(&rbtree_ctx->root); node; node = rb_next(node)) { in regcache_rbtree_drop()