Lines Matching refs:cpu_to_be32
122 new->vol_id = cpu_to_be32(vol_id); in new_fm_vhdr()
1154 fmsb->magic = cpu_to_be32(UBI_FM_SB_MAGIC); in ubi_write_fastmap()
1156 fmsb->used_blocks = cpu_to_be32(new_fm->used_blocks); in ubi_write_fastmap()
1160 fmh->magic = cpu_to_be32(UBI_FM_HDR_MAGIC); in ubi_write_fastmap()
1169 fmpl->magic = cpu_to_be32(UBI_FM_POOL_MAGIC); in ubi_write_fastmap()
1174 fmpl->pebs[i] = cpu_to_be32(ubi->fm_pool.pebs[i]); in ubi_write_fastmap()
1180 fmpl_wl->magic = cpu_to_be32(UBI_FM_POOL_MAGIC); in ubi_write_fastmap()
1185 fmpl_wl->pebs[i] = cpu_to_be32(ubi->fm_wl_pool.pebs[i]); in ubi_write_fastmap()
1192 fec->pnum = cpu_to_be32(wl_e->pnum); in ubi_write_fastmap()
1194 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1200 fmh->free_peb_count = cpu_to_be32(free_peb_count); in ubi_write_fastmap()
1205 fec->pnum = cpu_to_be32(wl_e->pnum); in ubi_write_fastmap()
1207 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1217 fec->pnum = cpu_to_be32(wl_e->pnum); in ubi_write_fastmap()
1219 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1225 fmh->used_peb_count = cpu_to_be32(used_peb_count); in ubi_write_fastmap()
1230 fec->pnum = cpu_to_be32(wl_e->pnum); in ubi_write_fastmap()
1232 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1238 fmh->scrub_peb_count = cpu_to_be32(scrub_peb_count); in ubi_write_fastmap()
1248 fec->pnum = cpu_to_be32(wl_e->pnum); in ubi_write_fastmap()
1250 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1257 fmh->erase_peb_count = cpu_to_be32(erase_peb_count); in ubi_write_fastmap()
1271 fvh->magic = cpu_to_be32(UBI_FM_VHDR_MAGIC); in ubi_write_fastmap()
1272 fvh->vol_id = cpu_to_be32(vol->vol_id); in ubi_write_fastmap()
1274 fvh->used_ebs = cpu_to_be32(vol->used_ebs); in ubi_write_fastmap()
1275 fvh->data_pad = cpu_to_be32(vol->data_pad); in ubi_write_fastmap()
1276 fvh->last_eb_bytes = cpu_to_be32(vol->last_eb_bytes); in ubi_write_fastmap()
1286 feba->pnum[j] = cpu_to_be32(vol->eba_tbl[j]); in ubi_write_fastmap()
1288 feba->reserved_pebs = cpu_to_be32(j); in ubi_write_fastmap()
1289 feba->magic = cpu_to_be32(UBI_FM_EBA_MAGIC); in ubi_write_fastmap()
1291 fmh->vol_count = cpu_to_be32(vol_count); in ubi_write_fastmap()
1292 fmh->bad_peb_count = cpu_to_be32(ubi->bad_peb_count); in ubi_write_fastmap()
1308 fmsb->block_loc[i] = cpu_to_be32(new_fm->e[i]->pnum); in ubi_write_fastmap()
1310 fmsb->block_ec[i] = cpu_to_be32(new_fm->e[i]->ec); in ubi_write_fastmap()
1314 fmsb->data_crc = cpu_to_be32(crc32(UBI_CRC32_INIT, fm_raw, in ubi_write_fastmap()
1319 dvhdr->lnum = cpu_to_be32(i); in ubi_write_fastmap()