/Documentation/timers/ |
D | hpet_example.c | 29 void (*func)(int argc, const char ** argv); 50 main(int argc, const char ** argv) in main() argument 55 argv++; in main() 64 if (!strcmp(argv[0], hpet_command[i].command)) { in main() 66 argv++; in main() 69 hpet_command[i].func(argc, argv); in main() 73 fprintf(stderr, "do_hpet: command %s not implemented\n", argv[0]); in main() 79 hpet_open_close(int argc, const char **argv) in hpet_open_close() argument 88 fd = open(argv[0], O_RDONLY); in hpet_open_close() 98 hpet_info(int argc, const char **argv) in hpet_info() argument [all …]
|
/Documentation/networking/timestamping/ |
D | timestamping.c | 317 int main(int argc, char **argv) in main() argument 341 interface = argv[1]; in main() 344 if (!strcasecmp(argv[i], "SO_TIMESTAMP")) in main() 346 else if (!strcasecmp(argv[i], "SO_TIMESTAMPNS")) in main() 348 else if (!strcasecmp(argv[i], "SIOCGSTAMP")) in main() 350 else if (!strcasecmp(argv[i], "SIOCGSTAMPNS")) in main() 352 else if (!strcasecmp(argv[i], "IP_MULTICAST_LOOP")) in main() 354 else if (!strcasecmp(argv[i], "SOF_TIMESTAMPING_TX_HARDWARE")) in main() 356 else if (!strcasecmp(argv[i], "SOF_TIMESTAMPING_TX_SOFTWARE")) in main() 358 else if (!strcasecmp(argv[i], "SOF_TIMESTAMPING_RX_HARDWARE")) in main() [all …]
|
/Documentation/sound/oss/ |
D | MultiSound | 481 int main(int argc, char *argv[]) 491 X if ((fd = open(argv[1], O_RDWR)) < 0) { 492 X perror(argv[1]); 853 static int cfg_dsp(int argc, char *argv[]) 858 X sscanf(argv[0], "0x%x", &io) != 1 || 859 X sscanf(argv[1], "%d", &irq) != 1 || 860 X sscanf(argv[2], "0x%x", &mem) != 1) 901 static int cfg_mpu(int argc, char *argv[]) 906 X sscanf(argv[0], "0x%x", &io) != 1 || 907 X sscanf(argv[1], "%d", &irq) != 1) [all …]
|
D | Opti | 187 main(int argc, char **argv) { 198 from = atoi(argv[i-1]); 199 to = atoi(argv[i]); 203 argv[0], mixer_names[to]); 206 argv[0], mixer_names[from], mixer_names[to]);
|
/Documentation/spi/ |
D | spidev_test.c | 88 static void parse_opts(int argc, char *argv[]) in parse_opts() argument 108 c = getopt_long(argc, argv, "D:s:d:b:lHOLC3NR", lopts, NULL); in parse_opts() 151 print_usage(argv[0]); in parse_opts() 157 int main(int argc, char *argv[]) in main() argument 162 parse_opts(argc, argv); in main()
|
D | spidev_fdx.c | 105 int main(int argc, char **argv) in main() argument 113 while ((c = getopt(argc, argv, "hm:r:v")) != EOF) { in main() 133 argv[0]); in main() 140 name = argv[optind]; in main()
|
/Documentation/pcmcia/ |
D | crc32hash.c | 23 int main(int argc, char **argv) { in main() argument 29 result = crc32((unsigned char const *)argv[1], strlen(argv[1])); in main()
|
/Documentation/laptops/ |
D | dslm.c | 132 int main(int argc, char **argv) in main() argument 140 disk = argv[1]; in main() 142 settle_time = atoi(argv[2]); in main() 143 disk = argv[3]; in main()
|
D | hpfall.c | 90 int main(int argc, char **argv) in main() argument 98 ret = set_unload_heads_path(argv[1]); in main() 104 argv[0]); in main()
|
/Documentation/watchdog/src/ |
D | watchdog-test.c | 41 int main(int argc, char *argv[]) in main() argument 54 if (!strncasecmp(argv[1], "-d", 2)) { in main() 60 } else if (!strncasecmp(argv[1], "-e", 2)) { in main()
|
/Documentation/usb/ |
D | gadget_printer.txt | 436 main(int argc, char *argv[]) 449 if (argv[i][0] != '-') { 453 if (!strcmp(argv[i], "-get_status")) { 458 } else if (!strcmp(argv[i], "-paper_loaded")) { 463 } else if (!strcmp(argv[i], "-paper_out")) { 468 } else if (!strcmp(argv[i], "-selected")) { 473 } else if (!strcmp(argv[i], "-not_selected")) { 478 } else if (!strcmp(argv[i], "-error")) { 483 } else if (!strcmp(argv[i], "-no_error")) { 488 } else if (!strcmp(argv[i], "-read_data")) { [all …]
|
D | gadget_hid.txt | 356 int main(int argc, const char *argv[]) 370 argv[0]); 374 if (argv[2][0] != 'k' && argv[2][0] != 'm' && argv[2][0] != 'j') 377 filename = argv[1]; 384 print_options(argv[2][0]); 419 if (argv[2][0] == 'k') 421 else if (argv[2][0] == 'm')
|
/Documentation/block/ |
D | ioprio.txt | 116 int main(int argc, char *argv[]) 121 while ((c = getopt(argc, argv, "+n:c:p:")) != EOF) { 153 if (!pid && argv[optind]) 154 pid = strtol(argv[optind], NULL, 10); 173 if (argv[optind]) 174 execvp(argv[optind], &argv[optind]);
|
/Documentation/auxdisplay/ |
D | cfag12864b-example.c | 256 int main(int argc, char *argv[]) in main() argument 263 "Usually: /dev/fb0, /dev/fb1...\n", argv[0]); in main() 267 if (cfag12864b_init(argv[1])) { in main() 268 printf("Can't init %s fbdev\n", argv[1]); in main()
|
/Documentation/connector/ |
D | ucon.c | 111 int main(int argc, char *argv[]) in main() argument 124 while ((s = getopt(argc, argv, "hs")) != -1) { in main() 142 out = fopen(argv[optind], "a+"); in main() 145 argv[1], strerror(errno)); in main()
|
/Documentation/ptp/ |
D | testptp.c | 123 int main(int argc, char *argv[]) in main() argument 152 progname = strrchr(argv[0], '/'); in main() 153 progname = progname ? 1+progname : argv[0]; in main() 154 while (EOF != (c = getopt(argc, argv, "a:A:cd:e:f:ghp:P:sSt:v"))) { in main()
|
/Documentation/accounting/ |
D | getdelays.c | 255 int main(int argc, char *argv[]) in main() argument 283 c = getopt(argc, argv, "qdiw:r:m:t:p:vlC:c:"); in main() 346 if (execvp(argv[optind - 1], in main() 347 &argv[optind - 1]) < 0) in main()
|
/Documentation/ |
D | java.txt | 207 int main(int argc, char **argv); 276 int main(int argc, char **argv) 282 program = argv[0]; 284 if(!argv[1]) 286 classfile = fopen(argv[1], "rb"); 288 error("%s: Error opening %s\n", program, argv[1]);
|
D | binfmt_misc.txt | 40 'P' - preserve-argv[0]. Legacy behavior of binfmt_misc is to overwrite the 41 original argv[0] with the full path to the binary. When this flag is 43 this purpose, thus preserving the original argv[0].
|
/Documentation/x86/ |
D | mtrr.txt | 262 int main (int argc, char **argv) 272 sentry.base = strtoul (argv[1], NULL, 0); 273 sentry.size = strtoul (argv[2], NULL, 0); 276 if (strcmp (argv[3], mtrr_strings[sentry.type]) == 0) break; 280 fprintf (stderr, "Illegal type: \"%s\"\n", argv[3]);
|
/Documentation/prctl/ |
D | disable-tsc-on-off-stress-test.c | 80 int main(int argc, char **argv) in main() argument
|
D | disable-tsc-ctxt-sw-stress-test.c | 76 int main(int argc, char **argv) in main() argument
|
D | disable-tsc-test.c | 59 int main(int argc, char **argv) in main() argument
|
/Documentation/video4linux/cx2341x/ |
D | README.hm12 | 97 int main(int argc, char **argv) 103 else fin = fopen(argv[1], "r");
|
/Documentation/misc-devices/mei/ |
D | mei-amt-version.c | 440 int main(int argc, char **argv) in main() argument 449 verbose = (argc > 1 && strcmp(argv[1], "-v") == 0); in main()
|