Searched refs:optstr (Results 1 – 7 of 7) sorted by relevance
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/core/ |
D | option.c | 28 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/ |
D | option.h | 5 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/ |
D | early_serial_console.c | 114 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/ |
D | sn2_smp.c | 512 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/ |
D | parse-options.c | 682 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()
|
D | parse-options.h | 186 const char *optstr,
|
/linux-4.1.27/arch/x86/platform/uv/ |
D | tlb_uv.c | 1467 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()
|