Lines Matching refs:vol
1104 int ubi_fastmap_init_checkmap(struct ubi_volume *vol, int leb_count) in ubi_fastmap_init_checkmap() argument
1106 struct ubi_device *ubi = vol->ubi; in ubi_fastmap_init_checkmap()
1111 vol->checkmap = kcalloc(BITS_TO_LONGS(leb_count), sizeof(unsigned long), in ubi_fastmap_init_checkmap()
1113 if (!vol->checkmap) in ubi_fastmap_init_checkmap()
1119 void ubi_fastmap_destroy_checkmap(struct ubi_volume *vol) in ubi_fastmap_destroy_checkmap() argument
1121 kfree(vol->checkmap); in ubi_fastmap_destroy_checkmap()
1143 struct ubi_volume *vol; in ubi_write_fastmap() local
1293 vol = ubi->volumes[i]; in ubi_write_fastmap()
1295 if (!vol) in ubi_write_fastmap()
1305 fvh->vol_id = cpu_to_be32(vol->vol_id); in ubi_write_fastmap()
1306 fvh->vol_type = vol->vol_type; in ubi_write_fastmap()
1307 fvh->used_ebs = cpu_to_be32(vol->used_ebs); in ubi_write_fastmap()
1308 fvh->data_pad = cpu_to_be32(vol->data_pad); in ubi_write_fastmap()
1309 fvh->last_eb_bytes = cpu_to_be32(vol->last_eb_bytes); in ubi_write_fastmap()
1311 ubi_assert(vol->vol_type == UBI_DYNAMIC_VOLUME || in ubi_write_fastmap()
1312 vol->vol_type == UBI_STATIC_VOLUME); in ubi_write_fastmap()
1315 fm_pos += sizeof(*feba) + (sizeof(__be32) * vol->reserved_pebs); in ubi_write_fastmap()
1318 for (j = 0; j < vol->reserved_pebs; j++) { in ubi_write_fastmap()
1321 ubi_eba_get_ldesc(vol, j, &ldesc); in ubi_write_fastmap()