Lines Matching refs:usable_leb_size
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()
688 if (vol->usable_leb_size != ubi->leb_size - vol->data_pad) { in self_check_volume()
705 n = (long long)vol->used_ebs * vol->usable_leb_size; in self_check_volume()
715 if (vol->last_eb_bytes != vol->usable_leb_size) { in self_check_volume()
734 vol->last_eb_bytes > vol->usable_leb_size) { in self_check_volume()
739 vol->used_bytes < n - vol->usable_leb_size) { in self_check_volume()