Lines Matching refs:got
354 long got; in do_read() local
376 got = read (dev, buffer, try * block_size); in do_read()
379 if (got < 0) in do_read()
380 got = 0; in do_read()
381 if (got & 511) in do_read()
382 fprintf(stderr, _("Weird value (%ld) in do_read\n"), got); in do_read()
383 got /= block_size; in do_read()
384 if (d_flag && got == try) { in do_read()
420 return got; in do_read()
430 long got; in do_write() local
447 got = write (dev, buffer, try * block_size); in do_write()
448 if (got < 0) in do_write()
449 got = 0; in do_write()
450 if (got & 511) in do_write()
451 fprintf(stderr, "Weird value (%ld) in do_write\n", got); in do_write()
452 got /= block_size; in do_write()
453 return got; in do_write()
478 int got; in test_ro() local
545 got = do_read (dev, blkbuf, try, block_size, currently_testing); in test_ro()
550 for (i = 0; i < got; ++i) in test_ro()
556 if (got == 0 && try == 1) in test_ro()
558 currently_testing += got; in test_ro()
559 if (got != try) { in test_ro()
562 recover_block = currently_testing - got + in test_ro()
592 int i, try, got, nr_pattern, pat_idx; in test_rw() local
642 got = do_write(dev, buffer, try, block_size, in test_rw()
647 if (got == 0 && try == 1) in test_rw()
649 currently_testing += got; in test_rw()
650 if (got != try) { in test_rw()
654 got + blocks_at_once; 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()
688 currently_testing += got; in test_rw()
689 if (got != try) { in test_rw()
693 got + blocks_at_once; in test_rw()
699 for (i=0; i < got; i++) { in test_rw()
735 int got, used2, written; in test_nd() local
829 got = try = granularity - buf_used; in test_nd()
842 got = do_read (dev, save_ptr, try, block_size, in test_nd()
844 if (got == 0) { in test_nd()
862 test_record[num_saved].num = got; in test_nd()
866 written = do_write (dev, test_ptr, got, block_size, in test_nd()
868 if (written != got) in test_nd()
874 buf_used += got; in test_nd()
875 save_ptr += got * block_size; in test_nd()
876 test_ptr += got * block_size; in test_nd()
877 currently_testing += got; in test_nd()
878 if (got != try) { in test_nd()
882 got + blocks_at_once; in test_nd()
929 got = do_read (dev, read_ptr, try, in test_nd()
934 for (i = 0; i < got; ++i) in test_nd()
938 if (got < try) { in test_nd()
939 bb_count += bb_output(currently_testing + got, READ_ERROR); in test_nd()
940 got++; in test_nd()
944 do_write (dev, save_ptr, got, in test_nd()
946 save_ptr += got * block_size; in test_nd()
948 currently_testing += got; in test_nd()
949 test_ptr += got * block_size; in test_nd()
950 read_ptr += got * block_size; in test_nd()
951 try -= got; in test_nd()