Lines Matching refs:be32_to_cpu

77 	magic = be32_to_cpu(vh->magic);  in ubi_io_read_vid_hdr()
88 be32_to_cpu(vh->hdr_crc)) { in ubi_io_read_vid_hdr()
111 if (be32_to_cpu(vh->vol_id) == fm_vol_id && in ubi_rescan_fm_vid_hdr()
113 be32_to_cpu(vh->lnum) == fm_lnum) in ubi_rescan_fm_vid_hdr()
117 be32_to_cpu(vh->vol_id), in ubi_rescan_fm_vid_hdr()
118 fm_lnum, be32_to_cpu(vh->lnum)); in ubi_rescan_fm_vid_hdr()
208 vol_id = be32_to_cpu(vh->vol_id); in ubi_scan_vid_hdr()
222 lnum = be32_to_cpu(vh->lnum); in ubi_scan_vid_hdr()
257 pnum = be32_to_cpu(pebs[i]); in scan_pool()
306 if (be32_to_cpu(fmhdr->magic) != UBI_FM_HDR_MAGIC) { in ubi_attach_fastmap()
308 be32_to_cpu(fmhdr->magic), UBI_FM_HDR_MAGIC); in ubi_attach_fastmap()
316 if (be32_to_cpu(fmpl1->magic) != UBI_FM_POOL_MAGIC) { in ubi_attach_fastmap()
318 be32_to_cpu(fmpl1->magic), UBI_FM_POOL_MAGIC); in ubi_attach_fastmap()
326 if (be32_to_cpu(fmpl2->magic) != UBI_FM_POOL_MAGIC) { in ubi_attach_fastmap()
328 be32_to_cpu(fmpl2->magic), UBI_FM_POOL_MAGIC); in ubi_attach_fastmap()
360 for (i = 0; i < be32_to_cpu(fmhdr->free_peb_count); i++) { in ubi_attach_fastmap()
368 for (i = 0; i < be32_to_cpu(fmhdr->used_peb_count); i++) { in ubi_attach_fastmap()
374 generic_set_bit(be32_to_cpu(fmec->pnum), ubi->fm_used); in ubi_attach_fastmap()
378 for (i = 0; i < be32_to_cpu(fmhdr->scrub_peb_count); i++) { in ubi_attach_fastmap()
386 for (i = 0; i < be32_to_cpu(fmhdr->erase_peb_count); i++) { in ubi_attach_fastmap()
394 for (i = 0; i < be32_to_cpu(fmhdr->vol_count); i++) { in ubi_attach_fastmap()
402 if (be32_to_cpu(fmvhdr->magic) != UBI_FM_VHDR_MAGIC) { in ubi_attach_fastmap()
405 be32_to_cpu(fmvhdr->magic), UBI_FM_VHDR_MAGIC); in ubi_attach_fastmap()
409 vol_id = be32_to_cpu(fmvhdr->vol_id); in ubi_attach_fastmap()
411 used = be32_to_cpu(fmvhdr->used_ebs); in ubi_attach_fastmap()
415 fm_pos += (sizeof(__be32) * be32_to_cpu(fm_eba->reserved_pebs)); in ubi_attach_fastmap()
419 if (be32_to_cpu(fm_eba->magic) != UBI_FM_EBA_MAGIC) { in ubi_attach_fastmap()
422 be32_to_cpu(fm_eba->magic), UBI_FM_EBA_MAGIC); in ubi_attach_fastmap()
426 reserved = be32_to_cpu(fm_eba->reserved_pebs); in ubi_attach_fastmap()
429 int pnum = be32_to_cpu(fm_eba->pnum[j]); in ubi_attach_fastmap()
431 if ((int)be32_to_cpu(fm_eba->pnum[j]) < 0) in ubi_attach_fastmap()
513 if (be32_to_cpu(fmsb->magic) != UBI_FM_SB_MAGIC) { in ubi_scan_fastmap()
515 be32_to_cpu(fmsb->magic), UBI_FM_SB_MAGIC); in ubi_scan_fastmap()
527 used_blocks = be32_to_cpu(fmsb->used_blocks); in ubi_scan_fastmap()
545 pnum = be32_to_cpu(fmsb->block_loc[i]); in ubi_scan_fastmap()
564 image_seq = be32_to_cpu(ech->image_seq); in ubi_scan_fastmap()
573 be32_to_cpu(ech->image_seq), ubi->image_seq); in ubi_scan_fastmap()
593 if (be32_to_cpu(vh->vol_id) != UBI_FM_SB_VOLUME_ID) { in ubi_scan_fastmap()
596 be32_to_cpu(vh->vol_id), in ubi_scan_fastmap()
602 if (be32_to_cpu(vh->vol_id) != UBI_FM_DATA_VOLUME_ID) { in ubi_scan_fastmap()
605 be32_to_cpu(vh->vol_id), in ubi_scan_fastmap()
625 tmp_crc = be32_to_cpu(fmsb2->data_crc); in ubi_scan_fastmap()
762 if (be32_to_cpu(vh->used_ebs) != last) { in ubi_load_block()
765 be32_to_cpu(vh->used_ebs), last); in ubi_load_block()
773 dlen = be32_to_cpu(vh->data_size); in ubi_load_block()
785 if (crc != be32_to_cpu(vh->data_crc)) { in ubi_load_block()
802 u32 t_vol_id = be32_to_cpu(tmp->vol_id); in ubi_load_block()
803 u32 t_lnum = be32_to_cpu(tmp->lnum); in ubi_load_block()