/Linux-v5.4/tools/power/cpupower/bench/ |
D | main.c | 85 config->output = prepare_output(optarg); in main() 90 dprintf("user output path -> %s\n", optarg); in main() 93 sscanf(optarg, "%li", &config->sleep); in main() 94 dprintf("user sleep time -> %s\n", optarg); in main() 97 sscanf(optarg, "%li", &config->load); in main() 98 dprintf("user load time -> %s\n", optarg); in main() 101 sscanf(optarg, "%u", &config->cpu); in main() 102 dprintf("user cpu -> %s\n", optarg); in main() 105 strncpy(config->governor, optarg, 14); in main() 106 dprintf("user governor -> %s\n", optarg); in main() [all …]
|
/Linux-v5.4/scripts/dtc/ |
D | dtc.c | 183 inform = optarg; in main() 186 outform = optarg; in main() 189 outname = optarg; in main() 192 outversion = strtol(optarg, NULL, 0); in main() 195 depname = optarg; in main() 198 reservenum = strtol(optarg, NULL, 0); in main() 201 minsize = strtol(optarg, NULL, 0); in main() 204 padsize = strtol(optarg, NULL, 0); in main() 207 alignsize = strtol(optarg, NULL, 0); in main() 219 cmdline_boot_cpuid = strtoll(optarg, NULL, 0); in main() [all …]
|
/Linux-v5.4/tools/testing/selftests/bpf/ |
D | test_flow_dissector.c | 591 static void parse_addr(int family, void *addr, const char *optarg) in parse_addr() argument 595 ret = inet_pton(family, optarg, addr); in parse_addr() 602 static void parse_addr4(struct sockaddr_in *addr, const char *optarg) in parse_addr4() argument 604 parse_addr(AF_INET, &addr->sin_addr, optarg); in parse_addr4() 607 static void parse_addr6(struct sockaddr_in6 *addr, const char *optarg) in parse_addr6() argument 609 parse_addr(AF_INET6, &addr->sin6_addr, optarg); in parse_addr6() 612 static int parse_protocol_family(const char *filepath, const char *optarg) in parse_protocol_family() argument 614 if (!strcmp(optarg, "4")) in parse_protocol_family() 616 if (!strcmp(optarg, "6")) in parse_protocol_family() 632 parse_addr4(&out_daddr4, optarg); in parse_opts() [all …]
|
/Linux-v5.4/samples/bpf/ |
D | xdp_tx_iptunnel_user.c | 120 tmp_min_port = strtol(optarg, &end, 10); in parse_ports() 122 fprintf(stderr, "Invalid port(s):%s\n", optarg); in parse_ports() 130 fprintf(stderr, "Invalid port(s):%s\n", optarg); in parse_ports() 138 fprintf(stderr, "Invalid port(s):%s\n", optarg); in parse_ports() 185 ifindex = if_nametoindex(optarg); in main() 187 ifindex = atoi(optarg); in main() 190 vip.family = parse_ipstr(optarg, vip.daddr.v6); in main() 195 if (parse_ports(optarg, &min_port, &max_port)) in main() 199 vip.protocol = atoi(optarg); in main() 208 family = parse_ipstr(optarg, v6); in main() [all …]
|
D | test_cgrp2_array_pin.c | 39 pinned_file = optarg; in main() 42 pinned_file = optarg; in main() 46 cg2 = optarg; in main()
|
D | fds_example.c | 148 file = optarg; in main() 161 key = strtoul(optarg, NULL, 0); in main() 165 value = strtoul(optarg, NULL, 0); in main() 173 object = optarg; in main()
|
/Linux-v5.4/drivers/scsi/aic7xxx/aicasm/ |
D | aicasm.c | 119 extern char *optarg; in main() 150 if (strcmp(optarg, "s") == 0) { in main() 153 } else if (strcmp(optarg, "p") == 0) { in main() 167 stock_include_file = optarg; in main() 171 if ((listfile = fopen(optarg, "w")) == NULL) { in main() 172 perror(optarg); in main() 175 listfilename = optarg; in main() 179 if (strcmp(optarg, "ostdinc")) { in main() 181 appname, ch, optarg); in main() 187 if ((ofile = fopen(optarg, "w")) == NULL) { in main() [all …]
|
/Linux-v5.4/arch/x86/tools/ |
D | insn_sanity.c | 181 if (strcmp("-", optarg) == 0) in parse_args() 184 input_file = fopen(optarg, "r"); in parse_args() 189 seed = (unsigned int)strtoul(optarg, &tmp, 0); in parse_args() 191 optarg = tmp + 1; in parse_args() 192 iter_start = strtoul(optarg, &tmp, 0); in parse_args() 194 if (*tmp != '\0' || tmp == optarg) in parse_args() 199 iter_end = strtoul(optarg, &tmp, 0); in parse_args() 200 if (*tmp != '\0' || tmp == optarg) in parse_args()
|
/Linux-v5.4/tools/testing/selftests/ptp/ |
D | testptp.c | 189 device = optarg; in main() 192 extts = atoi(optarg); in main() 195 adjfreq = atoi(optarg); in main() 201 index = atoi(optarg); in main() 205 n_samples = atoi(optarg); in main() 211 cnt = sscanf(optarg, "%d,%d", &pin_index, &pin_func); in main() 218 perout = atoi(optarg); in main() 221 pps = atoi(optarg); in main() 230 adjtime = atoi(optarg); in main() 234 seconds = atoi(optarg); in main()
|
/Linux-v5.4/tools/power/cpupower/utils/ |
D | cpufreq-set.c | 194 extern char *optarg; in cmd_freq_set() 227 new_pol.min = string_to_frequency(optarg); in cmd_freq_set() 237 new_pol.max = string_to_frequency(optarg); in cmd_freq_set() 246 freq = string_to_frequency(optarg); in cmd_freq_set() 256 if ((strlen(optarg) < 3) || (strlen(optarg) > 18)) { in cmd_freq_set() 260 if ((sscanf(optarg, "%19s", gov)) != 1) { in cmd_freq_set()
|
D | cpuidle-set.c | 27 extern char *optarg; in cmd_idle_set() 50 idlestate = atoi(optarg); in cmd_idle_set() 59 idlestate = atoi(optarg); in cmd_idle_set() 68 latency = strtoull(optarg, &endptr, 10); in cmd_idle_set() 70 printf(_("Bad latency value: %s\n"), optarg); in cmd_idle_set()
|
/Linux-v5.4/tools/pci/ |
D | pcitest.c | 158 test->device = optarg; in main() 161 test->barnum = atoi(optarg); in main() 169 test->msinum = atoi(optarg); in main() 174 test->msixnum = atoi(optarg); in main() 179 test->irqtype = atoi(optarg); in main() 197 test->size = strtoul(optarg, NULL, 0); in main()
|
/Linux-v5.4/tools/vm/ |
D | page-types.c | 1111 static void parse_addr_range(const char *optarg) in parse_addr_range() argument 1117 p = strchr(optarg, ','); in parse_addr_range() 1119 p = strchr(optarg, '+'); in parse_addr_range() 1121 if (p == optarg) { in parse_addr_range() 1125 offset = parse_number(optarg); in parse_addr_range() 1138 offset = parse_number(optarg); in parse_addr_range() 1194 static void parse_bits_mask(const char *optarg) in parse_bits_mask() argument 1200 p = strchr(optarg, '='); in parse_bits_mask() 1201 if (p == optarg) { in parse_bits_mask() 1205 mask = parse_flag_names(optarg, 0); in parse_bits_mask() [all …]
|
/Linux-v5.4/tools/spi/ |
D | spidev_test.c | 225 device = optarg; in parse_opts() 228 speed = atoi(optarg); in parse_opts() 231 delay = atoi(optarg); in parse_opts() 234 bits = atoi(optarg); in parse_opts() 237 input_file = optarg; in parse_opts() 240 output_file = optarg; in parse_opts() 270 input_tx = optarg; in parse_opts() 279 transfer_size = atoi(optarg); in parse_opts() 282 iterations = atoi(optarg); in parse_opts()
|
/Linux-v5.4/tools/virtio/ringtest/ |
D | main.c | 316 host_arg = optarg; in main() 319 guest_arg = optarg; in main() 322 ring_size = strtol(optarg, &endptr, 0); in main() 327 c = strtol(optarg, &endptr, 0); in main() 333 c = strtol(optarg, &endptr, 0); in main() 339 c = strtol(optarg, &endptr, 0); in main() 345 c = strtol(optarg, &endptr, 0); in main()
|
/Linux-v5.4/tools/testing/selftests/vm/ |
D | gup_benchmark.c | 43 size = atoi(optarg) * MB; in main() 46 repeats = atoi(optarg); in main() 49 nr_pages = atoi(optarg); in main() 67 file = optarg; in main()
|
/Linux-v5.4/tools/testing/selftests/net/ |
D | udpgso_bench_rx.c | 305 setup_sockaddr(cfg_family, optarg, &cfg_bind_addr); in parse_opts() 308 cfg_connect_timeout_ms = strtoul(optarg, NULL, 0); in parse_opts() 314 cfg_expected_pkt_len = strtoul(optarg, NULL, 0); in parse_opts() 317 cfg_expected_pkt_nr = strtoul(optarg, NULL, 0); in parse_opts() 320 cfg_port = strtoul(optarg, NULL, 0); in parse_opts() 326 cfg_rcv_timeout_ms = strtoul(optarg, NULL, 0); in parse_opts() 329 cfg_expected_gso_size = strtol(optarg, NULL, 0); in parse_opts()
|
D | so_txtime.c | 207 static int parse_io(const char *optarg, struct timed_send *array) in parse_io() argument 212 arg = strdup(optarg); in parse_io() 250 if (!strcmp(optarg, "tai")) in parse_opts() 252 else if (!strcmp(optarg, "monotonic") || in parse_opts() 253 !strcmp(optarg, "mono")) in parse_opts() 256 error(1, 0, "unknown clock id %s", optarg); in parse_opts()
|
D | tcp_mmap.c | 323 cfg_port = atoi(optarg); in main() 326 host = optarg; in main() 332 rcvbuf = atoi(optarg); in main() 335 sndbuf = atoi(optarg); in main() 341 mss = atoi(optarg); in main() 350 max_pacing_rate = atoi(optarg) ; in main()
|
/Linux-v5.4/tools/power/acpi/tools/ec/ |
D | ec_access.c | 69 sleep_time = atoi(optarg); in parse_opts() 73 printf("Bad sleep time: %s\n", optarg); in parse_opts() 80 read_byte_offset = strtoul(optarg, NULL, 16); in parse_opts() 86 write_byte_offset = strtoul(optarg, NULL, 16); in parse_opts() 89 write_value = strtoul(optarg, NULL, 16); in parse_opts()
|
/Linux-v5.4/tools/usb/ |
D | testusb.c | 396 device = optarg; in main() 399 usb_dir = optarg; in main() 406 if (parse_num(¶m.iterations, optarg)) in main() 410 if (parse_num(¶m.sglen, optarg)) in main() 420 if (parse_num(¶m.length, optarg)) in main() 424 test = atoi (optarg); in main() 429 if (parse_num(¶m.vary, optarg)) in main()
|
/Linux-v5.4/tools/power/x86/intel-speed-select/ |
D | isst-config.c | 1337 void parse_cpu_command(char *optarg) in parse_cpu_command() argument 1342 next = optarg; in parse_cpu_command() 1397 fprintf(stderr, "\"--cpu %s\" malformed\n", optarg); in parse_cpu_command() 1430 fact_bucket = atoi(optarg); in parse_cmd_args() 1436 tdp_level = atoi(optarg); in parse_cmd_args() 1442 sscanf(optarg, "0x%llx", &fact_trl); in parse_cmd_args() 1445 if (!strncmp(optarg, "sse", 3)) { in parse_cmd_args() 1447 } else if (!strncmp(optarg, "avx2", 4)) { in parse_cmd_args() 1449 } else if (!strncmp(optarg, "avx512", 4)) { in parse_cmd_args() 1458 current_clos = atoi(optarg); in parse_cmd_args() [all …]
|
/Linux-v5.4/tools/testing/selftests/watchdog/ |
D | watchdog-test.c | 108 file = optarg; in main() 169 ping_rate = strtoul(optarg, NULL, 0); in main() 175 flags = strtoul(optarg, NULL, 0); in main() 193 flags = strtoul(optarg, NULL, 0); in main()
|
/Linux-v5.4/tools/gpio/ |
D | gpio-event-mon.c | 154 loops = strtoul(optarg, NULL, 10); in main() 157 device_name = optarg; in main() 160 line = strtoul(optarg, NULL, 10); in main()
|
D | gpio-hammer.c | 132 loops = strtoul(optarg, NULL, 10); in main() 135 device_name = optarg; in main() 138 lines[i] = strtoul(optarg, NULL, 10); in main()
|