Home
last modified time | relevance | path

Searched refs:opt_array (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/lib/
H A Ddynamic_debug.c91 static const struct { unsigned flag:8; char opt_char; } opt_array[] = { variable
101 struct flagsbuf { char buf[ARRAY_SIZE(opt_array)+1]; };
109 for (i = 0; i < ARRAY_SIZE(opt_array); ++i) in ddebug_describe_flags()
110 if (flags & opt_array[i].flag) in ddebug_describe_flags()
111 *p++ = opt_array[i].opt_char; in ddebug_describe_flags()
505 for (i = ARRAY_SIZE(opt_array) - 1; i >= 0; i--) { in ddebug_parse_flags()
506 if (*str == opt_array[i].opt_char) { in ddebug_parse_flags()
507 modifiers->flags |= opt_array[i].flag; in ddebug_parse_flags()
/openbmc/linux/fs/ntfs/
H A Dsuper.c165 #define NTFS_GETOPT_OPTIONS_ARRAY(option, variable, opt_array) \ in parse_options() argument
173 for (_i = 0; opt_array[_i].str && *opt_array[_i].str; _i++) \ in parse_options()
174 if (!strcmp(opt_array[_i].str, v)) { \ in parse_options()
175 variable |= opt_array[_i].val; \ in parse_options()
178 if (!opt_array[_i].str || !*opt_array[_i].str) \ in parse_options()