Lines Matching refs:cpu_to_be32
120 new->vol_id = cpu_to_be32(vol_id); in new_fm_vhdr()
1132 fmsb->magic = cpu_to_be32(UBI_FM_SB_MAGIC); in ubi_write_fastmap()
1134 fmsb->used_blocks = cpu_to_be32(new_fm->used_blocks); in ubi_write_fastmap()
1138 fmh->magic = cpu_to_be32(UBI_FM_HDR_MAGIC); in ubi_write_fastmap()
1147 fmpl1->magic = cpu_to_be32(UBI_FM_POOL_MAGIC); in ubi_write_fastmap()
1152 fmpl1->pebs[i] = cpu_to_be32(ubi->fm_pool.pebs[i]); in ubi_write_fastmap()
1158 fmpl2->magic = cpu_to_be32(UBI_FM_POOL_MAGIC); in ubi_write_fastmap()
1163 fmpl2->pebs[i] = cpu_to_be32(ubi->fm_wl_pool.pebs[i]); in ubi_write_fastmap()
1170 fec->pnum = cpu_to_be32(wl_e->pnum); in ubi_write_fastmap()
1172 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1178 fmh->free_peb_count = cpu_to_be32(free_peb_count); in ubi_write_fastmap()
1183 fec->pnum = cpu_to_be32(wl_e->pnum); in ubi_write_fastmap()
1185 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1195 fec->pnum = cpu_to_be32(wl_e->pnum); in ubi_write_fastmap()
1197 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1203 fmh->used_peb_count = cpu_to_be32(used_peb_count); in ubi_write_fastmap()
1208 fec->pnum = cpu_to_be32(wl_e->pnum); in ubi_write_fastmap()
1210 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1216 fmh->scrub_peb_count = cpu_to_be32(scrub_peb_count); in ubi_write_fastmap()
1226 fec->pnum = cpu_to_be32(wl_e->pnum); in ubi_write_fastmap()
1228 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1235 fmh->erase_peb_count = cpu_to_be32(erase_peb_count); in ubi_write_fastmap()
1249 fvh->magic = cpu_to_be32(UBI_FM_VHDR_MAGIC); in ubi_write_fastmap()
1250 fvh->vol_id = cpu_to_be32(vol->vol_id); in ubi_write_fastmap()
1252 fvh->used_ebs = cpu_to_be32(vol->used_ebs); in ubi_write_fastmap()
1253 fvh->data_pad = cpu_to_be32(vol->data_pad); in ubi_write_fastmap()
1254 fvh->last_eb_bytes = cpu_to_be32(vol->last_eb_bytes); in ubi_write_fastmap()
1264 feba->pnum[j] = cpu_to_be32(vol->eba_tbl[j]); in ubi_write_fastmap()
1266 feba->reserved_pebs = cpu_to_be32(j); in ubi_write_fastmap()
1267 feba->magic = cpu_to_be32(UBI_FM_EBA_MAGIC); in ubi_write_fastmap()
1269 fmh->vol_count = cpu_to_be32(vol_count); in ubi_write_fastmap()
1270 fmh->bad_peb_count = cpu_to_be32(ubi->bad_peb_count); in ubi_write_fastmap()
1286 fmsb->block_loc[i] = cpu_to_be32(new_fm->e[i]->pnum); in ubi_write_fastmap()
1288 fmsb->block_ec[i] = cpu_to_be32(new_fm->e[i]->ec); in ubi_write_fastmap()
1292 fmsb->data_crc = cpu_to_be32(crc32(UBI_CRC32_INIT, fm_raw, in ubi_write_fastmap()
1297 dvhdr->lnum = cpu_to_be32(i); in ubi_write_fastmap()