Searched refs:reserved_pebs (Results 1 – 12 of 12) sorted by relevance
/kernel/linux/linux-5.10/drivers/mtd/ubi/ |
D | vmt.c | 71 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() 315 ubi->rsvd_pebs -= vol->reserved_pebs; in ubi_create_volume() 316 ubi->avail_pebs += vol->reserved_pebs; in ubi_create_volume() [all …]
|
D | vtbl.c | 160 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 …]
|
D | ubi-media.h | 356 __be32 reserved_pebs; member 500 __be32 reserved_pebs; member
|
D | eba.c | 1541 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()
|
D | wl.c | 1753 int err, i, reserved_pebs, found_pebs = 0; local 1881 reserved_pebs = WL_RESERVED_PEBS; 1882 ubi_fastmap_init(ubi, &reserved_pebs); 1884 if (ubi->avail_pebs < reserved_pebs) { 1886 ubi->avail_pebs, reserved_pebs); 1893 ubi->avail_pebs -= reserved_pebs; 1894 ubi->rsvd_pebs += reserved_pebs;
|
D | ubi.h | 349 int reserved_pebs; member 850 int ubi_resize_volume(struct ubi_volume_desc *desc, int reserved_pebs); 875 return lnum >= 0 && lnum < vol->reserved_pebs; in ubi_leb_valid()
|
D | debug.c | 99 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()
|
D | fastmap.c | 724 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()
|
D | upd.c | 132 for (i = 0; i < vol->reserved_pebs; i++) { in ubi_start_update()
|
D | build.c | 762 int err, old_reserved_pebs = vol->reserved_pebs; in autoresize() 801 vol_id, vol->name, old_reserved_pebs, vol->reserved_pebs); in autoresize()
|
D | kapi.c | 72 vi->size = vol->reserved_pebs; in ubi_do_get_volume_info()
|
D | cdev.c | 409 rsvd_bytes = (long long)vol->reserved_pebs * in vol_cdev_ioctl()
|