Lines Matching defs:loops
69 nsc_size_t loops = DEF_LOOP;
111 "sd_diag [-R] [-b <bufsize>] [-d <datasize>] [-l <loops>] [-r <readers>]\n");
134 (void) printf(" <loops> is count of reads/writes,\n");
135 (void) printf(" loops = 0 tests entire datasize disk");
137 (void) printf(" loops = 0 performs %d I/Os for the random "
141 (void) printf(" [ defaults: bufsize = %d bytes, loops = %d,",
174 loops = (nsc_size_t)strtoll(optarg, 0, 0);
193 if (loops != 0)
194 r_loops = loops;
230 do_sdtest1(int fd, nsc_size_t loops, nsc_size_t filesize)
236 for (i = 0; i < loops; i++) {
272 do_sdtest2(int fd, nsc_size_t loops, nsc_size_t filesize, int h)
279 for (i = 0; i < loops; i++) {
310 do_sdtest3(int fd, nsc_size_t loops, nsc_size_t filesize, int h, nsc_fd_t *sdfd)
317 seekpos = malloc(loops*sizeof (nsc_off_t));
325 for (i = 0; i < loops; i++) {
339 for (i = 0; i < loops; i++) {
361 do_sdtest4(int fd, nsc_size_t loops, nsc_size_t filesize)
367 * Do sequential reads/writes for loops number
368 * of bufsize chunks, unless loops == 0, then do
375 if ((loops > (filesize / fba_num_bufsize)) || (!loops))
376 loops = filesize / fba_num_bufsize; /* entire disk */
378 for (i = 0; i < loops; i++) {
385 for (i = 0; i < loops; i++) {
392 for (i = loops - 1; i + 1 > 0; i--) {
399 for (i = loops - 1; i + 1 > 0; i--) {
410 do_sdtest5(int fd, nsc_size_t loops, nsc_size_t filesize, int h)
417 * Do sequential writes with verify reads for loops number
418 * of bufsize chunks, unless loops == 0, then do
425 if ((loops > (filesize / fba_num_bufsize)) || (!loops))
426 loops = filesize / fba_num_bufsize; /* entire disk */
430 for (i = 0; i < loops; i++) {
438 for (i = 0; i < loops; i++) {
456 for (i = loops - 1; i + 1 > 0; i--) {
464 for (i = loops - 1; i + 1 > 0; i--) {
484 do_sdtest6(int fd, nsc_size_t loops, nsc_size_t filesize, int h)
497 * for loops number of bufsize chunks, unless loops == 0, then do
500 if ((loops > (filesize / fba_num_bufsize)) || (!loops))
501 loops = filesize / fba_num_bufsize; /* entire disk */
503 for (i = 0; i < loops; i++) {
634 "Partition %s, Test 7, reader #%d: %d errors %lld loops\n",
714 do_sdtest7(int fd, nsc_size_t loops, nsc_size_t filesize, int h, nsc_fd_t *sdfd)
748 for (j = 0; j < loops; j++) {
768 do_sdtest8(int fd, nsc_size_t loops, nsc_size_t filesize)
775 for (i = 0; i < loops; i++) {
803 do_sdtest9(int fd, nsc_size_t loops, nsc_size_t filesize, int h)
820 if (loops == 0)
821 loops = wrapval; /* entire disk */
823 for (i = 0; i < loops; i++) {
837 do_sdtest10(int fd1, int fd2, nsc_size_t loops, nsc_size_t filesize1,
846 * Do sequential copy of disk1 to disk2 for loops number
847 * of bufsize chunks, unless loops == 0, then copy size of
853 if ((loops > (filesize / fba_num_bufsize)) || (!loops))
854 loops = filesize / fba_num_bufsize;
857 for (i = 0; i < loops; i++) {
873 for (i = 0; i < loops; i++) {
915 do_sdtest11(int fd, nsc_size_t loops, nsc_size_t filesize, int h)
938 if ((loops > filesize / fba_num_bufsize) || (!loops))
939 loops = filesize / fba_num_bufsize; /* entire disk */
941 for (i = 0; i < loops; i++) {
967 do_sdtest12(int fd, nsc_size_t loops, nsc_size_t filesize, int h)
980 if ((loops > filesize / fba_num_bufsize) || (!loops))
981 loops = filesize / fba_num_bufsize; /* entire disk */
983 for (i = 0; i < loops; i++) {
1073 r = do_sdtest10(fd, fd2, loops, filesize, filesize2, h);
1127 r = do_sdtest4(fd, loops, filesize);
1130 r = do_sdtest5(fd, loops, filesize, h);
1133 r = do_sdtest6(fd, loops, filesize, h);
1142 r = do_sdtest9(fd, loops, filesize, h);
1145 r = do_sdtest11(fd, loops, filesize, h);
1148 r = do_sdtest12(fd, loops, filesize, h);