Lines Matching refs:ec

144 		   int pnum, int ec, int scrub)  in add_aeb()  argument
153 aeb->ec = ec; in add_aeb()
158 ai->ec_sum += aeb->ec; in add_aeb()
161 if (ai->max_ec < aeb->ec) in add_aeb()
162 ai->max_ec = aeb->ec; in add_aeb()
164 if (ai->min_ec > aeb->ec) in add_aeb()
165 ai->min_ec = aeb->ec; in add_aeb()
316 victim->ec = aeb->ec; in update_vol()
327 aeb->ec = new_aeb->ec; in update_vol()
521 unsigned long long ec = be64_to_cpu(ech->ec); in scan_pool() local
525 add_aeb(ai, free, pnum, ec, 1); in scan_pool()
527 add_aeb(ai, free, pnum, ec, 0); in scan_pool()
542 new_aeb->ec = be64_to_cpu(ech->ec); in scan_pool()
701 be32_to_cpu(fmec->ec), 0); in ubi_attach_fastmap()
712 be32_to_cpu(fmec->ec), 0); in ubi_attach_fastmap()
723 be32_to_cpu(fmec->ec), 1); in ubi_attach_fastmap()
734 be32_to_cpu(fmec->ec), 1); in ubi_attach_fastmap()
1065 e->ec = be32_to_cpu(fmsb2->block_ec[i]); in ubi_scan_fastmap()
1194 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1207 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1219 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1232 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1250 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1310 fmsb->block_ec[i] = cpu_to_be32(new_fm->e[i]->ec); in ubi_write_fastmap()
1365 long long ec; in erase_block() local
1383 ec = be64_to_cpu(ec_hdr->ec); in erase_block()
1384 ec += ret; in erase_block()
1385 if (ec > UBI_MAX_ERASECOUNTER) { in erase_block()
1390 ec_hdr->ec = cpu_to_be64(ec); in erase_block()
1395 ret = ec; in erase_block()
1601 new_fm->e[0]->ec = ret; in ubi_update_fastmap()