Lines Matching defs:vol
290 dbg_bld("vol %i: AEB %i's PEB %i is the newer",
302 dbg_bld("vol %i: AEB %i's PEB %i is old, dropping it",
699 ubi_err(ubi, "bad fastmap vol header magic: 0x%x, expected: 0x%x",
760 dbg_bld("inserting PEB:%i (LEB %i) to vol %i",
1093 int ubi_fastmap_init_checkmap(struct ubi_volume *vol, int leb_count)
1095 struct ubi_device *ubi = vol->ubi;
1100 vol->checkmap = kcalloc(BITS_TO_LONGS(leb_count), sizeof(unsigned long),
1102 if (!vol->checkmap)
1108 void ubi_fastmap_destroy_checkmap(struct ubi_volume *vol)
1110 kfree(vol->checkmap);
1132 struct ubi_volume *vol;
1282 vol = ubi->volumes[i];
1284 if (!vol)
1294 fvh->vol_id = cpu_to_be32(vol->vol_id);
1295 fvh->vol_type = vol->vol_type;
1296 fvh->used_ebs = cpu_to_be32(vol->used_ebs);
1297 fvh->data_pad = cpu_to_be32(vol->data_pad);
1298 fvh->last_eb_bytes = cpu_to_be32(vol->last_eb_bytes);
1300 ubi_assert(vol->vol_type == UBI_DYNAMIC_VOLUME ||
1301 vol->vol_type == UBI_STATIC_VOLUME);
1304 fm_pos += sizeof(*feba) + (sizeof(__be32) * vol->reserved_pebs);
1307 for (j = 0; j < vol->reserved_pebs; j++) {
1310 ubi_eba_get_ldesc(vol, j, &ldesc);