Home
last modified time | relevance | path

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

/drivers/mtd/ubi/
Dvmt.c435 int i, err, pebs, *new_mapping; in ubi_resize_volume() local
474 pebs = reserved_pebs - vol->reserved_pebs; in ubi_resize_volume()
475 if (pebs > 0) { in ubi_resize_volume()
477 if (pebs > ubi->avail_pebs) { in ubi_resize_volume()
479 pebs, ubi->avail_pebs); in ubi_resize_volume()
487 ubi->avail_pebs -= pebs; in ubi_resize_volume()
488 ubi->rsvd_pebs += pebs; in ubi_resize_volume()
496 if (pebs < 0) { in ubi_resize_volume()
497 for (i = 0; i < -pebs; i++) { in ubi_resize_volume()
503 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.c454 __be32 *pebs, int pool_size, unsigned long long *max_sqnum, in scan_pool() argument
482 pnum = be32_to_cpu(pebs[i]); in scan_pool()
808 ret = scan_pool(ubi, ai, fmpl->pebs, pool_size, &max_sqnum, &free); in ubi_attach_fastmap()
812 ret = scan_pool(ubi, ai, fmpl_wl->pebs, wl_pool_size, &max_sqnum, &free); in ubi_attach_fastmap()
1191 fmpl->pebs[i] = cpu_to_be32(ubi->fm_pool.pebs[i]); in ubi_write_fastmap()
1192 set_seen(ubi, ubi->fm_pool.pebs[i], seen_pebs); in ubi_write_fastmap()
1202 fmpl_wl->pebs[i] = cpu_to_be32(ubi->fm_wl_pool.pebs[i]); in ubi_write_fastmap()
1203 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.h259 int pebs[UBI_FM_MAX_POOL_SIZE]; member