Home
last modified time | relevance | path

Searched refs:reserved_pebs (Results 1 - 24 of 24) sorted by relevance

/kernel/linux/linux-5.10/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()
337 int i, err, vol_id = vol->vol_id, reserved_pebs = vol->reserved_pebs; ubi_remove_volume() local
404 ubi_resize_volume(struct ubi_volume_desc *desc, int reserved_pebs) ubi_resize_volume() argument
642 int reserved_pebs, alignment, data_pad, vol_type, name_len, upd_marker; self_check_volume() local
[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()
228 ubi_err(ubi, "too large reserved_pebs %d, good PEBs %d", 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) in init_volumes()
[all...]
H A Dubi-media.h319 * @reserved_pebs: how many physical eraseblocks are reserved for this volume
356 __be32 reserved_pebs; member
495 * @reserved_pebs: number of table entries
500 __be32 reserved_pebs; member
H A Deba.c1550 scan_eba[i] = kmalloc_array(vol->reserved_pebs, in self_check_eba()
1558 fm_eba[i] = kmalloc_array(vol->reserved_pebs, in self_check_eba()
1566 for (j = 0; j < vol->reserved_pebs; j++) in self_check_eba()
1583 for (j = 0; j < vol->reserved_pebs; j++) { in self_check_eba()
1645 tbl = ubi_eba_create_table(vol, vol->reserved_pebs); in ubi_eba_init()
1658 if (aeb->lnum >= vol->reserved_pebs) { in ubi_eba_init()
H A Dubi.h294 * @reserved_pebs: how many physical eraseblocks are reserved for this volume
349 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 Dwl.c1772 int err, i, reserved_pebs, found_pebs = 0; local
1900 reserved_pebs = WL_RESERVED_PEBS;
1901 ubi_fastmap_init(ubi, &reserved_pebs);
1903 if (ubi->avail_pebs < reserved_pebs) {
1905 ubi->avail_pebs, reserved_pebs);
1912 ubi->avail_pebs -= reserved_pebs;
1913 ubi->rsvd_pebs += reserved_pebs;
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()
1304 fm_pos += sizeof(*feba) + (sizeof(__be32) * vol->reserved_pebs); in ubi_write_fastmap()
1307 for (j = 0; j < vol->reserved_pebs; j++) { in ubi_write_fastmap()
1314 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 Dkapi.c72 vi->size = vol->reserved_pebs; in ubi_do_get_volume_info()
H A Dbuild.c778 int err, old_reserved_pebs = vol->reserved_pebs; in autoresize()
817 vol_id, vol->name, old_reserved_pebs, vol->reserved_pebs); in autoresize()
H A Dcdev.c409 rsvd_bytes = (long long)vol->reserved_pebs * in vol_cdev_ioctl()
/kernel/linux/linux-6.6/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()
337 int i, err, vol_id = vol->vol_id, reserved_pebs = vol->reserved_pebs; ubi_remove_volume() local
404 ubi_resize_volume(struct ubi_volume_desc *desc, int reserved_pebs) ubi_resize_volume() argument
633 int reserved_pebs, alignment, data_pad, vol_type, name_len, upd_marker; self_check_volume() local
[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()
228 ubi_err(ubi, "too large reserved_pebs %d, good PEBs %d", 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) in init_volumes()
[all...]
H A Dubi-media.h319 * @reserved_pebs: how many physical eraseblocks are reserved for this volume
356 __be32 reserved_pebs; member
495 * @reserved_pebs: number of table entries
500 __be32 reserved_pebs; member
H A Deba.c1550 scan_eba[i] = kmalloc_array(vol->reserved_pebs, in self_check_eba()
1558 fm_eba[i] = kmalloc_array(vol->reserved_pebs, in self_check_eba()
1566 for (j = 0; j < vol->reserved_pebs; j++) in self_check_eba()
1583 for (j = 0; j < vol->reserved_pebs; j++) { in self_check_eba()
1645 tbl = ubi_eba_create_table(vol, vol->reserved_pebs); in ubi_eba_init()
1658 if (aeb->lnum >= vol->reserved_pebs) { in ubi_eba_init()
H A Dubi.h294 * @reserved_pebs: how many physical eraseblocks are reserved for this volume
349 int reserved_pebs; member
846 int ubi_resize_volume(struct ubi_volume_desc *desc, int reserved_pebs);
871 return lnum >= 0 && lnum < vol->reserved_pebs; in ubi_leb_valid()
H A Dwl.c1782 int err, i, reserved_pebs, found_pebs = 0;
1910 reserved_pebs = WL_RESERVED_PEBS;
1911 ubi_fastmap_init(ubi, &reserved_pebs);
1913 if (ubi->avail_pebs < reserved_pebs) {
1915 ubi->avail_pebs, reserved_pebs);
1922 ubi->avail_pebs -= reserved_pebs;
1923 ubi->rsvd_pebs += reserved_pebs;
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()
1314 fm_pos += sizeof(*feba) + (sizeof(__be32) * vol->reserved_pebs); in ubi_write_fastmap()
1317 for (j = 0; j < vol->reserved_pebs; j++) { in ubi_write_fastmap()
1324 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 Dkapi.c72 vi->size = vol->reserved_pebs; in ubi_do_get_volume_info()
H A Dbuild.c778 int err, old_reserved_pebs = vol->reserved_pebs; in autoresize()
817 vol_id, vol->name, old_reserved_pebs, vol->reserved_pebs); in autoresize()
H A Dcdev.c409 rsvd_bytes = (long long)vol->reserved_pebs * in vol_cdev_ioctl()

Completed in 31 milliseconds