Lines Matching refs:vtbl_rec
148 struct ubi_vtbl_record vtbl_rec; in ubi_create_volume() local
283 memset(&vtbl_rec, 0, sizeof(struct ubi_vtbl_record)); in ubi_create_volume()
284 vtbl_rec.reserved_pebs = cpu_to_be32(vol->reserved_pebs); in ubi_create_volume()
285 vtbl_rec.alignment = cpu_to_be32(vol->alignment); in ubi_create_volume()
286 vtbl_rec.data_pad = cpu_to_be32(vol->data_pad); in ubi_create_volume()
287 vtbl_rec.name_len = cpu_to_be16(vol->name_len); in ubi_create_volume()
289 vtbl_rec.vol_type = UBI_VID_DYNAMIC; in ubi_create_volume()
291 vtbl_rec.vol_type = UBI_VID_STATIC; in ubi_create_volume()
294 vtbl_rec.flags |= UBI_VTBL_SKIP_CRC_CHECK_FLG; in ubi_create_volume()
296 memcpy(vtbl_rec.name, vol->name, vol->name_len); in ubi_create_volume()
298 err = ubi_change_vtbl_record(ubi, vol_id, &vtbl_rec); in ubi_create_volume()
416 struct ubi_vtbl_record vtbl_rec; in ubi_resize_volume() local
497 vtbl_rec = ubi->vtbl[vol_id]; in ubi_resize_volume()
498 vtbl_rec.reserved_pebs = cpu_to_be32(reserved_pebs); in ubi_resize_volume()
499 err = ubi_change_vtbl_record(ubi, vol_id, &vtbl_rec); in ubi_resize_volume()