Lines Matching refs:ec

142 		   int pnum, int ec, int scrub)  in add_aeb()  argument
151 aeb->ec = ec; in add_aeb()
156 ai->ec_sum += aeb->ec; in add_aeb()
159 if (ai->max_ec < aeb->ec) in add_aeb()
160 ai->max_ec = aeb->ec; in add_aeb()
162 if (ai->min_ec > aeb->ec) in add_aeb()
163 ai->min_ec = aeb->ec; in add_aeb()
314 victim->ec = aeb->ec; in update_vol()
325 aeb->ec = new_aeb->ec; in update_vol()
513 unsigned long long ec = be64_to_cpu(ech->ec); in scan_pool() local
517 add_aeb(ai, free, pnum, ec, 1); in scan_pool()
519 add_aeb(ai, free, pnum, ec, 0); in scan_pool()
534 new_aeb->ec = be64_to_cpu(ech->ec); in scan_pool()
693 be32_to_cpu(fmec->ec), 0); in ubi_attach_fastmap()
704 be32_to_cpu(fmec->ec), 0); in ubi_attach_fastmap()
715 be32_to_cpu(fmec->ec), 1); in ubi_attach_fastmap()
726 be32_to_cpu(fmec->ec), 1); in ubi_attach_fastmap()
1049 e->ec = be32_to_cpu(fmsb2->block_ec[i]); in ubi_scan_fastmap()
1179 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1192 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1204 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1217 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1235 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1295 fmsb->block_ec[i] = cpu_to_be32(new_fm->e[i]->ec); in ubi_write_fastmap()
1350 long long ec; in erase_block() local
1368 ec = be64_to_cpu(ec_hdr->ec); in erase_block()
1369 ec += ret; in erase_block()
1370 if (ec > UBI_MAX_ERASECOUNTER) { in erase_block()
1375 ec_hdr->ec = cpu_to_be64(ec); in erase_block()
1380 ret = ec; in erase_block()
1586 new_fm->e[0]->ec = ret; in ubi_update_fastmap()