Searched refs:usable_leb_size (Results 1 – 13 of 13) sorted by relevance
/linux-6.1.9/drivers/mtd/ubi/ |
D | upd.c | 89 vol->used_ebs = div_u64_rem(bytes, vol->usable_leb_size, in clear_update_marker() 94 vol->last_eb_bytes = vol->usable_leb_size; in clear_update_marker() 152 vol->upd_ebs = div_u64(bytes + vol->usable_leb_size - 1, in ubi_start_update() 153 vol->usable_leb_size); in ubi_start_update() 245 memset(buf + len, 0, vol->usable_leb_size - len); in write_leb() 276 lnum = div_u64_rem(vol->upd_received, vol->usable_leb_size, &offs); in ubi_more_update_data() 292 len = vol->usable_leb_size - offs; in ubi_more_update_data() 300 if (offs + len == vol->usable_leb_size || in ubi_more_update_data() 308 ubi_assert(flush_len <= vol->usable_leb_size); in ubi_more_update_data() 326 if (count > vol->usable_leb_size) in ubi_more_update_data() [all …]
|
D | vmt.c | 87 ret = sprintf(buf, "%d\n", vol->usable_leb_size); in vol_attribute_show() 201 vol->usable_leb_size = ubi->leb_size - ubi->leb_size % req->alignment; in ubi_create_volume() 202 vol->reserved_pebs = div_u64(req->bytes + vol->usable_leb_size - 1, in ubi_create_volume() 203 vol->usable_leb_size); in ubi_create_volume() 245 vol->last_eb_bytes = vol->usable_leb_size; in ubi_create_volume() 247 (long long)vol->used_ebs * vol->usable_leb_size; in ubi_create_volume() 250 vol->usable_leb_size, in ubi_create_volume() 255 vol->last_eb_bytes = vol->usable_leb_size; in ubi_create_volume() 499 vol->last_eb_bytes = vol->usable_leb_size; in ubi_resize_volume() 501 (long long)vol->used_ebs * vol->usable_leb_size; in ubi_resize_volume() [all …]
|
D | cdev.c | 201 tbuf_size = vol->usable_leb_size; in vol_cdev_read() 209 lnum = div_u64_rem(*offp, vol->usable_leb_size, &off); in vol_cdev_read() 214 if (off + len >= vol->usable_leb_size) in vol_cdev_read() 215 len = vol->usable_leb_size - off; in vol_cdev_read() 222 if (off == vol->usable_leb_size) { in vol_cdev_read() 224 off -= vol->usable_leb_size; in vol_cdev_read() 267 lnum = div_u64_rem(*offp, vol->usable_leb_size, &off); in vol_cdev_direct_write() 282 tbuf_size = vol->usable_leb_size; in vol_cdev_direct_write() 294 if (off + len >= vol->usable_leb_size) in vol_cdev_direct_write() 295 len = vol->usable_leb_size - off; in vol_cdev_direct_write() [all …]
|
D | misc.c | 57 buf = vmalloc(vol->usable_leb_size); in ubi_check_volume() 69 size = vol->usable_leb_size; in ubi_check_volume()
|
D | kapi.c | 78 vi->usable_leb_size = vol->usable_leb_size; in ubi_do_get_volume_info() 377 offset + len > vol->usable_leb_size) in leb_read_sanity_check() 529 offset + len > vol->usable_leb_size || in ubi_leb_write() 574 len > vol->usable_leb_size || len & (ubi->min_io_size - 1)) in ubi_leb_change()
|
D | vtbl.c | 545 vol->usable_leb_size = ubi->leb_size - vol->data_pad; in init_volumes() 587 vol->last_eb_bytes = vol->usable_leb_size; in init_volumes() 589 (long long)vol->used_ebs * vol->usable_leb_size; in init_volumes() 620 (long long)(vol->used_ebs - 1) * vol->usable_leb_size; in init_volumes() 635 vol->usable_leb_size = ubi->leb_size; in init_volumes()
|
D | gluebi.c | 302 mtd->erasesize = vi->usable_leb_size; in gluebi_create() 315 mtd->size = (unsigned long long)vi->usable_leb_size * vi->size; in gluebi_create()
|
D | io.c | 851 int usable_leb_size = ubi->leb_size - data_pad; in validate_vid_hdr() local 912 if (data_size != usable_leb_size) { in validate_vid_hdr()
|
D | block.c | 399 dev->leb_size = vi->usable_leb_size; in ubiblock_create()
|
D | debug.c | 104 pr_err("\tusable_leb_size %d\n", vol->usable_leb_size); in ubi_dump_vol_info()
|
D | ubi.h | 351 int usable_leb_size; member
|
/linux-6.1.9/include/linux/mtd/ |
D | ubi.h | 109 int usable_leb_size; member
|
/linux-6.1.9/fs/ubifs/ |
D | super.c | 531 c->leb_size = c->vi.usable_leb_size; in init_constants_early()
|