Lines Matching full:alignment
34 __ATTR(alignment, S_IRUGO, vol_attribute_show, NULL);
85 ret = sprintf(buf, "%d\n", vol->alignment); in vol_attribute_show()
226 vol->usable_leb_size = ubi->leb_size - ubi->leb_size % req->alignment; in ubi_create_volume()
245 vol->alignment = req->alignment; in ubi_create_volume()
246 vol->data_pad = ubi->leb_size % vol->alignment; in ubi_create_volume()
305 vtbl_rec.alignment = cpu_to_be32(vol->alignment); in ubi_create_volume()
682 int reserved_pebs, alignment, data_pad, vol_type, name_len, upd_marker; in self_check_volume() local
700 if (vol->reserved_pebs < 0 || vol->alignment < 0 || vol->data_pad < 0 || in self_check_volume()
705 if (vol->alignment > ubi->leb_size || vol->alignment == 0) { in self_check_volume()
706 ubi_err(ubi, "bad alignment"); in self_check_volume()
710 n = vol->alignment & (ubi->min_io_size - 1); in self_check_volume()
711 if (vol->alignment != 1 && n) { in self_check_volume()
712 ubi_err(ubi, "alignment is not multiple of min I/O unit"); in self_check_volume()
716 n = ubi->leb_size % vol->alignment; in self_check_volume()
796 alignment = be32_to_cpu(ubi->vtbl[vol_id].alignment); in self_check_volume()
806 if (alignment != vol->alignment || data_pad != vol->data_pad || in self_check_volume()