Lines Matching refs:vol_id
113 static struct ubi_vid_hdr *new_fm_vhdr(struct ubi_device *ubi, int vol_id) in new_fm_vhdr() argument
122 new->vol_id = cpu_to_be32(vol_id); in new_fm_vhdr()
184 static struct ubi_ainf_volume *add_vol(struct ubi_attach_info *ai, int vol_id, in add_vol() argument
195 if (vol_id > av->vol_id) in add_vol()
197 else if (vol_id < av->vol_id) in add_vol()
208 av->vol_id = vol_id; in add_vol()
217 dbg_bld("found volume (ID %i)", vol_id); in add_vol()
325 av->vol_id, aeb->lnum, new_aeb->pnum); in update_vol()
336 av->vol_id, aeb->lnum, new_aeb->pnum); in update_vol()
377 if (be32_to_cpu(new_vh->vol_id) == UBI_FM_SB_VOLUME_ID || in process_pool_aeb()
378 be32_to_cpu(new_vh->vol_id) == UBI_FM_DATA_VOLUME_ID) { in process_pool_aeb()
389 if (be32_to_cpu(new_vh->vol_id) > tmp_av->vol_id) in process_pool_aeb()
391 else if (be32_to_cpu(new_vh->vol_id) < tmp_av->vol_id) in process_pool_aeb()
407 ubi_assert(be32_to_cpu(new_vh->vol_id) == av->vol_id); in process_pool_aeb()
753 av = add_vol(ai, be32_to_cpu(fmvhdr->vol_id), in ubi_attach_fastmap()
763 fmvhdr->vol_id); in ubi_attach_fastmap()
768 if (ai->highest_vol_id < be32_to_cpu(fmvhdr->vol_id)) in ubi_attach_fastmap()
769 ai->highest_vol_id = be32_to_cpu(fmvhdr->vol_id); in ubi_attach_fastmap()
810 aeb->pnum, aeb->lnum, av->vol_id); in ubi_attach_fastmap()
997 if (be32_to_cpu(vh->vol_id) != UBI_FM_SB_VOLUME_ID) { in ubi_scan_fastmap()
999 be32_to_cpu(vh->vol_id), in ubi_scan_fastmap()
1005 if (be32_to_cpu(vh->vol_id) != UBI_FM_DATA_VOLUME_ID) { in ubi_scan_fastmap()
1007 be32_to_cpu(vh->vol_id), in ubi_scan_fastmap()
1272 fvh->vol_id = cpu_to_be32(vol->vol_id); in ubi_write_fastmap()