Lines Matching refs:new_vh
273 struct ubi_ainf_volume *av, struct ubi_vid_hdr *new_vh, in update_vol() argument
284 if (be32_to_cpu(new_vh->lnum) != aeb->lnum) { in update_vol()
285 if (be32_to_cpu(new_vh->lnum) < aeb->lnum) in update_vol()
304 cmp_res = ubi_compare_lebs(ubi, aeb, new_aeb->pnum, new_vh); in update_vol()
319 if (av->highest_lnum == be32_to_cpu(new_vh->lnum)) in update_vol()
321 be32_to_cpu(new_vh->data_size); in update_vol()
328 aeb->copy_flag = new_vh->copy_flag; in update_vol()
343 if (av->highest_lnum <= be32_to_cpu(new_vh->lnum)) { in update_vol()
344 av->highest_lnum = be32_to_cpu(new_vh->lnum); in update_vol()
345 av->last_data_size = be32_to_cpu(new_vh->data_size); in update_vol()
349 av->used_ebs = be32_to_cpu(new_vh->used_ebs); in update_vol()
369 struct ubi_vid_hdr *new_vh, in process_pool_aeb() argument
376 if (be32_to_cpu(new_vh->vol_id) == UBI_FM_SB_VOLUME_ID || in process_pool_aeb()
377 be32_to_cpu(new_vh->vol_id) == UBI_FM_DATA_VOLUME_ID) { in process_pool_aeb()
388 if (be32_to_cpu(new_vh->vol_id) > tmp_av->vol_id) in process_pool_aeb()
390 else if (be32_to_cpu(new_vh->vol_id) < tmp_av->vol_id) in process_pool_aeb()
406 ubi_assert(be32_to_cpu(new_vh->vol_id) == av->vol_id); in process_pool_aeb()
408 return update_vol(ubi, ai, av, new_vh, new_aeb); in process_pool_aeb()