• Home
  • Raw
  • Download

Lines Matching refs:try

351 static int do_read (int dev, unsigned char * buffer, int try, int block_size,  in do_read()  argument
360 printf("do_read: block %d, try %d\n", current_block, try); in do_read()
362 set_o_direct(dev, buffer, try * block_size, in do_read()
376 got = read (dev, buffer, try * block_size); in do_read()
384 if (d_flag && got == try) { in do_read()
427 static int do_write(int dev, unsigned char * buffer, int try, int block_size, in do_write() argument
433 printf("do_write: block %lu, try %d\n", current_block, try); in do_write()
435 set_o_direct(dev, buffer, try * block_size, in do_write()
447 got = write (dev, buffer, try * block_size); in do_write()
477 int try; in test_ro() local
518 try = blocks_at_once; in test_ro()
540 else if (currently_testing + try > next_bad) in test_ro()
541 try = next_bad - currently_testing; in test_ro()
543 if (currently_testing + try > last_block) in test_ro()
544 try = last_block - currently_testing; in test_ro()
545 got = do_read (dev, blkbuf, try, block_size, currently_testing); in test_ro()
556 if (got == 0 && try == 1) in test_ro()
559 if (got != try) { in test_ro()
560 try = 1; in test_ro()
566 try = blocks_at_once; in test_ro()
592 int i, try, got, nr_pattern, pat_idx; in test_rw() local
632 try = blocks_at_once; in test_rw()
640 if (currently_testing + try > last_block) in test_rw()
641 try = last_block - currently_testing; in test_rw()
642 got = do_write(dev, buffer, try, block_size, in test_rw()
647 if (got == 0 && try == 1) in test_rw()
650 if (got != try) { in test_rw()
651 try = 1; in test_rw()
657 try = blocks_at_once; in test_rw()
674 try = blocks_at_once; in test_rw()
682 if (currently_testing + try > last_block) in test_rw()
683 try = last_block - currently_testing; in test_rw()
684 got = do_read (dev, read_buffer, try, block_size, in test_rw()
686 if (got == 0 && try == 1) in test_rw()
689 if (got != try) { in test_rw()
690 try = 1; in test_rw()
696 try = blocks_at_once; in test_rw()
731 int try, i; in test_nd() local
829 got = try = granularity - buf_used; in test_nd()
837 else if (currently_testing + try > next_bad) in test_nd()
838 try = next_bad - currently_testing; in test_nd()
840 if (currently_testing + try > last_block) in test_nd()
841 try = last_block - currently_testing; in test_nd()
842 got = do_read (dev, save_ptr, try, block_size, in test_nd()
878 if (got != try) { in test_nd()
879 try = 1; in test_nd()
918 try = 0; in test_nd()
921 if (try == 0) { in test_nd()
925 try = test_record[used2].num; in test_nd()
929 got = do_read (dev, read_ptr, try, in test_nd()
938 if (got < try) { in test_nd()
951 try -= got; in test_nd()