Lines Matching refs:last_block

488 static unsigned int test_ro (int dev, blk_t last_block,  in test_ro()  argument
526 (unsigned long)last_block - 1); in test_ro()
536 num_blocks = last_block - 1; in test_ro()
541 while (currently_testing < last_block) in test_ro()
559 if (currently_testing + try > last_block) in test_ro()
560 try = last_block - currently_testing; in test_ro()
601 static unsigned int test_rw (int dev, blk_t last_block, in test_rw() argument
631 (unsigned long) last_block - 1); in test_rw()
643 num_blocks = last_block - 1; 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()
685 num_blocks = last_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()
741 static unsigned int test_nd (int dev, blk_t last_block, in test_nd() argument
793 (unsigned long) last_block - 1); in test_nd()
834 num_blocks = last_block - 1; in test_nd()
838 while (currently_testing < last_block) { in test_nd()
856 if (currently_testing + try > last_block) in test_nd()
857 try = last_block - currently_testing; in test_nd()
909 (currently_testing < last_block)) in test_nd()
1058 blk64_t last_block, first_block; in main() local
1210 &last_block); in main()
1224 last_block = parse_uint(argv[optind], _("last block")); in main()
1225 last_block++; in main()
1232 if (first_block >= last_block) { in main()
1234 first_block, last_block); in main()
1238 if (last_block >> 32) { in main()
1241 last_block); in main()
1338 bb_count = test_func(dev, last_block, block_size, in main()