Lines Matching refs:pnum
40 if (e->pnum < UBI_FM_MAX_START && e->ec < max_ec) { in find_anchor_wl_entry()
73 if (e->pnum < UBI_FM_MAX_START) in anchor_pebs_avalible()
142 pool->pebs[pool->size] = e->pnum; in ubi_refill_pools()
157 wl_pool->pebs[wl_pool->size] = e->pnum; in ubi_refill_pools()
261 int pnum; in get_peb_for_wl() local
281 pnum = pool->pebs[pool->used++]; in get_peb_for_wl()
282 return ubi->lookuptbl[pnum]; in get_peb_for_wl()
329 int vol_id, pnum = fm_e->pnum; in ubi_wl_put_fm_peb() local
331 dbg_wl("PEB %d", pnum); in ubi_wl_put_fm_peb()
333 ubi_assert(pnum >= 0); in ubi_wl_put_fm_peb()
334 ubi_assert(pnum < ubi->peb_count); in ubi_wl_put_fm_peb()
337 e = ubi->lookuptbl[pnum]; in ubi_wl_put_fm_peb()
346 ubi->lookuptbl[pnum] = e; in ubi_wl_put_fm_peb()
390 e->pnum < UBI_FM_MAX_START) in may_reserve_for_fm()