Searched refs:reserved_pebs (Results 1 – 12 of 12) sorted by relevance
/drivers/mtd/ubi/ |
D | vmt.c | 76 ret = sprintf(buf, "%d\n", vol->reserved_pebs); in vol_attribute_show() 208 vol->reserved_pebs = div_u64(req->bytes + vol->usable_leb_size - 1, in ubi_create_volume() 212 if (vol->reserved_pebs > ubi->avail_pebs) { in ubi_create_volume() 221 ubi->avail_pebs -= vol->reserved_pebs; in ubi_create_volume() 222 ubi->rsvd_pebs += vol->reserved_pebs; in ubi_create_volume() 241 eba_tbl = ubi_eba_create_table(vol, vol->reserved_pebs); in ubi_create_volume() 250 vol->used_ebs = vol->reserved_pebs; in ubi_create_volume() 284 vtbl_rec.reserved_pebs = cpu_to_be32(vol->reserved_pebs); in ubi_create_volume() 321 ubi->rsvd_pebs -= vol->reserved_pebs; in ubi_create_volume() 322 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 | 1737 int err, i, reserved_pebs, found_pebs = 0; local 1865 reserved_pebs = WL_RESERVED_PEBS; 1866 ubi_fastmap_init(ubi, &reserved_pebs); 1868 if (ubi->avail_pebs < reserved_pebs) { 1870 ubi->avail_pebs, reserved_pebs); 1877 ubi->avail_pebs -= reserved_pebs; 1878 ubi->rsvd_pebs += reserved_pebs;
|
D | ubi.h | 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()
|
D | fastmap.c | 714 fm_pos += (sizeof(__be32) * be32_to_cpu(fm_eba->reserved_pebs)); in ubi_attach_fastmap() 724 for (j = 0; j < be32_to_cpu(fm_eba->reserved_pebs); j++) { in ubi_attach_fastmap() 1305 fm_pos += sizeof(*feba) + (sizeof(__be32) * vol->reserved_pebs); in ubi_write_fastmap() 1308 for (j = 0; j < vol->reserved_pebs; j++) { in ubi_write_fastmap() 1315 feba->reserved_pebs = cpu_to_be32(j); in ubi_write_fastmap()
|
D | debug.c | 99 pr_err("\treserved_pebs %d\n", vol->reserved_pebs); in ubi_dump_vol_info() 131 pr_err("\treserved_pebs %d\n", be32_to_cpu(r->reserved_pebs)); in ubi_dump_vtbl_record()
|
D | upd.c | 132 for (i = 0; i < vol->reserved_pebs; i++) { in ubi_start_update()
|
D | build.c | 745 int err, old_reserved_pebs = vol->reserved_pebs; in autoresize() 784 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()
|