Lines Matching refs:free
62 wl_tree_add(e, &ubi->free); in return_unused_pool_pebs()
92 if (!ubi->free.rb_node || (ubi->free_count - ubi->beb_rsvd_pebs < 1)) in ubi_wl_get_fm_peb()
96 e = find_anchor_wl_entry(&ubi->free); in ubi_wl_get_fm_peb()
98 e = find_mean_wl_entry(ubi, &ubi->free); in ubi_wl_get_fm_peb()
103 self_check_in_wl_tree(ubi, e, &ubi->free); in ubi_wl_get_fm_peb()
107 rb_erase(&e->u.rb, &ubi->free); in ubi_wl_get_fm_peb()
135 if (!ubi->free.rb_node) in ubi_refill_pools()
148 if (!ubi->free.rb_node || in ubi_refill_pools()
152 e = find_wl_entry(ubi, &ubi->free, WL_FREE_MAX_DIFF); in ubi_refill_pools()
153 self_check_in_wl_tree(ubi, e, &ubi->free); in ubi_refill_pools()
154 rb_erase(&e->u.rb, &ubi->free); in ubi_refill_pools()
185 while (!ubi->free.rb_node && ubi->works_count) { in produce_free_peb()