Home
last modified time | relevance | path

Searched refs:pebs (Results 1 – 6 of 6) sorted by relevance

/drivers/mtd/ubi/
Dvmt.c419 int i, err, pebs; in ubi_resize_volume() local
456 pebs = reserved_pebs - vol->reserved_pebs; in ubi_resize_volume()
457 if (pebs > 0) { in ubi_resize_volume()
459 if (pebs > ubi->avail_pebs) { in ubi_resize_volume()
461 pebs, ubi->avail_pebs); in ubi_resize_volume()
469 ubi->avail_pebs -= pebs; in ubi_resize_volume()
470 ubi->rsvd_pebs += pebs; in ubi_resize_volume()
476 if (pebs < 0) { in ubi_resize_volume()
477 for (i = 0; i < -pebs; i++) { in ubi_resize_volume()
483 ubi->rsvd_pebs += pebs; in ubi_resize_volume()
[all …]
Dfastmap-wl.c63 e = ubi->lookuptbl[pool->pebs[i]]; in return_unused_pool_pebs()
144 pool->pebs[pool->size] = e->pnum; in ubi_refill_pools()
159 wl_pool->pebs[wl_pool->size] = e->pnum; in ubi_refill_pools()
249 ret = pool->pebs[pool->used++]; in ubi_wl_get_peb()
278 pnum = pool->pebs[pool->used++]; in get_peb_for_wl()
Dfastmap.c411 __be32 *pebs, int pool_size, unsigned long long *max_sqnum, in scan_pool() argument
442 pnum = be32_to_cpu(pebs[i]); in scan_pool()
765 ret = scan_pool(ubi, ai, fmpl->pebs, pool_size, &max_sqnum, &free); in ubi_attach_fastmap()
769 ret = scan_pool(ubi, ai, fmpl_wl->pebs, wl_pool_size, &max_sqnum, &free); in ubi_attach_fastmap()
1207 fmpl->pebs[i] = cpu_to_be32(ubi->fm_pool.pebs[i]); in ubi_write_fastmap()
1208 set_seen(ubi, ubi->fm_pool.pebs[i], seen_pebs); in ubi_write_fastmap()
1218 fmpl_wl->pebs[i] = cpu_to_be32(ubi->fm_wl_pool.pebs[i]); in ubi_write_fastmap()
1219 set_seen(ubi, ubi->fm_wl_pool.pebs[i], seen_pebs); in ubi_write_fastmap()
Dubi-media.h463 __be32 pebs[UBI_FM_MAX_POOL_SIZE]; member
Dcdev.c912 int pebs; in ubi_cdev_ioctl() local
932 pebs = div_u64(req.bytes + desc->vol->usable_leb_size - 1, in ubi_cdev_ioctl()
936 err = ubi_resize_volume(desc, pebs); in ubi_cdev_ioctl()
Dubi.h274 int pebs[UBI_FM_MAX_POOL_SIZE]; member