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()
312 victim->ec = aeb->ec; in update_vol()
323 aeb->ec = new_aeb->ec; in update_vol()
511 unsigned long long ec = be64_to_cpu(ech->ec); in scan_pool() local
515 add_aeb(ai, free, pnum, ec, 1); in scan_pool()
517 add_aeb(ai, free, pnum, ec, 0); in scan_pool()
532 new_aeb->ec = be64_to_cpu(ech->ec); in scan_pool()
691 be32_to_cpu(fmec->ec), 0); in ubi_attach_fastmap()
702 be32_to_cpu(fmec->ec), 0); in ubi_attach_fastmap()
713 be32_to_cpu(fmec->ec), 1); in ubi_attach_fastmap()
724 be32_to_cpu(fmec->ec), 1); in ubi_attach_fastmap()
1042 e->ec = be32_to_cpu(fmsb2->block_ec[i]); in ubi_scan_fastmap()
1172 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1185 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1197 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1210 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1228 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1288 fmsb->block_ec[i] = cpu_to_be32(new_fm->e[i]->ec); in ubi_write_fastmap()
1343 long long ec; in erase_block() local
1361 ec = be64_to_cpu(ec_hdr->ec); in erase_block()
1362 ec += ret; in erase_block()
1363 if (ec > UBI_MAX_ERASECOUNTER) { in erase_block()
1368 ec_hdr->ec = cpu_to_be64(ec); in erase_block()
1373 ret = ec; in erase_block()
1579 new_fm->e[0]->ec = ret; in ubi_update_fastmap()