Lines Matching refs:be32_to_cpu
263 if (be32_to_cpu(new_vh->lnum) != aeb->lnum) { in update_vol()
264 if (be32_to_cpu(new_vh->lnum) < aeb->lnum) in update_vol()
295 if (av->highest_lnum == be32_to_cpu(new_vh->lnum)) in update_vol()
297 be32_to_cpu(new_vh->data_size); in update_vol()
320 if (av->highest_lnum <= be32_to_cpu(new_vh->lnum)) { in update_vol()
321 av->highest_lnum = be32_to_cpu(new_vh->lnum); in update_vol()
322 av->last_data_size = be32_to_cpu(new_vh->data_size); in update_vol()
326 av->used_ebs = be32_to_cpu(new_vh->used_ebs); in update_vol()
349 int vol_id = be32_to_cpu(new_vh->vol_id); in process_pool_aeb()
441 pnum = be32_to_cpu(pebs[i]); in scan_pool()
462 image_seq = be32_to_cpu(ech->image_seq); in scan_pool()
466 be32_to_cpu(ech->image_seq), ubi->image_seq); in scan_pool()
494 new_aeb->lnum = be32_to_cpu(vh->lnum); in scan_pool()
588 if (be32_to_cpu(fmhdr->magic) != UBI_FM_HDR_MAGIC) { in ubi_attach_fastmap()
590 be32_to_cpu(fmhdr->magic), UBI_FM_HDR_MAGIC); in ubi_attach_fastmap()
598 if (be32_to_cpu(fmpl->magic) != UBI_FM_POOL_MAGIC) { in ubi_attach_fastmap()
600 be32_to_cpu(fmpl->magic), UBI_FM_POOL_MAGIC); in ubi_attach_fastmap()
608 if (be32_to_cpu(fmpl_wl->magic) != UBI_FM_POOL_MAGIC) { in ubi_attach_fastmap()
610 be32_to_cpu(fmpl_wl->magic), UBI_FM_POOL_MAGIC); in ubi_attach_fastmap()
644 for (i = 0; i < be32_to_cpu(fmhdr->free_peb_count); i++) { in ubi_attach_fastmap()
650 add_aeb(ai, &ai->free, be32_to_cpu(fmec->pnum), in ubi_attach_fastmap()
651 be32_to_cpu(fmec->ec), 0); in ubi_attach_fastmap()
655 for (i = 0; i < be32_to_cpu(fmhdr->used_peb_count); i++) { in ubi_attach_fastmap()
661 add_aeb(ai, &used, be32_to_cpu(fmec->pnum), in ubi_attach_fastmap()
662 be32_to_cpu(fmec->ec), 0); in ubi_attach_fastmap()
666 for (i = 0; i < be32_to_cpu(fmhdr->scrub_peb_count); i++) { in ubi_attach_fastmap()
672 add_aeb(ai, &used, be32_to_cpu(fmec->pnum), in ubi_attach_fastmap()
673 be32_to_cpu(fmec->ec), 1); in ubi_attach_fastmap()
677 for (i = 0; i < be32_to_cpu(fmhdr->erase_peb_count); i++) { in ubi_attach_fastmap()
683 add_aeb(ai, &ai->erase, be32_to_cpu(fmec->pnum), in ubi_attach_fastmap()
684 be32_to_cpu(fmec->ec), 1); in ubi_attach_fastmap()
688 ai->bad_peb_count = be32_to_cpu(fmhdr->bad_peb_count); in ubi_attach_fastmap()
691 for (i = 0; i < be32_to_cpu(fmhdr->vol_count); i++) { in ubi_attach_fastmap()
697 if (be32_to_cpu(fmvhdr->magic) != UBI_FM_VHDR_MAGIC) { in ubi_attach_fastmap()
699 be32_to_cpu(fmvhdr->magic), UBI_FM_VHDR_MAGIC); in ubi_attach_fastmap()
703 av = add_vol(ai, be32_to_cpu(fmvhdr->vol_id), in ubi_attach_fastmap()
704 be32_to_cpu(fmvhdr->used_ebs), in ubi_attach_fastmap()
705 be32_to_cpu(fmvhdr->data_pad), in ubi_attach_fastmap()
707 be32_to_cpu(fmvhdr->last_eb_bytes)); in ubi_attach_fastmap()
718 if (ai->highest_vol_id < be32_to_cpu(fmvhdr->vol_id)) in ubi_attach_fastmap()
719 ai->highest_vol_id = be32_to_cpu(fmvhdr->vol_id); in ubi_attach_fastmap()
723 fm_pos += (sizeof(__be32) * be32_to_cpu(fm_eba->reserved_pebs)); in ubi_attach_fastmap()
727 if (be32_to_cpu(fm_eba->magic) != UBI_FM_EBA_MAGIC) { in ubi_attach_fastmap()
729 be32_to_cpu(fm_eba->magic), UBI_FM_EBA_MAGIC); in ubi_attach_fastmap()
733 for (j = 0; j < be32_to_cpu(fm_eba->reserved_pebs); j++) { in ubi_attach_fastmap()
734 int pnum = be32_to_cpu(fm_eba->pnum[j]); in ubi_attach_fastmap()
910 if (be32_to_cpu(fmsb->magic) != UBI_FM_SB_MAGIC) { in ubi_scan_fastmap()
912 be32_to_cpu(fmsb->magic), UBI_FM_SB_MAGIC); in ubi_scan_fastmap()
924 used_blocks = be32_to_cpu(fmsb->used_blocks); in ubi_scan_fastmap()
957 pnum = be32_to_cpu(fmsb->block_loc[i]); in ubi_scan_fastmap()
981 image_seq = be32_to_cpu(ech->image_seq); in ubi_scan_fastmap()
991 be32_to_cpu(ech->image_seq), ubi->image_seq); in ubi_scan_fastmap()
1004 if (be32_to_cpu(vh->vol_id) != UBI_FM_SB_VOLUME_ID) { in ubi_scan_fastmap()
1006 be32_to_cpu(vh->vol_id), in ubi_scan_fastmap()
1012 if (be32_to_cpu(vh->vol_id) != UBI_FM_DATA_VOLUME_ID) { in ubi_scan_fastmap()
1014 be32_to_cpu(vh->vol_id), in ubi_scan_fastmap()
1037 tmp_crc = be32_to_cpu(fmsb2->data_crc); in ubi_scan_fastmap()
1071 e->pnum = be32_to_cpu(fmsb2->block_loc[i]); in ubi_scan_fastmap()
1072 e->ec = be32_to_cpu(fmsb2->block_ec[i]); in ubi_scan_fastmap()