Lines Matching refs:be32_to_cpu

254 		if (be32_to_cpu(new_vh->lnum) != aeb->lnum) {  in update_vol()
255 if (be32_to_cpu(new_vh->lnum) < aeb->lnum) in update_vol()
286 if (av->highest_lnum == be32_to_cpu(new_vh->lnum)) in update_vol()
288 be32_to_cpu(new_vh->data_size); in update_vol()
311 if (av->highest_lnum <= be32_to_cpu(new_vh->lnum)) { in update_vol()
312 av->highest_lnum = be32_to_cpu(new_vh->lnum); in update_vol()
313 av->last_data_size = be32_to_cpu(new_vh->data_size); in update_vol()
317 av->used_ebs = be32_to_cpu(new_vh->used_ebs); in update_vol()
340 int vol_id = be32_to_cpu(new_vh->vol_id); in process_pool_aeb()
432 pnum = be32_to_cpu(pebs[i]); in scan_pool()
453 image_seq = be32_to_cpu(ech->image_seq); in scan_pool()
457 be32_to_cpu(ech->image_seq), ubi->image_seq); in scan_pool()
485 new_aeb->lnum = be32_to_cpu(vh->lnum); in scan_pool()
579 if (be32_to_cpu(fmhdr->magic) != UBI_FM_HDR_MAGIC) { in ubi_attach_fastmap()
581 be32_to_cpu(fmhdr->magic), UBI_FM_HDR_MAGIC); in ubi_attach_fastmap()
589 if (be32_to_cpu(fmpl->magic) != UBI_FM_POOL_MAGIC) { in ubi_attach_fastmap()
591 be32_to_cpu(fmpl->magic), UBI_FM_POOL_MAGIC); in ubi_attach_fastmap()
599 if (be32_to_cpu(fmpl_wl->magic) != UBI_FM_POOL_MAGIC) { in ubi_attach_fastmap()
601 be32_to_cpu(fmpl_wl->magic), UBI_FM_POOL_MAGIC); in ubi_attach_fastmap()
635 for (i = 0; i < be32_to_cpu(fmhdr->free_peb_count); i++) { in ubi_attach_fastmap()
641 add_aeb(ai, &ai->free, be32_to_cpu(fmec->pnum), in ubi_attach_fastmap()
642 be32_to_cpu(fmec->ec), 0); in ubi_attach_fastmap()
646 for (i = 0; i < be32_to_cpu(fmhdr->used_peb_count); i++) { in ubi_attach_fastmap()
652 add_aeb(ai, &used, be32_to_cpu(fmec->pnum), in ubi_attach_fastmap()
653 be32_to_cpu(fmec->ec), 0); in ubi_attach_fastmap()
657 for (i = 0; i < be32_to_cpu(fmhdr->scrub_peb_count); i++) { in ubi_attach_fastmap()
663 add_aeb(ai, &used, be32_to_cpu(fmec->pnum), in ubi_attach_fastmap()
664 be32_to_cpu(fmec->ec), 1); in ubi_attach_fastmap()
668 for (i = 0; i < be32_to_cpu(fmhdr->erase_peb_count); i++) { in ubi_attach_fastmap()
674 add_aeb(ai, &ai->erase, be32_to_cpu(fmec->pnum), in ubi_attach_fastmap()
675 be32_to_cpu(fmec->ec), 1); in ubi_attach_fastmap()
679 ai->bad_peb_count = be32_to_cpu(fmhdr->bad_peb_count); in ubi_attach_fastmap()
682 for (i = 0; i < be32_to_cpu(fmhdr->vol_count); i++) { in ubi_attach_fastmap()
688 if (be32_to_cpu(fmvhdr->magic) != UBI_FM_VHDR_MAGIC) { in ubi_attach_fastmap()
690 be32_to_cpu(fmvhdr->magic), UBI_FM_VHDR_MAGIC); in ubi_attach_fastmap()
694 av = add_vol(ai, be32_to_cpu(fmvhdr->vol_id), in ubi_attach_fastmap()
695 be32_to_cpu(fmvhdr->used_ebs), in ubi_attach_fastmap()
696 be32_to_cpu(fmvhdr->data_pad), in ubi_attach_fastmap()
698 be32_to_cpu(fmvhdr->last_eb_bytes)); in ubi_attach_fastmap()
709 if (ai->highest_vol_id < be32_to_cpu(fmvhdr->vol_id)) in ubi_attach_fastmap()
710 ai->highest_vol_id = be32_to_cpu(fmvhdr->vol_id); in ubi_attach_fastmap()
714 fm_pos += (sizeof(__be32) * be32_to_cpu(fm_eba->reserved_pebs)); in ubi_attach_fastmap()
718 if (be32_to_cpu(fm_eba->magic) != UBI_FM_EBA_MAGIC) { in ubi_attach_fastmap()
720 be32_to_cpu(fm_eba->magic), UBI_FM_EBA_MAGIC); in ubi_attach_fastmap()
724 for (j = 0; j < be32_to_cpu(fm_eba->reserved_pebs); j++) { in ubi_attach_fastmap()
725 int pnum = be32_to_cpu(fm_eba->pnum[j]); in ubi_attach_fastmap()
901 if (be32_to_cpu(fmsb->magic) != UBI_FM_SB_MAGIC) { in ubi_scan_fastmap()
903 be32_to_cpu(fmsb->magic), UBI_FM_SB_MAGIC); in ubi_scan_fastmap()
915 used_blocks = be32_to_cpu(fmsb->used_blocks); in ubi_scan_fastmap()
948 pnum = be32_to_cpu(fmsb->block_loc[i]); in ubi_scan_fastmap()
972 image_seq = be32_to_cpu(ech->image_seq); in ubi_scan_fastmap()
982 be32_to_cpu(ech->image_seq), ubi->image_seq); in ubi_scan_fastmap()
995 if (be32_to_cpu(vh->vol_id) != UBI_FM_SB_VOLUME_ID) { in ubi_scan_fastmap()
997 be32_to_cpu(vh->vol_id), in ubi_scan_fastmap()
1003 if (be32_to_cpu(vh->vol_id) != UBI_FM_DATA_VOLUME_ID) { in ubi_scan_fastmap()
1005 be32_to_cpu(vh->vol_id), in ubi_scan_fastmap()
1028 tmp_crc = be32_to_cpu(fmsb2->data_crc); in ubi_scan_fastmap()
1062 e->pnum = be32_to_cpu(fmsb2->block_loc[i]); in ubi_scan_fastmap()
1063 e->ec = be32_to_cpu(fmsb2->block_ec[i]); in ubi_scan_fastmap()