Lines Matching refs:vtbl_rec
83 * @vtbl_rec: new volume table record
85 * This function changes volume table record @idx. If @vtbl_rec is %NULL, empty
91 struct ubi_vtbl_record *vtbl_rec)
98 if (!vtbl_rec)
99 vtbl_rec = &empty_vtbl_record;
101 crc = crc32(UBI_CRC32_INIT, vtbl_rec, UBI_VTBL_RECORD_SIZE_CRC);
102 vtbl_rec->crc = cpu_to_be32(crc);
105 memcpy(&ubi->vtbl[idx], vtbl_rec, sizeof(struct ubi_vtbl_record));
129 struct ubi_vtbl_record *vtbl_rec = &ubi->vtbl[vol->vol_id];
132 memcpy(vtbl_rec, &empty_vtbl_record,
137 vtbl_rec->name_len = cpu_to_be16(re->new_name_len);
138 memcpy(vtbl_rec->name, re->new_name, re->new_name_len);
139 memset(vtbl_rec->name + re->new_name_len, 0,
141 crc = crc32(UBI_CRC32_INIT, vtbl_rec,
143 vtbl_rec->crc = cpu_to_be32(crc);