Lines Matching refs:new_vh
270 struct ubi_ainf_volume *av, struct ubi_vid_hdr *new_vh, in update_vol() argument
281 if (be32_to_cpu(new_vh->lnum) != aeb->lnum) { in update_vol()
282 if (be32_to_cpu(new_vh->lnum) < aeb->lnum) in update_vol()
301 cmp_res = ubi_compare_lebs(ubi, aeb, new_aeb->pnum, new_vh); in update_vol()
316 if (av->highest_lnum == be32_to_cpu(new_vh->lnum)) in update_vol()
318 be32_to_cpu(new_vh->data_size); in update_vol()
325 aeb->copy_flag = new_vh->copy_flag; in update_vol()
340 if (av->highest_lnum <= be32_to_cpu(new_vh->lnum)) { in update_vol()
341 av->highest_lnum = be32_to_cpu(new_vh->lnum); in update_vol()
342 av->last_data_size = be32_to_cpu(new_vh->data_size); in update_vol()
346 av->used_ebs = be32_to_cpu(new_vh->used_ebs); in update_vol()
366 struct ubi_vid_hdr *new_vh, in process_pool_aeb() argument
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()
405 return update_vol(ubi, ai, av, new_vh, new_aeb); in process_pool_aeb()