Lines Matching refs:be32_to_cpu

289 		if (be32_to_cpu(new_vh->lnum) != aeb->lnum) {  in update_vol()
290 if (be32_to_cpu(new_vh->lnum) < aeb->lnum) in update_vol()
324 if (av->highest_lnum == be32_to_cpu(new_vh->lnum)) in update_vol()
326 be32_to_cpu(new_vh->data_size); in update_vol()
348 if (av->highest_lnum <= be32_to_cpu(new_vh->lnum)) { in update_vol()
349 av->highest_lnum = be32_to_cpu(new_vh->lnum); in update_vol()
350 av->last_data_size = be32_to_cpu(new_vh->data_size); in update_vol()
354 av->used_ebs = be32_to_cpu(new_vh->used_ebs); in update_vol()
381 if (be32_to_cpu(new_vh->vol_id) == UBI_FM_SB_VOLUME_ID || in process_pool_aeb()
382 be32_to_cpu(new_vh->vol_id) == UBI_FM_DATA_VOLUME_ID) { in process_pool_aeb()
393 if (be32_to_cpu(new_vh->vol_id) > tmp_av->vol_id) in process_pool_aeb()
395 else if (be32_to_cpu(new_vh->vol_id) < tmp_av->vol_id) in process_pool_aeb()
411 ubi_assert(be32_to_cpu(new_vh->vol_id) == av->vol_id); in process_pool_aeb()
493 pnum = be32_to_cpu(pebs[i]); in scan_pool()
514 image_seq = be32_to_cpu(ech->image_seq); in scan_pool()
518 be32_to_cpu(ech->image_seq), ubi->image_seq); in scan_pool()
548 new_aeb->lnum = be32_to_cpu(vh->lnum); in scan_pool()
642 if (be32_to_cpu(fmhdr->magic) != UBI_FM_HDR_MAGIC) { in ubi_attach_fastmap()
644 be32_to_cpu(fmhdr->magic), UBI_FM_HDR_MAGIC); in ubi_attach_fastmap()
652 if (be32_to_cpu(fmpl->magic) != UBI_FM_POOL_MAGIC) { in ubi_attach_fastmap()
654 be32_to_cpu(fmpl->magic), UBI_FM_POOL_MAGIC); in ubi_attach_fastmap()
662 if (be32_to_cpu(fmpl_wl->magic) != UBI_FM_POOL_MAGIC) { in ubi_attach_fastmap()
664 be32_to_cpu(fmpl_wl->magic), UBI_FM_POOL_MAGIC); in ubi_attach_fastmap()
698 for (i = 0; i < be32_to_cpu(fmhdr->free_peb_count); i++) { in ubi_attach_fastmap()
704 add_aeb(ai, &ai->free, be32_to_cpu(fmec->pnum), in ubi_attach_fastmap()
705 be32_to_cpu(fmec->ec), 0); in ubi_attach_fastmap()
709 for (i = 0; i < be32_to_cpu(fmhdr->used_peb_count); i++) { in ubi_attach_fastmap()
715 add_aeb(ai, &used, be32_to_cpu(fmec->pnum), in ubi_attach_fastmap()
716 be32_to_cpu(fmec->ec), 0); in ubi_attach_fastmap()
720 for (i = 0; i < be32_to_cpu(fmhdr->scrub_peb_count); i++) { in ubi_attach_fastmap()
726 add_aeb(ai, &used, be32_to_cpu(fmec->pnum), in ubi_attach_fastmap()
727 be32_to_cpu(fmec->ec), 1); in ubi_attach_fastmap()
731 for (i = 0; i < be32_to_cpu(fmhdr->erase_peb_count); i++) { in ubi_attach_fastmap()
737 add_aeb(ai, &ai->erase, be32_to_cpu(fmec->pnum), in ubi_attach_fastmap()
738 be32_to_cpu(fmec->ec), 1); in ubi_attach_fastmap()
742 ai->bad_peb_count = be32_to_cpu(fmhdr->bad_peb_count); in ubi_attach_fastmap()
745 for (i = 0; i < be32_to_cpu(fmhdr->vol_count); i++) { in ubi_attach_fastmap()
751 if (be32_to_cpu(fmvhdr->magic) != UBI_FM_VHDR_MAGIC) { in ubi_attach_fastmap()
753 be32_to_cpu(fmvhdr->magic), UBI_FM_VHDR_MAGIC); in ubi_attach_fastmap()
757 av = add_vol(ai, be32_to_cpu(fmvhdr->vol_id), in ubi_attach_fastmap()
758 be32_to_cpu(fmvhdr->used_ebs), in ubi_attach_fastmap()
759 be32_to_cpu(fmvhdr->data_pad), in ubi_attach_fastmap()
761 be32_to_cpu(fmvhdr->last_eb_bytes)); in ubi_attach_fastmap()
772 if (ai->highest_vol_id < be32_to_cpu(fmvhdr->vol_id)) in ubi_attach_fastmap()
773 ai->highest_vol_id = be32_to_cpu(fmvhdr->vol_id); in ubi_attach_fastmap()
777 fm_pos += (sizeof(__be32) * be32_to_cpu(fm_eba->reserved_pebs)); in ubi_attach_fastmap()
781 if (be32_to_cpu(fm_eba->magic) != UBI_FM_EBA_MAGIC) { in ubi_attach_fastmap()
783 be32_to_cpu(fm_eba->magic), UBI_FM_EBA_MAGIC); in ubi_attach_fastmap()
787 for (j = 0; j < be32_to_cpu(fm_eba->reserved_pebs); j++) { in ubi_attach_fastmap()
788 int pnum = be32_to_cpu(fm_eba->pnum[j]); in ubi_attach_fastmap()
790 if ((int)be32_to_cpu(fm_eba->pnum[j]) < 0) in ubi_attach_fastmap()
916 if (be32_to_cpu(fmsb->magic) != UBI_FM_SB_MAGIC) { in ubi_scan_fastmap()
918 be32_to_cpu(fmsb->magic), UBI_FM_SB_MAGIC); in ubi_scan_fastmap()
930 used_blocks = be32_to_cpu(fmsb->used_blocks); in ubi_scan_fastmap()
961 pnum = be32_to_cpu(fmsb->block_loc[i]); in ubi_scan_fastmap()
978 image_seq = be32_to_cpu(ech->image_seq); in ubi_scan_fastmap()
988 be32_to_cpu(ech->image_seq), ubi->image_seq); in ubi_scan_fastmap()
1001 if (be32_to_cpu(vh->vol_id) != UBI_FM_SB_VOLUME_ID) { in ubi_scan_fastmap()
1003 be32_to_cpu(vh->vol_id), in ubi_scan_fastmap()
1009 if (be32_to_cpu(vh->vol_id) != UBI_FM_DATA_VOLUME_ID) { in ubi_scan_fastmap()
1011 be32_to_cpu(vh->vol_id), in ubi_scan_fastmap()
1034 tmp_crc = be32_to_cpu(fmsb2->data_crc); in ubi_scan_fastmap()
1068 e->pnum = be32_to_cpu(fmsb2->block_loc[i]); in ubi_scan_fastmap()
1069 e->ec = be32_to_cpu(fmsb2->block_ec[i]); in ubi_scan_fastmap()