Lines Matching refs:wl_pool
110 struct ubi_fm_pool *wl_pool = &ubi->fm_wl_pool; in wait_free_pebs_for_pool() local
126 free += pool->size - pool->used + wl_pool->size - wl_pool->used; in wait_free_pebs_for_pool()
170 struct ubi_fm_pool *wl_pool = &ubi->fm_wl_pool; in can_fill_pools() local
173 wl_pool->max_size - wl_pool->size; in can_fill_pools()
187 struct ubi_fm_pool *wl_pool = &ubi->fm_wl_pool; in ubi_refill_pools_and_lock() local
201 return_unused_pool_pebs(ubi, wl_pool); in ubi_refill_pools_and_lock()
204 wl_pool->size = 0; in ubi_refill_pools_and_lock()
235 if (wl_pool->size < wl_pool->max_size) { in ubi_refill_pools_and_lock()
247 wl_pool->pebs[wl_pool->size] = e->pnum; in ubi_refill_pools_and_lock()
248 wl_pool->size++; in ubi_refill_pools_and_lock()
256 wl_pool->used = 0; in ubi_refill_pools_and_lock()
298 struct ubi_fm_pool *wl_pool = &ubi->fm_wl_pool; in ubi_wl_get_peb() local
306 if (pool->used == pool->size || wl_pool->used == wl_pool->size) { in ubi_wl_get_peb()