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

/linux-master/drivers/gpu/drm/nouveau/nvkm/core/
H A Doption.c28 nvkm_stropt(const char *optstr, const char *opt, int *arglen) argument
30 while (optstr && *optstr != '\0') {
31 int len = strcspn(optstr, ",=");
32 switch (optstr[len]) {
34 if (!strncasecmpz(optstr, opt, len)) {
35 optstr += len + 1;
36 *arglen = strcspn(optstr, ",=");
37 return *arglen ? optstr : NULL;
39 optstr
54 nvkm_boolopt(const char *optstr, const char *opt, bool value) argument
77 nvkm_longopt(const char *optstr, const char *opt, long value) argument
95 nvkm_dbgopt(const char *optstr, const char *sub) argument
[all...]
/linux-master/drivers/gpu/drm/nouveau/include/nvkm/core/
H 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-master/samples/bpf/
H A Dxdp_adjust_tail_user.c85 const char *optstr = "i:T:P:SNFh"; local
97 for (i = 0; i < strlen(optstr); i++)
98 if (optstr[i] != 'h' && 'a' <= optstr[i] && optstr[i] <= 'z')
99 opt_flags[(unsigned char)optstr[i]] = 1;
101 while ((opt = getopt(argc, argv, optstr)) != -1) {
134 for (i = 0; i < strlen(optstr); i++) {
135 if (opt_flags[(unsigned int)optstr[i]]) {
136 fprintf(stderr, "Missing argument -%c\n", optstr[
[all...]
H A Dxdp_tx_iptunnel_user.c155 const char *optstr = "i:a:p:s:d:m:T:P:FSNh"; local
171 for (i = 0; i < strlen(optstr); i++)
172 if (optstr[i] != 'h' && 'a' <= optstr[i] && optstr[i] <= 'z')
173 opt_flags[(unsigned char)optstr[i]] = 1;
175 while ((opt = getopt(argc, argv, optstr)) != -1) {
245 for (i = 0; i < strlen(optstr); i++) {
246 if (opt_flags[(unsigned int)optstr[i]]) {
247 fprintf(stderr, "Missing argument -%c\n", optstr[
[all...]
/linux-master/arch/x86/boot/
H A Dearly_serial_console.c119 char optstr[64], *options; local
127 if (cmdline_find_option("console", optstr, sizeof(optstr)) <= 0)
130 options = optstr;
/linux-master/samples/hid/
H A Dhid_mouse.c81 const char *optstr = ""; local
92 while ((opt = getopt(argc, argv, optstr)) != -1) {
H A Dhid_surface_dial.c148 const char *optstr = "r:"; local
152 while ((opt = getopt(argc, argv, optstr)) != -1) {
/linux-master/tools/testing/selftests/bpf/
H A Dxdping.c93 const char *optstr = "c:I:NsS"; local
106 while ((opt = getopt(argc, argv, optstr)) != -1) {
/linux-master/drivers/firmware/efi/libstub/
H A Dfile.c185 const efi_char16_t *optstr,
218 optstr, optstr_size,
184 handle_cmdline_files(efi_loaded_image_t *image, const efi_char16_t *optstr, int optstr_size, unsigned long soft_limit, unsigned long hard_limit, unsigned long *load_addr, unsigned long *load_size) argument
H A Defistub.h1089 const efi_char16_t *optstr,
/linux-master/fs/bcachefs/
H A Dchardev.c220 char *optstr = strndup_user((char __user *)(unsigned long) arg.opts, 1 << 16); local
222 ret = PTR_ERR_OR_ZERO(optstr) ?:
223 bch2_parse_mount_opts(NULL, &thr->opts, optstr);
224 kfree(optstr);
856 char *optstr = strndup_user((char __user *)(unsigned long) arg.opts, 1 << 16); local
858 ret = PTR_ERR_OR_ZERO(optstr) ?:
859 bch2_parse_mount_opts(c, &thr->opts, optstr);
860 kfree(optstr);
/linux-master/tools/tracing/latency/
H A Dlatency-collector.c58 static const char *const optstr[] = { variable
561 r = set_trace_opt(optstr[i], state->opt[i]);
564 optstr[i], bool2str(state->opt[i]));
567 optstr[i], TR_OPTIONS,
1334 state->opt[i] = get_trace_opt(allopt, optstr[i],
1422 r = set_trace_opt(optstr[i], new[i]);
1425 optstr[i], bool2str(new[i]));
1430 printf("%s in %s was set to %s\n", optstr[i],
2067 optstr[OPTIDX_FUNC_TR],
2069 optstr[OPTIDX_DISP_G
[all...]
/linux-master/tools/perf/ui/browsers/
H A Dhists.c2485 struct popup_action *act, char **optstr,
2500 if (asprintf(optstr, "Annotate %s", ms->sym->name) < 0)
2546 char **optstr, struct thread *thread)
2558 ret = asprintf(optstr, "Zoom %s %s(%d) thread",
2561 ret = asprintf(optstr, "Zoom %s %s thread", in_out, comm_set_str);
2603 char **optstr, struct map *map)
2608 if (asprintf(optstr, "Zoom %s %s DSO (use the 'k' hotkey to zoom directly into the kernel)",
2624 static int add_callchain_toggle_opt(struct hist_browser *browser, struct popup_action *act, char **optstr) argument
2631 if (asprintf(optstr, "%s [%s] callchain (one level, same as '+' hotkey, use 'e'/'c' for the whole main level entry)",
2650 struct popup_action *act, char **optstr, struc
2484 add_annotate_opt(struct hist_browser *browser __maybe_unused, struct popup_action *act, char **optstr, struct map_symbol *ms, u64 addr) argument
2545 add_thread_opt(struct hist_browser *browser, struct popup_action *act, char **optstr, struct thread *thread) argument
2602 add_dso_opt(struct hist_browser *browser, struct popup_action *act, char **optstr, struct map *map) argument
2649 add_map_opt(struct hist_browser *browser, struct popup_action *act, char **optstr, struct map *map) argument
2720 add_script_opt_2(struct hist_browser *browser __maybe_unused, struct popup_action *act, char **optstr, struct thread *thread, struct symbol *sym, struct evsel *evsel, const char *tstr) argument
2747 add_script_opt(struct hist_browser *browser, struct popup_action *act, char **optstr, struct thread *thread, struct symbol *sym, struct evsel *evsel) argument
2777 add_res_sample_opt(struct hist_browser *browser __maybe_unused, struct popup_action *act, char **optstr, struct res_sample *res_sample, struct evsel *evsel, enum rstype type) argument
2811 add_switch_opt(struct hist_browser *browser, struct popup_action *act, char **optstr) argument
2832 add_exit_opt(struct hist_browser *browser __maybe_unused, struct popup_action *act, char **optstr) argument
2864 add_socket_opt(struct hist_browser *browser, struct popup_action *act, char **optstr, int socket_id) argument
[all...]
/linux-master/tools/lib/subcmd/
H A Dparse-options.c941 const char *optstr, bool short_opt)
960 if (opts->short_name == *optstr) {
970 if (strstarts(opts->long_name, optstr))
972 if (strstarts("no-", optstr) &&
973 strstarts(opts->long_name, optstr + 3))
939 parse_options_usage(const char * const *usagestr, const struct option *opts, const char *optstr, bool short_opt) argument
H A Dparse-options.h215 const char *optstr,
/linux-master/tools/testing/selftests/mm/
H A Dmremap_test.c613 const char *optstr = "t:p:"; local
616 while ((opt = getopt(argc, argv, optstr)) != -1) {

Completed in 254 milliseconds