Searched refs:vtbl_rec (Results 1 - 5 of 5) sorted by relevance

/linux-master/drivers/mtd/ubi/
H A Dupd.c44 struct ubi_vtbl_record vtbl_rec; local
54 vtbl_rec = ubi->vtbl[vol->vol_id];
55 vtbl_rec.upd_marker = 1;
58 err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec);
78 struct ubi_vtbl_record vtbl_rec; local
82 vtbl_rec = ubi->vtbl[vol->vol_id];
83 ubi_assert(vol->upd_marker && vtbl_rec.upd_marker);
84 vtbl_rec.upd_marker = 0;
98 err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec);
H A Dvtbl.c83 * @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]; local
132 memcpy(vtbl_rec,
90 ubi_change_vtbl_record(struct ubi_device *ubi, int idx, struct ubi_vtbl_record *vtbl_rec) argument
[all...]
H A Dvmt.c167 struct ubi_vtbl_record vtbl_rec; local
303 memset(&vtbl_rec, 0, sizeof(struct ubi_vtbl_record));
304 vtbl_rec.reserved_pebs = cpu_to_be32(vol->reserved_pebs);
305 vtbl_rec.alignment = cpu_to_be32(vol->alignment);
306 vtbl_rec.data_pad = cpu_to_be32(vol->data_pad);
307 vtbl_rec.name_len = cpu_to_be16(vol->name_len);
309 vtbl_rec.vol_type = UBI_VID_DYNAMIC;
311 vtbl_rec.vol_type = UBI_VID_STATIC;
314 vtbl_rec.flags |= UBI_VTBL_SKIP_CRC_CHECK_FLG;
316 memcpy(vtbl_rec
448 struct ubi_vtbl_record vtbl_rec; local
[all...]
H A Dbuild.c799 struct ubi_vtbl_record vtbl_rec; local
805 vtbl_rec = ubi->vtbl[vol_id];
806 err = ubi_change_vtbl_record(ubi, vol_id, &vtbl_rec);
H A Dubi.h838 struct ubi_vtbl_record *vtbl_rec);

Completed in 189 milliseconds