Lines Matching refs:start
238 int start = 0; in cmd_setip() local
246 if (zperf_get_ipv6_addr(argv[start + 1], argv[start + 2], in cmd_setip()
264 if (zperf_get_ipv4_addr(argv[start + 1], &shell_ipv4) < 0) { in cmd_setip()
276 if (net_addr_pton(AF_INET6, argv[start + 1], &shell_ipv6) < 0) { in cmd_setip()
282 if (zperf_get_ipv4_addr(argv[start + 1], in cmd_setip()
298 if (zperf_get_ipv6_addr(argv[start + 1], in cmd_setip()
299 argv[start + 2], &shell_ipv6) < 0) { in cmd_setip()
439 int start; in cmd_udp_download() local
441 start = shell_cmd_download(sh, argc, argv, ¶m); in cmd_udp_download()
442 if (start < 0) { in cmd_udp_download()
448 ret = zperf_bind_host(sh, argc - start, &argv[start], ¶m); in cmd_udp_download()
842 int start = 0; in shell_cmd_upload() local
936 start += opt_cnt; in shell_cmd_upload()
959 port_str = argv[start + 2]; in shell_cmd_upload()
967 ret = parse_ipv6_addr(sh, argv[start + 1], port_str, &ipv6); in shell_cmd_upload()
970 "Invalid IPv6 address %s\n", argv[start + 1]); in shell_cmd_upload()
986 ret = parse_ipv4_addr(sh, argv[start + 1], port_str, &ipv4); in shell_cmd_upload()
989 "Invalid IPv4 address %s\n", argv[start + 1]); in shell_cmd_upload()
1005 ret = parse_ipv6_addr(sh, argv[start + 1], port_str, &ipv6); in shell_cmd_upload()
1007 ret = parse_ipv4_addr(sh, argv[start + 1], port_str, &ipv4); in shell_cmd_upload()
1010 "Invalid IP address %s\n", argv[start + 1]); in shell_cmd_upload()
1034 param.duration_ms = MSEC_PER_SEC * strtoul(argv[start + 3], in shell_cmd_upload()
1041 param.packet_size = parse_number(argv[start + 4], K, K_UNIT); in shell_cmd_upload()
1048 (parse_number(argv[start + 5], K, K_UNIT) + 999) / 1000; in shell_cmd_upload()
1077 int start = 0; in shell_cmd_upload2() local
1169 start += opt_cnt; in shell_cmd_upload2()
1191 family = !strcmp(argv[start + 1], "v4") ? AF_INET : AF_INET6; in shell_cmd_upload2()
1220 param.duration_ms = MSEC_PER_SEC * strtoul(argv[start + 2], in shell_cmd_upload2()
1227 param.packet_size = parse_number(argv[start + 3], K, K_UNIT); in shell_cmd_upload2()
1234 (parse_number(argv[start + 4], K, K_UNIT) + 999) / 1000; in shell_cmd_upload2()
1359 int start; in cmd_tcp_download() local
1361 start = shell_cmd_download(sh, argc, argv, ¶m); in cmd_tcp_download()
1362 if (start < 0) { in cmd_tcp_download()
1368 ret = zperf_bind_host(sh, argc - start, &argv[start], ¶m); in cmd_tcp_download()