Lines Matching refs:fmpl2
604 struct ubi_fm_scan_pool *fmpl1, *fmpl2; in ubi_attach_fastmap() local
644 fmpl2 = (struct ubi_fm_scan_pool *)(fm_raw + fm_pos); in ubi_attach_fastmap()
645 fm_pos += sizeof(*fmpl2); in ubi_attach_fastmap()
648 if (be32_to_cpu(fmpl2->magic) != UBI_FM_POOL_MAGIC) { in ubi_attach_fastmap()
650 be32_to_cpu(fmpl2->magic), UBI_FM_POOL_MAGIC); in ubi_attach_fastmap()
655 wl_pool_size = be16_to_cpu(fmpl2->size); in ubi_attach_fastmap()
657 fm->max_wl_pool_size = be16_to_cpu(fmpl2->max_size); in ubi_attach_fastmap()
803 ret = scan_pool(ubi, ai, fmpl2->pebs, wl_pool_size, &max_sqnum, &free); in ubi_attach_fastmap()
1087 struct ubi_fm_scan_pool *fmpl1, *fmpl2; in ubi_write_fastmap() local
1156 fmpl2 = (struct ubi_fm_scan_pool *)(fm_raw + fm_pos); in ubi_write_fastmap()
1157 fm_pos += sizeof(*fmpl2); in ubi_write_fastmap()
1158 fmpl2->magic = cpu_to_be32(UBI_FM_POOL_MAGIC); in ubi_write_fastmap()
1159 fmpl2->size = cpu_to_be16(ubi->fm_wl_pool.size); in ubi_write_fastmap()
1160 fmpl2->max_size = cpu_to_be16(ubi->fm_wl_pool.max_size); in ubi_write_fastmap()
1163 fmpl2->pebs[i] = cpu_to_be32(ubi->fm_wl_pool.pebs[i]); in ubi_write_fastmap()