Home
last modified time | relevance | path

Searched refs:optstr (Results 1 – 15 of 15) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/core/
Doption.c28 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.1.9/samples/bpf/
Dxdp_adjust_tail_user.c85 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()
Dxdp_tx_iptunnel_user.c155 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()
Dxdp1_user.c83 const char *optstr = "FSN"; in main() local
91 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
Dxdp_sample_pkts_user.c112 const char *optstr = "FS"; in main() local
120 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
/linux-6.1.9/drivers/gpu/drm/nouveau/include/nvkm/core/
Doption.h6 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.1.9/arch/x86/boot/
Dearly_serial_console.c119 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.1.9/tools/perf/ui/browsers/
Dhists.c2498 struct popup_action *act, char **optstr, in add_annotate_opt() argument
2511 if (asprintf(optstr, "Annotate %s", ms->sym->name) < 0) in add_annotate_opt()
2555 char **optstr, struct thread *thread) in add_thread_opt() argument
2564 ret = asprintf(optstr, "Zoom %s %s(%d) thread", in add_thread_opt()
2569 ret = asprintf(optstr, "Zoom %s %s thread", in add_thread_opt()
2612 char **optstr, struct map *map) in add_dso_opt() argument
2617 if (asprintf(optstr, "Zoom %s %s DSO (use the 'k' hotkey to zoom directly into the kernel)", in add_dso_opt()
2633 …int add_callchain_toggle_opt(struct hist_browser *browser, struct popup_action *act, char **optstr) in add_callchain_toggle_opt() argument
2640 …if (asprintf(optstr, "%s [%s] callchain (one level, same as '+' hotkey, use 'e'/'c' for the whole … in add_callchain_toggle_opt()
2659 struct popup_action *act, char **optstr, struct map *map) in add_map_opt() argument
[all …]
/linux-6.1.9/tools/testing/selftests/bpf/
Dxdping.c93 const char *optstr = "c:I:NsS"; in main() local
106 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
/linux-6.1.9/tools/tracing/latency/
Dlatency-collector.c58 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.1.9/drivers/firmware/efi/libstub/
Dfile.c149 const efi_char16_t *optstr, in handle_cmdline_files() argument
182 optstr, optstr_size, in handle_cmdline_files()
Defistub.h930 const efi_char16_t *optstr,
/linux-6.1.9/tools/lib/subcmd/
Dparse-options.c941 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()
Dparse-options.h219 const char *optstr,
/linux-6.1.9/tools/testing/selftests/vm/
Dmremap_test.c350 const char *optstr = "t:p:"; in parse_args() local
353 while ((opt = getopt(argc, argv, optstr)) != -1) { in parse_args()