Lines Matching refs:vol_id
111 static struct ubi_vid_hdr *new_fm_vhdr(struct ubi_device *ubi, int vol_id) in new_fm_vhdr() argument
120 new->vol_id = cpu_to_be32(vol_id); in new_fm_vhdr()
182 static struct ubi_ainf_volume *add_vol(struct ubi_attach_info *ai, int vol_id, in add_vol() argument
193 if (vol_id > av->vol_id) in add_vol()
204 av->vol_id = vol_id; in add_vol()
213 dbg_bld("found volume (ID %i)", vol_id); in add_vol()
321 av->vol_id, aeb->lnum, new_aeb->pnum); in update_vol()
332 av->vol_id, aeb->lnum, new_aeb->pnum); in update_vol()
373 if (be32_to_cpu(new_vh->vol_id) == UBI_FM_SB_VOLUME_ID || in process_pool_aeb()
374 be32_to_cpu(new_vh->vol_id) == UBI_FM_DATA_VOLUME_ID) { in process_pool_aeb()
385 if (be32_to_cpu(new_vh->vol_id) > tmp_av->vol_id) in process_pool_aeb()
387 else if (be32_to_cpu(new_vh->vol_id) < tmp_av->vol_id) in process_pool_aeb()
403 ubi_assert(be32_to_cpu(new_vh->vol_id) == av->vol_id); in process_pool_aeb()
743 av = add_vol(ai, be32_to_cpu(fmvhdr->vol_id), in ubi_attach_fastmap()
753 if (ai->highest_vol_id < be32_to_cpu(fmvhdr->vol_id)) in ubi_attach_fastmap()
754 ai->highest_vol_id = be32_to_cpu(fmvhdr->vol_id); in ubi_attach_fastmap()
795 aeb->pnum, aeb->lnum, av->vol_id); in ubi_attach_fastmap()
974 if (be32_to_cpu(vh->vol_id) != UBI_FM_SB_VOLUME_ID) { in ubi_scan_fastmap()
976 be32_to_cpu(vh->vol_id), in ubi_scan_fastmap()
982 if (be32_to_cpu(vh->vol_id) != UBI_FM_DATA_VOLUME_ID) { in ubi_scan_fastmap()
984 be32_to_cpu(vh->vol_id), in ubi_scan_fastmap()
1250 fvh->vol_id = cpu_to_be32(vol->vol_id); in ubi_write_fastmap()