• Home
  • Raw
  • Download

Lines Matching refs:be32_to_cpu

76 	magic = be32_to_cpu(vh->magic);  in ubi_io_read_vid_hdr()
87 be32_to_cpu(vh->hdr_crc)) { in ubi_io_read_vid_hdr()
110 if (be32_to_cpu(vh->vol_id) == fm_vol_id && in ubi_rescan_fm_vid_hdr()
112 be32_to_cpu(vh->lnum) == fm_lnum) in ubi_rescan_fm_vid_hdr()
116 be32_to_cpu(vh->vol_id), in ubi_rescan_fm_vid_hdr()
117 fm_lnum, be32_to_cpu(vh->lnum)); in ubi_rescan_fm_vid_hdr()
207 vol_id = be32_to_cpu(vh->vol_id); in ubi_scan_vid_hdr()
221 lnum = be32_to_cpu(vh->lnum); in ubi_scan_vid_hdr()
256 pnum = be32_to_cpu(pebs[i]); in scan_pool()
305 if (be32_to_cpu(fmhdr->magic) != UBI_FM_HDR_MAGIC) { in ubi_attach_fastmap()
307 be32_to_cpu(fmhdr->magic), UBI_FM_HDR_MAGIC); in ubi_attach_fastmap()
315 if (be32_to_cpu(fmpl1->magic) != UBI_FM_POOL_MAGIC) { in ubi_attach_fastmap()
317 be32_to_cpu(fmpl1->magic), UBI_FM_POOL_MAGIC); in ubi_attach_fastmap()
325 if (be32_to_cpu(fmpl2->magic) != UBI_FM_POOL_MAGIC) { in ubi_attach_fastmap()
327 be32_to_cpu(fmpl2->magic), UBI_FM_POOL_MAGIC); in ubi_attach_fastmap()
359 for (i = 0; i < be32_to_cpu(fmhdr->free_peb_count); i++) { in ubi_attach_fastmap()
367 for (i = 0; i < be32_to_cpu(fmhdr->used_peb_count); i++) { in ubi_attach_fastmap()
373 generic_set_bit(be32_to_cpu(fmec->pnum), ubi->fm_used); in ubi_attach_fastmap()
377 for (i = 0; i < be32_to_cpu(fmhdr->scrub_peb_count); i++) { in ubi_attach_fastmap()
385 for (i = 0; i < be32_to_cpu(fmhdr->erase_peb_count); i++) { in ubi_attach_fastmap()
393 for (i = 0; i < be32_to_cpu(fmhdr->vol_count); i++) { in ubi_attach_fastmap()
401 if (be32_to_cpu(fmvhdr->magic) != UBI_FM_VHDR_MAGIC) { in ubi_attach_fastmap()
404 be32_to_cpu(fmvhdr->magic), UBI_FM_VHDR_MAGIC); in ubi_attach_fastmap()
408 vol_id = be32_to_cpu(fmvhdr->vol_id); in ubi_attach_fastmap()
410 used = be32_to_cpu(fmvhdr->used_ebs); in ubi_attach_fastmap()
414 fm_pos += (sizeof(__be32) * be32_to_cpu(fm_eba->reserved_pebs)); in ubi_attach_fastmap()
418 if (be32_to_cpu(fm_eba->magic) != UBI_FM_EBA_MAGIC) { in ubi_attach_fastmap()
421 be32_to_cpu(fm_eba->magic), UBI_FM_EBA_MAGIC); in ubi_attach_fastmap()
425 reserved = be32_to_cpu(fm_eba->reserved_pebs); in ubi_attach_fastmap()
428 int pnum = be32_to_cpu(fm_eba->pnum[j]); in ubi_attach_fastmap()
430 if ((int)be32_to_cpu(fm_eba->pnum[j]) < 0) in ubi_attach_fastmap()
512 if (be32_to_cpu(fmsb->magic) != UBI_FM_SB_MAGIC) { in ubi_scan_fastmap()
514 be32_to_cpu(fmsb->magic), UBI_FM_SB_MAGIC); in ubi_scan_fastmap()
526 used_blocks = be32_to_cpu(fmsb->used_blocks); in ubi_scan_fastmap()
544 pnum = be32_to_cpu(fmsb->block_loc[i]); in ubi_scan_fastmap()
563 image_seq = be32_to_cpu(ech->image_seq); in ubi_scan_fastmap()
572 be32_to_cpu(ech->image_seq), ubi->image_seq); in ubi_scan_fastmap()
592 if (be32_to_cpu(vh->vol_id) != UBI_FM_SB_VOLUME_ID) { in ubi_scan_fastmap()
595 be32_to_cpu(vh->vol_id), in ubi_scan_fastmap()
601 if (be32_to_cpu(vh->vol_id) != UBI_FM_DATA_VOLUME_ID) { in ubi_scan_fastmap()
604 be32_to_cpu(vh->vol_id), in ubi_scan_fastmap()
624 tmp_crc = be32_to_cpu(fmsb2->data_crc); in ubi_scan_fastmap()
761 if (be32_to_cpu(vh->used_ebs) != last) { in ubi_load_block()
764 be32_to_cpu(vh->used_ebs), last); in ubi_load_block()
772 dlen = be32_to_cpu(vh->data_size); in ubi_load_block()
784 if (crc != be32_to_cpu(vh->data_crc)) { in ubi_load_block()
801 u32 t_vol_id = be32_to_cpu(tmp->vol_id); in ubi_load_block()
802 u32 t_lnum = be32_to_cpu(tmp->lnum); in ubi_load_block()