Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/nouveau/nvkm/core/
A Doption.c30 while (optstr && *optstr != '\0') { in nvkm_stropt()
39 optstr++; in nvkm_stropt()
42 optstr++; in nvkm_stropt()
47 optstr += len; in nvkm_stropt()
58 optstr = nvkm_stropt(optstr, opt, &arglen); in nvkm_boolopt()
59 if (optstr) { in nvkm_boolopt()
83 optstr = nvkm_stropt(optstr, opt, &arglen); in nvkm_longopt()
84 if (optstr && (s = kstrndup(optstr, arglen, GFP_KERNEL))) { in nvkm_longopt()
105 optstr++; in nvkm_dbgopt()
128 optstr++; in nvkm_dbgopt()
[all …]
/linux/samples/bpf/
A Dxdp_adjust_tail_user.c89 const char *optstr = "i:T:P:SNFh"; in main() local
100 for (i = 0; i < strlen(optstr); i++) in main()
101 if (optstr[i] != 'h' && 'a' <= optstr[i] && optstr[i] <= 'z') in main()
102 opt_flags[(unsigned char)optstr[i]] = 1; in main()
104 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
137 for (i = 0; i < strlen(optstr); i++) { in main()
138 if (opt_flags[(unsigned int)optstr[i]]) { in main()
139 fprintf(stderr, "Missing argument -%c\n", optstr[i]); in main()
A Dxdp_tx_iptunnel_user.c159 const char *optstr = "i:a:p:s:d:m:T:P:FSNh"; in main() local
174 for (i = 0; i < strlen(optstr); i++) in main()
175 if (optstr[i] != 'h' && 'a' <= optstr[i] && optstr[i] <= 'z') in main()
176 opt_flags[(unsigned char)optstr[i]] = 1; in main()
178 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
248 for (i = 0; i < strlen(optstr); i++) { in main()
249 if (opt_flags[(unsigned int)optstr[i]]) { in main()
250 fprintf(stderr, "Missing argument -%c\n", optstr[i]); in main()
A Dxdp1_user.c87 const char *optstr = "FSN"; in main() local
94 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
A Dxdp_sample_pkts_user.c117 const char *optstr = "FS"; in main() local
124 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
A Dxdp_router_ipv4_user.c648 const char *optstr = "SF"; in main() local
661 while ((opt = getopt(ac, argv, optstr)) != -1) { in main()
/linux/drivers/gpu/drm/nouveau/include/nvkm/core/
A 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/arch/x86/boot/
A 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/tools/perf/ui/browsers/
A Dhists.c2498 struct popup_action *act, char **optstr, in add_annotate_opt() argument
2555 char **optstr, struct thread *thread) in add_thread_opt() argument
2569 ret = asprintf(optstr, "Zoom %s %s thread", in add_thread_opt()
2612 char **optstr, struct map *map) in add_dso_opt() argument
2664 if (asprintf(optstr, "Browse map details") < 0) in add_map_opt()
2730 struct popup_action *act, char **optstr, in add_script_opt_2() argument
2770 optstr++; in add_script_opt()
2787 struct popup_action *act, char **optstr, in add_res_sample_opt() argument
2842 struct popup_action *act, char **optstr) in add_exit_opt() argument
2844 if (asprintf(optstr, "Exit") < 0) in add_exit_opt()
[all …]
/linux/tools/tracing/latency/
A 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/tools/testing/selftests/bpf/
A Dxdping.c94 const char *optstr = "c:I:NsS"; in main() local
107 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
/linux/drivers/firmware/efi/libstub/
A Dfile.c131 const efi_char16_t *optstr, in handle_cmdline_files() argument
164 optstr, optstr_size, in handle_cmdline_files()
A Defistub.h811 const efi_char16_t *optstr,
/linux/tools/lib/subcmd/
A Dparse-options.c930 const char *optstr, bool short_opt) in parse_options_usage() argument
949 if (opts->short_name == *optstr) { in parse_options_usage()
959 if (strstarts(opts->long_name, optstr)) in parse_options_usage()
961 if (strstarts("no-", optstr) && in parse_options_usage()
962 strstarts(opts->long_name, optstr + 3)) in parse_options_usage()
A Dparse-options.h219 const char *optstr,
/linux/tools/testing/selftests/vm/
A Dmremap_test.c232 const char *optstr = "t:p:"; in parse_args() local
235 while ((opt = getopt(argc, argv, optstr)) != -1) { in parse_args()

Completed in 38 milliseconds