/linux-6.6.21/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-6.6.21/samples/bpf/ |
D | xdp_adjust_tail_user.c | 85 const char *optstr = "i:T:P:SNFh"; in main() local 97 for (i = 0; i < strlen(optstr); i++) in main() 98 if (optstr[i] != 'h' && 'a' <= optstr[i] && optstr[i] <= 'z') in main() 99 opt_flags[(unsigned char)optstr[i]] = 1; in main() 101 while ((opt = getopt(argc, argv, optstr)) != -1) { in main() 134 for (i = 0; i < strlen(optstr); i++) { in main() 135 if (opt_flags[(unsigned int)optstr[i]]) { in main() 136 fprintf(stderr, "Missing argument -%c\n", optstr[i]); in main()
|
D | xdp_tx_iptunnel_user.c | 155 const char *optstr = "i:a:p:s:d:m:T:P:FSNh"; in main() local 171 for (i = 0; i < strlen(optstr); i++) in main() 172 if (optstr[i] != 'h' && 'a' <= optstr[i] && optstr[i] <= 'z') in main() 173 opt_flags[(unsigned char)optstr[i]] = 1; in main() 175 while ((opt = getopt(argc, argv, optstr)) != -1) { in main() 245 for (i = 0; i < strlen(optstr); i++) { in main() 246 if (opt_flags[(unsigned int)optstr[i]]) { in main() 247 fprintf(stderr, "Missing argument -%c\n", optstr[i]); in main()
|
/linux-6.6.21/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-6.6.21/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-6.6.21/samples/hid/ |
D | hid_mouse.c | 81 const char *optstr = ""; in main() local 92 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
|
D | hid_surface_dial.c | 148 const char *optstr = "r:"; in main() local 152 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
|
/linux-6.6.21/tools/perf/ui/browsers/ |
D | hists.c | 2488 struct popup_action *act, char **optstr, in add_annotate_opt() argument 2503 if (asprintf(optstr, "Annotate %s", ms->sym->name) < 0) in add_annotate_opt() 2549 char **optstr, struct thread *thread) in add_thread_opt() argument 2561 ret = asprintf(optstr, "Zoom %s %s(%d) thread", in add_thread_opt() 2564 ret = asprintf(optstr, "Zoom %s %s thread", in_out, comm_set_str); in add_thread_opt() 2606 char **optstr, struct map *map) in add_dso_opt() argument 2611 if (asprintf(optstr, "Zoom %s %s DSO (use the 'k' hotkey to zoom directly into the kernel)", in add_dso_opt() 2627 …int add_callchain_toggle_opt(struct hist_browser *browser, struct popup_action *act, char **optstr) in add_callchain_toggle_opt() argument 2634 …if (asprintf(optstr, "%s [%s] callchain (one level, same as '+' hotkey, use 'e'/'c' for the whole … in add_callchain_toggle_opt() 2653 struct popup_action *act, char **optstr, struct map *map) in add_map_opt() argument [all …]
|
/linux-6.6.21/tools/testing/selftests/bpf/ |
D | xdping.c | 93 const char *optstr = "c:I:NsS"; in main() local 106 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
|
/linux-6.6.21/tools/tracing/latency/ |
D | latency-collector.c | 58 static const char *const optstr[] = { variable 561 r = set_trace_opt(optstr[i], state->opt[i]); in restore_trace_opts() 564 optstr[i], bool2str(state->opt[i])); in restore_trace_opts() 567 optstr[i], TR_OPTIONS, in restore_trace_opts() 1334 state->opt[i] = get_trace_opt(allopt, optstr[i], in save_trace_opts() 1422 r = set_trace_opt(optstr[i], new[i]); in set_trace_opts() 1425 optstr[i], bool2str(new[i])); in set_trace_opts() 1430 printf("%s in %s was set to %s\n", optstr[i], in set_trace_opts() 2067 optstr[OPTIDX_FUNC_TR], in show_params() 2069 optstr[OPTIDX_DISP_GR], in show_params()
|
/linux-6.6.21/drivers/firmware/efi/libstub/ |
D | file.c | 185 const efi_char16_t *optstr, in handle_cmdline_files() argument 218 optstr, optstr_size, in handle_cmdline_files()
|
D | efistub.h | 1008 const efi_char16_t *optstr,
|
/linux-6.6.21/tools/lib/subcmd/ |
D | parse-options.c | 941 const char *optstr, bool short_opt) in parse_options_usage() argument 960 if (opts->short_name == *optstr) { in parse_options_usage() 970 if (strstarts(opts->long_name, optstr)) in parse_options_usage() 972 if (strstarts("no-", optstr) && in parse_options_usage() 973 strstarts(opts->long_name, optstr + 3)) in parse_options_usage()
|
D | parse-options.h | 215 const char *optstr,
|
/linux-6.6.21/tools/testing/selftests/mm/ |
D | mremap_test.c | 412 const char *optstr = "t:p:"; in parse_args() local 415 while ((opt = getopt(argc, argv, optstr)) != -1) { in parse_args()
|