Lines Matching refs:currently_testing
116 static blk_t currently_testing = 0; variable
231 calc_percent((unsigned long) currently_testing, in print_status()
265 (unsigned long long) currently_testing); in terminate_intr()
535 currently_testing = first_block; in test_ro()
541 while (currently_testing < last_block) in test_ro()
550 if (currently_testing == next_bad) { in test_ro()
553 currently_testing++; in test_ro()
556 else if (currently_testing + try > next_bad) in test_ro()
557 try = next_bad - currently_testing; in test_ro()
559 if (currently_testing + try > last_block) in test_ro()
560 try = last_block - currently_testing; in test_ro()
561 got = do_read (dev, blkbuf, try, block_size, currently_testing); in test_ro()
570 bb_count += bb_output(currently_testing + i, CORRUPTION_ERROR); in test_ro()
573 bb_count += bb_output(currently_testing++, READ_ERROR); in test_ro()
574 currently_testing += got; in test_ro()
578 recover_block = currently_testing - got + in test_ro()
581 } else if (currently_testing == recover_block) { in test_ro()
644 currently_testing = first_block; in test_rw()
649 while (currently_testing < last_block) { in test_rw()
656 if (currently_testing + try > last_block) in test_rw()
657 try = last_block - currently_testing; in test_rw()
659 currently_testing); in test_rw()
664 bb_count += bb_output(currently_testing++, WRITE_ERROR); in test_rw()
665 currently_testing += got; in test_rw()
669 recover_block = currently_testing - in test_rw()
672 } else if (currently_testing == recover_block) { in test_rw()
686 currently_testing = first_block; in test_rw()
691 while (currently_testing < last_block) { in test_rw()
698 if (currently_testing + try > last_block) in test_rw()
699 try = last_block - currently_testing; in test_rw()
701 currently_testing); in test_rw()
703 bb_count += bb_output(currently_testing++, READ_ERROR); in test_rw()
704 currently_testing += got; in test_rw()
708 recover_block = currently_testing - in test_rw()
711 } else if (currently_testing == recover_block) { in test_rw()
719 bb_count += bb_output(currently_testing+i, CORRUPTION_ERROR); in test_rw()
833 currently_testing = first_block; in test_nd()
838 while (currently_testing < last_block) { in test_nd()
847 if (currently_testing == next_bad) { in test_nd()
850 currently_testing++; in test_nd()
853 else if (currently_testing + try > next_bad) in test_nd()
854 try = next_bad - currently_testing; in test_nd()
856 if (currently_testing + try > last_block) in test_nd()
857 try = last_block - currently_testing; in test_nd()
859 currently_testing); in test_nd()
862 recover_block = currently_testing + in test_nd()
869 bb_count += bb_output(currently_testing++, READ_ERROR); in test_nd()
877 test_record[num_saved].block = currently_testing; in test_nd()
883 currently_testing); in test_nd()
887 (unsigned long) currently_testing + in test_nd()
893 currently_testing += got; in test_nd()
897 recover_block = currently_testing - in test_nd()
909 (currently_testing < last_block)) in test_nd()
912 if (currently_testing >= recover_block) { in test_nd()
918 save_currently_testing = currently_testing; in test_nd()
940 currently_testing = test_record[used2].block; in test_nd()
946 block_size, currently_testing); in test_nd()
953 bb_count += bb_output(currently_testing + i, CORRUPTION_ERROR); in test_nd()
955 bb_count += bb_output(currently_testing + got, READ_ERROR); in test_nd()
961 block_size, currently_testing); in test_nd()
964 currently_testing += got; in test_nd()
975 currently_testing = save_currently_testing; in test_nd()