Home
last modified time | relevance | path

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

/drivers/mtd/ubi/
Dupd.c57 struct ubi_vtbl_record vtbl_rec; in set_update_marker() local
67 vtbl_rec = ubi->vtbl[vol->vol_id]; in set_update_marker()
68 vtbl_rec.upd_marker = 1; in set_update_marker()
71 err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec); in set_update_marker()
91 struct ubi_vtbl_record vtbl_rec; in clear_update_marker() local
95 vtbl_rec = ubi->vtbl[vol->vol_id]; in clear_update_marker()
96 ubi_assert(vol->upd_marker && vtbl_rec.upd_marker); in clear_update_marker()
97 vtbl_rec.upd_marker = 0; in clear_update_marker()
111 err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec); in clear_update_marker()
Dvtbl.c81 struct ubi_vtbl_record *vtbl_rec) in ubi_change_vtbl_record() argument
90 if (!vtbl_rec) in ubi_change_vtbl_record()
91 vtbl_rec = &empty_vtbl_record; in ubi_change_vtbl_record()
93 crc = crc32(UBI_CRC32_INIT, vtbl_rec, UBI_VTBL_RECORD_SIZE_CRC); in ubi_change_vtbl_record()
94 vtbl_rec->crc = cpu_to_be32(crc); in ubi_change_vtbl_record()
97 memcpy(&ubi->vtbl[idx], vtbl_rec, sizeof(struct ubi_vtbl_record)); in ubi_change_vtbl_record()
132 struct ubi_vtbl_record *vtbl_rec = &ubi->vtbl[vol->vol_id]; in ubi_vtbl_rename_volumes() local
135 memcpy(vtbl_rec, &empty_vtbl_record, in ubi_vtbl_rename_volumes()
140 vtbl_rec->name_len = cpu_to_be16(re->new_name_len); in ubi_vtbl_rename_volumes()
141 memcpy(vtbl_rec->name, re->new_name, re->new_name_len); in ubi_vtbl_rename_volumes()
[all …]
Dvmt.c205 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()
[all …]
Dbuild.c822 struct ubi_vtbl_record vtbl_rec; in autoresize() local
828 vtbl_rec = ubi->vtbl[vol_id]; in autoresize()
829 err = ubi_change_vtbl_record(ubi, vol_id, &vtbl_rec); in autoresize()
Dubi.h756 struct ubi_vtbl_record *vtbl_rec);