Lines Matching refs:fmpl_wl
618 struct ubi_fm_scan_pool *fmpl, *fmpl_wl; in ubi_attach_fastmap() local
658 fmpl_wl = (struct ubi_fm_scan_pool *)(fm_raw + fm_pos); in ubi_attach_fastmap()
659 fm_pos += sizeof(*fmpl_wl); in ubi_attach_fastmap()
662 if (be32_to_cpu(fmpl_wl->magic) != UBI_FM_POOL_MAGIC) { in ubi_attach_fastmap()
664 be32_to_cpu(fmpl_wl->magic), UBI_FM_POOL_MAGIC); in ubi_attach_fastmap()
669 wl_pool_size = be16_to_cpu(fmpl_wl->size); in ubi_attach_fastmap()
671 fm->max_wl_pool_size = be16_to_cpu(fmpl_wl->max_size); in ubi_attach_fastmap()
822 ret = scan_pool(ubi, ai, fmpl_wl->pebs, wl_pool_size, &max_sqnum, &free); in ubi_attach_fastmap()
1113 struct ubi_fm_scan_pool *fmpl, *fmpl_wl; in ubi_write_fastmap() local
1182 fmpl_wl = (struct ubi_fm_scan_pool *)(fm_raw + fm_pos); in ubi_write_fastmap()
1183 fm_pos += sizeof(*fmpl_wl); in ubi_write_fastmap()
1184 fmpl_wl->magic = cpu_to_be32(UBI_FM_POOL_MAGIC); in ubi_write_fastmap()
1185 fmpl_wl->size = cpu_to_be16(ubi->fm_wl_pool.size); in ubi_write_fastmap()
1186 fmpl_wl->max_size = cpu_to_be16(ubi->fm_wl_pool.max_size); in ubi_write_fastmap()
1189 fmpl_wl->pebs[i] = cpu_to_be32(ubi->fm_wl_pool.pebs[i]); in ubi_write_fastmap()