Searched refs:reserved_pebs (Results 1 – 12 of 12) sorted by relevance
/drivers/mtd/ubi/ |
D | vmt.c | 89 ret = sprintf(buf, "%d\n", vol->reserved_pebs); in vol_attribute_show() 255 vol->reserved_pebs += div_u64(req->bytes + vol->usable_leb_size - 1, in ubi_create_volume() 259 if (vol->reserved_pebs > ubi->avail_pebs) { in ubi_create_volume() 267 ubi->avail_pebs -= vol->reserved_pebs; in ubi_create_volume() 268 ubi->rsvd_pebs += vol->reserved_pebs; in ubi_create_volume() 287 vol->eba_tbl = kmalloc(vol->reserved_pebs * sizeof(int), GFP_KERNEL); in ubi_create_volume() 293 for (i = 0; i < vol->reserved_pebs; i++) in ubi_create_volume() 297 vol->used_ebs = vol->reserved_pebs; in ubi_create_volume() 339 vtbl_rec.reserved_pebs = cpu_to_be32(vol->reserved_pebs); in ubi_create_volume() 381 ubi->rsvd_pebs -= vol->reserved_pebs; in ubi_create_volume() [all …]
|
D | vtbl.c | 175 int i, n, reserved_pebs, alignment, data_pad, vol_type, name_len; in vtbl_check() local 183 reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs); in vtbl_check() 199 if (reserved_pebs == 0) { in vtbl_check() 208 if (reserved_pebs < 0 || alignment < 0 || data_pad < 0 || in vtbl_check() 242 if (reserved_pebs > ubi->good_peb_count) { in vtbl_check() 244 reserved_pebs, ubi->good_peb_count); in vtbl_check() 536 int i, reserved_pebs = 0; in init_volumes() local 543 if (be32_to_cpu(vtbl[i].reserved_pebs) == 0) in init_volumes() 550 vol->reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs); in init_volumes() 578 reserved_pebs += vol->reserved_pebs; in init_volumes() [all …]
|
D | kapi.c | 85 vi->size = vol->reserved_pebs; in ubi_do_get_volume_info() 462 if (lnum < 0 || lnum >= vol->reserved_pebs || offset < 0 || len < 0 || in ubi_leb_write() 507 if (lnum < 0 || lnum >= vol->reserved_pebs || len < 0 || in ubi_leb_change() 544 if (lnum < 0 || lnum >= vol->reserved_pebs) in ubi_leb_erase() 604 if (lnum < 0 || lnum >= vol->reserved_pebs) in ubi_leb_unmap() 640 if (lnum < 0 || lnum >= vol->reserved_pebs) in ubi_leb_map() 675 if (lnum < 0 || lnum >= vol->reserved_pebs) in ubi_is_mapped()
|
D | ubi-media.h | 366 __be32 reserved_pebs; member 512 __be32 reserved_pebs; member
|
D | eba.c | 1253 scan_eba[i] = kmalloc(vol->reserved_pebs * sizeof(**scan_eba), in self_check_eba() 1260 fm_eba[i] = kmalloc(vol->reserved_pebs * sizeof(**fm_eba), in self_check_eba() 1267 for (j = 0; j < vol->reserved_pebs; j++) in self_check_eba() 1284 for (j = 0; j < vol->reserved_pebs; j++) { in self_check_eba() 1344 vol->eba_tbl = kmalloc(vol->reserved_pebs * sizeof(int), in ubi_eba_init() 1351 for (j = 0; j < vol->reserved_pebs; j++) in ubi_eba_init() 1359 if (aeb->lnum >= vol->reserved_pebs) in ubi_eba_init()
|
D | wl.c | 1869 int err, i, reserved_pebs, found_pebs = 0; local 1970 reserved_pebs = WL_RESERVED_PEBS; 1973 reserved_pebs += (ubi->fm_size / ubi->leb_size) * 2; 1976 if (ubi->avail_pebs < reserved_pebs) { 1978 ubi->avail_pebs, reserved_pebs); 1984 ubi->avail_pebs -= reserved_pebs; 1985 ubi->rsvd_pebs += reserved_pebs;
|
D | debug.c | 111 pr_err("\treserved_pebs %d\n", vol->reserved_pebs); in ubi_dump_vol_info() 143 pr_err("\treserved_pebs %d\n", be32_to_cpu(r->reserved_pebs)); in ubi_dump_vtbl_record()
|
D | ubi.h | 313 int reserved_pebs; member 764 int ubi_resize_volume(struct ubi_volume_desc *desc, int reserved_pebs);
|
D | fastmap.c | 711 fm_pos += (sizeof(__be32) * be32_to_cpu(fm_eba->reserved_pebs)); in ubi_attach_fastmap() 722 for (j = 0; j < be32_to_cpu(fm_eba->reserved_pebs); j++) { in ubi_attach_fastmap() 1218 fm_pos += sizeof(*feba) + (sizeof(__be32) * vol->reserved_pebs); in ubi_write_fastmap() 1221 for (j = 0; j < vol->reserved_pebs; j++) in ubi_write_fastmap() 1224 feba->reserved_pebs = cpu_to_be32(j); in ubi_write_fastmap()
|
D | cdev.c | 440 rsvd_bytes = (long long)vol->reserved_pebs * in vol_cdev_ioctl() 477 if (req.lnum < 0 || req.lnum >= vol->reserved_pebs || in vol_cdev_ioctl() 508 if (lnum < 0 || lnum >= vol->reserved_pebs) { in vol_cdev_ioctl()
|
D | upd.c | 141 for (i = 0; i < vol->reserved_pebs; i++) { in ubi_start_update()
|
D | build.c | 807 int err, old_reserved_pebs = vol->reserved_pebs; in autoresize() 845 vol->name, old_reserved_pebs, vol->reserved_pebs); in autoresize()
|