Lines Matching refs:last_block
434 static unsigned int test_ro (int dev, blk_t last_block, in test_ro() argument
470 (unsigned long) last_block - 1); in test_ro()
480 num_blocks = last_block - 1; in test_ro()
486 while (currently_testing < last_block) in test_ro()
504 if (currently_testing + try > last_block) in test_ro()
505 try = last_block - currently_testing; in test_ro()
549 static unsigned int test_rw (int dev, blk_t last_block, in test_rw() argument
577 (unsigned long) last_block - 1); in test_rw()
589 num_blocks = last_block - 1; in test_rw()
595 while (currently_testing < last_block) { in test_rw()
602 if (currently_testing + try > last_block) in test_rw()
603 try = last_block - currently_testing; in test_rw()
634 num_blocks = last_block; in test_rw()
640 while (currently_testing < last_block) { in test_rw()
647 if (currently_testing + try > last_block) in test_rw()
648 try = last_block - currently_testing; in test_rw()
690 static unsigned int test_nd (int dev, blk_t last_block, in test_nd() argument
739 (unsigned long) last_block - 1); in test_nd()
780 num_blocks = last_block - 1; in test_nd()
784 while (currently_testing < last_block) { in test_nd()
802 if (currently_testing + try > last_block) in test_nd()
803 try = last_block - currently_testing; in test_nd()
843 (currently_testing < last_block)) in test_nd()
987 blk_t last_block, first_block; in main() local
1124 &last_block); in main()
1138 last_block = parse_uint(argv[optind], _("last block")); in main()
1139 last_block++; in main()
1146 if (first_block >= last_block) { in main()
1148 (unsigned long) first_block, (unsigned long) last_block); in main()
1233 bb_count = test_func(dev, last_block, block_size, in main()