Searched refs:usable_leb_size (Results 1 – 12 of 12) sorted by relevance
/linux-3.4.99/drivers/mtd/ubi/ |
D | upd.c | 104 vol->used_ebs = div_u64_rem(bytes, vol->usable_leb_size, in clear_update_marker() 109 vol->last_eb_bytes = vol->usable_leb_size; in clear_update_marker() 165 vol->upd_ebs = div_u64(bytes + vol->usable_leb_size - 1, in ubi_start_update() 166 vol->usable_leb_size); in ubi_start_update() 261 memset(buf + len, 0, vol->usable_leb_size - len); in write_leb() 293 lnum = div_u64_rem(vol->upd_received, vol->usable_leb_size, &offs); in ubi_more_update_data() 309 len = vol->usable_leb_size - offs; in ubi_more_update_data() 317 if (offs + len == vol->usable_leb_size || in ubi_more_update_data() 325 ubi_assert(flush_len <= vol->usable_leb_size); in ubi_more_update_data() 343 if (count > vol->usable_leb_size) in ubi_more_update_data() [all …]
|
D | vmt.c | 109 ret = sprintf(buf, "%d\n", vol->usable_leb_size); in vol_attribute_show() 258 vol->usable_leb_size = ubi->leb_size - ubi->leb_size % req->alignment; in ubi_create_volume() 259 vol->reserved_pebs += div_u64(req->bytes + vol->usable_leb_size - 1, in ubi_create_volume() 260 vol->usable_leb_size); in ubi_create_volume() 302 vol->last_eb_bytes = vol->usable_leb_size; in ubi_create_volume() 304 (long long)vol->used_ebs * vol->usable_leb_size; in ubi_create_volume() 307 vol->usable_leb_size, in ubi_create_volume() 312 vol->last_eb_bytes = vol->usable_leb_size; in ubi_create_volume() 585 vol->last_eb_bytes = vol->usable_leb_size; in ubi_resize_volume() 587 (long long)vol->used_ebs * vol->usable_leb_size; in ubi_resize_volume() [all …]
|
D | cdev.c | 235 tbuf_size = vol->usable_leb_size; in vol_cdev_read() 243 lnum = div_u64_rem(*offp, vol->usable_leb_size, &off); in vol_cdev_read() 248 if (off + len >= vol->usable_leb_size) in vol_cdev_read() 249 len = vol->usable_leb_size - off; in vol_cdev_read() 256 if (off == vol->usable_leb_size) { in vol_cdev_read() 258 off -= vol->usable_leb_size; in vol_cdev_read() 301 lnum = div_u64_rem(*offp, vol->usable_leb_size, &off); in vol_cdev_direct_write() 316 tbuf_size = vol->usable_leb_size; in vol_cdev_direct_write() 328 if (off + len >= vol->usable_leb_size) in vol_cdev_direct_write() 329 len = vol->usable_leb_size - off; in vol_cdev_direct_write() [all …]
|
D | misc.c | 70 buf = vmalloc(vol->usable_leb_size); in ubi_check_volume() 80 size = vol->usable_leb_size; in ubi_check_volume()
|
D | kapi.c | 91 vi->usable_leb_size = vol->usable_leb_size; in ubi_do_get_volume_info() 395 offset + len > vol->usable_leb_size) in ubi_leb_read() 465 offset + len > vol->usable_leb_size || in ubi_leb_write() 515 len > vol->usable_leb_size || len & (ubi->min_io_size - 1)) in ubi_leb_change()
|
D | vtbl.c | 562 vol->usable_leb_size = ubi->leb_size - vol->data_pad; in init_volumes() 591 vol->last_eb_bytes = vol->usable_leb_size; in init_volumes() 593 (long long)vol->used_ebs * vol->usable_leb_size; in init_volumes() 624 (long long)(vol->used_ebs - 1) * vol->usable_leb_size; in init_volumes() 639 vol->usable_leb_size = ubi->leb_size; in init_volumes()
|
D | gluebi.c | 323 mtd->erasesize = vi->usable_leb_size; in gluebi_create() 336 mtd->size = (unsigned long long)vi->usable_leb_size * vi->size; in gluebi_create()
|
D | ubi.h | 262 int usable_leb_size; member
|
D | io.c | 905 int usable_leb_size = ubi->leb_size - data_pad; in validate_vid_hdr() local 961 if (data_size != usable_leb_size) { in validate_vid_hdr()
|
D | debug.c | 97 printk(KERN_DEBUG "\tusable_leb_size %d\n", vol->usable_leb_size); in ubi_dbg_dump_vol_info()
|
/linux-3.4.99/include/linux/mtd/ |
D | ubi.h | 109 int usable_leb_size; member
|
/linux-3.4.99/fs/ubifs/ |
D | super.c | 513 c->leb_size = c->vi.usable_leb_size; in init_constants_early()
|