Lines Matching refs:fmpl1
604 struct ubi_fm_scan_pool *fmpl1, *fmpl2; in ubi_attach_fastmap() local
634 fmpl1 = (struct ubi_fm_scan_pool *)(fm_raw + fm_pos); in ubi_attach_fastmap()
635 fm_pos += sizeof(*fmpl1); in ubi_attach_fastmap()
638 if (be32_to_cpu(fmpl1->magic) != UBI_FM_POOL_MAGIC) { in ubi_attach_fastmap()
640 be32_to_cpu(fmpl1->magic), UBI_FM_POOL_MAGIC); in ubi_attach_fastmap()
654 pool_size = be16_to_cpu(fmpl1->size); in ubi_attach_fastmap()
656 fm->max_pool_size = be16_to_cpu(fmpl1->max_size); in ubi_attach_fastmap()
799 ret = scan_pool(ubi, ai, fmpl1->pebs, pool_size, &max_sqnum, &free); in ubi_attach_fastmap()
1087 struct ubi_fm_scan_pool *fmpl1, *fmpl2; in ubi_write_fastmap() local
1145 fmpl1 = (struct ubi_fm_scan_pool *)(fm_raw + fm_pos); in ubi_write_fastmap()
1146 fm_pos += sizeof(*fmpl1); in ubi_write_fastmap()
1147 fmpl1->magic = cpu_to_be32(UBI_FM_POOL_MAGIC); in ubi_write_fastmap()
1148 fmpl1->size = cpu_to_be16(ubi->fm_pool.size); in ubi_write_fastmap()
1149 fmpl1->max_size = cpu_to_be16(ubi->fm_pool.max_size); in ubi_write_fastmap()
1152 fmpl1->pebs[i] = cpu_to_be32(ubi->fm_pool.pebs[i]); in ubi_write_fastmap()