Lines Matching refs:new_vh
272 struct ubi_ainf_volume *av, struct ubi_vid_hdr *new_vh, in update_vol() argument
283 if (be32_to_cpu(new_vh->lnum) != aeb->lnum) { in update_vol()
284 if (be32_to_cpu(new_vh->lnum) < aeb->lnum) in update_vol()
303 cmp_res = ubi_compare_lebs(ubi, aeb, new_aeb->pnum, new_vh); in update_vol()
318 if (av->highest_lnum == be32_to_cpu(new_vh->lnum)) in update_vol()
320 be32_to_cpu(new_vh->data_size); in update_vol()
327 aeb->copy_flag = new_vh->copy_flag; in update_vol()
342 if (av->highest_lnum <= be32_to_cpu(new_vh->lnum)) { in update_vol()
343 av->highest_lnum = be32_to_cpu(new_vh->lnum); in update_vol()
344 av->last_data_size = be32_to_cpu(new_vh->data_size); in update_vol()
348 av->used_ebs = be32_to_cpu(new_vh->used_ebs); in update_vol()
368 struct ubi_vid_hdr *new_vh, in process_pool_aeb() argument
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()
407 return update_vol(ubi, ai, av, new_vh, new_aeb); in process_pool_aeb()