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()
195 else if (vol_id < av->vol_id) in add_vol()
206 av->vol_id = vol_id; in add_vol()
215 dbg_bld("found volume (ID %i)", vol_id); in add_vol()
323 av->vol_id, aeb->lnum, new_aeb->pnum); in update_vol()
334 av->vol_id, aeb->lnum, new_aeb->pnum); in update_vol()
375 if (be32_to_cpu(new_vh->vol_id) == UBI_FM_SB_VOLUME_ID || in process_pool_aeb()
376 be32_to_cpu(new_vh->vol_id) == UBI_FM_DATA_VOLUME_ID) { in process_pool_aeb()
387 if (be32_to_cpu(new_vh->vol_id) > tmp_av->vol_id) in process_pool_aeb()
389 else if (be32_to_cpu(new_vh->vol_id) < tmp_av->vol_id) in process_pool_aeb()
405 ubi_assert(be32_to_cpu(new_vh->vol_id) == av->vol_id); in process_pool_aeb()
745 av = add_vol(ai, be32_to_cpu(fmvhdr->vol_id), in ubi_attach_fastmap()
755 fmvhdr->vol_id); in ubi_attach_fastmap()
760 if (ai->highest_vol_id < be32_to_cpu(fmvhdr->vol_id)) in ubi_attach_fastmap()
761 ai->highest_vol_id = be32_to_cpu(fmvhdr->vol_id); in ubi_attach_fastmap()
802 aeb->pnum, aeb->lnum, av->vol_id); in ubi_attach_fastmap()
981 if (be32_to_cpu(vh->vol_id) != UBI_FM_SB_VOLUME_ID) { in ubi_scan_fastmap()
983 be32_to_cpu(vh->vol_id), in ubi_scan_fastmap()
989 if (be32_to_cpu(vh->vol_id) != UBI_FM_DATA_VOLUME_ID) { in ubi_scan_fastmap()
991 be32_to_cpu(vh->vol_id), in ubi_scan_fastmap()
1257 fvh->vol_id = cpu_to_be32(vol->vol_id); in ubi_write_fastmap()