Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/u-boot/drivers/mtd/ubi/
H A Dvmt.c84 ret = sprintf(buf, "%d\n", vol->reserved_pebs); in vol_attribute_show()
207 vol->reserved_pebs = div_u64(req->bytes + vol->usable_leb_size - 1, in ubi_create_volume()
211 if (vol->reserved_pebs > ubi->avail_pebs) { in ubi_create_volume()
220 ubi->avail_pebs -= vol->reserved_pebs; in ubi_create_volume()
221 ubi->rsvd_pebs += vol->reserved_pebs; in ubi_create_volume()
240 vol->eba_tbl = kmalloc(vol->reserved_pebs * sizeof(int), GFP_KERNEL); in ubi_create_volume()
246 for (i = 0; i < vol->reserved_pebs; i++) in ubi_create_volume()
250 vol->used_ebs = vol->reserved_pebs; in ubi_create_volume()
291 vtbl_rec.reserved_pebs = cpu_to_be32(vol->reserved_pebs); in ubi_create_volume()
333 ubi->rsvd_pebs -= vol->reserved_pebs; in ubi_create_volume()
[all …]
H A Dvtbl.c167 int i, n, reserved_pebs, alignment, data_pad, vol_type, name_len; local
175 reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs);
191 if (reserved_pebs == 0) {
200 if (reserved_pebs < 0 || alignment < 0 || data_pad < 0 ||
234 if (reserved_pebs > ubi->good_peb_count) {
236 reserved_pebs, ubi->good_peb_count);
532 int i, reserved_pebs = 0; local
539 if (be32_to_cpu(vtbl[i].reserved_pebs) == 0)
546 vol->reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs);
574 reserved_pebs += vol->reserved_pebs;
[all …]
H A Dkapi.c80 vi->size = vol->reserved_pebs; in ubi_do_get_volume_info()
536 if (lnum < 0 || lnum >= vol->reserved_pebs || offset < 0 || len < 0 || in ubi_leb_write()
581 if (lnum < 0 || lnum >= vol->reserved_pebs || len < 0 || in ubi_leb_change()
618 if (lnum < 0 || lnum >= vol->reserved_pebs) in ubi_leb_erase()
678 if (lnum < 0 || lnum >= vol->reserved_pebs) in ubi_leb_unmap()
714 if (lnum < 0 || lnum >= vol->reserved_pebs) in ubi_leb_map()
749 if (lnum < 0 || lnum >= vol->reserved_pebs) in ubi_is_mapped()
H A Dubi-media.h354 __be32 reserved_pebs; member
502 __be32 reserved_pebs; member
H A Deba.c1318 scan_eba[i] = kmalloc(vol->reserved_pebs * sizeof(**scan_eba), in self_check_eba()
1325 fm_eba[i] = kmalloc(vol->reserved_pebs * sizeof(**fm_eba), in self_check_eba()
1332 for (j = 0; j < vol->reserved_pebs; j++) in self_check_eba()
1349 for (j = 0; j < vol->reserved_pebs; j++) { in self_check_eba()
1409 vol->eba_tbl = kmalloc(vol->reserved_pebs * sizeof(int), in ubi_eba_init()
1416 for (j = 0; j < vol->reserved_pebs; j++) in ubi_eba_init()
1424 if (aeb->lnum >= vol->reserved_pebs) in ubi_eba_init()
H A Dwl.c1530 int err, i, reserved_pebs, found_pebs = 0; local
1632 reserved_pebs = WL_RESERVED_PEBS;
1633 ubi_fastmap_init(ubi, &reserved_pebs);
1635 if (ubi->avail_pebs < reserved_pebs) {
1637 ubi->avail_pebs, reserved_pebs);
1643 ubi->avail_pebs -= reserved_pebs;
1644 ubi->rsvd_pebs += reserved_pebs;
H A Ddebug.c102 printf("\treserved_pebs %d\n", vol->reserved_pebs); in ubi_dump_vol_info()
134 pr_err("\treserved_pebs %d\n", be32_to_cpu(r->reserved_pebs)); in ubi_dump_vtbl_record()
H A Dfastmap.c773 fm_pos += (sizeof(__be32) * be32_to_cpu(fm_eba->reserved_pebs)); in ubi_attach_fastmap()
783 for (j = 0; j < be32_to_cpu(fm_eba->reserved_pebs); j++) { in ubi_attach_fastmap()
1282 fm_pos += sizeof(*feba) + (sizeof(__be32) * vol->reserved_pebs); in ubi_write_fastmap()
1285 for (j = 0; j < vol->reserved_pebs; j++) in ubi_write_fastmap()
1288 feba->reserved_pebs = cpu_to_be32(j); in ubi_write_fastmap()
H A Dubi.h323 int reserved_pebs; member
806 int ubi_resize_volume(struct ubi_volume_desc *desc, int reserved_pebs);
H A Dupd.c139 for (i = 0; i < vol->reserved_pebs; i++) { in ubi_start_update()
H A Dbuild.c821 int err, old_reserved_pebs = vol->reserved_pebs; in autoresize()
860 vol_id, vol->name, old_reserved_pebs, vol->reserved_pebs); in autoresize()
/OK3568_Linux_fs/kernel/drivers/mtd/ubi/
H A Dvmt.c71 ret = sprintf(buf, "%d\n", vol->reserved_pebs); in vol_attribute_show()
202 vol->reserved_pebs = div_u64(req->bytes + vol->usable_leb_size - 1, in ubi_create_volume()
206 if (vol->reserved_pebs > ubi->avail_pebs) { in ubi_create_volume()
215 ubi->avail_pebs -= vol->reserved_pebs; in ubi_create_volume()
216 ubi->rsvd_pebs += vol->reserved_pebs; in ubi_create_volume()
235 eba_tbl = ubi_eba_create_table(vol, vol->reserved_pebs); in ubi_create_volume()
244 vol->used_ebs = vol->reserved_pebs; in ubi_create_volume()
278 vtbl_rec.reserved_pebs = cpu_to_be32(vol->reserved_pebs); in ubi_create_volume()
314 ubi->rsvd_pebs -= vol->reserved_pebs; in ubi_create_volume()
315 ubi->avail_pebs += vol->reserved_pebs; in ubi_create_volume()
[all …]
H A Dvtbl.c160 int i, n, reserved_pebs, alignment, data_pad, vol_type, name_len; in vtbl_check() local
168 reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs); in vtbl_check()
184 if (reserved_pebs == 0) { in vtbl_check()
193 if (reserved_pebs < 0 || alignment < 0 || data_pad < 0 || in vtbl_check()
227 if (reserved_pebs > ubi->good_peb_count) { in vtbl_check()
229 reserved_pebs, ubi->good_peb_count); in vtbl_check()
524 int i, err, reserved_pebs = 0; in init_volumes() local
531 if (be32_to_cpu(vtbl[i].reserved_pebs) == 0) in init_volumes()
538 vol->reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs); in init_volumes()
569 reserved_pebs += vol->reserved_pebs; in init_volumes()
[all …]
H A Dubi-media.h356 __be32 reserved_pebs; member
500 __be32 reserved_pebs; member
H A Deba.c1541 scan_eba[i] = kmalloc_array(vol->reserved_pebs, in self_check_eba()
1549 fm_eba[i] = kmalloc_array(vol->reserved_pebs, in self_check_eba()
1557 for (j = 0; j < vol->reserved_pebs; j++) in self_check_eba()
1574 for (j = 0; j < vol->reserved_pebs; j++) { in self_check_eba()
1636 tbl = ubi_eba_create_table(vol, vol->reserved_pebs); in ubi_eba_init()
1649 if (aeb->lnum >= vol->reserved_pebs) { in ubi_eba_init()
H A Dwl.c1754 int err, i, reserved_pebs, found_pebs = 0; local
1882 reserved_pebs = WL_RESERVED_PEBS;
1883 ubi_fastmap_init(ubi, &reserved_pebs);
1885 if (ubi->avail_pebs < reserved_pebs) {
1887 ubi->avail_pebs, reserved_pebs);
1894 ubi->avail_pebs -= reserved_pebs;
1895 ubi->rsvd_pebs += reserved_pebs;
H A Dubi.h349 int reserved_pebs; member
848 int ubi_resize_volume(struct ubi_volume_desc *desc, int reserved_pebs);
873 return lnum >= 0 && lnum < vol->reserved_pebs; in ubi_leb_valid()
H A Ddebug.c99 pr_err("\treserved_pebs %d\n", vol->reserved_pebs); in ubi_dump_vol_info()
132 pr_err("\treserved_pebs %d\n", be32_to_cpu(r->reserved_pebs)); in ubi_dump_vtbl_record()
H A Dfastmap.c724 fm_pos += (sizeof(__be32) * be32_to_cpu(fm_eba->reserved_pebs)); in ubi_attach_fastmap()
734 for (j = 0; j < be32_to_cpu(fm_eba->reserved_pebs); j++) { in ubi_attach_fastmap()
1315 fm_pos += sizeof(*feba) + (sizeof(__be32) * vol->reserved_pebs); in ubi_write_fastmap()
1318 for (j = 0; j < vol->reserved_pebs; j++) { in ubi_write_fastmap()
1325 feba->reserved_pebs = cpu_to_be32(j); in ubi_write_fastmap()
H A Dupd.c132 for (i = 0; i < vol->reserved_pebs; i++) { in ubi_start_update()
H A Dbuild.c762 int err, old_reserved_pebs = vol->reserved_pebs; in autoresize()
801 vol_id, vol->name, old_reserved_pebs, vol->reserved_pebs); in autoresize()
H A Dkapi.c72 vi->size = vol->reserved_pebs; in ubi_do_get_volume_info()
/OK3568_Linux_fs/u-boot/cmd/
H A 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()
/OK3568_Linux_fs/u-boot/doc/
H A DREADME.ubi93 UBI: reserved_pebs 4
108 UBI: reserved_pebs 2
/OK3568_Linux_fs/u-boot/drivers/mtd/ubispl/
H A Dubispl.c415 fm_pos += (sizeof(__be32) * be32_to_cpu(fm_eba->reserved_pebs)); in ubi_attach_fastmap()
426 reserved = be32_to_cpu(fm_eba->reserved_pebs); in ubi_attach_fastmap()

12