/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/core/ |
D | option.c | 28 nvkm_stropt(const char *optstr, const char *opt, int *arglen) in nvkm_stropt() argument 30 while (optstr && *optstr != '\0') { in nvkm_stropt() 31 int len = strcspn(optstr, ",="); in nvkm_stropt() 32 switch (optstr[len]) { in nvkm_stropt() 34 if (!strncasecmpz(optstr, opt, len)) { in nvkm_stropt() 35 optstr += len + 1; in nvkm_stropt() 36 *arglen = strcspn(optstr, ",="); in nvkm_stropt() 37 return *arglen ? optstr : NULL; in nvkm_stropt() 39 optstr++; in nvkm_stropt() 42 optstr++; in nvkm_stropt() [all …]
|
/Linux-v5.4/samples/bpf/ |
D | xdp_adjust_tail_user.c | 88 const char *optstr = "i:T:SNFh"; in main() local 98 for (i = 0; i < strlen(optstr); i++) in main() 99 if (optstr[i] != 'h' && 'a' <= optstr[i] && optstr[i] <= 'z') in main() 100 opt_flags[(unsigned char)optstr[i]] = 1; in main() 102 while ((opt = getopt(argc, argv, optstr)) != -1) { in main() 129 for (i = 0; i < strlen(optstr); i++) { in main() 130 if (opt_flags[(unsigned int)optstr[i]]) { in main() 131 fprintf(stderr, "Missing argument -%c\n", optstr[i]); in main()
|
D | xdp_tx_iptunnel_user.c | 160 const char *optstr = "i:a:p:s:d:m:T:P:FSNh"; in main() local 175 for (i = 0; i < strlen(optstr); i++) in main() 176 if (optstr[i] != 'h' && 'a' <= optstr[i] && optstr[i] <= 'z') in main() 177 opt_flags[(unsigned char)optstr[i]] = 1; in main() 179 while ((opt = getopt(argc, argv, optstr)) != -1) { in main() 246 for (i = 0; i < strlen(optstr); i++) { in main() 247 if (opt_flags[(unsigned int)optstr[i]]) { in main() 248 fprintf(stderr, "Missing argument -%c\n", optstr[i]); in main()
|
D | xdp1_user.c | 88 const char *optstr = "FSN"; in main() local 95 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
|
D | xdp_sample_pkts_user.c | 118 const char *optstr = "F"; in main() local 125 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
|
D | xdp_redirect_map_user.c | 107 const char *optstr = "FSN"; in main() local 113 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
|
D | xdp_redirect_user.c | 108 const char *optstr = "FSN"; in main() local 114 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
|
D | xdp_router_ipv4_user.c | 634 const char *optstr = "SF"; in main() local 647 while ((opt = getopt(ac, argv, optstr)) != -1) { in main()
|
/Linux-v5.4/drivers/gpu/drm/nouveau/include/nvkm/core/ |
D | option.h | 6 const char *nvkm_stropt(const char *optstr, const char *opt, int *len); 7 bool nvkm_boolopt(const char *optstr, const char *opt, bool value); 8 long nvkm_longopt(const char *optstr, const char *opt, long value); 9 int nvkm_dbgopt(const char *optstr, const char *sub);
|
/Linux-v5.4/arch/x86/boot/ |
D | early_serial_console.c | 119 char optstr[64], *options; in parse_console_uart8250() local 127 if (cmdline_find_option("console", optstr, sizeof(optstr)) <= 0) in parse_console_uart8250() 130 options = optstr; in parse_console_uart8250()
|
/Linux-v5.4/tools/perf/ui/browsers/ |
D | hists.c | 2402 struct popup_action *act, char **optstr, in add_annotate_opt() argument 2408 if (asprintf(optstr, "Annotate %s", sym->name) < 0) in add_annotate_opt() 2453 char **optstr, struct thread *thread) in add_thread_opt() argument 2462 ret = asprintf(optstr, "Zoom %s %s(%d) thread", in add_thread_opt() 2467 ret = asprintf(optstr, "Zoom %s %s thread", in add_thread_opt() 2507 char **optstr, struct map *map) in add_dso_opt() argument 2512 if (asprintf(optstr, "Zoom %s %s DSO", in add_dso_opt() 2532 struct popup_action *act, char **optstr, struct map *map) in add_map_opt() argument 2537 if (asprintf(optstr, "Browse map details") < 0) in add_map_opt() 2603 struct popup_action *act, char **optstr, in add_script_opt_2() argument [all …]
|
/Linux-v5.4/tools/testing/selftests/bpf/ |
D | xdping.c | 94 const char *optstr = "c:I:NsS"; in main() local 107 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
|
D | test_btf.c | 6898 const char *optstr = "hlpk:f:r:g:d:"; in parse_args() local 6901 while ((opt = getopt(argc, argv, optstr)) != -1) { in parse_args()
|
/Linux-v5.4/tools/lib/subcmd/ |
D | parse-options.c | 927 const char *optstr, bool short_opt) in parse_options_usage() argument 946 if (opts->short_name == *optstr) { in parse_options_usage() 956 if (strstarts(opts->long_name, optstr)) in parse_options_usage() 958 if (strstarts("no-", optstr) && in parse_options_usage() 959 strstarts(opts->long_name, optstr + 3)) in parse_options_usage()
|
D | parse-options.h | 216 const char *optstr,
|
/Linux-v5.4/arch/x86/platform/uv/ |
D | tlb_uv.c | 1501 char optstr[64]; in ptc_proc_write() local 1504 if (count == 0 || count > sizeof(optstr)) in ptc_proc_write() 1506 if (copy_from_user(optstr, user, count)) in ptc_proc_write() 1508 optstr[count - 1] = '\0'; in ptc_proc_write() 1510 if (!strcmp(optstr, "on")) { in ptc_proc_write() 1513 } else if (!strcmp(optstr, "off")) { in ptc_proc_write() 1518 if (kstrtol(optstr, 10, &input_arg) < 0) { in ptc_proc_write() 1519 pr_debug("%s is invalid\n", optstr); in ptc_proc_write()
|