Home
last modified time | relevance | path

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

/linux-4.1.27/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-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/core/
Doption.h5 const char *nvkm_stropt(const char *optstr, const char *opt, int *len);
6 bool nvkm_boolopt(const char *optstr, const char *opt, bool value);
7 int nvkm_dbgopt(const char *optstr, const char *sub);
/linux-4.1.27/arch/x86/boot/
Dearly_serial_console.c114 char optstr[64], *options; in parse_console_uart8250() local
122 if (cmdline_find_option("console", optstr, sizeof optstr) <= 0) in parse_console_uart8250()
125 options = optstr; in parse_console_uart8250()
/linux-4.1.27/arch/ia64/sn/kernel/sn2/
Dsn2_smp.c512 char optstr[64]; in sn2_ptc_proc_write() local
514 if (count == 0 || count > sizeof(optstr)) in sn2_ptc_proc_write()
516 if (copy_from_user(optstr, user, count)) in sn2_ptc_proc_write()
518 optstr[count - 1] = '\0'; in sn2_ptc_proc_write()
519 sn2_flush_opt = simple_strtoul(optstr, NULL, 0); in sn2_ptc_proc_write()
/linux-4.1.27/tools/perf/util/
Dparse-options.c682 const char *optstr, bool short_opt) in parse_options_usage() argument
701 if (opts->short_name == *optstr) in parse_options_usage()
709 if (!prefixcmp(optstr, opts->long_name)) in parse_options_usage()
711 if (!prefixcmp(optstr, "no-") && in parse_options_usage()
712 !prefixcmp(optstr + 3, opts->long_name)) in parse_options_usage()
Dparse-options.h186 const char *optstr,
/linux-4.1.27/arch/x86/platform/uv/
Dtlb_uv.c1467 char optstr[64]; in ptc_proc_write() local
1470 if (count == 0 || count > sizeof(optstr)) in ptc_proc_write()
1472 if (copy_from_user(optstr, user, count)) in ptc_proc_write()
1474 optstr[count - 1] = '\0'; in ptc_proc_write()
1476 if (!strcmp(optstr, "on")) { in ptc_proc_write()
1479 } else if (!strcmp(optstr, "off")) { in ptc_proc_write()
1484 if (kstrtol(optstr, 10, &input_arg) < 0) { in ptc_proc_write()
1485 printk(KERN_DEBUG "%s is invalid\n", optstr); in ptc_proc_write()