Home
last modified time | relevance | path

Searched refs:usable_leb_size (Results 1 – 10 of 10) sorted by relevance

/drivers/mtd/ubi/
Dupd.c102 vol->used_ebs = div_u64_rem(bytes, vol->usable_leb_size, in clear_update_marker()
107 vol->last_eb_bytes = vol->usable_leb_size; in clear_update_marker()
163 vol->upd_ebs = div_u64(bytes + vol->usable_leb_size - 1, in ubi_start_update()
164 vol->usable_leb_size); in ubi_start_update()
256 memset(buf + len, 0, vol->usable_leb_size - len); in write_leb()
287 lnum = div_u64_rem(vol->upd_received, vol->usable_leb_size, &offs); in ubi_more_update_data()
303 len = vol->usable_leb_size - offs; in ubi_more_update_data()
311 if (offs + len == vol->usable_leb_size || in ubi_more_update_data()
319 ubi_assert(flush_len <= vol->usable_leb_size); in ubi_more_update_data()
337 if (count > vol->usable_leb_size) in ubi_more_update_data()
[all …]
Dvmt.c105 ret = sprintf(buf, "%d\n", vol->usable_leb_size); in vol_attribute_show()
254 vol->usable_leb_size = ubi->leb_size - ubi->leb_size % req->alignment; in ubi_create_volume()
255 vol->reserved_pebs += div_u64(req->bytes + vol->usable_leb_size - 1, in ubi_create_volume()
256 vol->usable_leb_size); in ubi_create_volume()
298 vol->last_eb_bytes = vol->usable_leb_size; in ubi_create_volume()
300 (long long)vol->used_ebs * vol->usable_leb_size; in ubi_create_volume()
303 vol->usable_leb_size, in ubi_create_volume()
308 vol->last_eb_bytes = vol->usable_leb_size; in ubi_create_volume()
564 vol->last_eb_bytes = vol->usable_leb_size; in ubi_resize_volume()
566 (long long)vol->used_ebs * vol->usable_leb_size; in ubi_resize_volume()
[all …]
Dcdev.c236 tbuf_size = vol->usable_leb_size; in vol_cdev_read()
244 lnum = div_u64_rem(*offp, vol->usable_leb_size, &off); in vol_cdev_read()
249 if (off + len >= vol->usable_leb_size) in vol_cdev_read()
250 len = vol->usable_leb_size - off; in vol_cdev_read()
257 if (off == vol->usable_leb_size) { in vol_cdev_read()
259 off -= vol->usable_leb_size; in vol_cdev_read()
302 lnum = div_u64_rem(*offp, vol->usable_leb_size, &off); in vol_cdev_direct_write()
317 tbuf_size = vol->usable_leb_size; in vol_cdev_direct_write()
329 if (off + len >= vol->usable_leb_size) in vol_cdev_direct_write()
330 len = vol->usable_leb_size - off; in vol_cdev_direct_write()
[all …]
Dmisc.c70 buf = vmalloc(vol->usable_leb_size); in ubi_check_volume()
80 size = vol->usable_leb_size; in ubi_check_volume()
Dkapi.c91 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()
463 offset + len > vol->usable_leb_size || in ubi_leb_write()
508 len > vol->usable_leb_size || len & (ubi->min_io_size - 1)) in ubi_leb_change()
Dvtbl.c557 vol->usable_leb_size = ubi->leb_size - vol->data_pad; in init_volumes()
586 vol->last_eb_bytes = vol->usable_leb_size; in init_volumes()
588 (long long)vol->used_ebs * vol->usable_leb_size; in init_volumes()
619 (long long)(vol->used_ebs - 1) * vol->usable_leb_size; in init_volumes()
634 vol->usable_leb_size = ubi->leb_size; in init_volumes()
Dgluebi.c323 mtd->erasesize = vi->usable_leb_size; in gluebi_create()
336 mtd->size = (unsigned long long)vi->usable_leb_size * vi->size; in gluebi_create()
Dio.c894 int usable_leb_size = ubi->leb_size - data_pad; in validate_vid_hdr() local
950 if (data_size != usable_leb_size) { in validate_vid_hdr()
Ddebug.c116 pr_err("\tusable_leb_size %d\n", vol->usable_leb_size); in ubi_dump_vol_info()
Dubi.h315 int usable_leb_size; member