Home
last modified time | relevance | path

Searched refs:reserved_pebs (Results 1 – 14 of 14) sorted by relevance

/external/u-boot/drivers/mtd/ubi/
Dvmt.c83 ret = sprintf(buf, "%d\n", vol->reserved_pebs); in vol_attribute_show()
206 vol->reserved_pebs = div_u64(req->bytes + vol->usable_leb_size - 1, in ubi_create_volume()
210 if (vol->reserved_pebs > ubi->avail_pebs) { in ubi_create_volume()
219 ubi->avail_pebs -= vol->reserved_pebs; in ubi_create_volume()
220 ubi->rsvd_pebs += vol->reserved_pebs; in ubi_create_volume()
239 vol->eba_tbl = kmalloc(vol->reserved_pebs * sizeof(int), GFP_KERNEL); in ubi_create_volume()
245 for (i = 0; i < vol->reserved_pebs; i++) in ubi_create_volume()
249 vol->used_ebs = vol->reserved_pebs; in ubi_create_volume()
290 vtbl_rec.reserved_pebs = cpu_to_be32(vol->reserved_pebs); in ubi_create_volume()
332 ubi->rsvd_pebs -= vol->reserved_pebs; in ubi_create_volume()
[all …]
Dvtbl.c166 int i, n, reserved_pebs, alignment, data_pad, vol_type, name_len; local
174 reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs);
190 if (reserved_pebs == 0) {
199 if (reserved_pebs < 0 || alignment < 0 || data_pad < 0 ||
233 if (reserved_pebs > ubi->good_peb_count) {
235 reserved_pebs, ubi->good_peb_count);
531 int i, reserved_pebs = 0; local
538 if (be32_to_cpu(vtbl[i].reserved_pebs) == 0)
545 vol->reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs);
573 reserved_pebs += vol->reserved_pebs;
[all …]
Dkapi.c79 vi->size = vol->reserved_pebs; in ubi_do_get_volume_info()
535 if (lnum < 0 || lnum >= vol->reserved_pebs || offset < 0 || len < 0 || in ubi_leb_write()
580 if (lnum < 0 || lnum >= vol->reserved_pebs || len < 0 || in ubi_leb_change()
617 if (lnum < 0 || lnum >= vol->reserved_pebs) in ubi_leb_erase()
677 if (lnum < 0 || lnum >= vol->reserved_pebs) in ubi_leb_unmap()
713 if (lnum < 0 || lnum >= vol->reserved_pebs) in ubi_leb_map()
748 if (lnum < 0 || lnum >= vol->reserved_pebs) in ubi_is_mapped()
Dubi-media.h353 __be32 reserved_pebs; member
501 __be32 reserved_pebs; member
Deba.c1317 scan_eba[i] = kmalloc(vol->reserved_pebs * sizeof(**scan_eba), in self_check_eba()
1324 fm_eba[i] = kmalloc(vol->reserved_pebs * sizeof(**fm_eba), in self_check_eba()
1331 for (j = 0; j < vol->reserved_pebs; j++) in self_check_eba()
1348 for (j = 0; j < vol->reserved_pebs; j++) { in self_check_eba()
1408 vol->eba_tbl = kmalloc(vol->reserved_pebs * sizeof(int), in ubi_eba_init()
1415 for (j = 0; j < vol->reserved_pebs; j++) in ubi_eba_init()
1423 if (aeb->lnum >= vol->reserved_pebs) in ubi_eba_init()
Dwl.c1529 int err, i, reserved_pebs, found_pebs = 0; local
1631 reserved_pebs = WL_RESERVED_PEBS;
1632 ubi_fastmap_init(ubi, &reserved_pebs);
1634 if (ubi->avail_pebs < reserved_pebs) {
1636 ubi->avail_pebs, reserved_pebs);
1642 ubi->avail_pebs -= reserved_pebs;
1643 ubi->rsvd_pebs += reserved_pebs;
Ddebug.c101 printf("\treserved_pebs %d\n", vol->reserved_pebs); in ubi_dump_vol_info()
133 pr_err("\treserved_pebs %d\n", be32_to_cpu(r->reserved_pebs)); in ubi_dump_vtbl_record()
Dfastmap.c772 fm_pos += (sizeof(__be32) * be32_to_cpu(fm_eba->reserved_pebs)); in ubi_attach_fastmap()
782 for (j = 0; j < be32_to_cpu(fm_eba->reserved_pebs); j++) { in ubi_attach_fastmap()
1281 fm_pos += sizeof(*feba) + (sizeof(__be32) * vol->reserved_pebs); in ubi_write_fastmap()
1284 for (j = 0; j < vol->reserved_pebs; j++) in ubi_write_fastmap()
1287 feba->reserved_pebs = cpu_to_be32(j); in ubi_write_fastmap()
Dubi.h322 int reserved_pebs; member
805 int ubi_resize_volume(struct ubi_volume_desc *desc, int reserved_pebs);
Dupd.c138 for (i = 0; i < vol->reserved_pebs; i++) { in ubi_start_update()
Dbuild.c820 int err, old_reserved_pebs = vol->reserved_pebs; in autoresize()
859 vol_id, vol->name, old_reserved_pebs, vol->reserved_pebs); in autoresize()
/external/u-boot/cmd/
Dubi.c212 int err, reserved_pebs, i; in ubi_remove_vol() local
232 reserved_pebs = vol->reserved_pebs; in ubi_remove_vol()
233 for (i = 0; i < vol->reserved_pebs; i++) { in ubi_remove_vol()
243 ubi->rsvd_pebs -= reserved_pebs; in ubi_remove_vol()
244 ubi->avail_pebs += reserved_pebs; in ubi_remove_vol()
310 rsvd_bytes = vol->reserved_pebs * (ubi->leb_size - vol->data_pad); in ubi_volume_begin_write()
/external/u-boot/doc/
DREADME.ubi93 UBI: reserved_pebs 4
108 UBI: reserved_pebs 2
/external/u-boot/drivers/mtd/ubispl/
Dubispl.c414 fm_pos += (sizeof(__be32) * be32_to_cpu(fm_eba->reserved_pebs)); in ubi_attach_fastmap()
425 reserved = be32_to_cpu(fm_eba->reserved_pebs); in ubi_attach_fastmap()