Lines Matching refs:be32_to_cpu

64 	ubi_dbg("\treserved_pebs   %d", be32_to_cpu(r->reserved_pebs));  in ubi_dump_vtbl_record()
65 ubi_dbg("\talignment %d", be32_to_cpu(r->alignment)); in ubi_dump_vtbl_record()
66 ubi_dbg("\tdata_pad %d", be32_to_cpu(r->data_pad)); in ubi_dump_vtbl_record()
84 ubi_dbg("\tcrc %#08x", be32_to_cpu(r->crc)); in ubi_dump_vtbl_record()
107 reserved_pebs = be32_to_cpu(vtbl[i].reserved_pebs); in vtbl_check()
108 alignment = be32_to_cpu(vtbl[i].alignment); in vtbl_check()
109 data_pad = be32_to_cpu(vtbl[i].data_pad); in vtbl_check()
116 if (be32_to_cpu(vtbl[i].crc) != crc) { in vtbl_check()
118 i, crc, be32_to_cpu(vtbl[i].crc)); in vtbl_check()
260 magic = be32_to_cpu(vh->magic); in ubi_io_read_vid_hdr()
271 be32_to_cpu(vh->hdr_crc)) { in ubi_io_read_vid_hdr()
294 if (be32_to_cpu(vh->vol_id) == fm_vol_id && in ubi_rescan_fm_vid_hdr()
296 be32_to_cpu(vh->lnum) == fm_lnum) in ubi_rescan_fm_vid_hdr()
300 be32_to_cpu(vh->vol_id), in ubi_rescan_fm_vid_hdr()
301 fm_lnum, be32_to_cpu(vh->lnum)); in ubi_rescan_fm_vid_hdr()
391 vol_id = be32_to_cpu(vh->vol_id); in ubi_scan_vid_hdr()
414 lnum = be32_to_cpu(vh->lnum); in ubi_scan_vid_hdr()
450 pnum = be32_to_cpu(pebs[i]); in scan_pool()
499 if (be32_to_cpu(fmhdr->magic) != UBI_FM_HDR_MAGIC) { in ubi_attach_fastmap()
501 be32_to_cpu(fmhdr->magic), UBI_FM_HDR_MAGIC); in ubi_attach_fastmap()
509 if (be32_to_cpu(fmpl1->magic) != UBI_FM_POOL_MAGIC) { in ubi_attach_fastmap()
511 be32_to_cpu(fmpl1->magic), UBI_FM_POOL_MAGIC); in ubi_attach_fastmap()
519 if (be32_to_cpu(fmpl2->magic) != UBI_FM_POOL_MAGIC) { in ubi_attach_fastmap()
521 be32_to_cpu(fmpl2->magic), UBI_FM_POOL_MAGIC); in ubi_attach_fastmap()
553 for (i = 0; i < be32_to_cpu(fmhdr->free_peb_count); i++) { in ubi_attach_fastmap()
561 for (i = 0; i < be32_to_cpu(fmhdr->used_peb_count); i++) { in ubi_attach_fastmap()
567 generic_set_bit(be32_to_cpu(fmec->pnum), ubi->fm_used); in ubi_attach_fastmap()
571 for (i = 0; i < be32_to_cpu(fmhdr->scrub_peb_count); i++) { in ubi_attach_fastmap()
579 for (i = 0; i < be32_to_cpu(fmhdr->erase_peb_count); i++) { in ubi_attach_fastmap()
587 for (i = 0; i < be32_to_cpu(fmhdr->vol_count); i++) { in ubi_attach_fastmap()
595 if (be32_to_cpu(fmvhdr->magic) != UBI_FM_VHDR_MAGIC) { in ubi_attach_fastmap()
598 be32_to_cpu(fmvhdr->magic), UBI_FM_VHDR_MAGIC); in ubi_attach_fastmap()
602 vol_id = be32_to_cpu(fmvhdr->vol_id); in ubi_attach_fastmap()
604 used = be32_to_cpu(fmvhdr->used_ebs); in ubi_attach_fastmap()
608 fm_pos += (sizeof(__be32) * be32_to_cpu(fm_eba->reserved_pebs)); in ubi_attach_fastmap()
612 if (be32_to_cpu(fm_eba->magic) != UBI_FM_EBA_MAGIC) { in ubi_attach_fastmap()
615 be32_to_cpu(fm_eba->magic), UBI_FM_EBA_MAGIC); in ubi_attach_fastmap()
619 reserved = be32_to_cpu(fm_eba->reserved_pebs); in ubi_attach_fastmap()
622 int pnum = be32_to_cpu(fm_eba->pnum[j]); in ubi_attach_fastmap()
624 if ((int)be32_to_cpu(fm_eba->pnum[j]) < 0) in ubi_attach_fastmap()
706 if (be32_to_cpu(fmsb->magic) != UBI_FM_SB_MAGIC) { in ubi_scan_fastmap()
708 be32_to_cpu(fmsb->magic), UBI_FM_SB_MAGIC); in ubi_scan_fastmap()
720 used_blocks = be32_to_cpu(fmsb->used_blocks); in ubi_scan_fastmap()
738 pnum = be32_to_cpu(fmsb->block_loc[i]); in ubi_scan_fastmap()
757 image_seq = be32_to_cpu(ech->image_seq); in ubi_scan_fastmap()
766 be32_to_cpu(ech->image_seq), ubi->image_seq); in ubi_scan_fastmap()
786 if (be32_to_cpu(vh->vol_id) != UBI_FM_SB_VOLUME_ID) { in ubi_scan_fastmap()
789 be32_to_cpu(vh->vol_id), in ubi_scan_fastmap()
795 if (be32_to_cpu(vh->vol_id) != UBI_FM_DATA_VOLUME_ID) { in ubi_scan_fastmap()
798 be32_to_cpu(vh->vol_id), in ubi_scan_fastmap()
818 tmp_crc = be32_to_cpu(fmsb2->data_crc); in ubi_scan_fastmap()
955 if (be32_to_cpu(vh->used_ebs) != last) { in ubi_load_block()
958 be32_to_cpu(vh->used_ebs), last); in ubi_load_block()
966 dlen = be32_to_cpu(vh->data_size); in ubi_load_block()
978 if (crc != be32_to_cpu(vh->data_crc)) { in ubi_load_block()
995 u32 t_vol_id = be32_to_cpu(tmp->vol_id); in ubi_load_block()
996 u32 t_lnum = be32_to_cpu(tmp->lnum); in ubi_load_block()