Searched refs:vtbl_rec (Results 1 – 5 of 5) sorted by relevance
/linux-6.3-rc2/drivers/mtd/ubi/ |
A D | upd.c | 44 struct ubi_vtbl_record vtbl_rec; in set_update_marker() local 54 vtbl_rec = ubi->vtbl[vol->vol_id]; in set_update_marker() 55 vtbl_rec.upd_marker = 1; in set_update_marker() 58 err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec); in set_update_marker() 78 struct ubi_vtbl_record vtbl_rec; in clear_update_marker() local 82 vtbl_rec = ubi->vtbl[vol->vol_id]; in clear_update_marker() 83 ubi_assert(vol->upd_marker && vtbl_rec.upd_marker); in clear_update_marker() 84 vtbl_rec.upd_marker = 0; in clear_update_marker() 98 err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec); in clear_update_marker()
|
A D | vtbl.c | 91 struct ubi_vtbl_record *vtbl_rec) in ubi_change_vtbl_record() argument 98 if (!vtbl_rec) in ubi_change_vtbl_record() 99 vtbl_rec = &empty_vtbl_record; in ubi_change_vtbl_record() 102 vtbl_rec->crc = cpu_to_be32(crc); in ubi_change_vtbl_record() 129 struct ubi_vtbl_record *vtbl_rec = &ubi->vtbl[vol->vol_id]; in ubi_vtbl_rename_volumes() local 132 memcpy(vtbl_rec, &empty_vtbl_record, in ubi_vtbl_rename_volumes() 137 vtbl_rec->name_len = cpu_to_be16(re->new_name_len); in ubi_vtbl_rename_volumes() 138 memcpy(vtbl_rec->name, re->new_name, re->new_name_len); in ubi_vtbl_rename_volumes() 139 memset(vtbl_rec->name + re->new_name_len, 0, in ubi_vtbl_rename_volumes() 141 crc = crc32(UBI_CRC32_INIT, vtbl_rec, in ubi_vtbl_rename_volumes() [all …]
|
A D | vmt.c | 142 struct ubi_vtbl_record vtbl_rec; in ubi_create_volume() local 277 memset(&vtbl_rec, 0, sizeof(struct ubi_vtbl_record)); in ubi_create_volume() 280 vtbl_rec.data_pad = cpu_to_be32(vol->data_pad); in ubi_create_volume() 281 vtbl_rec.name_len = cpu_to_be16(vol->name_len); in ubi_create_volume() 283 vtbl_rec.vol_type = UBI_VID_DYNAMIC; in ubi_create_volume() 285 vtbl_rec.vol_type = UBI_VID_STATIC; in ubi_create_volume() 288 vtbl_rec.flags |= UBI_VTBL_SKIP_CRC_CHECK_FLG; in ubi_create_volume() 290 memcpy(vtbl_rec.name, vol->name, vol->name_len); in ubi_create_volume() 409 struct ubi_vtbl_record vtbl_rec; in ubi_resize_volume() local 490 vtbl_rec = ubi->vtbl[vol_id]; in ubi_resize_volume() [all …]
|
A D | build.c | 785 struct ubi_vtbl_record vtbl_rec; in autoresize() local 791 vtbl_rec = ubi->vtbl[vol_id]; in autoresize() 792 err = ubi_change_vtbl_record(ubi, vol_id, &vtbl_rec); in autoresize()
|
A D | ubi.h | 838 struct ubi_vtbl_record *vtbl_rec);
|
Completed in 14 milliseconds