Lines Matching refs:argv

71                    char **argv)  in command()  argument
73 char *cmd = argv[0]; in command()
129 return ct->cfunc(blk, argc, argv); in command()
496 create_iovec(BlockBackend *blk, QEMUIOVector *qiov, char **argv, int nr_iov, in create_iovec() argument
506 char *arg = argv[i]; in create_iovec()
695 static int read_f(BlockBackend *blk, int argc, char **argv);
708 static int read_f(BlockBackend *blk, int argc, char **argv) in read_f() argument
723 while ((c = getopt(argc, argv, "bCl:pP:qrs:v")) != -1) { in read_f()
777 offset = cvtnum(argv[optind]); in read_f()
779 print_cvtnum_err(offset, argv[optind]); in read_f()
784 count = cvtnum(argv[optind]); in read_f()
786 print_cvtnum_err(count, argv[optind]); in read_f()
790 (uint64_t)BDRV_REQUEST_MAX_BYTES, argv[optind]); in read_f()
893 static int readv_f(BlockBackend *blk, int argc, char **argv);
905 static int readv_f(BlockBackend *blk, int argc, char **argv) in readv_f() argument
920 while ((c = getopt(argc, argv, "CP:qrv")) != -1) { in readv_f()
953 offset = cvtnum(argv[optind]); in readv_f()
955 print_cvtnum_err(offset, argv[optind]); in readv_f()
961 buf = create_iovec(blk, &qiov, &argv[optind], nr_iov, 0xab, in readv_f()
1034 static int write_f(BlockBackend *blk, int argc, char **argv);
1048 static int write_f(BlockBackend *blk, int argc, char **argv) in write_f() argument
1063 while ((c = getopt(argc, argv, "bcCfnpP:qrs:uz")) != -1) { in write_f()
1143 offset = cvtnum(argv[optind]); in write_f()
1145 print_cvtnum_err(offset, argv[optind]); in write_f()
1150 count = cvtnum(argv[optind]); in write_f()
1152 print_cvtnum_err(count, argv[optind]); in write_f()
1157 (uint64_t)BDRV_REQUEST_MAX_BYTES, argv[optind]); in write_f()
1248 static int writev_f(BlockBackend *blk, int argc, char **argv);
1261 static int writev_f(BlockBackend *blk, int argc, char **argv) in writev_f() argument
1275 while ((c = getopt(argc, argv, "CfP:qr")) != -1) { in writev_f()
1306 offset = cvtnum(argv[optind]); in writev_f()
1308 print_cvtnum_err(offset, argv[optind]); in writev_f()
1314 buf = create_iovec(blk, &qiov, &argv[optind], nr_iov, pattern, in writev_f()
1464 static int aio_read_f(BlockBackend *blk, int argc, char **argv);
1476 static int aio_read_f(BlockBackend *blk, int argc, char **argv) in aio_read_f() argument
1482 while ((c = getopt(argc, argv, "CiP:qrv")) != -1) { in aio_read_f()
1522 ctx->offset = cvtnum(argv[optind]); in aio_read_f()
1525 print_cvtnum_err(ret, argv[optind]); in aio_read_f()
1532 ctx->buf = create_iovec(blk, &ctx->qiov, &argv[optind], nr_iov, 0xab, in aio_read_f()
1576 static int aio_write_f(BlockBackend *blk, int argc, char **argv);
1589 static int aio_write_f(BlockBackend *blk, int argc, char **argv) in aio_write_f() argument
1596 while ((c = getopt(argc, argv, "CfiP:qruz")) != -1) { in aio_write_f()
1665 ctx->offset = cvtnum(argv[optind]); in aio_write_f()
1668 print_cvtnum_err(ret, argv[optind]); in aio_write_f()
1675 int64_t count = cvtnum(argv[optind]); in aio_write_f()
1677 print_cvtnum_err(count, argv[optind]); in aio_write_f()
1687 ctx->buf = create_iovec(blk, &ctx->qiov, &argv[optind], nr_iov, in aio_write_f()
1706 static int aio_flush_f(BlockBackend *blk, int argc, char **argv) in aio_flush_f() argument
1721 static int flush_f(BlockBackend *blk, int argc, char **argv) in flush_f() argument
1738 static int zone_report_f(BlockBackend *blk, int argc, char **argv) in zone_report_f() argument
1745 offset = cvtnum(argv[optind]); in zone_report_f()
1747 nr_zones = cvtnum(argv[optind]); in zone_report_f()
1777 static int zone_open_f(BlockBackend *blk, int argc, char **argv) in zone_open_f() argument
1782 offset = cvtnum(argv[optind]); in zone_open_f()
1784 len = cvtnum(argv[optind]); in zone_open_f()
1802 static int zone_close_f(BlockBackend *blk, int argc, char **argv) in zone_close_f() argument
1807 offset = cvtnum(argv[optind]); in zone_close_f()
1809 len = cvtnum(argv[optind]); in zone_close_f()
1827 static int zone_finish_f(BlockBackend *blk, int argc, char **argv) in zone_finish_f() argument
1832 offset = cvtnum(argv[optind]); in zone_finish_f()
1834 len = cvtnum(argv[optind]); in zone_finish_f()
1852 static int zone_reset_f(BlockBackend *blk, int argc, char **argv) in zone_reset_f() argument
1857 offset = cvtnum(argv[optind]); in zone_reset_f()
1859 len = cvtnum(argv[optind]); in zone_reset_f()
1891 static int zone_append_f(BlockBackend *blk, int argc, char **argv) in zone_append_f() argument
1907 if ((c = getopt(argc, argv, "p")) != -1) { in zone_append_f()
1911 offset = cvtnum(argv[optind]); in zone_append_f()
1913 print_cvtnum_err(offset, argv[optind]); in zone_append_f()
1918 buf = create_iovec(blk, &qiov, &argv[optind], nr_iov, pattern, in zone_append_f()
1951 static int truncate_f(BlockBackend *blk, int argc, char **argv);
1963 static int truncate_f(BlockBackend *blk, int argc, char **argv) in truncate_f() argument
1970 while ((c = getopt(argc, argv, "m:")) != -1) { in truncate_f()
1986 offset = cvtnum(argv[optind]); in truncate_f()
1988 print_cvtnum_err(offset, argv[1]); in truncate_f()
2006 static int length_f(BlockBackend *blk, int argc, char **argv) in length_f() argument
2031 static int info_f(BlockBackend *blk, int argc, char **argv) in info_f() argument
2100 static int discard_f(BlockBackend *blk, int argc, char **argv);
2114 static int discard_f(BlockBackend *blk, int argc, char **argv) in discard_f() argument
2121 while ((c = getopt(argc, argv, "Cq")) != -1) { in discard_f()
2140 offset = cvtnum(argv[optind]); in discard_f()
2142 print_cvtnum_err(offset, argv[optind]); in discard_f()
2147 bytes = cvtnum(argv[optind]); in discard_f()
2149 print_cvtnum_err(bytes, argv[optind]); in discard_f()
2153 (uint64_t)BDRV_REQUEST_MAX_BYTES, argv[optind]); in discard_f()
2175 static int alloc_f(BlockBackend *blk, int argc, char **argv) in alloc_f() argument
2183 start = offset = cvtnum(argv[1]); in alloc_f()
2185 print_cvtnum_err(offset, argv[1]); in alloc_f()
2190 count = cvtnum(argv[2]); in alloc_f()
2192 print_cvtnum_err(count, argv[2]); in alloc_f()
2265 static int map_f(BlockBackend *blk, int argc, char **argv) in map_f() argument
2328 static int reopen_f(BlockBackend *blk, int argc, char **argv);
2350 static int reopen_f(BlockBackend *blk, int argc, char **argv) in reopen_f() argument
2362 while ((c = getopt(argc, argv, "c:o:rw")) != -1) { in reopen_f()
2463 static int break_f(BlockBackend *blk, int argc, char **argv) in break_f() argument
2467 ret = bdrv_debug_breakpoint(blk_bs(blk), argv[1], argv[2]); in break_f()
2476 static int remove_break_f(BlockBackend *blk, int argc, char **argv) in remove_break_f() argument
2480 ret = bdrv_debug_remove_breakpoint(blk_bs(blk), argv[1]); in remove_break_f()
2482 printf("Could not remove breakpoint %s: %s\n", argv[1], strerror(-ret)); in remove_break_f()
2508 static int resume_f(BlockBackend *blk, int argc, char **argv) in resume_f() argument
2512 ret = bdrv_debug_resume(blk_bs(blk), argv[1]); in resume_f()
2530 static int wait_break_f(BlockBackend *blk, int argc, char **argv) in wait_break_f() argument
2532 while (!bdrv_debug_is_suspended(blk_bs(blk), argv[1])) { in wait_break_f()
2547 static int abort_f(BlockBackend *blk, int argc, char **argv) in abort_f() argument
2573 static int sigraise_f(BlockBackend *blk, int argc, char **argv);
2586 static int sigraise_f(BlockBackend *blk, int argc, char **argv) in sigraise_f() argument
2588 int64_t sig = cvtnum(argv[1]); in sigraise_f()
2590 print_cvtnum_err(sig, argv[1]); in sigraise_f()
2594 argv[1]); in sigraise_f()
2615 static int sleep_f(BlockBackend *blk, int argc, char **argv) in sleep_f() argument
2622 ms = strtol(argv[1], &endptr, 0); in sleep_f()
2624 printf("%s is not a valid number\n", argv[1]); in sleep_f()
2676 static int help_f(BlockBackend *blk, int argc, char **argv) in help_f() argument
2685 ct = find_command(argv[1]); in help_f()
2687 printf("command %s not found\n", argv[1]); in help_f()
2691 help_onecmd(argv[1], ct); in help_f()