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 = bitmap_zalloc(leb_count, GFP_KERNEL); in ubi_fastmap_init_checkmap()
1112 if (!vol->checkmap) in ubi_fastmap_init_checkmap()
1118 void ubi_fastmap_destroy_checkmap(struct ubi_volume *vol) in ubi_fastmap_destroy_checkmap() argument
1120 bitmap_free(vol->checkmap); in ubi_fastmap_destroy_checkmap()
1142 struct ubi_volume *vol; in ubi_write_fastmap() local
1292 vol = ubi->volumes[i]; in ubi_write_fastmap()
1294 if (!vol) in ubi_write_fastmap()
1304 fvh->vol_id = cpu_to_be32(vol->vol_id); in ubi_write_fastmap()
1305 fvh->vol_type = vol->vol_type; in ubi_write_fastmap()
1306 fvh->used_ebs = cpu_to_be32(vol->used_ebs); in ubi_write_fastmap()
1307 fvh->data_pad = cpu_to_be32(vol->data_pad); in ubi_write_fastmap()
1308 fvh->last_eb_bytes = cpu_to_be32(vol->last_eb_bytes); in ubi_write_fastmap()
1310 ubi_assert(vol->vol_type == UBI_DYNAMIC_VOLUME || in ubi_write_fastmap()
1311 vol->vol_type == UBI_STATIC_VOLUME); in ubi_write_fastmap()
1314 fm_pos += sizeof(*feba) + (sizeof(__be32) * vol->reserved_pebs); in ubi_write_fastmap()
1317 for (j = 0; j < vol->reserved_pebs; j++) { in ubi_write_fastmap()
1320 ubi_eba_get_ldesc(vol, j, &ldesc); in ubi_write_fastmap()