Lines Matching refs:trees
127 struct mtdswap_tree trees[MTDSWAP_TREE_CNT]; member
173 #define TREE_ROOT(d, name) (&d->trees[MTDSWAP_ ## name].root)
176 #define TREE_COUNT(d, name) (d->trees[MTDSWAP_ ## name].count)
209 oldidx = tp - &d->trees[0]; in mtdswap_eb_detach()
211 d->trees[oldidx].count--; in mtdswap_eb_detach()
239 if (eb->root == &d->trees[idx].root) in mtdswap_rb_add()
243 root = &d->trees[idx].root; in mtdswap_rb_add()
246 d->trees[idx].count++; in mtdswap_rb_add()
780 if (d->trees[idx].root.rb_node != NULL) in __mtdswap_choose_gc_tree()
822 root = &d->trees[i].root; in mtdswap_choose_wl_tree()
873 rp = &d->trees[idx].root; in mtdswap_pick_gc_eblk()
878 d->trees[idx].count--; in mtdswap_pick_gc_eblk()
1199 struct rb_root *root = &d->trees[i].root; in mtdswap_show()
1202 count[i] = d->trees[i].count; in mtdswap_show()
1318 d->trees[i].root = RB_ROOT; in mtdswap_init()