Home
last modified time | relevance | path

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

/Linux-v5.4/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-v5.4/samples/bpf/
Dxdp_adjust_tail_user.c88 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()
Dxdp_tx_iptunnel_user.c160 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()
Dxdp1_user.c88 const char *optstr = "FSN"; in main() local
95 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
Dxdp_sample_pkts_user.c118 const char *optstr = "F"; in main() local
125 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
Dxdp_redirect_map_user.c107 const char *optstr = "FSN"; in main() local
113 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
Dxdp_redirect_user.c108 const char *optstr = "FSN"; in main() local
114 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
Dxdp_router_ipv4_user.c634 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/
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-v5.4/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-v5.4/tools/perf/ui/browsers/
Dhists.c2402 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/
Dxdping.c94 const char *optstr = "c:I:NsS"; in main() local
107 while ((opt = getopt(argc, argv, optstr)) != -1) { in main()
Dtest_btf.c6898 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/
Dparse-options.c927 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()
Dparse-options.h216 const char *optstr,
/Linux-v5.4/arch/x86/platform/uv/
Dtlb_uv.c1501 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()