Lines Matching refs:vtbl_rec
205 struct ubi_vtbl_record vtbl_rec; in ubi_create_volume() local
338 memset(&vtbl_rec, 0, sizeof(struct ubi_vtbl_record)); in ubi_create_volume()
339 vtbl_rec.reserved_pebs = cpu_to_be32(vol->reserved_pebs); in ubi_create_volume()
340 vtbl_rec.alignment = cpu_to_be32(vol->alignment); in ubi_create_volume()
341 vtbl_rec.data_pad = cpu_to_be32(vol->data_pad); in ubi_create_volume()
342 vtbl_rec.name_len = cpu_to_be16(vol->name_len); in ubi_create_volume()
344 vtbl_rec.vol_type = UBI_VID_DYNAMIC; in ubi_create_volume()
346 vtbl_rec.vol_type = UBI_VID_STATIC; in ubi_create_volume()
347 memcpy(vtbl_rec.name, vol->name, vol->name_len); in ubi_create_volume()
349 err = ubi_change_vtbl_record(ubi, vol_id, &vtbl_rec); in ubi_create_volume()
479 struct ubi_vtbl_record vtbl_rec; in ubi_resize_volume() local
538 vtbl_rec = ubi->vtbl[vol_id]; in ubi_resize_volume()
539 vtbl_rec.reserved_pebs = cpu_to_be32(reserved_pebs); in ubi_resize_volume()
540 err = ubi_change_vtbl_record(ubi, vol_id, &vtbl_rec); in ubi_resize_volume()