Searched refs:str (Results 1 - 200 of 1354) sorted by relevance

1234567

/linux-4.1.27/fs/efivarfs/
H A Dinode.c43 * Return true if 'str' is a valid efivarfs filename of the form,
47 bool efivarfs_valid_name(const char *str, int len) efivarfs_valid_name() argument
52 const char *s = str + len - EFI_VARIABLE_GUID_LEN; efivarfs_valid_name()
84 static void efivarfs_hex_to_guid(const char *str, efi_guid_t *guid) efivarfs_hex_to_guid() argument
86 guid->b[0] = hex_to_bin(str[6]) << 4 | hex_to_bin(str[7]); efivarfs_hex_to_guid()
87 guid->b[1] = hex_to_bin(str[4]) << 4 | hex_to_bin(str[5]); efivarfs_hex_to_guid()
88 guid->b[2] = hex_to_bin(str[2]) << 4 | hex_to_bin(str[3]); efivarfs_hex_to_guid()
89 guid->b[3] = hex_to_bin(str[0]) << 4 | hex_to_bin(str[1]); efivarfs_hex_to_guid()
90 guid->b[4] = hex_to_bin(str[11]) << 4 | hex_to_bin(str[12]); efivarfs_hex_to_guid()
91 guid->b[5] = hex_to_bin(str[9]) << 4 | hex_to_bin(str[10]); efivarfs_hex_to_guid()
92 guid->b[6] = hex_to_bin(str[16]) << 4 | hex_to_bin(str[17]); efivarfs_hex_to_guid()
93 guid->b[7] = hex_to_bin(str[14]) << 4 | hex_to_bin(str[15]); efivarfs_hex_to_guid()
94 guid->b[8] = hex_to_bin(str[19]) << 4 | hex_to_bin(str[20]); efivarfs_hex_to_guid()
95 guid->b[9] = hex_to_bin(str[21]) << 4 | hex_to_bin(str[22]); efivarfs_hex_to_guid()
96 guid->b[10] = hex_to_bin(str[24]) << 4 | hex_to_bin(str[25]); efivarfs_hex_to_guid()
97 guid->b[11] = hex_to_bin(str[26]) << 4 | hex_to_bin(str[27]); efivarfs_hex_to_guid()
98 guid->b[12] = hex_to_bin(str[28]) << 4 | hex_to_bin(str[29]); efivarfs_hex_to_guid()
99 guid->b[13] = hex_to_bin(str[30]) << 4 | hex_to_bin(str[31]); efivarfs_hex_to_guid()
100 guid->b[14] = hex_to_bin(str[32]) << 4 | hex_to_bin(str[33]); efivarfs_hex_to_guid()
101 guid->b[15] = hex_to_bin(str[34]) << 4 | hex_to_bin(str[35]); efivarfs_hex_to_guid()
/linux-4.1.27/kernel/printk/
H A Dbraille.c10 char *_braille_console_setup(char **str, char **brl_options) _braille_console_setup() argument
12 if (!memcmp(*str, "brl,", 4)) { _braille_console_setup()
14 *str += 4; _braille_console_setup()
15 } else if (!memcmp(str, "brl=", 4)) { _braille_console_setup()
16 *brl_options = *str + 4; _braille_console_setup()
17 *str = strchr(*brl_options, ','); _braille_console_setup()
18 if (!*str) _braille_console_setup()
21 *((*str)++) = 0; _braille_console_setup()
25 return *str; _braille_console_setup()
H A Dbraille.h13 _braille_console_setup(char **str, char **brl_options);
29 _braille_console_setup(char **str, char **brl_options) _braille_console_setup() argument
/linux-4.1.27/arch/mips/kernel/
H A Dsegment.c15 static void build_segment_config(char *str, unsigned int cfg) build_segment_config() argument
24 str += sprintf(str, "%-5s", am_str[am]); build_segment_config()
31 str += sprintf(str, " %03lx", build_segment_config()
33 str += sprintf(str, " %01ld", build_segment_config()
36 str += sprintf(str, " UND"); build_segment_config()
37 str += sprintf(str, " U"); build_segment_config()
41 str += sprintf(str, " %01ld\n", build_segment_config()
48 char str[42]; show_segments() local
54 build_segment_config(str, segcfg); show_segments()
55 seq_printf(m, " 0 e0000000 512M %s", str); show_segments()
58 build_segment_config(str, segcfg); show_segments()
59 seq_printf(m, " 1 c0000000 512M %s", str); show_segments()
62 build_segment_config(str, segcfg); show_segments()
63 seq_printf(m, " 2 a0000000 512M %s", str); show_segments()
66 build_segment_config(str, segcfg); show_segments()
67 seq_printf(m, " 3 80000000 512M %s", str); show_segments()
70 build_segment_config(str, segcfg); show_segments()
71 seq_printf(m, " 4 40000000 1G %s", str); show_segments()
74 build_segment_config(str, segcfg); show_segments()
75 seq_printf(m, " 5 00000000 1G %s\n", str); show_segments()
H A Dmips-mt.c24 static int __init maxvpes(char *str) maxvpes() argument
26 get_option(&str, &vpelimit); maxvpes()
35 static int __init maxtcs(char *str) maxtcs() argument
37 get_option(&str, &tclimit); maxtcs()
134 static int __init rpsctl_set(char *str) rpsctl_set() argument
136 get_option(&str, &mt_opt_rpsctl); rpsctl_set()
141 static int __init nblsu_set(char *str) nblsu_set() argument
143 get_option(&str, &mt_opt_nblsu); nblsu_set()
148 static int __init config7_set(char *str) config7_set() argument
150 get_option(&str, &mt_opt_config7); config7_set()
192 static int __init set_itc_base(char *str) set_itc_base() argument
194 get_option(&str, &itc_base); set_itc_base()
/linux-4.1.27/arch/alpha/lib/
H A Dsrm_puts.c9 srm_puts(const char *str, long len) srm_puts() argument
18 written = callback_puts(0, str, remaining); srm_puts()
20 str += written; srm_puts()
/linux-4.1.27/kernel/trace/
H A Dtrace_benchmark.h16 TP_PROTO(const char *str),
18 TP_ARGS(str),
21 __array( char, str, BENCHMARK_EVENT_STRLEN )
25 memcpy(__entry->str, str, BENCHMARK_EVENT_STRLEN);
28 TP_printk("%s", __entry->str),
/linux-4.1.27/include/linux/netfilter/ipset/
H A Dip_set_comment.h25 if (unlikely(comment->str)) { ip_set_init_comment()
26 kfree(comment->str); ip_set_init_comment()
27 comment->str = NULL; ip_set_init_comment()
33 comment->str = kzalloc(len + 1, GFP_ATOMIC); ip_set_init_comment()
34 if (unlikely(!comment->str)) ip_set_init_comment()
36 strlcpy(comment->str, ext->comment, len + 1); ip_set_init_comment()
42 if (!comment->str) ip_set_put_comment()
44 return nla_put_string(skb, IPSET_ATTR_COMMENT, comment->str); ip_set_put_comment()
50 if (unlikely(!comment->str)) ip_set_comment_free()
52 kfree(comment->str); ip_set_comment_free()
53 comment->str = NULL; ip_set_comment_free()
/linux-4.1.27/tools/perf/arch/arm/tests/
H A Dregs_load.S40 str r0, [r0, #R0]
41 str r1, [r0, #R1]
42 str r2, [r0, #R2]
43 str r3, [r0, #R3]
44 str r4, [r0, #R4]
45 str r5, [r0, #R5]
46 str r6, [r0, #R6]
47 str r7, [r0, #R7]
48 str r8, [r0, #R8]
49 str r9, [r0, #R9]
50 str sl, [r0, #SL]
51 str fp, [r0, #FP]
52 str ip, [r0, #IP]
53 str sp, [r0, #SP]
54 str lr, [r0, #LR]
55 str lr, [r0, #PC] // store pc as lr in order to skip the call
/linux-4.1.27/tools/perf/util/
H A Dcomm.c7 char *str; member in struct:comm_str
24 zfree(&cs->str); comm_str__put()
29 static struct comm_str *comm_str__alloc(const char *str) comm_str__alloc() argument
37 cs->str = strdup(str); comm_str__alloc()
38 if (!cs->str) { comm_str__alloc()
46 static struct comm_str *comm_str__findnew(const char *str, struct rb_root *root) comm_str__findnew() argument
57 cmp = strcmp(str, iter->str); comm_str__findnew()
67 new = comm_str__alloc(str); comm_str__findnew()
77 struct comm *comm__new(const char *str, u64 timestamp, bool exec) comm__new() argument
87 comm->comm_str = comm_str__findnew(str, &comm_str_root); comm__new()
98 int comm__override(struct comm *comm, const char *str, u64 timestamp, bool exec) comm__override() argument
102 new = comm_str__findnew(str, &comm_str_root); comm__override()
124 return comm->comm_str->str; comm__str()
H A Dstring.c10 s64 perf_atoll(const char *str) perf_atoll() argument
16 if (!isdigit(str[0])) perf_atoll()
19 length = strtoll(str, &p, 10); perf_atoll()
76 static int count_argc(const char *str) count_argc() argument
80 while (*str) { count_argc()
81 str = skip_sep(str); count_argc()
82 if (*str) { count_argc()
84 str = skip_arg(str); count_argc()
108 * @str: the string to be split
112 * @str. This is performed by strictly splitting on white-space; no
118 char **argv_split(const char *str, int *argcp) argv_split() argument
120 int argc = count_argc(str); argv_split()
132 while (*str) { argv_split()
133 str = skip_sep(str); argv_split()
135 if (*str) { argv_split()
136 const char *p = str; argv_split()
139 str = skip_arg(str); argv_split()
141 t = strndup(p, str-p); argv_split()
196 static bool __match_glob(const char *str, const char *pat, bool ignore_space) __match_glob() argument
198 while (*str && *pat && *pat != '*') { __match_glob()
201 if (isspace(*str)) { __match_glob()
202 str++; __match_glob()
211 str++; __match_glob()
215 if (__match_charclass(pat + 1, *str, &pat)) { __match_glob()
216 str++; __match_glob()
222 if (*str++ != *pat++) __match_glob()
231 while (*str) __match_glob()
232 if (__match_glob(str++, pat, ignore_space)) __match_glob()
235 return !*str && !*pat; __match_glob()
240 * @str: the target string to match
243 * This returns true if the @str matches @pat. @pat can includes wildcards
250 bool strglobmatch(const char *str, const char *pat) strglobmatch() argument
252 return __match_glob(str, pat, false); strglobmatch()
257 * @str: the target string to match
263 bool strlazymatch(const char *str, const char *pat) strlazymatch() argument
265 return __match_glob(str, pat, true); strlazymatch()
H A Dwrapper.c15 char *xstrdup(const char *str) xstrdup() argument
17 char *ret = strdup(str); xstrdup()
19 release_pack_memory(strlen(str) + 1, -1); xstrdup()
20 ret = strdup(str); xstrdup()
H A Dcgroup.c76 static int add_cgroup(struct perf_evlist *evlist, char *str) add_cgroup() argument
88 if (!strcmp(cgrp->name, str)) evlist__for_each()
99 cgrp->name = str;
101 cgrp->fd = open_cgroup(str);
141 int parse_cgroups(const struct option *opt __maybe_unused, const char *str, parse_cgroups() argument
145 const char *p, *e, *eos = str + strlen(str); parse_cgroups()
155 p = strchr(str, ','); parse_cgroups()
159 if (e - str) { parse_cgroups()
161 s = strndup(str, e - str); parse_cgroups()
174 str = p+1; parse_cgroups()
H A Dstrfilter.h34 * @str: target string
36 * Compare @str and @filter. Return true if the str match the rule
38 bool strfilter__compare(struct strfilter *filter, const char *str);
H A Dcomm.h22 struct comm *comm__new(const char *str, u64 timestamp, bool exec);
24 int comm__override(struct comm *comm, const char *str, u64 timestamp,
H A Dstrfilter.c174 const char *str) strfilter_node__compare()
181 return strfilter_node__compare(node->l, str) || strfilter_node__compare()
182 strfilter_node__compare(node->r, str); strfilter_node__compare()
184 return strfilter_node__compare(node->l, str) && strfilter_node__compare()
185 strfilter_node__compare(node->r, str); strfilter_node__compare()
187 return !strfilter_node__compare(node->r, str); strfilter_node__compare()
189 return strglobmatch(str, node->p); strfilter_node__compare()
194 bool strfilter__compare(struct strfilter *filter, const char *str) strfilter__compare() argument
198 return strfilter_node__compare(filter->root, str); strfilter__compare()
173 strfilter_node__compare(struct strfilter_node *node, const char *str) strfilter_node__compare() argument
H A Dcgroup.h15 extern int parse_cgroups(const struct option *opt, const char *str, int unset);
H A Dparse-events.h30 extern int parse_events_option(const struct option *opt, const char *str,
32 extern int parse_events(struct perf_evlist *evlist, const char *str);
33 extern int parse_events_terms(struct list_head *terms, const char *str);
34 extern int parse_filter(const struct option *opt, const char *str, int unset);
68 char *str; member in union:parse_events_term::__anon14839
91 int type_term, char *config, char *str);
97 int parse_events__modifier_event(struct list_head *list, char *str, bool add);
H A Dparse-events.c230 char *str = strchr(name, ':'); tracepoint_name_to_path() local
232 if (path == NULL || str == NULL) { tracepoint_name_to_path()
237 path->system = strndup(name, str - name); tracepoint_name_to_path()
238 path->name = strdup(str+1); tracepoint_name_to_path()
300 static int parse_aliases(char *str, const char *names[][PERF_EVSEL__MAX_ALIASES], int size) parse_aliases() argument
308 if (n > longest && !strncasecmp(str, names[i][j], n)) parse_aliases()
339 char *str = op_result[i]; parse_events_add_cache() local
341 n += snprintf(name + n, MAX_NAME_LEN - n, "-%s", str); parse_events_add_cache()
344 cache_op = parse_aliases(str, perf_evsel__hw_cache_op, parse_events_add_cache()
354 cache_result = parse_aliases(str, perf_evsel__hw_cache_result, parse_events_add_cache()
624 return term->val.str; pmu_event_name()
719 static int get_event_modifier(struct event_modifier *mod, char *str, get_event_modifier() argument
737 while (*str) { get_event_modifier()
738 if (*str == 'u') { get_event_modifier()
742 } else if (*str == 'k') { get_event_modifier()
746 } else if (*str == 'h') { get_event_modifier()
750 } else if (*str == 'G') { get_event_modifier()
754 } else if (*str == 'H') { get_event_modifier()
758 } else if (*str == 'I') { get_event_modifier()
760 } else if (*str == 'p') { get_event_modifier()
765 } else if (*str == 'S') { get_event_modifier()
767 } else if (*str == 'D') { get_event_modifier()
772 ++str; get_event_modifier()
806 static int check_modifier(char *str) check_modifier() argument
808 char *p = str; check_modifier()
811 if (strlen(str) > (sizeof("ukhGHpppSDI") - 1)) check_modifier()
823 int parse_events__modifier_event(struct list_head *list, char *str, bool add) parse_events__modifier_event() argument
828 if (str == NULL) parse_events__modifier_event()
831 if (check_modifier(str)) parse_events__modifier_event()
834 if (!add && get_event_modifier(&mod, str, NULL)) parse_events__modifier_event()
838 if (add && get_event_modifier(&mod, str, evsel)) __evlist__for_each()
895 #define SET_SYMBOL(str, stype) \
897 p->symbol = str; \
977 static int parse_events__scanner(const char *str, void *data, int start_token) parse_events__scanner() argument
987 buffer = parse_events__scan_string(str, scanner); parse_events__scanner()
1003 int parse_events_terms(struct list_head *terms, const char *str) parse_events_terms() argument
1010 ret = parse_events__scanner(str, &data, PE_START_TERMS); parse_events_terms()
1022 int parse_events(struct perf_evlist *evlist, const char *str) parse_events() argument
1030 ret = parse_events__scanner(str, &data, PE_START_EVENTS); parse_events()
1047 int parse_events_option(const struct option *opt, const char *str, parse_events_option() argument
1051 int ret = parse_events(evlist, str); parse_events_option()
1054 fprintf(stderr, "invalid or unsupported event: '%s'\n", str); parse_events_option()
1060 int parse_filter(const struct option *opt, const char *str, parse_filter() argument
1075 last->filter = strdup(str); parse_filter()
1463 char *str, u64 num) new_term()
1481 term->val.str = str; new_term()
1500 int type_term, char *config, char *str) parse_events_term__str()
1503 config, str, 0); parse_events_term__str()
1528 term->val.str, term->val.num); parse_events_term__clone()
1461 new_term(struct parse_events_term **_term, int type_val, int type_term, char *config, char *str, u64 num) new_term() argument
1499 parse_events_term__str(struct parse_events_term **term, int type_term, char *config, char *str) parse_events_term__str() argument
H A Dutil.h156 extern int prefixcmp(const char *str, const char *prefix);
159 static inline const char *skip_prefix(const char *str, const char *prefix) skip_prefix() argument
162 return strncmp(str, prefix, len) ? NULL : str + len; skip_prefix()
184 extern char *xstrdup(const char *str);
220 int parse_nsec_time(const char *str, u64 *ptime);
255 s64 perf_atoll(const char *str);
256 char **argv_split(const char *str, int *argcp);
258 bool strglobmatch(const char *str, const char *pat);
259 bool strlazymatch(const char *str, const char *pat);
293 unsigned long parse_tag_value(const char *str, struct parse_tag *tags);
/linux-4.1.27/drivers/staging/board/
H A Dboard.h9 #define board_staging(str, fn) \
12 if (of_machine_is_compatible(str)) \
/linux-4.1.27/include/linux/
H A Dkbuild.h9 #define OFFSET(sym, str, mem) \
10 DEFINE(sym, offsetof(struct str, mem))
H A Dglob.h7 bool __pure glob_match(char const *pat, char const *str);
H A Dkdebug.h10 const char *str; member in struct:die_args
19 int notify_die(enum die_val val, const char *str,
H A Di8042.h66 int i8042_install_filter(bool (*filter)(unsigned char data, unsigned char str,
68 int i8042_remove_filter(bool (*filter)(unsigned char data, unsigned char str,
91 static inline int i8042_install_filter(bool (*filter)(unsigned char data, unsigned char str, i8042_install_filter() argument
97 static inline int i8042_remove_filter(bool (*filter)(unsigned char data, unsigned char str, i8042_remove_filter() argument
H A Dstring.h65 static inline __must_check char *strstrip(char *str) strstrip() argument
67 return strim(str); strstrip()
122 extern char **argv_split(gfp_t gfp, const char *str, int *argcp);
138 * strstarts - does @str start with @prefix?
139 * @str: string to examine
142 static inline bool strstarts(const char *str, const char *prefix) strstarts() argument
144 return strncmp(str, prefix, strlen(prefix)) == 0; strstarts()
/linux-4.1.27/arch/x86/boot/
H A Dprintf.c43 static char *number(char *str, long num, int base, int size, int precision, number() argument
92 *str++ = ' '; number()
94 *str++ = sign; number()
97 *str++ = '0'; number()
99 *str++ = '0'; number()
100 *str++ = ('X' | locase); number()
105 *str++ = c; number()
107 *str++ = '0'; number()
109 *str++ = tmp[i]; number()
111 *str++ = ' '; number()
112 return str; number()
120 char *str; vsprintf() local
130 for (str = buf; *fmt; ++fmt) { vsprintf()
132 *str++ = *fmt; vsprintf()
201 *str++ = ' '; vsprintf()
202 *str++ = (unsigned char)va_arg(args, int); vsprintf()
204 *str++ = ' '; vsprintf()
213 *str++ = ' '; vsprintf()
215 *str++ = *s++; vsprintf()
217 *str++ = ' '; vsprintf()
225 str = number(str, vsprintf()
233 *ip = (str - buf); vsprintf()
236 *ip = (str - buf); vsprintf()
241 *str++ = '%'; vsprintf()
262 *str++ = '%'; vsprintf()
264 *str++ = *fmt; vsprintf()
279 str = number(str, num, base, field_width, precision, flags); vsprintf()
281 *str = '\0'; vsprintf()
282 return str - buf; vsprintf()
H A Dmkcpustr.c26 const char *str; main() local
32 str = x86_cap_flags[i*32+j]; main()
38 if (!str) main()
39 str = ""; main()
41 i, j, str); main()
42 } else if (str) { main()
46 i, j, i, j, str); main()
/linux-4.1.27/lib/
H A Dcmdline.c25 static int get_range(char **str, int *pint) get_range() argument
29 (*str)++; get_range()
30 upper_range = simple_strtol((*str), NULL, 0); get_range()
39 * @str: option string
40 * @pint: (output) integer value parsed from @str
52 int get_option(char **str, int *pint) get_option() argument
54 char *cur = *str; get_option()
58 *pint = simple_strtol(cur, str, 0); get_option()
59 if (cur == *str) get_option()
61 if (**str == ',') { get_option()
62 (*str)++; get_option()
65 if (**str == '-') get_option()
74 * @str: String to be parsed
85 * the parse to end (typically a null terminator, if @str is
89 char *get_options(const char *str, int nints, int *ints) get_options() argument
94 res = get_option((char **)&str, ints + i); get_options()
99 range_nums = get_range((char **)&str, ints + i); get_options()
114 return (char *)str; get_options()
166 * @str: String to be parsed
174 bool parse_option_str(const char *str, const char *option) parse_option_str() argument
176 while (*str) { parse_option_str()
177 if (!strncmp(str, option, strlen(option))) { parse_option_str()
178 str += strlen(option); parse_option_str()
179 if (!*str || *str == ',') parse_option_str()
183 while (*str && *str != ',') parse_option_str()
184 str++; parse_option_str()
186 if (*str == ',') parse_option_str()
187 str++; parse_option_str()
H A Dargv_split.c11 static int count_argc(const char *str) count_argc() argument
16 for (was_space = true; *str; str++) { count_argc()
17 if (isspace(*str)) { count_argc()
45 * @str: the string to be split
49 * @str. This is performed by strictly splitting on white-space; no
55 * The source string at `str' may be undergoing concurrent alteration via
59 char **argv_split(gfp_t gfp, const char *str, int *argcp) argv_split() argument
66 argv_str = kstrndup(str, KMALLOC_MAX_SIZE - 1, gfp); argv_split()
H A Dglob.c13 * glob_match - Shell-style pattern matching, like !fnmatch(pat, str, 0)
15 * @str: String to match. The pattern must match the entire string.
18 * succeeds, or false (0) if it fails. Equivalent to !fnmatch(@pat, @str, 0).
26 * is at most quadratic: strlen(@str)*strlen(@pat).
31 * Like !fnmatch(@pat, @str, 0) and unlike the shell, this does NOT
40 bool __pure glob_match(char const *pat, char const *str) glob_match() argument
52 * it against the remaining unmatched tail of str. Return false glob_match()
56 unsigned char c = *str++; glob_match()
68 back_str = --str; /* Allow zero-length match */ glob_match()
116 /* Try again from last *, one character later in str. */ glob_match()
118 str = ++back_str; glob_match()
136 char const *pat, *str; member in struct:glob_test
140 static bool __pure __init test(char const *pat, char const *str, bool expected) test() argument
142 bool match = glob_match(pat, str); test()
160 printk(message, pat, str, mismatch + 3*match); test()
H A Dvsprintf.c1862 char *str, *end; vsnprintf() local
1870 str = buf; vsnprintf()
1888 if (str < end) { vsnprintf()
1889 if (copy > end - str) vsnprintf()
1890 copy = end - str; vsnprintf()
1891 memcpy(str, old_fmt, copy); vsnprintf()
1893 str += read; vsnprintf()
1910 if (str < end) vsnprintf()
1911 *str = ' '; vsnprintf()
1912 ++str; vsnprintf()
1917 if (str < end) vsnprintf()
1918 *str = c; vsnprintf()
1919 ++str; vsnprintf()
1921 if (str < end) vsnprintf()
1922 *str = ' '; vsnprintf()
1923 ++str; vsnprintf()
1929 str = string(str, end, va_arg(args, char *), spec); vsnprintf()
1933 str = pointer(fmt, str, end, va_arg(args, void *), vsnprintf()
1940 if (str < end) vsnprintf()
1941 *str = '%'; vsnprintf()
1942 ++str; vsnprintf()
1946 if (str < end) vsnprintf()
1947 *str = '%'; vsnprintf()
1948 ++str; vsnprintf()
1990 str = number(str, end, num, spec); vsnprintf()
1995 if (str < end) vsnprintf()
1996 *str = '\0'; vsnprintf()
2002 return str-buf; vsnprintf()
2159 char *str, *end; vbin_printf() local
2161 str = (char *)bin_buf; vbin_printf()
2168 str = PTR_ALIGN(str, sizeof(u32)); \ vbin_printf()
2170 if (str + sizeof(type) <= end) { \ vbin_printf()
2171 *(u32 *)str = *(u32 *)&value; \ vbin_printf()
2172 *(u32 *)(str + 4) = *((u32 *)&value + 1); \ vbin_printf()
2176 str = PTR_ALIGN(str, sizeof(type)); \ vbin_printf()
2178 if (str + sizeof(type) <= end) \ vbin_printf()
2179 *(typeof(type) *)str = (type)value; \ vbin_printf()
2181 str += sizeof(type); \ vbin_printf()
2212 if (str + len < end) vbin_printf()
2213 memcpy(str, save_str, len); vbin_printf()
2214 str += len; vbin_printf()
2255 return (u32 *)(PTR_ALIGN(str, sizeof(u32))) - bin_buf; vbin_printf()
2285 char *str, *end; bstr_printf() local
2291 str = buf; bstr_printf()
2324 if (str < end) { bstr_printf()
2325 if (copy > end - str) bstr_printf()
2326 copy = end - str; bstr_printf()
2327 memcpy(str, old_fmt, copy); bstr_printf()
2329 str += read; bstr_printf()
2346 if (str < end) bstr_printf()
2347 *str = ' '; bstr_printf()
2348 ++str; bstr_printf()
2352 if (str < end) bstr_printf()
2353 *str = c; bstr_printf()
2354 ++str; bstr_printf()
2356 if (str < end) bstr_printf()
2357 *str = ' '; bstr_printf()
2358 ++str; bstr_printf()
2366 str = string(str, end, (char *)str_arg, spec); bstr_printf()
2371 str = pointer(fmt, str, end, get_arg(void *), spec); bstr_printf()
2378 if (str < end) bstr_printf()
2379 *str = '%'; bstr_printf()
2380 ++str; bstr_printf()
2420 str = number(str, end, num, spec); bstr_printf()
2426 if (str < end) bstr_printf()
2427 *str = '\0'; bstr_printf()
2435 return str - buf; bstr_printf()
2472 const char *str = buf; vsscanf() local
2492 str = skip_spaces(str); vsscanf()
2497 if (*fmt++ != *str++) vsscanf()
2510 if (!*str) vsscanf()
2514 while (!isspace(*str) && *str) vsscanf()
2515 str++; vsscanf()
2548 *va_arg(args, int *) = str - buf; vsscanf()
2553 if (!*str) vsscanf()
2566 *s++ = *str++; vsscanf()
2567 } while (--field_width > 0 && *str); vsscanf()
2577 str = skip_spaces(str); vsscanf()
2580 while (*str && !isspace(*str) && field_width--) vsscanf()
2581 *s++ = *str++; vsscanf()
2600 /* looking for '%' in str */ vsscanf()
2601 if (*str++ != '%') vsscanf()
2612 str = skip_spaces(str); vsscanf()
2614 digit = *str; vsscanf()
2616 digit = *(str + 1); vsscanf()
2627 simple_strtol(str, &next, base) : vsscanf()
2628 simple_strtoll(str, &next, base); vsscanf()
2631 simple_strtoul(str, &next, base) : vsscanf()
2632 simple_strtoull(str, &next, base); vsscanf()
2634 if (field_width > 0 && next - str > field_width) { vsscanf()
2636 _parse_integer_fixup_radix(str, &base); vsscanf()
2637 while (next - str > field_width) { vsscanf()
2686 str = next; vsscanf()
H A Dstrnlen_user.c85 * @str: The string to measure.
103 long strnlen_user(const char __user *str, long count) strnlen_user() argument
111 src_addr = (unsigned long)str; strnlen_user()
114 return do_strnlen_user(str, count, max); strnlen_user()
122 * @str: The string to measure.
134 long strlen_user(const char __user *str) strlen_user() argument
139 src_addr = (unsigned long)str; strlen_user()
142 return do_strnlen_user(str, ~0ul, max); strlen_user()
H A Dtest-kstrtox.c9 const char *str; member in struct:test_fail
18 const char *str; \
36 rv = fn(t->str, t->base, &tmp); \
38 WARN(1, "str '%s', base %u, expected -E, got %d/" fmt "\n", \
39 t->str, t->base, rv, tmp); \
54 rv = fn(t->str, t->base, &res); \
56 WARN(1, "str '%s', base %u, expected 0/" fmt ", got %d\n", \
57 t->str, t->base, t->expected_res, rv); \
61 WARN(1, "str '%s', base %u, expected " fmt ", got " fmt "\n", \
62 t->str, t->base, t->expected_res, res); \
/linux-4.1.27/sound/pci/lola/
H A Dlola_pcm.c65 struct lola_stream *str) lola_stream_clear_pending_irq()
67 unsigned int val = lola_dsd_read(chip, str->dsd, STS); lola_stream_clear_pending_irq()
70 lola_dsd_write(chip, str->dsd, STS, val); lola_stream_clear_pending_irq()
73 static void lola_stream_start(struct lola *chip, struct lola_stream *str, lola_stream_start() argument
76 lola_stream_clear_pending_irq(chip, str); lola_stream_start()
77 lola_dsd_write(chip, str->dsd, CTL, lola_stream_start()
85 static void lola_stream_stop(struct lola *chip, struct lola_stream *str, lola_stream_stop() argument
88 lola_dsd_write(chip, str->dsd, CTL, lola_stream_stop()
93 lola_stream_clear_pending_irq(chip, str); lola_stream_stop()
96 static void wait_for_srst_clear(struct lola *chip, struct lola_stream *str) wait_for_srst_clear() argument
101 val = lola_dsd_read(chip, str->dsd, CTL); wait_for_srst_clear()
106 dev_warn(chip->card->dev, "SRST not clear (stream %d)\n", str->dsd); wait_for_srst_clear()
110 struct lola_stream *str, lola_stream_wait_for_fifo()
116 unsigned int reg = lola_dsd_read(chip, str->dsd, STS); lola_stream_wait_for_fifo()
121 dev_warn(chip->card->dev, "FIFO not ready (stream %d)\n", str->dsd); lola_stream_wait_for_fifo()
140 struct lola_stream *str; snd_pcm_group_for_each_entry() local
143 str = lola_get_stream(s); snd_pcm_group_for_each_entry()
144 if (str->prepared && str->paused) { snd_pcm_group_for_each_entry()
146 reg = lola_dsd_read(chip, str->dsd, STS); snd_pcm_group_for_each_entry()
148 pending = str->dsd + 1; snd_pcm_group_for_each_entry()
152 str->paused = 0; snd_pcm_group_for_each_entry()
171 struct lola_stream *str; snd_pcm_group_for_each_entry() local
174 str = lola_get_stream(s); snd_pcm_group_for_each_entry()
175 if (str->paused && str->prepared) snd_pcm_group_for_each_entry()
176 lola_dsd_write(chip, str->dsd, CTL, LOLA_DSD_CTL_SRUN | snd_pcm_group_for_each_entry()
182 static void lola_stream_reset(struct lola *chip, struct lola_stream *str) lola_stream_reset() argument
184 if (str->prepared) { lola_stream_reset()
185 if (str->paused) lola_stream_reset()
186 lola_sync_pause(chip, str->substream); lola_stream_reset()
187 str->prepared = 0; lola_stream_reset()
188 lola_dsd_write(chip, str->dsd, CTL, lola_stream_reset()
190 lola_stream_wait_for_fifo(chip, str, false); lola_stream_reset()
191 lola_stream_clear_pending_irq(chip, str); lola_stream_reset()
192 lola_dsd_write(chip, str->dsd, CTL, LOLA_DSD_CTL_SRST); lola_stream_reset()
193 lola_dsd_write(chip, str->dsd, LVI, 0); lola_stream_reset()
194 lola_dsd_write(chip, str->dsd, BDPU, 0); lola_stream_reset()
195 lola_dsd_write(chip, str->dsd, BDPL, 0); lola_stream_reset()
196 wait_for_srst_clear(chip, str); lola_stream_reset()
227 struct lola_stream *str = lola_get_stream(substream); lola_pcm_open() local
231 if (str->opened) { lola_pcm_open()
235 str->substream = substream; lola_pcm_open()
236 str->master = NULL; lola_pcm_open()
237 str->opened = 1; lola_pcm_open()
239 runtime->hw.channels_max = pcm->num_streams - str->index; lola_pcm_open()
260 struct lola_stream *str) lola_cleanup_slave_streams()
263 for (i = str->index + 1; i < pcm->num_streams; i++) { lola_cleanup_slave_streams()
265 if (s->master != str) lola_cleanup_slave_streams()
275 struct lola_stream *str = lola_get_stream(substream); lola_pcm_close() local
278 if (str->substream == substream) { lola_pcm_close()
279 str->substream = NULL; lola_pcm_close()
280 str->opened = 0; lola_pcm_close()
293 struct lola_stream *str = lola_get_stream(substream); lola_pcm_hw_params() local
295 str->bufsize = 0; lola_pcm_hw_params()
296 str->period_bytes = 0; lola_pcm_hw_params()
297 str->format_verb = 0; lola_pcm_hw_params()
306 struct lola_stream *str = lola_get_stream(substream); lola_pcm_hw_free() local
309 lola_stream_reset(chip, str); lola_pcm_hw_free()
310 lola_cleanup_slave_streams(pcm, str); lola_pcm_hw_free()
319 struct lola_stream *str, u32 **bdlp, setup_bdle()
328 if (str->frags >= LOLA_MAX_BDL_ENTRIES) setup_bdle()
344 str->frags++; setup_bdle()
356 struct lola_stream *str) lola_setup_periods()
361 period_bytes = str->period_bytes; lola_setup_periods()
362 periods = str->bufsize / period_bytes; lola_setup_periods()
365 bdl = (u32 *)(pcm->bdl.area + LOLA_BDL_ENTRY_SIZE * str->index); lola_setup_periods()
367 str->frags = 0; lola_setup_periods()
369 ofs = setup_bdle(substream, str, &bdl, ofs, period_bytes); lola_setup_periods()
377 str->bufsize, period_bytes); lola_setup_periods()
406 struct lola_stream *str, lola_set_stream_config()
415 err = lola_codec_read(chip, str->nid, LOLA_VERB_SET_STREAM_FORMAT, lola_set_stream_config()
416 str->format_verb, 0, &val, NULL); lola_set_stream_config()
419 str->format_verb); lola_set_stream_config()
425 verb = (str->index << 6) | i; lola_set_stream_config()
426 err = lola_codec_read(chip, str[i].nid, lola_set_stream_config()
442 struct lola_stream *str) lola_setup_controller()
446 if (str->prepared) lola_setup_controller()
450 bdl = pcm->bdl.addr + LOLA_BDL_ENTRY_SIZE * str->index; lola_setup_controller()
451 lola_dsd_write(chip, str->dsd, BDPL, (u32)bdl); lola_setup_controller()
452 lola_dsd_write(chip, str->dsd, BDPU, upper_32_bits(bdl)); lola_setup_controller()
454 lola_dsd_write(chip, str->dsd, LVI, str->frags - 1); lola_setup_controller()
455 lola_stream_clear_pending_irq(chip, str); lola_setup_controller()
457 lola_dsd_write(chip, str->dsd, CTL, lola_setup_controller()
460 str->prepared = 1; lola_setup_controller()
462 return lola_stream_wait_for_fifo(chip, str, true); lola_setup_controller()
469 struct lola_stream *str = lola_get_stream(substream); lola_pcm_prepare() local
475 lola_stream_reset(chip, str); lola_pcm_prepare()
476 lola_cleanup_slave_streams(pcm, str); lola_pcm_prepare()
477 if (str->index + runtime->channels > pcm->num_streams) { lola_pcm_prepare()
482 str[i].master = str; lola_pcm_prepare()
483 str[i].opened = 1; lola_pcm_prepare()
491 str->bufsize = bufsize; lola_pcm_prepare()
492 str->period_bytes = period_bytes; lola_pcm_prepare()
493 str->format_verb = format_verb; lola_pcm_prepare()
495 err = lola_setup_periods(chip, pcm, substream, str); lola_pcm_prepare()
504 err = lola_set_stream_config(chip, str, runtime->channels); lola_pcm_prepare()
508 err = lola_setup_controller(chip, pcm, str); lola_pcm_prepare()
510 lola_stream_reset(chip, str); lola_pcm_prepare()
520 struct lola_stream *str; lola_pcm_trigger() local
551 str = lola_get_stream(s); snd_pcm_group_for_each_entry()
553 lola_stream_start(chip, str, tstamp); snd_pcm_group_for_each_entry()
555 lola_stream_stop(chip, str, tstamp); snd_pcm_group_for_each_entry()
556 str->running = start; snd_pcm_group_for_each_entry()
557 str->paused = !start; snd_pcm_group_for_each_entry()
567 struct lola_stream *str = lola_get_stream(substream); lola_pcm_pointer() local
568 unsigned int pos = lola_dsd_read(chip, str->dsd, LPIB); lola_pcm_pointer()
570 if (pos >= str->bufsize) lola_pcm_pointer()
581 struct lola_stream *str = &pcm->streams[i]; lola_pcm_update() local
582 if (str->substream && str->running) lola_pcm_update()
583 snd_pcm_period_elapsed(str->substream); lola_pcm_update()
642 static int lola_init_stream(struct lola *chip, struct lola_stream *str, lola_init_stream() argument
648 str->nid = nid; lola_init_stream()
649 str->index = idx; lola_init_stream()
650 str->dsd = idx; lola_init_stream()
652 str->dsd += MAX_STREAM_IN_COUNT; lola_init_stream()
688 str->can_float = true; lola_init_stream()
64 lola_stream_clear_pending_irq(struct lola *chip, struct lola_stream *str) lola_stream_clear_pending_irq() argument
109 lola_stream_wait_for_fifo(struct lola *chip, struct lola_stream *str, bool ready) lola_stream_wait_for_fifo() argument
259 lola_cleanup_slave_streams(struct lola_pcm *pcm, struct lola_stream *str) lola_cleanup_slave_streams() argument
318 setup_bdle(struct snd_pcm_substream *substream, struct lola_stream *str, u32 **bdlp, int ofs, int size) setup_bdle() argument
354 lola_setup_periods(struct lola *chip, struct lola_pcm *pcm, struct snd_pcm_substream *substream, struct lola_stream *str) lola_setup_periods() argument
405 lola_set_stream_config(struct lola *chip, struct lola_stream *str, int channels) lola_set_stream_config() argument
441 lola_setup_controller(struct lola *chip, struct lola_pcm *pcm, struct lola_stream *str) lola_setup_controller() argument
/linux-4.1.27/arch/um/drivers/
H A Dmconsole_kern.h27 #define CONFIG_CHUNK(str, size, current, chunk, end) \
31 str = NULL; \
32 if(str != NULL){ \
33 strcpy(str, chunk); \
34 str += strlen(chunk); \
H A Dslirp_kern.c71 static int slirp_setup(char *str, char **mac_out, void *data) slirp_setup() argument
78 str = split_if_spec(str, mac_out, NULL); slirp_setup()
80 if (str == NULL) /* no command line given after MAC addr */ slirp_setup()
89 init->argw.argv[i++] = str; slirp_setup()
90 while(*str && *str!=',') { slirp_setup()
91 if (*str == '_') slirp_setup()
92 *str=' '; slirp_setup()
93 str++; slirp_setup()
95 if (*str != ',') slirp_setup()
97 *str++ = '\0'; slirp_setup()
H A Dfd.c19 char str[sizeof("1234567890\0")]; member in struct:fd_chan
22 static void *fd_init(char *str, int device, const struct chan_opts *opts) fd_init() argument
28 if (*str != ':') { fd_init()
33 str++; fd_init()
34 n = strtoul(str, &end, 0); fd_init()
35 if ((*end != '\0') || (end == str)) { fd_init()
37 "'%s'\n", str); fd_init()
64 sprintf(data->str, "%d", data->fd); fd_open()
65 *dev_out = data->str; fd_open()
H A Dcow_sys.h20 static inline char *cow_strdup(char *str) cow_strdup() argument
22 return uml_strdup(str); cow_strdup()
H A Dnet_user.c54 char *str; read_output() local
68 str = "length"; read_output()
78 str = "data"; read_output()
89 "errno = %d\n", str, -ret); read_output()
92 "%d of %d bytes\n", str, ret, expected); read_output()
250 char *split_if_spec(char *str, ...) split_if_spec() argument
255 va_start(ap, str); split_if_spec()
257 if (*str == '\0') split_if_spec()
259 end = strchr(str, ','); split_if_spec()
260 if (end != str) split_if_spec()
261 *arg = str; split_if_spec()
265 str = end; split_if_spec()
268 return str; split_if_spec()
H A Dstderr_console.c38 static int stderr_setup(char *str) stderr_setup() argument
40 if (!str) stderr_setup()
42 use_stderr_console = simple_strtoul(str,&str,0); stderr_setup()
H A Dtty.c19 static void *tty_chan_init(char *str, int device, const struct chan_opts *opts) tty_chan_init() argument
23 if (*str != ':') { tty_chan_init()
28 str++; tty_chan_init()
33 *data = ((struct tty_chan) { .dev = str, tty_chan_init()
H A Dchan_kern.c14 static void *not_configged_init(char *str, int device, not_configged_init() argument
347 static int one_chan_config_string(struct chan *chan, char *str, int size, one_chan_config_string() argument
353 CONFIG_CHUNK(str, size, n, "none", 1); one_chan_config_string()
357 CONFIG_CHUNK(str, size, n, chan->ops->type, 0); one_chan_config_string()
360 CONFIG_CHUNK(str, size, n, "", 1); one_chan_config_string()
364 CONFIG_CHUNK(str, size, n, ":", 0); one_chan_config_string()
365 CONFIG_CHUNK(str, size, n, chan->dev, 0); one_chan_config_string()
371 char *str, int size, char **error_out) chan_pair_config_string()
375 n = one_chan_config_string(in, str, size, error_out); chan_pair_config_string()
376 str += n; chan_pair_config_string()
380 CONFIG_CHUNK(str, size, n, "", 1); chan_pair_config_string()
384 CONFIG_CHUNK(str, size, n, ",", 1); chan_pair_config_string()
385 n = one_chan_config_string(out, str, size, error_out); chan_pair_config_string()
386 str += n; chan_pair_config_string()
388 CONFIG_CHUNK(str, size, n, "", 1); chan_pair_config_string()
393 int chan_config_string(struct line *line, char *str, int size, chan_config_string() argument
403 return chan_pair_config_string(in, out, str, size, error_out); chan_config_string()
447 static struct chan *parse_chan(struct line *line, char *str, int device, parse_chan() argument
460 if (!strncmp(str, entry->key, strlen(entry->key))) { parse_chan()
462 str += strlen(entry->key); parse_chan()
471 data = (*ops->init)(str, device, opts); parse_chan()
497 int parse_chan_pair(char *str, struct line *line, int device, parse_chan_pair() argument
510 if (!str) parse_chan_pair()
513 out = strchr(str, ','); parse_chan_pair()
515 in = str; parse_chan_pair()
535 new = parse_chan(line, str, device, opts, error_out); parse_chan_pair()
370 chan_pair_config_string(struct chan *in, struct chan *out, char *str, int size, char **error_out) chan_pair_config_string() argument
H A Dport_user.c24 static void *port_init(char *str, int device, const struct chan_opts *opts) port_init() argument
31 if (*str != ':') { port_init()
36 str++; port_init()
37 port = strtoul(str, &end, 0); port_init()
38 if ((*end != '\0') || (end == str)) { port_init()
40 str); port_init()
H A Dnet_kern.c298 static void setup_etheraddr(struct net_device *dev, char *str) setup_etheraddr() argument
304 if (str == NULL) setup_etheraddr()
308 addr[i] = simple_strtoul(str, &end, 16); setup_etheraddr()
309 if ((end == str) || setup_etheraddr()
313 "as an ethernet address\n", str); setup_etheraddr()
316 str = end + 1; setup_etheraddr()
529 static int eth_parse(char *str, int *index_out, char **str_out, eth_parse() argument
535 n = simple_strtoul(str, &end, 0); eth_parse()
536 if (end == str) { eth_parse()
541 str = end; eth_parse()
542 if (*str != '=') { eth_parse()
547 str++; eth_parse()
554 *str_out = str; eth_parse()
623 static int eth_setup_common(char *str, int index) eth_setup_common() argument
634 if (!check_transport(transport, str, index, &init, &mac)) eth_setup_common()
648 static int __init eth_setup(char *str) eth_setup() argument
654 err = eth_parse(str, &n, &str, &error); eth_setup()
657 str, error); eth_setup()
665 new->init = str; eth_setup()
677 static int net_config(char *str, char **error_out) net_config() argument
681 err = eth_parse(str, &n, &str, error_out); net_config()
688 str = kstrdup(str, GFP_KERNEL); net_config()
689 if (str == NULL) { net_config()
693 err = !eth_setup_common(str, n); net_config()
695 kfree(str); net_config()
699 static int net_id(char **str, int *start_out, int *end_out) net_id() argument
704 n = simple_strtoul(*str, &end, 0); net_id()
705 if ((*end != '\0') || (end == *str)) net_id()
710 *str = end; net_id()
893 int tap_setup_common(char *str, char *type, char **dev_name, char **mac_out, tap_setup_common() argument
898 remain = split_if_spec(str, dev_name, mac_out, gate_addr, NULL); tap_setup_common()
H A Dssl.c38 static int ssl_config(char *str, char **error_out);
39 static int ssl_get_config(char *dev, char *str, int size, char **error_out);
72 static int ssl_config(char *str, char **error_out) ssl_config() argument
74 return line_config(serial_lines, ARRAY_SIZE(serial_lines), str, &opts, ssl_config()
78 static int ssl_get_config(char *dev, char *str, int size, char **error_out) ssl_get_config() argument
80 return line_get_config(dev, serial_lines, ARRAY_SIZE(serial_lines), str, ssl_get_config()
192 static int ssl_chan_setup(char *str) ssl_chan_setup() argument
194 line_setup(conf, NR_PORTS, &def_conf, str, "serial line"); ssl_chan_setup()
H A Dstdio_console.c43 static int con_config(char *str, char **error_out);
44 static int con_get_config(char *dev, char *str, int size, char **error_out);
77 static int con_config(char *str, char **error_out) con_config() argument
79 return line_config(vts, ARRAY_SIZE(vts), str, &opts, error_out); con_config()
82 static int con_get_config(char *dev, char *str, int size, char **error_out) con_get_config() argument
84 return line_get_config(dev, vts, ARRAY_SIZE(vts), str, size, error_out); con_get_config()
193 static int console_chan_setup(char *str) console_chan_setup() argument
195 line_setup(vt_conf, MAX_TTYS, &def_conf, str, "console"); console_chan_setup()
H A Dslip_kern.c66 static int slip_setup(char *str, char **mac_out, void *data) slip_setup() argument
72 if (str[0] != '\0') slip_setup()
73 init->gate_addr = str; slip_setup()
H A Dubd_kern.c228 static int fake_ide_setup(char *str) fake_ide_setup() argument
243 char *str = *ptr, *end; parse_unit() local
246 if(isdigit(*str)) { parse_unit()
247 n = simple_strtoul(str, &end, 0); parse_unit()
248 if(end == str) parse_unit()
252 else if (('a' <= *str) && (*str <= 'z')) { parse_unit()
253 n = *str - 'a'; parse_unit()
254 str++; parse_unit()
255 *ptr = str; parse_unit()
261 * otherwise, the str pointer is used (and owned) inside ubd_devs array, so it
264 static int ubd_setup_common(char *str, int *index_out, char **error_out) ubd_setup_common() argument
272 n = *str; ubd_setup_common()
277 str++; ubd_setup_common()
278 if(!strcmp(str, "sync")){ ubd_setup_common()
284 major = simple_strtoul(str, &end, 0); ubd_setup_common()
285 if((*end != '\0') || (end == str)){ ubd_setup_common()
306 n = parse_unit(&str); ubd_setup_common()
330 switch (*str) { ubd_setup_common()
344 str++; ubd_setup_common()
351 str++; ubd_setup_common()
354 if (*str == '=') ubd_setup_common()
361 backing_file = strchr(str, ','); ubd_setup_common()
364 backing_file = strchr(str, ':'); ubd_setup_common()
377 ubd_dev->file = str; ubd_setup_common()
385 static int ubd_setup(char *str) ubd_setup() argument
390 err = ubd_setup_common(str, NULL, &error); ubd_setup()
393 "%s\n", str, error); ubd_setup()
423 static int udb_setup(char *str) udb_setup() argument
426 "udb TYPO\n", str); udb_setup()
898 static int ubd_config(char *str, char **error_out) ubd_config() argument
906 str = kstrdup(str, GFP_KERNEL); ubd_config()
907 if (str == NULL) { ubd_config()
912 ret = ubd_setup_common(str, &n, error_out); ubd_config()
931 kfree(str); ubd_config()
935 static int ubd_get_config(char *name, char *str, int size, char **error_out) ubd_get_config() argument
950 CONFIG_CHUNK(str, size, len, "", 1); ubd_get_config()
954 CONFIG_CHUNK(str, size, len, ubd_dev->file, 0); ubd_get_config()
957 CONFIG_CHUNK(str, size, len, ",", 0); ubd_get_config()
958 CONFIG_CHUNK(str, size, len, ubd_dev->cow.file, 1); ubd_get_config()
960 else CONFIG_CHUNK(str, size, len, "", 1); ubd_get_config()
967 static int ubd_id(char **str, int *start_out, int *end_out) ubd_id() argument
971 n = parse_unit(str); ubd_id()
H A Dmconsole_user.c126 int mconsole_reply_len(struct mc_request *req, const char *str, int total, mconsole_reply_len() argument
148 memcpy(reply.data, str, len); mconsole_reply_len()
151 str += len; mconsole_reply_len()
165 int mconsole_reply(struct mc_request *req, const char *str, int err, int more) mconsole_reply() argument
167 return mconsole_reply_len(req, str, strlen(str), err, more); mconsole_reply()
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/core/
H A Doption.h9 /* compares unterminated string 'str' with zero-terminated string 'cmp' */
11 strncasecmpz(const char *str, const char *cmp, size_t len) strncasecmpz() argument
15 return strncasecmp(str, cmp, len); strncasecmpz()
/linux-4.1.27/drivers/net/wan/lmc/
H A Dlmc_debug.c15 char str[80], *pstr; lmcConsoleLog() local
17 sprintf(str, KERN_DEBUG "lmc: %s: ", type); lmcConsoleLog()
18 pstr = str+strlen(str); lmcConsoleLog()
36 printk(str); lmcConsoleLog()
37 sprintf(str, KERN_DEBUG "lmc: %s: ", type); lmcConsoleLog()
38 pstr=str+strlen(str); lmcConsoleLog()
44 printk(str); lmcConsoleLog()
/linux-4.1.27/arch/c6x/kernel/
H A Dsoc.c34 static int __init get_mac_addr_from_cmdline(char *str) get_mac_addr_from_cmdline() argument
38 for (count = 0; count < 6 && *str; count++, str += 3) { get_mac_addr_from_cmdline()
39 if (!isxdigit(str[0]) || !isxdigit(str[1])) get_mac_addr_from_cmdline()
41 if (str[2] != ((count < 5) ? ':' : '\0')) get_mac_addr_from_cmdline()
46 val |= isdigit(str[i]) ? get_mac_addr_from_cmdline()
47 str[i] - '0' : toupper(str[i]) - 'A' + 10; get_mac_addr_from_cmdline()
/linux-4.1.27/net/decnet/
H A Dsysctl_net_decnet.c68 static void strip_it(char *str) strip_it() argument
71 switch (*str) { strip_it()
76 *str = 0; strip_it()
81 str++; strip_it()
89 static int parse_addr(__le16 *addr, char *str) parse_addr() argument
93 while(*str && !ISNUM(*str)) str++; parse_addr()
95 if (*str == 0) parse_addr()
98 area = (*str++ - '0'); parse_addr()
99 if (ISNUM(*str)) { parse_addr()
101 area += (*str++ - '0'); parse_addr()
104 if (*str++ != '.') parse_addr()
107 if (!ISNUM(*str)) parse_addr()
110 node = *str++ - '0'; parse_addr()
111 if (ISNUM(*str)) { parse_addr()
113 node += (*str++ - '0'); parse_addr()
115 if (ISNUM(*str)) { parse_addr()
117 node += (*str++ - '0'); parse_addr()
119 if (ISNUM(*str)) { parse_addr()
121 node += (*str++ - '0'); parse_addr()
127 if (INVALID_END_CHAR(*str)) parse_addr()
/linux-4.1.27/arch/x86/kernel/acpi/
H A Dsleep.c121 static int __init acpi_sleep_setup(char *str) acpi_sleep_setup() argument
123 while ((str != NULL) && (*str != '\0')) { acpi_sleep_setup()
124 if (strncmp(str, "s3_bios", 7) == 0) acpi_sleep_setup()
126 if (strncmp(str, "s3_mode", 7) == 0) acpi_sleep_setup()
128 if (strncmp(str, "s3_beep", 7) == 0) acpi_sleep_setup()
131 if (strncmp(str, "s4_nohwsig", 10) == 0) acpi_sleep_setup()
134 if (strncmp(str, "nonvs", 5) == 0) acpi_sleep_setup()
136 if (strncmp(str, "nonvs_s3", 8) == 0) acpi_sleep_setup()
138 if (strncmp(str, "old_ordering", 12) == 0) acpi_sleep_setup()
140 str = strchr(str, ','); acpi_sleep_setup()
141 if (str != NULL) acpi_sleep_setup()
142 str += strspn(str, ", \t"); acpi_sleep_setup()
/linux-4.1.27/arch/x86/um/shared/sysdep/
H A Dkernel-offsets.h12 #define OFFSET(sym, str, mem) \
13 DEFINE(sym, offsetof(struct str, mem));
/linux-4.1.27/include/xen/
H A Dhvc-console.h8 void xen_raw_console_write(const char *str);
13 static inline void xen_raw_console_write(const char *str) { } xen_raw_console_write() argument
/linux-4.1.27/arch/powerpc/xmon/
H A Dnonstdio.c91 char *xmon_gets(char *str, int nb) xmon_gets() argument
96 for (p = str; p < str + nb - 1; ) { xmon_gets()
99 if (p == str) xmon_gets()
108 return str; xmon_gets()
129 void xmon_puts(const char *str) xmon_puts() argument
131 xmon_write(str, strlen(str)); xmon_puts()
/linux-4.1.27/arch/powerpc/boot/
H A Dstdio.c73 static char * number(char * str, unsigned long long num, int base, int size, int precision, int type) number() argument
117 *str++ = ' '; number()
119 *str++ = sign; number()
122 *str++ = '0'; number()
124 *str++ = '0'; number()
125 *str++ = digits[33]; number()
130 *str++ = c; number()
132 *str++ = '0'; number()
134 *str++ = tmp[i]; number()
136 *str++ = ' '; number()
137 return str; number()
145 char * str; vsprintf() local
158 for (str=buf ; *fmt ; ++fmt) { vsprintf()
160 *str++ = *fmt; vsprintf()
223 *str++ = ' '; vsprintf()
224 *str++ = (unsigned char) va_arg(args, int); vsprintf()
226 *str++ = ' '; vsprintf()
238 *str++ = ' '; vsprintf()
240 *str++ = *s++; vsprintf()
242 *str++ = ' '; vsprintf()
250 str = number(str, vsprintf()
259 *ip = (str - buf); vsprintf()
262 *ip = (str - buf); vsprintf()
265 *ip = (str - buf); vsprintf()
270 *str++ = '%'; vsprintf()
291 *str++ = '%'; vsprintf()
293 *str++ = *fmt; vsprintf()
317 str = number(str, num, base, field_width, precision, flags); vsprintf()
319 *str = '\0'; vsprintf()
320 return str-buf; vsprintf()
H A Dplanetcore.c57 const char *str = planetcore_get_key(table, key); planetcore_get_decimal() local
58 if (!str) planetcore_get_decimal()
61 *val = strtoull(str, NULL, 10); planetcore_get_decimal()
67 const char *str = planetcore_get_key(table, key); planetcore_get_hex() local
68 if (!str) planetcore_get_hex()
71 *val = strtoull(str, NULL, 16); planetcore_get_hex()
/linux-4.1.27/arch/alpha/boot/
H A Dstdio.c47 static char * number(char * str, unsigned long long num, int base, int size, int precision, int type) number() argument
91 *str++ = ' '; number()
93 *str++ = sign; number()
96 *str++ = '0'; number()
98 *str++ = '0'; number()
99 *str++ = digits[33]; number()
104 *str++ = c; number()
106 *str++ = '0'; number()
108 *str++ = tmp[i]; number()
110 *str++ = ' '; number()
111 return str; number()
119 char * str; vsprintf() local
132 for (str=buf ; *fmt ; ++fmt) { vsprintf()
134 *str++ = *fmt; vsprintf()
197 *str++ = ' '; vsprintf()
198 *str++ = (unsigned char) va_arg(args, int); vsprintf()
200 *str++ = ' '; vsprintf()
212 *str++ = ' '; vsprintf()
214 *str++ = *s++; vsprintf()
216 *str++ = ' '; vsprintf()
224 str = number(str, vsprintf()
233 *ip = (str - buf); vsprintf()
236 *ip = (str - buf); vsprintf()
239 *ip = (str - buf); vsprintf()
244 *str++ = '%'; vsprintf()
265 *str++ = '%'; vsprintf()
267 *str++ = *fmt; vsprintf()
291 str = number(str, num, base, field_width, precision, flags); vsprintf()
293 *str = '\0'; vsprintf()
294 return str-buf; vsprintf()
/linux-4.1.27/drivers/mmc/core/
H A Ddebugfs.c57 const char *str; mmc_ios_show() local
74 str = "open drain"; mmc_ios_show()
77 str = "push-pull"; mmc_ios_show()
80 str = "invalid"; mmc_ios_show()
83 seq_printf(s, "bus mode:\t%u (%s)\n", ios->bus_mode, str); mmc_ios_show()
87 str = "don't care"; mmc_ios_show()
90 str = "active high"; mmc_ios_show()
93 str = "active low"; mmc_ios_show()
96 str = "invalid"; mmc_ios_show()
99 seq_printf(s, "chip select:\t%u (%s)\n", ios->chip_select, str); mmc_ios_show()
103 str = "off"; mmc_ios_show()
106 str = "up"; mmc_ios_show()
109 str = "on"; mmc_ios_show()
112 str = "invalid"; mmc_ios_show()
115 seq_printf(s, "power mode:\t%u (%s)\n", ios->power_mode, str); mmc_ios_show()
121 str = "legacy"; mmc_ios_show()
124 str = "mmc high-speed"; mmc_ios_show()
127 str = "sd high-speed"; mmc_ios_show()
130 str = "sd uhs SDR50"; mmc_ios_show()
133 str = "sd uhs SDR104"; mmc_ios_show()
136 str = "sd uhs DDR50"; mmc_ios_show()
139 str = "mmc DDR52"; mmc_ios_show()
142 str = "mmc HS200"; mmc_ios_show()
145 str = "mmc HS400"; mmc_ios_show()
148 str = "invalid"; mmc_ios_show()
151 seq_printf(s, "timing spec:\t%u (%s)\n", ios->timing, str); mmc_ios_show()
155 str = "3.30 V"; mmc_ios_show()
158 str = "1.80 V"; mmc_ios_show()
161 str = "1.20 V"; mmc_ios_show()
164 str = "invalid"; mmc_ios_show()
167 seq_printf(s, "signal voltage:\t%u (%s)\n", ios->chip_select, str); mmc_ios_show()
/linux-4.1.27/drivers/firmware/
H A Discsi_ibft.c208 char *str = buf; sprintf_ipaddr() local
216 str += sprintf(buf, "%pI4", ip + 12); sprintf_ipaddr()
221 str += sprintf(str, "%pI6", ip); sprintf_ipaddr()
223 str += sprintf(str, "\n"); sprintf_ipaddr()
224 return str - buf; sprintf_ipaddr()
227 static ssize_t sprintf_string(char *str, int len, char *buf) sprintf_string() argument
229 return sprintf(str, "%.*s\n", len, buf); sprintf_string()
261 char *str = buf; ibft_attr_show_initiator() local
268 str += sprintf(str, "%d\n", initiator->hdr.index); ibft_attr_show_initiator()
271 str += sprintf(str, "%d\n", initiator->hdr.flags); ibft_attr_show_initiator()
274 str += sprintf_ipaddr(str, initiator->isns_server); ibft_attr_show_initiator()
277 str += sprintf_ipaddr(str, initiator->slp_server); ibft_attr_show_initiator()
280 str += sprintf_ipaddr(str, initiator->pri_radius_server); ibft_attr_show_initiator()
283 str += sprintf_ipaddr(str, initiator->sec_radius_server); ibft_attr_show_initiator()
286 str += sprintf_string(str, initiator->initiator_name_len, ibft_attr_show_initiator()
294 return str - buf; ibft_attr_show_initiator()
302 char *str = buf; ibft_attr_show_nic() local
310 str += sprintf(str, "%d\n", nic->hdr.index); ibft_attr_show_nic()
313 str += sprintf(str, "%d\n", nic->hdr.flags); ibft_attr_show_nic()
316 str += sprintf_ipaddr(str, nic->ip_addr); ibft_attr_show_nic()
320 str += sprintf(str, "%pI4", &val); ibft_attr_show_nic()
323 str += sprintf(str, "%d\n", nic->origin); ibft_attr_show_nic()
326 str += sprintf_ipaddr(str, nic->gateway); ibft_attr_show_nic()
329 str += sprintf_ipaddr(str, nic->primary_dns); ibft_attr_show_nic()
332 str += sprintf_ipaddr(str, nic->secondary_dns); ibft_attr_show_nic()
335 str += sprintf_ipaddr(str, nic->dhcp); ibft_attr_show_nic()
338 str += sprintf(str, "%d\n", nic->vlan); ibft_attr_show_nic()
341 str += sprintf(str, "%pM\n", nic->mac); ibft_attr_show_nic()
344 str += sprintf_string(str, nic->hostname_len, ibft_attr_show_nic()
351 return str - buf; ibft_attr_show_nic()
359 char *str = buf; ibft_attr_show_target() local
367 str += sprintf(str, "%d\n", tgt->hdr.index); ibft_attr_show_target()
370 str += sprintf(str, "%d\n", tgt->hdr.flags); ibft_attr_show_target()
373 str += sprintf_ipaddr(str, tgt->ip_addr); ibft_attr_show_target()
376 str += sprintf(str, "%d\n", tgt->port); ibft_attr_show_target()
380 str += sprintf(str, "%x", (u8)tgt->lun[i]); ibft_attr_show_target()
381 str += sprintf(str, "\n"); ibft_attr_show_target()
384 str += sprintf(str, "%d\n", tgt->nic_assoc); ibft_attr_show_target()
387 str += sprintf(str, "%d\n", tgt->chap_type); ibft_attr_show_target()
390 str += sprintf_string(str, tgt->tgt_name_len, ibft_attr_show_target()
394 str += sprintf_string(str, tgt->chap_name_len, ibft_attr_show_target()
398 str += sprintf_string(str, tgt->chap_secret_len, ibft_attr_show_target()
402 str += sprintf_string(str, tgt->rev_chap_name_len, ibft_attr_show_target()
407 str += sprintf_string(str, tgt->rev_chap_secret_len, ibft_attr_show_target()
415 return str - buf; ibft_attr_show_target()
/linux-4.1.27/arch/arm64/kvm/
H A Dvgic-v3-switch.S57 str w4, [x3, #VGIC_V3_CPU_HCR]
58 str w5, [x3, #VGIC_V3_CPU_VMCR]
59 str w6, [x3, #VGIC_V3_CPU_MISR]
60 str w7, [x3, #VGIC_V3_CPU_EISR]
61 str w8, [x3, #VGIC_V3_CPU_ELRSR]
96 str x20, [x3, #LR_OFFSET(15)]
97 str x19, [x3, #LR_OFFSET(14)]
98 str x18, [x3, #LR_OFFSET(13)]
99 str x17, [x3, #LR_OFFSET(12)]
100 str x16, [x3, #LR_OFFSET(11)]
101 str x15, [x3, #LR_OFFSET(10)]
102 str x14, [x3, #LR_OFFSET(9)]
103 str x13, [x3, #LR_OFFSET(8)]
104 str x12, [x3, #LR_OFFSET(7)]
105 str x11, [x3, #LR_OFFSET(6)]
106 str x10, [x3, #LR_OFFSET(5)]
107 str x9, [x3, #LR_OFFSET(4)]
108 str x8, [x3, #LR_OFFSET(3)]
109 str x7, [x3, #LR_OFFSET(2)]
110 str x6, [x3, #LR_OFFSET(1)]
111 str x5, [x3, #LR_OFFSET(0)]
117 str w20, [x3, #(VGIC_V3_CPU_AP0R + 3*4)]
119 str w19, [x3, #(VGIC_V3_CPU_AP0R + 2*4)]
121 str w18, [x3, #(VGIC_V3_CPU_AP0R + 1*4)]
123 str w17, [x3, #VGIC_V3_CPU_AP0R]
129 str w20, [x3, #(VGIC_V3_CPU_AP1R + 3*4)]
131 str w19, [x3, #(VGIC_V3_CPU_AP1R + 2*4)]
133 str w18, [x3, #(VGIC_V3_CPU_AP1R + 1*4)]
135 str w17, [x3, #VGIC_V3_CPU_AP1R]
H A Dvgic-v2-switch.S67 str w4, [x3, #VGIC_V2_CPU_HCR]
68 str w5, [x3, #VGIC_V2_CPU_VMCR]
69 str w6, [x3, #VGIC_V2_CPU_MISR]
70 CPU_LE( str w7, [x3, #VGIC_V2_CPU_EISR] )
71 CPU_LE( str w8, [x3, #(VGIC_V2_CPU_EISR + 4)] )
72 CPU_LE( str w9, [x3, #VGIC_V2_CPU_ELRSR] )
73 CPU_LE( str w10, [x3, #(VGIC_V2_CPU_ELRSR + 4)] )
74 CPU_BE( str w7, [x3, #(VGIC_V2_CPU_EISR + 4)] )
75 CPU_BE( str w8, [x3, #VGIC_V2_CPU_EISR] )
76 CPU_BE( str w9, [x3, #(VGIC_V2_CPU_ELRSR + 4)] )
77 CPU_BE( str w10, [x3, #VGIC_V2_CPU_ELRSR] )
78 str w11, [x3, #VGIC_V2_CPU_APR]
81 str wzr, [x2, #GICH_HCR]
89 str w5, [x3], #4
120 str w4, [x2, #GICH_HCR]
121 str w5, [x2, #GICH_VMCR]
122 str w6, [x2, #GICH_APR]
130 str w5, [x2], #4
H A Dhyp.S57 str x21, [x3, #112]
63 str x22, [x2, #CPU_GP_REG_OFFSET(CPU_SP_EL1)]
64 str x23, [x2, #CPU_GP_REG_OFFSET(CPU_ELR_EL1)]
65 str x24, [x2, #CPU_SPSR_OFFSET(KVM_SPSR_EL1)]
135 str x18, [x3, #112]
270 str x20, [x3, #(15 * 8)]
271 str x19, [x3, #(14 * 8)]
272 str x18, [x3, #(13 * 8)]
273 str x17, [x3, #(12 * 8)]
274 str x16, [x3, #(11 * 8)]
275 str x15, [x3, #(10 * 8)]
276 str x14, [x3, #(9 * 8)]
277 str x13, [x3, #(8 * 8)]
278 str x12, [x3, #(7 * 8)]
279 str x11, [x3, #(6 * 8)]
280 str x10, [x3, #(5 * 8)]
281 str x9, [x3, #(4 * 8)]
282 str x8, [x3, #(3 * 8)]
283 str x7, [x3, #(2 * 8)]
284 str x6, [x3, #(1 * 8)]
285 str x5, [x3, #(0 * 8)]
315 str x20, [x3, #(15 * 8)]
316 str x19, [x3, #(14 * 8)]
317 str x18, [x3, #(13 * 8)]
318 str x17, [x3, #(12 * 8)]
319 str x16, [x3, #(11 * 8)]
320 str x15, [x3, #(10 * 8)]
321 str x14, [x3, #(9 * 8)]
322 str x13, [x3, #(8 * 8)]
323 str x12, [x3, #(7 * 8)]
324 str x11, [x3, #(6 * 8)]
325 str x10, [x3, #(5 * 8)]
326 str x9, [x3, #(4 * 8)]
327 str x8, [x3, #(3 * 8)]
328 str x7, [x3, #(2 * 8)]
329 str x6, [x3, #(1 * 8)]
330 str x5, [x3, #(0 * 8)]
360 str x20, [x3, #(15 * 8)]
361 str x19, [x3, #(14 * 8)]
362 str x18, [x3, #(13 * 8)]
363 str x17, [x3, #(12 * 8)]
364 str x16, [x3, #(11 * 8)]
365 str x15, [x3, #(10 * 8)]
366 str x14, [x3, #(9 * 8)]
367 str x13, [x3, #(8 * 8)]
368 str x12, [x3, #(7 * 8)]
369 str x11, [x3, #(6 * 8)]
370 str x10, [x3, #(5 * 8)]
371 str x9, [x3, #(4 * 8)]
372 str x8, [x3, #(3 * 8)]
373 str x7, [x3, #(2 * 8)]
374 str x6, [x3, #(1 * 8)]
375 str x5, [x3, #(0 * 8)]
405 str x20, [x3, #(15 * 8)]
406 str x19, [x3, #(14 * 8)]
407 str x18, [x3, #(13 * 8)]
408 str x17, [x3, #(12 * 8)]
409 str x16, [x3, #(11 * 8)]
410 str x15, [x3, #(10 * 8)]
411 str x14, [x3, #(9 * 8)]
412 str x13, [x3, #(8 * 8)]
413 str x12, [x3, #(7 * 8)]
414 str x11, [x3, #(6 * 8)]
415 str x10, [x3, #(5 * 8)]
416 str x9, [x3, #(4 * 8)]
417 str x8, [x3, #(3 * 8)]
418 str x7, [x3, #(2 * 8)]
419 str x6, [x3, #(1 * 8)]
420 str x5, [x3, #(0 * 8)]
423 str x21, [x2, #CPU_SYSREG_OFFSET(MDCCINT_EL1)]
690 str x26, [x0, #VCPU_DEBUG_FLAGS]
716 str x6, [x3, #16]
720 str x7, [x3, #24]
846 str w3, [x0, #VCPU_TIMER_CNTV_CTL]
851 str x3, [x0, #VCPU_TIMER_CNTV_CVAL]
998 str xzr, [x0, #VCPU_DEBUG_FLAGS]
1251 str w1, [x0, #VCPU_ESR_EL2]
1252 str x2, [x0, #VCPU_FAR_EL2]
1253 str x3, [x0, #VCPU_HPFAR_EL2]
/linux-4.1.27/kernel/power/
H A Dwakelock.c40 char *str = buf; pm_show_wakelocks() local
48 str += scnprintf(str, end - str, "%s ", wl->name); pm_show_wakelocks()
50 if (str > buf) pm_show_wakelocks()
51 str--; pm_show_wakelocks()
53 str += scnprintf(str, end - str, "\n"); pm_show_wakelocks()
56 return (str - buf); pm_show_wakelocks()
188 const char *str = buf; pm_wake_lock() local
197 while (*str && !isspace(*str)) pm_wake_lock()
198 str++; pm_wake_lock()
200 len = str - buf; pm_wake_lock()
204 if (*str && *str != '\n') { pm_wake_lock()
206 ret = kstrtou64(skip_spaces(str), 10, &timeout_ns); pm_wake_lock()
/linux-4.1.27/arch/mips/emma/markeins/
H A Dled.c33 void markeins_led(const char *str) markeins_led() argument
36 int len = strlen(str); markeins_led()
44 emma2rh_out8(LED_BASE + i, str[i]); markeins_led()
48 str[i]); markeins_led()
53 char str[10]; markeins_led_hex() local
55 sprintf(str, "%08x", val); markeins_led_hex()
56 markeins_led(str); markeins_led_hex()
/linux-4.1.27/arch/sh/boards/mach-sdk7786/
H A Dnmi.c28 static int __init nmi_mode_setup(char *str) nmi_mode_setup() argument
30 if (!str) nmi_mode_setup()
33 if (strcmp(str, "manual") == 0) nmi_mode_setup()
35 else if (strcmp(str, "aux") == 0) nmi_mode_setup()
37 else if (strcmp(str, "masked") == 0) nmi_mode_setup()
39 else if (strcmp(str, "any") == 0) nmi_mode_setup()
43 pr_warning("Unknown NMI mode %s\n", str); nmi_mode_setup()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/
H A Dlibcfs_string.c46 int cfs_str2mask(const char *str, const char *(*bit2str)(int bit), cfs_str2mask() argument
53 /* <str> must be a list of tokens separated by whitespace cfs_str2mask()
55 * appears first in <str>, '*oldmask' is used as the starting point cfs_str2mask()
58 while (*str != '\0') { cfs_str2mask()
59 while (isspace(*str)) cfs_str2mask()
60 str++; cfs_str2mask()
61 if (*str == '\0') cfs_str2mask()
63 if (*str == '+' || *str == '-') { cfs_str2mask()
64 op = *str++; cfs_str2mask()
68 while (isspace(*str)) cfs_str2mask()
69 str++; cfs_str2mask()
70 if (*str == '\0') /* trailing op */ cfs_str2mask()
76 while (str[len] != '\0' && !isspace(str[len]) && cfs_str2mask()
77 str[len] != '+' && str[len] != '-') cfs_str2mask()
86 strncasecmp(str, debugstr, len) == 0) { cfs_str2mask()
96 (strncasecmp(str, "ALL", len) == 0)) { cfs_str2mask()
105 "mask usage: [+|-]<all|type> ...\n", len, str); cfs_str2mask()
108 str += len; cfs_str2mask()
115 /* get the first string out of @str */ cfs_firststr()
116 char *cfs_firststr(char *str, size_t size) cfs_firststr() argument
122 while (i < size && *str && isspace(*str)) { cfs_firststr()
124 ++str; cfs_firststr()
128 if (*str == '\0') cfs_firststr()
131 end = str; cfs_firststr()
139 return str; cfs_firststr()
144 cfs_trimwhite(char *str) cfs_trimwhite() argument
148 while (isspace(*str)) cfs_trimwhite()
149 str++; cfs_trimwhite()
151 end = str + strlen(str); cfs_trimwhite()
152 while (end > str) { cfs_trimwhite()
159 return str; cfs_trimwhite()
223 * \retval 1 if first \a nob chars of \a str convert to decimal or
228 cfs_str2num_check(char *str, int nob, unsigned *num, cfs_str2num_check() argument
233 str = cfs_trimwhite(str); cfs_str2num_check()
234 *num = strtoul(str, &endp, 0); cfs_str2num_check()
235 if (endp == str) cfs_str2num_check()
238 for (; endp < str + nob; endp++) { cfs_str2num_check()
415 * \retval 1 if \a str parses to \<number\> | \<expr_list\>
419 cfs_expr_list_parse(char *str, int len, unsigned min, unsigned max, cfs_expr_list_parse() argument
431 src.ls_str = str; cfs_expr_list_parse()
496 cfs_ip_addr_parse(char *str, int len, struct list_head *list) cfs_ip_addr_parse() argument
503 src.ls_str = str; cfs_ip_addr_parse()
H A Dnidstrings.c71 char *str; libcfs_next_nidstring() local
76 str = libcfs_nidstrings[libcfs_nidstring_idx++]; libcfs_next_nidstring()
81 return str; libcfs_next_nidstring()
84 static int libcfs_lo_str2addr(const char *str, int nob, __u32 *addr) libcfs_lo_str2addr() argument
90 static void libcfs_ip_addr2str(__u32 addr, char *str) libcfs_ip_addr2str() argument
92 snprintf(str, LNET_NIDSTR_SIZE, "%u.%u.%u.%u", libcfs_ip_addr2str()
97 static int libcfs_ip_str2addr(const char *str, int nob, __u32 *addr) libcfs_ip_str2addr() argument
106 if (sscanf(str, "%u.%u.%u.%u%n", &a, &b, &c, &d, &n) >= 4 && libcfs_ip_str2addr()
117 static void libcfs_decnum_addr2str(__u32 addr, char *str) libcfs_decnum_addr2str() argument
119 snprintf(str, LNET_NIDSTR_SIZE, "%u", addr); libcfs_decnum_addr2str()
122 static void libcfs_hexnum_addr2str(__u32 addr, char *str) libcfs_hexnum_addr2str() argument
124 snprintf(str, LNET_NIDSTR_SIZE, "0x%x", addr); libcfs_hexnum_addr2str()
127 static int libcfs_num_str2addr(const char *str, int nob, __u32 *addr) libcfs_num_str2addr() argument
132 if (sscanf(str, "0x%x%n", addr, &n) >= 1 && n == nob) libcfs_num_str2addr()
136 if (sscanf(str, "0X%x%n", addr, &n) >= 1 && n == nob) libcfs_num_str2addr()
140 if (sscanf(str, "%u%n", addr, &n) >= 1 && n == nob) libcfs_num_str2addr()
151 * \retval 0 if \a str parsed to numeric address
155 libcfs_num_parse(char *str, int len, struct list_head *list) libcfs_num_parse() argument
160 rc = cfs_expr_list_parse(str, len, 0, MAX_NUMERIC_VALUE, &el); libcfs_num_parse()
188 void (*nf_addr2str)(__u32 addr, char *str);
189 int (*nf_str2addr)(const char *str, int nob, __u32 *addr);
190 int (*nf_parse_addrlist)(char *str, int len,
360 char *str; libcfs_lnd2str() local
366 str = libcfs_next_nidstring(); libcfs_lnd2str()
367 snprintf(str, LNET_NIDSTR_SIZE, "?%d?", lnd); libcfs_lnd2str()
368 return str; libcfs_lnd2str()
373 libcfs_str2lnd(const char *str) libcfs_str2lnd() argument
375 struct netstrfns *nf = libcfs_name2netstrfns(str); libcfs_str2lnd()
390 char *str = libcfs_next_nidstring(); libcfs_net2str() local
393 snprintf(str, LNET_NIDSTR_SIZE, "<%d:%d>", lnd, num); libcfs_net2str()
395 snprintf(str, LNET_NIDSTR_SIZE, "%s", nf->nf_name); libcfs_net2str()
397 snprintf(str, LNET_NIDSTR_SIZE, "%s%d", nf->nf_name, num); libcfs_net2str()
399 return str; libcfs_net2str()
411 char *str; libcfs_nid2str() local
418 str = libcfs_next_nidstring(); libcfs_nid2str()
421 snprintf(str, LNET_NIDSTR_SIZE, "%x@<%d:%d>", addr, lnd, nnum); libcfs_nid2str()
423 nf->nf_addr2str(addr, str); libcfs_nid2str()
424 nob = strlen(str); libcfs_nid2str()
426 snprintf(str + nob, LNET_NIDSTR_SIZE - nob, "@%s", libcfs_nid2str()
429 snprintf(str + nob, LNET_NIDSTR_SIZE - nob, "@%s%d", libcfs_nid2str()
433 return str; libcfs_nid2str()
438 libcfs_str2net_internal(const char *str, __u32 *net) libcfs_str2net_internal() argument
448 !strncmp(str, nf->nf_name, strlen(nf->nf_name))) libcfs_str2net_internal()
457 if (strlen(str) == (unsigned int)nob) { libcfs_str2net_internal()
463 str += nob; libcfs_str2net_internal()
464 i = strlen(str); libcfs_str2net_internal()
465 if (sscanf(str, "%u%n", &netnum, &i) < 1 || libcfs_str2net_internal()
466 i != (int)strlen(str)) libcfs_str2net_internal()
475 libcfs_str2net(const char *str) libcfs_str2net() argument
479 if (libcfs_str2net_internal(str, &net) != NULL) libcfs_str2net()
487 libcfs_str2nid(const char *str) libcfs_str2nid() argument
489 const char *sep = strchr(str, '@'); libcfs_str2nid()
499 sep = str + strlen(str); libcfs_str2nid()
505 if (!nf->nf_str2addr(str, (int)(sep - str), &addr)) libcfs_str2nid()
515 char *str = libcfs_next_nidstring(); libcfs_id2str() local
518 snprintf(str, LNET_NIDSTR_SIZE, libcfs_id2str()
520 return str; libcfs_id2str()
523 snprintf(str, LNET_NIDSTR_SIZE, "%s%u-%s", libcfs_id2str()
526 return str; libcfs_id2str()
531 libcfs_str2anynid(lnet_nid_t *nidp, const char *str) libcfs_str2anynid() argument
533 if (!strcmp(str, "*")) { libcfs_str2anynid()
538 *nidp = libcfs_str2nid(str); libcfs_str2anynid()
779 * Parses with rigorous syntax and overflow checking \a str into
780 * \<nidrange\> [ ' ' \<nidrange\> ], compiles \a str into set of
783 * str.
790 cfs_parse_nidlist(char *str, int len, struct list_head *nidlist) cfs_parse_nidlist() argument
796 src.ls_str = str; cfs_parse_nidlist()
/linux-4.1.27/arch/mips/lasat/
H A Dpicvue.h23 void pvc_write_string(const unsigned char *str, u8 addr, int line);
24 void pvc_write_string_centered(const unsigned char *str, int line);
25 void pvc_dump_string(const unsigned char *str);
H A Dpicvue.c110 void pvc_write_string(const unsigned char *str, u8 addr, int line) pvc_write_string() argument
118 while (*str != 0 && i < PVC_LINELEN) { pvc_write_string()
119 pvc_write(*str++, MODE_DATA); pvc_write_string()
124 void pvc_write_string_centered(const unsigned char *str, int line) pvc_write_string_centered() argument
126 int len = strlen(str); pvc_write_string_centered()
132 addr = (PVC_VISIBLE_CHARS - strlen(str))/2; pvc_write_string_centered()
134 pvc_write_string(str, addr, line); pvc_write_string_centered()
137 void pvc_dump_string(const unsigned char *str) pvc_dump_string() argument
139 int len = strlen(str); pvc_dump_string()
141 pvc_write_string(str, 0, 0); pvc_dump_string()
143 pvc_write_string(&str[PVC_VISIBLE_CHARS], 0, 1); pvc_dump_string()
/linux-4.1.27/arch/blackfin/include/asm/
H A Dearly_printk.h23 #define early_shadow_puts(str) early_shadow_write(NULL, str, strlen(str))
/linux-4.1.27/arch/arm/mach-at91/
H A Dpm_suspend.S60 str tmp1, [pmc, #AT91_PMC_SCDR]
94 str r0, .pmc_base
95 str r1, .sramc_base
96 str r2, .sramc1_base
99 str r0, .memtype
103 str r0, .pm_mode
117 str tmp1, .saved_mckr
123 str tmp1, [pmc, #AT91_PMC_MCKR]
129 str tmp1, .saved_pllar
133 str tmp1, [pmc, #AT91_CKGR_PLLAR]
139 str tmp1, [pmc, #AT91_CKGR_MOR]
157 str tmp1, [pmc, #AT91_CKGR_MOR]
163 str tmp1, [pmc, #AT91_CKGR_PLLAR]
177 str tmp1, [pmc, #AT91_PMC_MCKR]
221 str r3, [r2, #AT91RM9200_SDRAMC_SRR]
236 str r3, .saved_sam9_mdr
246 str r3, .saved_sam9_lpr
249 str r3, [r2, #AT91_DDRSDRC_LPR]
257 str r3, .saved_sam9_mdr1
267 str r3, .saved_sam9_lpr1
270 str r3, [r2, #AT91_DDRSDRC_LPR]
278 str r3, [r2, #AT91_DDRSDRC_MDR]
281 str r3, [r2, #AT91_DDRSDRC_LPR]
302 str r3, .saved_sam9_lpr
305 str r3, [r2, #AT91_SDRAMC_LPR]
309 str r3, [r2, #AT91_SDRAMC_LPR]
/linux-4.1.27/arch/x86/mm/
H A Dsetup_nx.c18 static int __init noexec_setup(char *str) noexec_setup() argument
20 if (!str) noexec_setup()
22 if (!strncmp(str, "on", 2)) { noexec_setup()
24 } else if (!strncmp(str, "off", 3)) { noexec_setup()
/linux-4.1.27/fs/hpfs/
H A Ddentry.c38 unsigned int len, const char *str, const struct qstr *name) hpfs_compare_dentry()
43 hpfs_adjust_length(str, &al); hpfs_compare_dentry()
47 * 'str' is the nane of an already existing dentry, so the name hpfs_compare_dentry()
53 if (hpfs_compare_names(parent->d_sb, str, al, name->name, bl, 0)) hpfs_compare_dentry()
37 hpfs_compare_dentry(const struct dentry *parent, const struct dentry *dentry, unsigned int len, const char *str, const struct qstr *name) hpfs_compare_dentry() argument
/linux-4.1.27/arch/sh/include/asm/
H A Dkdebug.h15 extern void dump_mem(const char *str, unsigned long bottom, unsigned long top);
H A Dbug.h115 extern void die(const char *str, struct pt_regs *regs, long err) __attribute__ ((noreturn));
116 extern void die_if_kernel(const char *str, struct pt_regs *regs, long err);
117 extern void die_if_no_fixup(const char *str, struct pt_regs *regs, long err);
/linux-4.1.27/arch/metag/include/asm/
H A Dbug.h9 extern void __noreturn die(const char *str, struct pt_regs *regs, long err,
/linux-4.1.27/security/keys/encrypted-keys/
H A Dencrypted.h39 static inline void dump_hmac(const char *str, const u8 *digest, dump_hmac() argument
42 if (str) dump_hmac()
43 pr_info("encrypted_key: %s", str); dump_hmac()
61 static inline void dump_hmac(const char *str, const u8 *digest, dump_hmac() argument
/linux-4.1.27/drivers/firmware/efi/libstub/
H A Defi-stub-helper.c49 void efi_printk(efi_system_table_t *sys_table_arg, char *str) efi_printk() argument
53 for (s8 = str; *s8; s8++) { efi_printk()
318 char *str; efi_parse_options() local
324 str = strstr(cmdline, "efi="); efi_parse_options()
325 if (!str) efi_parse_options()
329 str += strlen("efi="); efi_parse_options()
335 while (*str) { efi_parse_options()
336 if (!strncmp(str, "nochunk", 7)) { efi_parse_options()
337 str += strlen("nochunk"); efi_parse_options()
342 while (*str && *str != ',') efi_parse_options()
343 str++; efi_parse_options()
345 if (*str == ',') efi_parse_options()
346 str++; efi_parse_options()
371 char *str; handle_cmdline_files() local
377 str = cmd_line; handle_cmdline_files()
387 if (!str || !*str) handle_cmdline_files()
390 for (nr_files = 0; *str; nr_files++) { handle_cmdline_files()
391 str = strstr(str, option_string); handle_cmdline_files()
392 if (!str) handle_cmdline_files()
395 str += strlen(option_string); handle_cmdline_files()
398 while (*str == '/' || *str == '\\') handle_cmdline_files()
399 str++; handle_cmdline_files()
401 while (*str && *str != ' ' && *str != '\n') handle_cmdline_files()
402 str++; handle_cmdline_files()
415 str = cmd_line; handle_cmdline_files()
421 str = strstr(str, option_string); handle_cmdline_files()
422 if (!str) handle_cmdline_files()
425 str += strlen(option_string); handle_cmdline_files()
431 while (*str == '/' || *str == '\\') handle_cmdline_files()
432 str++; handle_cmdline_files()
434 while (*str && *str != ' ' && *str != '\n') { handle_cmdline_files()
438 if (*str == '/') { handle_cmdline_files()
440 str++; handle_cmdline_files()
442 *p++ = *str++; handle_cmdline_files()
/linux-4.1.27/drivers/char/tpm/
H A Dtpm-sysfs.c37 char *str = buf; pubek_show() local
58 str += pubek_show()
59 sprintf(str, pubek_show()
77 str += sprintf(str, "%02X ", data[i + 28]); pubek_show()
79 str += sprintf(str, "\n"); pubek_show()
82 rc = str - buf; pubek_show()
94 char *str = buf; pcrs_show() local
107 str += sprintf(str, "PCR-%02d: ", i); pcrs_show()
109 str += sprintf(str, "%02X ", digest[j]); pcrs_show()
110 str += sprintf(str, "\n"); pcrs_show()
112 return str - buf; pcrs_show()
185 char *str = buf; caps_show() local
191 str += sprintf(str, "Manufacturer: 0x%x\n", caps_show()
198 str += sprintf(str, caps_show()
210 str += sprintf(str, caps_show()
218 return str - buf; caps_show()
/linux-4.1.27/arch/mips/sibyte/common/
H A Dcfe_console.c12 static void cfe_console_write(struct console *cons, const char *str, cfe_console_write() argument
18 if (!str[i]) cfe_console_write()
21 if (str[i] == '\n') { cfe_console_write()
23 written = cfe_write(cfe_cons_handle, &str[last], i-last); cfe_console_write()
34 written = cfe_write(cfe_cons_handle, &str[last], count-last); cfe_console_write()
43 static int cfe_console_setup(struct console *cons, char *str) cfe_console_setup() argument
/linux-4.1.27/fs/btrfs/
H A Drcu-string.h21 char str[0]; member in struct:rcu_string
31 strncpy(ret->str, src, len); rcu_string_strdup()
35 static inline void rcu_string_free(struct rcu_string *str) rcu_string_free() argument
37 if (str) rcu_string_free()
38 kfree_rcu(str, rcu); rcu_string_free()
55 __str->str; \
/linux-4.1.27/arch/arm/mach-sa1100/
H A Dsleep.S51 str r4, [r6]
58 str r1, [r5]
120 str r3, [r0]
121 str r4, [r1]
122 str r5, [r2]
125 str r7, [r6]
128 str r8, [r6]
131 str r10, [r9]
134 str r11, [r6]
141 str r13, [r12]
/linux-4.1.27/drivers/s390/char/
H A Dtape_proc.c42 const char *str; tape_proc_show() local
66 str = tape_state_verbose[device->tape_state]; tape_proc_show()
68 str = "UNKNOWN"; tape_proc_show()
69 seq_printf(m, "%s\t", str); tape_proc_show()
73 str = tape_op_verbose[request->op]; tape_proc_show()
75 str = "---"; tape_proc_show()
76 seq_printf(m, "%s\t", str); tape_proc_show()
H A Dhmcdrv_ftp.c53 const char *str; /* command string */ hmcdrv_ftp_cmd_getid() member in struct:hmcdrv_ftp_cmd_desc
68 {.str = "get", /* [0] get (CRC = 0x68eb) */ hmcdrv_ftp_cmd_getid()
70 {.str = "dir", /* [1] dir (CRC = 0x6a9e) */ hmcdrv_ftp_cmd_getid()
72 {.str = "delete", /* [2] delete (CRC = 0x53ae) */ hmcdrv_ftp_cmd_getid()
74 {.str = "nls", /* [3] nls (CRC = 0xf87c) */ hmcdrv_ftp_cmd_getid()
76 {.str = "put", /* [4] put (CRC = 0xac56) */ hmcdrv_ftp_cmd_getid()
78 {.str = "append", /* [5] append (CRC = 0xf56e) */ hmcdrv_ftp_cmd_getid()
80 {.str = NULL} /* [6] unused */ hmcdrv_ftp_cmd_getid()
95 if (!pdesc->str || strncmp(pdesc->str, cmd, len)) hmcdrv_ftp_cmd_getid()
99 pdesc->str, pdesc->cmd); hmcdrv_ftp_cmd_getid()
/linux-4.1.27/arch/unicore32/kernel/
H A Ddebug-macro.S59 str r1, [\rx, #UART_LCR_OFFSET]
62 str r1, [\rx, #UART_DLH_OFFSET]
64 str r1, [\rx, #UART_DLL_OFFSET]
66 str r1, [\rx, #UART_FCR_OFFSET]
68 str r1, [\rx, #UART_LCR_OFFSET]
70 str r1, [\rx, #UART_IER_OFFSET]
74 str \rd, [\rx, #UART_THR_OFFSET]
H A Dtraps.c64 static void dump_mem(const char *lvl, const char *str, unsigned long bottom, dump_mem() argument
80 lvl, str, bottom, top); dump_mem()
84 char str[sizeof(" 12345678") * 8 + 1]; dump_mem() local
86 memset(str, ' ', sizeof(str)); dump_mem()
87 str[sizeof(str) - 1] = '\0'; dump_mem()
93 sprintf(str + i * 9, " %08lx", val); dump_mem()
95 sprintf(str + i * 9, " ????????"); dump_mem()
98 printk(KERN_DEFAULT "%s%04lx:%s\n", lvl, first & 0xffff, str); dump_mem()
109 char str[sizeof("00000000 ") * 5 + 2 + 1], *p = str; dump_instr() local
133 printk(KERN_DEFAULT "%sCode: %s\n", lvl, str); dump_instr()
179 static int __die(const char *str, int err, struct thread_info *thread, __die() argument
187 str, err, ++die_counter); __die()
190 ret = notify_die(DIE_OOPS, str, regs, err, tsk->thread.trap_no, \ __die()
215 void die(const char *str, struct pt_regs *regs, int err) die() argument
225 ret = __die(str, err, thread, regs); die()
240 void uc32_notify_die(const char *str, struct pt_regs *regs, uc32_notify_die() argument
249 die(str, regs, err); uc32_notify_die()
/linux-4.1.27/sound/firewire/dice/
H A Ddice-midi.c94 struct snd_rawmidi_str *str) set_midi_substream_names()
98 list_for_each_entry(subs, &str->substreams, list) { set_midi_substream_names()
107 struct snd_rawmidi_str *str; snd_dice_create_midi() local
137 str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT]; snd_dice_create_midi()
139 set_midi_substream_names(dice, str); snd_dice_create_midi()
148 str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT]; snd_dice_create_midi()
150 set_midi_substream_names(dice, str); snd_dice_create_midi()
93 set_midi_substream_names(struct snd_dice *dice, struct snd_rawmidi_str *str) set_midi_substream_names() argument
/linux-4.1.27/arch/arm/mach-tegra/
H A Dsleep-tegra30.S92 str \rd, [\base, #EMC_TIMING_CONTROL]
108 str \rd, [\r_car_base, #\pll_misc]
112 str \rd, [\r_car_base, #\pll_misc]
126 str \rd, [\car, #\iddq]
132 str \rd, [\car, #\iddq]
187 str r12, [r1]
196 str r3, [r1] @ clear CSR
213 str r3, [r2]
330 str r1, [r0, #CLK_RESET_SCLK_BURST]
331 str r1, [r0, #CLK_RESET_CCLK_BURST]
333 str r1, [r0, #CLK_RESET_CCLK_DIVIDER]
334 str r1, [r0, #CLK_RESET_SCLK_DIVIDER]
353 str r1, [r2, #PMC_PLLP_WB0_OVERRIDE]
366 str r1, [r2, #PMC_PLLP_WB0_OVERRIDE]
390 str r4, [r0, #CLK_RESET_CLK_SOURCE_MSELECT]
393 str r4, [r0, #CLK_RESET_SCLK_BURST]
400 str r4, [r0, #CLK_RESET_CCLK_BURST]
407 str r1, [r2, #PMC_IO_DPD_REQ] @ DPD_OFF
421 str r1, [r0, #EMC_XM2VTTGENPADCTRL]
423 str r1, [r0, #EMC_XM2VTTGENPADCTRL2]
425 str r1, [r0, #EMC_AUTO_CAL_INTERVAL]
430 str r1, [r0, #EMC_CFG_DIG_DLL]
442 str r1, [r0, #EMC_AUTO_CAL_CONFIG]
451 str r1, [r0, #EMC_CFG]
454 str r1, [r0, #EMC_SELF_REF] @ take DRAM out of self refresh
479 str r2, [r0, #EMC_ZQ_CAL]
489 str r2, [r0, #EMC_ZQ_CAL]
498 str r2, [r0, #EMC_MRW]
508 str r2, [r0, #EMC_MRW]
515 str r1, [r0, #EMC_REQ_CTRL]
517 str r1, [r0, #EMC_ZCAL_INTERVAL]
519 str r1, [r0, #EMC_CFG]
615 str r0, [r5, #CLK_RESET_SCLK_BURST]
620 str r0, [r5, #CLK_RESET_CCLK_BURST]
622 str r0, [r5, #CLK_RESET_CCLK_DIVIDER]
623 str r0, [r5, #CLK_RESET_SCLK_DIVIDER]
628 str r0, [r5, #CLK_RESET_CLK_SOURCE_MSELECT]
638 str r0, [r4, #PMC_PLLP_WB0_OVERRIDE]
643 str r0, [r5, #CLK_RESET_PLLP_BASE]
646 str r0, [r5, #CLK_RESET_PLLA_BASE]
649 str r0, [r5, #CLK_RESET_PLLC_BASE]
652 str r0, [r5, #CLK_RESET_PLLX_BASE]
661 str r0, [r5, #CLK_RESET_SCLK_BURST]
680 str r0, [r6, r2]
689 str r0, [r6, r2]
732 str r1, [r8, r9] @ save the content of the addr
751 str r1, [r0, #EMC_ZCAL_INTERVAL]
752 str r1, [r0, #EMC_AUTO_CAL_INTERVAL]
756 str r1, [r0, #EMC_CFG] @ disable DYN_SELF_REF
770 str r1, [r0, #EMC_REQ_CTRL] @ stall incoming DRAM requests
778 str r1, [r0, #EMC_SELF_REF]
792 str r1, [r0, #EMC_XM2VTTGENPADCTRL]
797 str r1, [r0, #EMC_XM2VTTGENPADCTRL2]
818 str r1, [r4, #PMC_IO_DPD_REQ]
H A Dsleep-tegra20.S108 str r2, [r3, r1] @ put flow controller in wait event mode
115 str r1, [r3, #0x340] @ put slave CPU in reset
158 str r12, [r2] @ flag[cpu] = 1
160 str r12, [r1] @ !turn = cpu
179 str r12, [r2]
348 str r1, [r0, #CLK_RESET_SCLK_BURST]
349 str r1, [r0, #CLK_RESET_CCLK_BURST]
351 str r1, [r0, #CLK_RESET_CCLK_DIVIDER]
352 str r1, [r0, #CLK_RESET_SCLK_DIVIDER]
367 str r1, [r7] @ restore the value in pad_save
382 str r4, [r0, #CLK_RESET_SCLK_BURST]
384 str r4, [r0, #CLK_RESET_CCLK_BURST]
389 str r1, [r0, #EMC_CFG]
392 str r1, [r0, #EMC_SELF_REF] @ take DRAM out of self refresh
394 str r1, [r0, #EMC_NOP]
395 str r1, [r0, #EMC_NOP]
396 str r1, [r0, #EMC_REFRESH]
406 str r1, [r0, #EMC_REQ_CTRL]
436 str r0, [r5, #CLK_RESET_SCLK_BURST]
437 str r0, [r5, #CLK_RESET_CCLK_BURST]
439 str r0, [r5, #CLK_RESET_CCLK_DIVIDER]
440 str r0, [r5, #CLK_RESET_SCLK_DIVIDER]
451 str r0, [r5, #CLK_RESET_PLLM_BASE]
454 str r0, [r5, #CLK_RESET_PLLP_BASE]
457 str r0, [r5, #CLK_RESET_PLLC_BASE]
461 str r0, [r5, #CLK_RESET_SCLK_BURST]
479 str r0, [r6, r1]
500 str r2, [r1, #EMC_REQ_CTRL] @ stall incoming DRAM requests
508 str r2, [r1, #EMC_SELF_REF]
528 str r1, [r4, r5] @ save the content of the addr
531 str r1, [r0] @ set the save val to the addr
541 str r0, [r2]
/linux-4.1.27/arch/arm/mach-pxa/
H A Dstandby.S31 str r1, [r0] @ make sure PSSR_PH/STS are clear
71 str r0, [r1, #PXA3_DDR_HCAL]
78 str r0, [r1, #PXA3_RCOMP]
81 str r0, [r1, #PXA3_DMCISR]
85 str r0, [r1, #PXA3_DMCIER]
90 str r0, [r1, #PXA3_DDR_HCAL]
98 str r0, [r1, #PXA3_MDCNFG]
105 str r0, [r1, #PXA3_DDR_HCAL]
109 str r0, [r1, #PXA3_DMCIER]
/linux-4.1.27/drivers/gpu/host1x/
H A Ddebug.h27 void (*fn)(void *ctx, const char *str, size_t len);
32 static inline void write_to_seqfile(void *ctx, const char *str, size_t len) write_to_seqfile() argument
34 seq_write((struct seq_file *)ctx, str, len); write_to_seqfile()
37 static inline void write_to_printk(void *ctx, const char *str, size_t len) write_to_printk() argument
39 pr_info("%s", str); write_to_printk()
/linux-4.1.27/arch/mips/loongson/common/
H A Dmachtype.c45 char *p, str[MACHTYPE_LEN + 1]; prom_init_machtype() local
56 strncpy(str, p, MACHTYPE_LEN); prom_init_machtype()
57 str[MACHTYPE_LEN] = '\0'; prom_init_machtype()
58 p = strstr(str, " "); prom_init_machtype()
63 if (strstr(system_types[machtype], str)) { prom_init_machtype()
/linux-4.1.27/arch/mips/sgi-ip32/
H A Dip32-setup.c49 static inline void str2eaddr(unsigned char *ea, unsigned char *str) str2eaddr() argument
56 if(*str == ':') str2eaddr()
57 str++; str2eaddr()
58 num = str2hexnum(*str++) << 4; str2eaddr()
59 num |= (str2hexnum(*str++)); str2eaddr()
/linux-4.1.27/arch/ia64/kernel/
H A Dmachvec.c48 char str[64]; machvec_init_from_cmdline() local
55 strlcpy(str, start + strlen("machvec="), sizeof(str)); machvec_init_from_cmdline()
56 if ( (end = strchr(str, ' ')) ) machvec_init_from_cmdline()
59 return machvec_init(str); machvec_init_from_cmdline()
H A Dsal.c47 const char *str; ia64_sal_strerror() local
49 case 0: str = "Call completed without error"; break; ia64_sal_strerror()
50 case 1: str = "Effect a warm boot of the system to complete " ia64_sal_strerror()
52 case -1: str = "Not implemented"; break; ia64_sal_strerror()
53 case -2: str = "Invalid argument"; break; ia64_sal_strerror()
54 case -3: str = "Call completed with error"; break; ia64_sal_strerror()
55 case -4: str = "Virtual address not registered"; break; ia64_sal_strerror()
56 case -5: str = "No information available"; break; ia64_sal_strerror()
57 case -6: str = "Insufficient space to add the entry"; break; ia64_sal_strerror()
58 case -7: str = "Invalid entry_addr value"; break; ia64_sal_strerror()
59 case -8: str = "Invalid interrupt vector"; break; ia64_sal_strerror()
60 case -9: str = "Requested memory not available"; break; ia64_sal_strerror()
61 case -10: str = "Unable to write to the NVM device"; break; ia64_sal_strerror()
62 case -11: str = "Invalid partition type specified"; break; ia64_sal_strerror()
63 case -12: str = "Invalid NVM_Object id specified"; break; ia64_sal_strerror()
64 case -13: str = "NVM_Object already has the maximum number " ia64_sal_strerror()
66 case -14: str = "Insufficient space in partition for the " ia64_sal_strerror()
68 case -15: str = "Insufficient data buffer space for the " ia64_sal_strerror()
70 case -16: str = "Scratch buffer required for the write/delete " ia64_sal_strerror()
72 case -17: str = "Insufficient space in the NVM_Object for the " ia64_sal_strerror()
74 case -18: str = "Invalid value specified in the partition_rec " ia64_sal_strerror()
76 case -19: str = "Record oriented I/O not supported for this " ia64_sal_strerror()
78 case -20: str = "Bad format of record to be written or " ia64_sal_strerror()
81 default: str = "Unknown SAL status code"; break; ia64_sal_strerror()
83 return str; ia64_sal_strerror()
233 force_pal_cache_flush(char *str) force_pal_cache_flush() argument
/linux-4.1.27/arch/arm/mach-imx/
H A Dsuspend-imx6.S83 str r6, [r11, #L2X0_CACHE_SYNC]
105 str r9, [r11, r8]
120 str r6, [r11, r7]
129 str r6, [r11, r7]
138 str r7, [r11, #MX6Q_MMDC_MAPSR]
147 str r7, [r11, #MX6Q_MMDC_MAPSR]
182 str r9, [r11, #MX6Q_SRC_GPR1]
183 str r1, [r11, #MX6Q_SRC_GPR2]
195 str r7, [r11, #MX6Q_MMDC_MAPSR]
200 str r7, [r11, #MX6Q_MMDC_MAPSR]
217 str r6, [r11, r9]
225 str r6, [r11, r9]
227 str r6, [r11, r9]
230 str r6, [r11, r9]
247 str r10, [r11, #MX6Q_GPC_IMR1]
248 str r10, [r11, #MX6Q_GPC_IMR2]
249 str r10, [r11, #MX6Q_GPC_IMR3]
250 str r10, [r11, #MX6Q_GPC_IMR4]
262 str r10, [r11, #MX6Q_CCM_CCR]
267 str r10, [r11, #MX6Q_CCM_CCR]
271 str r6, [r11, #MX6Q_GPC_IMR1]
272 str r7, [r11, #MX6Q_GPC_IMR2]
273 str r8, [r11, #MX6Q_GPC_IMR3]
274 str r9, [r11, #MX6Q_GPC_IMR4]
324 str r7, [r11, #MX6Q_SRC_GPR1]
325 str r7, [r11, #MX6Q_SRC_GPR2]
/linux-4.1.27/init/
H A Ddo_mounts_md.c63 static int __init md_setup(char *str) md_setup() argument
70 if (*str == 'd') { md_setup()
72 str++; md_setup()
74 if (get_option(&str, &minor) != 2) { /* MD Number */ md_setup()
78 str1 = str; md_setup()
92 switch (get_option(&str, &level)) { /* RAID level */ md_setup()
95 if (get_option(&str, &factor) != 2 || /* Chunk Size */ md_setup()
96 get_option(&str, &fault) != 2) { md_setup()
110 str = str1; md_setup()
118 minor, pername, str); md_setup()
119 md_setup_args[ent].device_names = str; md_setup()
253 static int __init raid_setup(char *str) raid_setup() argument
257 len = strlen(str) + 1; raid_setup()
261 char *comma = strchr(str+pos, ','); raid_setup()
264 wlen = (comma-str)-pos; raid_setup()
267 if (!strncmp(str, "noautodetect", wlen)) raid_setup()
269 if (!strncmp(str, "autodetect", wlen)) raid_setup()
271 if (strncmp(str, "partitionable", wlen)==0) raid_setup()
273 if (strncmp(str, "part", wlen)==0) raid_setup()
/linux-4.1.27/arch/sh/kernel/
H A Dnmi_debug.c47 static int __init nmi_debug_setup(char *str) nmi_debug_setup() argument
53 if (*str != '=') nmi_debug_setup()
56 for (p = str + 1; *p; p = sep + 1) { nmi_debug_setup()
H A Dtraps.c17 void die(const char *str, struct pt_regs *regs, long err) die() argument
27 printk("%s: %04lx [#%d]\n", str, err & 0xffff, ++die_counter); die()
38 notify_die(DIE_OOPS, str, regs, err, 255, SIGSEGV); die()
57 void die_if_kernel(const char *str, struct pt_regs *regs, long err) die_if_kernel() argument
60 die(str, regs, err); die_if_kernel()
69 void die_if_no_fixup(const char *str, struct pt_regs *regs, long err) die_if_no_fixup() argument
79 die(str, regs, err); die_if_no_fixup()
/linux-4.1.27/arch/mips/mti-malta/
H A Dmalta-display.c23 void mips_display_message(const char *str) mips_display_message() argument
32 if (*str) mips_display_message()
33 __raw_writel(*str++, display + i); mips_display_message()
/linux-4.1.27/arch/arm/mach-lpc32xx/
H A Dsuspend.S68 str WORK1_REG, [CLKPWRBASE_REG, #LPC32XX_CLKPWR_PWR_CTRL_OFFS]
70 str WORK2_REG, [CLKPWRBASE_REG, #LPC32XX_CLKPWR_PWR_CTRL_OFFS]
71 str WORK1_REG, [CLKPWRBASE_REG, #LPC32XX_CLKPWR_PWR_CTRL_OFFS]
83 str WORK1_REG, [CLKPWRBASE_REG, #LPC32XX_CLKPWR_PWR_CTRL_OFFS]
90 str WORK2_REG, [CLKPWRBASE_REG, #LPC32XX_CLKPWR_HCLK_DIV_OFFS]
96 str WORK2_REG, [CLKPWRBASE_REG, #LPC32XX_CLKPWR_HCLKPLL_CTRL_OFFS]
100 str WORK1_REG, [CLKPWRBASE_REG, #LPC32XX_CLKPWR_PWR_CTRL_OFFS]
109 str SAVED_HCLK_PLL_REG, [CLKPWRBASE_REG,\
118 str SAVED_PWR_CTRL_REG, [CLKPWRBASE_REG,\
122 str SAVED_HCLK_DIV_REG, [CLKPWRBASE_REG,\
128 str WORK1_REG, [CLKPWRBASE_REG, #LPC32XX_CLKPWR_PWR_CTRL_OFFS]
129 str SAVED_PWR_CTRL_REG, [CLKPWRBASE_REG,\
/linux-4.1.27/drivers/xen/xenfs/
H A Dxenstored.c14 const char *str = (const char *)file->private_data; xsd_read() local
15 return simple_read_from_buffer(buf, size, off, str, strlen(str)); xsd_read()
/linux-4.1.27/arch/x86/pci/
H A Dcommon.c533 char *__init pcibios_setup(char *str) pcibios_setup() argument
535 if (!strcmp(str, "off")) { pcibios_setup()
538 } else if (!strcmp(str, "bfsort")) { pcibios_setup()
541 } else if (!strcmp(str, "nobfsort")) { pcibios_setup()
546 else if (!strcmp(str, "bios")) { pcibios_setup()
549 } else if (!strcmp(str, "nobios")) { pcibios_setup()
552 } else if (!strcmp(str, "biosirq")) { pcibios_setup()
555 } else if (!strncmp(str, "pirqaddr=", 9)) { pcibios_setup()
556 pirq_table_addr = simple_strtoul(str+9, NULL, 0); pcibios_setup()
561 else if (!strcmp(str, "conf1")) { pcibios_setup()
565 else if (!strcmp(str, "conf2")) { pcibios_setup()
571 else if (!strcmp(str, "nommconf")) { pcibios_setup()
575 else if (!strcmp(str, "check_enable_amd_mmconf")) { pcibios_setup()
580 else if (!strcmp(str, "noacpi")) { pcibios_setup()
584 else if (!strcmp(str, "noearly")) { pcibios_setup()
588 else if (!strcmp(str, "usepirqmask")) { pcibios_setup()
591 } else if (!strncmp(str, "irqmask=", 8)) { pcibios_setup()
592 pcibios_irq_mask = simple_strtol(str+8, NULL, 0); pcibios_setup()
594 } else if (!strncmp(str, "lastbus=", 8)) { pcibios_setup()
595 pcibios_last_bus = simple_strtol(str+8, NULL, 0); pcibios_setup()
597 } else if (!strcmp(str, "rom")) { pcibios_setup()
600 } else if (!strcmp(str, "norom")) { pcibios_setup()
603 } else if (!strcmp(str, "nobar")) { pcibios_setup()
606 } else if (!strcmp(str, "assign-busses")) { pcibios_setup()
609 } else if (!strcmp(str, "use_crs")) { pcibios_setup()
612 } else if (!strcmp(str, "nocrs")) { pcibios_setup()
615 } else if (!strcmp(str, "earlydump")) { pcibios_setup()
618 } else if (!strcmp(str, "routeirq")) { pcibios_setup()
621 } else if (!strcmp(str, "skip_isa_align")) { pcibios_setup()
624 } else if (!strcmp(str, "noioapicquirk")) { pcibios_setup()
627 } else if (!strcmp(str, "ioapicreroute")) { pcibios_setup()
631 } else if (!strcmp(str, "noioapicreroute")) { pcibios_setup()
636 return str; pcibios_setup()
/linux-4.1.27/security/tomoyo/
H A Dload_policy.c19 * @str: Program to use as a policy loader (e.g. /sbin/tomoyo-init ).
23 static int __init tomoyo_loader_setup(char *str) tomoyo_loader_setup() argument
25 tomoyo_loader = str; tomoyo_loader_setup()
58 * @str: Program to use as an activation trigger (e.g. /sbin/init ).
62 static int __init tomoyo_trigger_setup(char *str) tomoyo_trigger_setup() argument
64 tomoyo_trigger = str; tomoyo_trigger_setup()
H A Drealpath.c13 * @str: String in binary format.
14 * @str_len: Size of @str in byte.
16 * Returns pointer to @str in ascii format on success, NULL otherwise.
21 char *tomoyo_encode2(const char *str, int str_len) tomoyo_encode2() argument
25 const char *p = str; tomoyo_encode2()
47 p = str; tomoyo_encode2()
69 * @str: String in binary format.
71 * Returns pointer to @str in ascii format on success, NULL otherwise.
76 char *tomoyo_encode(const char *str) tomoyo_encode() argument
78 return str ? tomoyo_encode2(str, strlen(str)) : NULL; tomoyo_encode()
/linux-4.1.27/tools/perf/ui/browsers/
H A Dheader.c15 char *str = *arg; ui_browser__argv_write() local
20 if (offset >= strlen(str)) ui_browser__argv_write()
21 str = empty; ui_browser__argv_write()
23 str = str + offset; ui_browser__argv_write()
28 slsmg_write_nstring(str, browser->width); ui_browser__argv_write()
/linux-4.1.27/drivers/staging/lustre/include/linux/libcfs/
H A Dlibcfs_string.h50 int cfs_str2mask(const char *str, const char *(*bit2str)(int bit),
53 char *cfs_firststr(char *str, size_t size);
81 char *cfs_trimwhite(char *str);
83 int cfs_str2num_check(char *str, int nob, unsigned *num,
98 int cfs_expr_list_parse(char *str, int len, unsigned min, unsigned max,
101 int cfs_ip_addr_parse(char *str, int len, struct list_head *list);
105 #define strtoul(str, endp, base) simple_strtoul(str, endp, base)
/linux-4.1.27/arch/xtensa/platforms/xtfpga/include/platform/
H A Dlcd.h16 void lcd_disp_at_pos(char *str, unsigned char pos);
22 static inline void lcd_disp_at_pos(char *str, unsigned char pos) lcd_disp_at_pos() argument
/linux-4.1.27/crypto/
H A Dfips.c19 static int fips_enable(char *str) fips_enable() argument
21 fips_enabled = !!simple_strtol(str, NULL, 0); fips_enable()
/linux-4.1.27/include/uapi/drm/
H A Darmada_drm.h16 #define ARMADA_IOCTL(dir, name, str) \
17 DRM_##dir(DRM_COMMAND_BASE + DRM_ARMADA_##name, struct drm_armada_##str)
/linux-4.1.27/arch/mips/include/asm/txx9/
H A Dpci.h36 extern char * (*txx9_board_pcibios_setup)(char *str);
37 char *txx9_pcibios_setup(char *str);
/linux-4.1.27/arch/arc/include/asm/
H A Dbug.h20 void show_kernel_fault_diag(const char *str, struct pt_regs *regs,
22 void die(const char *str, struct pt_regs *regs, unsigned long address);
/linux-4.1.27/net/ceph/
H A Dceph_strings.c22 #define GENERATE_CASE(op, opcode, str) case CEPH_OSD_OP_##op: return (str); ceph_osd_op_name()
H A Dceph_hash.c23 unsigned int ceph_str_hash_rjenkins(const char *str, unsigned int length) ceph_str_hash_rjenkins() argument
25 const unsigned char *k = (const unsigned char *)str; ceph_str_hash_rjenkins()
84 unsigned int ceph_str_hash_linux(const char *str, unsigned int length) ceph_str_hash_linux() argument
90 c = *str++; ceph_str_hash_linux()
/linux-4.1.27/arch/arm/kvm/
H A Dinterrupts_head.S226 str r2, [vcpu, #VCPU_USR_SP]
227 str r3, [vcpu, #VCPU_USR_LR]
232 str r2, [vcpu, #VCPU_PC]
233 str r3, [vcpu, #VCPU_CPSR]
264 str r2, [vcpu, #CP15_OFFSET(c1_SCTLR)]
265 str r3, [vcpu, #CP15_OFFSET(c1_CPACR)]
266 str r4, [vcpu, #CP15_OFFSET(c2_TTBCR)]
267 str r5, [vcpu, #CP15_OFFSET(c3_DACR)]
272 str r10, [vcpu, #CP15_OFFSET(c10_PRRR)]
273 str r11, [vcpu, #CP15_OFFSET(c10_NMRR)]
274 str r12, [vcpu, #CP15_OFFSET(c0_CSSELR)]
292 str r2, [vcpu, #CP15_OFFSET(c13_CID)]
293 str r3, [vcpu, #CP15_OFFSET(c13_TID_URW)]
294 str r4, [vcpu, #CP15_OFFSET(c13_TID_URO)]
295 str r5, [vcpu, #CP15_OFFSET(c13_TID_PRIV)]
296 str r6, [vcpu, #CP15_OFFSET(c5_DFSR)]
297 str r7, [vcpu, #CP15_OFFSET(c5_IFSR)]
298 str r8, [vcpu, #CP15_OFFSET(c5_ADFSR)]
299 str r9, [vcpu, #CP15_OFFSET(c5_AIFSR)]
300 str r10, [vcpu, #CP15_OFFSET(c6_DFAR)]
301 str r11, [vcpu, #CP15_OFFSET(c6_IFAR)]
302 str r12, [vcpu, #CP15_OFFSET(c12_VBAR)]
313 str r2, [vcpu, #CP15_OFFSET(c14_CNTKCTL)]
316 str r6, [vcpu, #CP15_OFFSET(c10_AMAIR0)]
317 str r7, [vcpu, #CP15_OFFSET(c10_AMAIR1)]
432 str r3, [r11, #VGIC_V2_CPU_HCR]
433 str r4, [r11, #VGIC_V2_CPU_VMCR]
434 str r5, [r11, #VGIC_V2_CPU_MISR]
436 str r6, [r11, #(VGIC_V2_CPU_EISR + 4)]
437 str r7, [r11, #VGIC_V2_CPU_EISR]
438 str r8, [r11, #(VGIC_V2_CPU_ELRSR + 4)]
439 str r9, [r11, #VGIC_V2_CPU_ELRSR]
441 str r6, [r11, #VGIC_V2_CPU_EISR]
442 str r7, [r11, #(VGIC_V2_CPU_EISR + 4)]
443 str r8, [r11, #VGIC_V2_CPU_ELRSR]
444 str r9, [r11, #(VGIC_V2_CPU_ELRSR + 4)]
446 str r10, [r11, #VGIC_V2_CPU_APR]
450 str r5, [r2, #GICH_HCR]
458 str r6, [r3], #4
487 str r3, [r2, #GICH_HCR]
488 str r4, [r2, #GICH_VMCR]
489 str r8, [r2, #GICH_APR]
497 str r6, [r2], #4
520 str r2, [vcpu, #VCPU_TIMER_CNTV_CTL]
/linux-4.1.27/security/selinux/ss/
H A Dcontext.h32 char *str; /* string representation if context cannot be mapped. */ member in struct:context
124 if (src->str) { context_cpy()
125 dst->str = kstrdup(src->str, GFP_ATOMIC); context_cpy()
126 if (!dst->str) context_cpy()
130 dst->str = NULL; context_cpy()
135 kfree(dst->str); context_cpy()
144 kfree(c->str); context_destroy()
145 c->str = NULL; context_destroy()
153 return (c1->len == c2->len && !strcmp(c1->str, c2->str)); context_cmp()
/linux-4.1.27/drivers/firmware/efi/
H A Defi.c58 static int __init parse_efi_cmdline(char *str) parse_efi_cmdline() argument
60 if (!str) { parse_efi_cmdline()
65 if (parse_option_str(str, "noruntime")) parse_efi_cmdline()
81 char *str = buf; systab_show() local
87 str += sprintf(str, "MPS=0x%lx\n", efi.mps); systab_show()
89 str += sprintf(str, "ACPI20=0x%lx\n", efi.acpi20); systab_show()
91 str += sprintf(str, "ACPI=0x%lx\n", efi.acpi); systab_show()
93 str += sprintf(str, "SMBIOS=0x%lx\n", efi.smbios); systab_show()
95 str += sprintf(str, "SMBIOS3=0x%lx\n", efi.smbios3); systab_show()
97 str += sprintf(str, "HCDP=0x%lx\n", efi.hcdp); systab_show()
99 str += sprintf(str, "BOOTINFO=0x%lx\n", efi.boot_info); systab_show()
101 str += sprintf(str, "UGA=0x%lx\n", efi.uga); systab_show()
103 return str - buf; systab_show()
H A Defivars.c126 char *str = buf; efivar_guid_read() local
131 efi_guid_to_str(&var->VendorGuid, str); efivar_guid_read()
132 str += strlen(str); efivar_guid_read()
133 str += sprintf(str, "\n"); efivar_guid_read()
135 return str - buf; efivar_guid_read()
142 char *str = buf; efivar_attr_read() local
152 str += sprintf(str, "EFI_VARIABLE_NON_VOLATILE\n"); efivar_attr_read()
154 str += sprintf(str, "EFI_VARIABLE_BOOTSERVICE_ACCESS\n"); efivar_attr_read()
156 str += sprintf(str, "EFI_VARIABLE_RUNTIME_ACCESS\n"); efivar_attr_read()
158 str += sprintf(str, "EFI_VARIABLE_HARDWARE_ERROR_RECORD\n"); efivar_attr_read()
160 str += sprintf(str, efivar_attr_read()
164 str += sprintf(str, efivar_attr_read()
167 str += sprintf(str, "EFI_VARIABLE_APPEND_WRITE\n"); efivar_attr_read()
168 return str - buf; efivar_attr_read()
175 char *str = buf; efivar_size_read() local
184 str += sprintf(str, "0x%lx\n", var->DataSize); efivar_size_read()
185 return str - buf; efivar_size_read()
/linux-4.1.27/arch/arm/mach-iop13xx/
H A Dsetup.c511 static int __init iop13xx_init_uart_setup(char *str) iop13xx_init_uart_setup() argument
513 if (str) { iop13xx_init_uart_setup()
514 while (*str != '\0') { iop13xx_init_uart_setup()
515 switch(*str) { iop13xx_init_uart_setup()
527 " at character: \'%c\'", *str); iop13xx_init_uart_setup()
528 *(str + 1) = '\0'; iop13xx_init_uart_setup()
531 str++; iop13xx_init_uart_setup()
537 static int __init iop13xx_init_i2c_setup(char *str) iop13xx_init_i2c_setup() argument
539 if (str) { iop13xx_init_i2c_setup()
540 while (*str != '\0') { iop13xx_init_i2c_setup()
541 switch(*str) { iop13xx_init_i2c_setup()
556 " at character: \'%c\'", *str); iop13xx_init_i2c_setup()
557 *(str + 1) = '\0'; iop13xx_init_i2c_setup()
560 str++; iop13xx_init_i2c_setup()
566 static int __init iop13xx_init_adma_setup(char *str) iop13xx_init_adma_setup() argument
568 if (str) { iop13xx_init_adma_setup()
569 while (*str != '\0') { iop13xx_init_adma_setup()
570 switch (*str) { iop13xx_init_adma_setup()
585 " at character: \'%c\'", *str); iop13xx_init_adma_setup()
586 *(str + 1) = '\0'; iop13xx_init_adma_setup()
589 str++; iop13xx_init_adma_setup()
/linux-4.1.27/arch/xtensa/platforms/xtfpga/
H A Dlcd.c66 void lcd_disp_at_pos(char *str, unsigned char pos) lcd_disp_at_pos() argument
70 while (*str != 0) { lcd_disp_at_pos()
71 lcd_put_byte(LCD_DATA_ADDR, *str); lcd_disp_at_pos()
73 str++; lcd_disp_at_pos()
/linux-4.1.27/arch/sparc/include/asm/
H A Dbug.h23 void __noreturn die_if_kernel(char *str, struct pt_regs *regs);
/linux-4.1.27/arch/mips/fw/lib/
H A Dcmdline.c90 char *str; fw_getenvl() local
93 str = fw_getenv(envname); fw_getenvl()
94 if (str) { fw_getenvl()
95 tmp = kstrtoul(str, 0, &envl); fw_getenvl()
/linux-4.1.27/arch/arm/lib/
H A Dtestchangebit.S15 testop _test_and_change_bit, eor, str
H A Dputuser.S68 4: TUSER(str) r2, [r0]
76 5: TUSER(str) r2, [r0]
77 6: TUSER(str) r3, [r0, #4]
79 5: TUSER(str) r2, [r0], #4
80 6: TUSER(str) r3, [r0]
/linux-4.1.27/arch/arm/mach-davinci/
H A Dsleep.S68 str ip, [r0, #DDR2_SDRCR_OFFSET]
72 str ip, [r0, #DDR2_SDRCR_OFFSET]
87 str ip, [r3, #PLLDIV1]
93 str ip, [r3, #PLLCTL]
103 str ip, [r3, #PLLCTL]
109 str ip, [r4]
116 str ip, [r4]
123 str ip, [r3, #PLLCTL]
128 str ip, [r3, #PLLCTL]
137 str ip, [r3, #PLLCTL]
148 str ip, [r3, #PLLCTL]
154 str ip, [r3, #PLLDIV1]
168 str ip, [r0, #DDR2_SDRCR_OFFSET]
172 str ip, [r0, #DDR2_SDRCR_OFFSET]
193 str ip, [r1, r6]
198 str ip, [r1, #PTCMD]
/linux-4.1.27/samples/bpf/
H A Dtracex2_user.c12 static void stars(char *str, long val, long max, int width) stars() argument
17 str[i] = '*'; stars()
19 str[i - 1] = '+'; stars()
20 str[i] = '\0'; stars()
/linux-4.1.27/security/apparmor/include/
H A Dapparmor.h67 void aa_info_message(const char *str);
87 * aa_strneq - compare null terminated @str to a non null terminated substring
88 * @str: a null terminated string
92 * The @str string must be full consumed for this to be considered a match
94 static inline bool aa_strneq(const char *str, const char *sub, int len) aa_strneq() argument
96 return !strncmp(str, sub, len) && !str[len]; aa_strneq()
/linux-4.1.27/sound/firewire/bebob/
H A Dbebob_midi.c114 struct snd_rawmidi_str *str) set_midi_substream_names()
118 list_for_each_entry(subs, &str->substreams, list) { set_midi_substream_names()
128 struct snd_rawmidi_str *str; snd_bebob_create_midi_devices() local
148 str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT]; snd_bebob_create_midi_devices()
150 set_midi_substream_names(bebob, str); snd_bebob_create_midi_devices()
159 str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT]; snd_bebob_create_midi_devices()
161 set_midi_substream_names(bebob, str); snd_bebob_create_midi_devices()
113 set_midi_substream_names(struct snd_bebob *bebob, struct snd_rawmidi_str *str) set_midi_substream_names() argument
/linux-4.1.27/sound/firewire/fireworks/
H A Dfireworks_midi.c115 struct snd_rawmidi_str *str) set_midi_substream_names()
119 list_for_each_entry(subs, &str->substreams, list) { set_midi_substream_names()
128 struct snd_rawmidi_str *str; snd_efw_create_midi_devices() local
148 str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT]; snd_efw_create_midi_devices()
150 set_midi_substream_names(efw, str); snd_efw_create_midi_devices()
159 str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT]; snd_efw_create_midi_devices()
161 set_midi_substream_names(efw, str); snd_efw_create_midi_devices()
114 set_midi_substream_names(struct snd_efw *efw, struct snd_rawmidi_str *str) set_midi_substream_names() argument
/linux-4.1.27/sound/firewire/oxfw/
H A Doxfw-midi.c132 struct snd_rawmidi_str *str) set_midi_substream_names()
136 list_for_each_entry(subs, &str->substreams, list) { set_midi_substream_names()
147 struct snd_rawmidi_str *str; snd_oxfw_create_midi() local
187 str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT]; snd_oxfw_create_midi()
189 set_midi_substream_names(oxfw, str); snd_oxfw_create_midi()
198 str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT]; snd_oxfw_create_midi()
200 set_midi_substream_names(oxfw, str); snd_oxfw_create_midi()
131 set_midi_substream_names(struct snd_oxfw *oxfw, struct snd_rawmidi_str *str) set_midi_substream_names() argument
/linux-4.1.27/tools/iio/
H A Dlsiio.c33 static inline int check_prefix(const char *str, const char *prefix) check_prefix() argument
35 return strlen(str) > strlen(prefix) && check_prefix()
36 strncmp(str, prefix, strlen(prefix)) == 0; check_prefix()
39 static inline int check_postfix(const char *str, const char *postfix) check_postfix() argument
41 return strlen(str) > strlen(postfix) && check_postfix()
42 strcmp(str + strlen(str) - strlen(postfix), postfix) == 0; check_postfix()
/linux-4.1.27/tools/perf/
H A Dbuiltin-probe.c70 static int parse_probe_event(const char *str) parse_probe_event() argument
75 pr_debug("probe-definition(%d): %s\n", params.nevents, str); parse_probe_event()
90 ret = parse_perf_probe_command(str, pev); parse_probe_event()
162 const char *str, int unset __maybe_unused) opt_add_probe_event()
164 if (str) { opt_add_probe_event()
166 return parse_probe_event(str); opt_add_probe_event()
172 const char *str, int unset __maybe_unused) opt_del_probe_event()
174 if (str) { opt_del_probe_event()
178 strlist__add(params.dellist, str); opt_del_probe_event()
183 static int opt_set_target(const struct option *opt, const char *str, opt_set_target() argument
189 if (str) { opt_set_target()
200 if (params.uprobes || strchr(str, '/')) { opt_set_target()
201 tmp = realpath(str, NULL); opt_set_target()
203 pr_warning("Failed to get the absolute path of %s: %m\n", str); opt_set_target()
207 tmp = strdup(str); opt_set_target()
222 const char *str, int unset __maybe_unused) opt_show_lines()
226 if (!str) opt_show_lines()
236 ret = parse_line_range_desc(str, &params.line_range); opt_show_lines()
242 const char *str, int unset __maybe_unused) opt_show_vars()
247 if (!str) opt_show_vars()
250 ret = parse_probe_event(str); opt_show_vars()
262 const char *str, int unset __maybe_unused) opt_set_filter()
266 if (str) { opt_set_filter()
267 pr_debug2("Set filter: %s\n", str); opt_set_filter()
270 params.filter = strfilter__new(str, &err); opt_set_filter()
272 pr_err("Filter parse error at %td.\n", err - str + 1); opt_set_filter()
273 pr_err("Source: \"%s\"\n", str); opt_set_filter()
274 pr_err(" %*c\n", (int)(err - str + 1), '^'); opt_set_filter()
161 opt_add_probe_event(const struct option *opt __maybe_unused, const char *str, int unset __maybe_unused) opt_add_probe_event() argument
171 opt_del_probe_event(const struct option *opt __maybe_unused, const char *str, int unset __maybe_unused) opt_del_probe_event() argument
221 opt_show_lines(const struct option *opt __maybe_unused, const char *str, int unset __maybe_unused) opt_show_lines() argument
241 opt_show_vars(const struct option *opt __maybe_unused, const char *str, int unset __maybe_unused) opt_show_vars() argument
261 opt_set_filter(const struct option *opt __maybe_unused, const char *str, int unset __maybe_unused) opt_set_filter() argument
/linux-4.1.27/drivers/edac/
H A Dedac_stub.c35 static int __init edac_report_setup(char *str) edac_report_setup() argument
37 if (!str) edac_report_setup()
40 if (!strncmp(str, "on", 2)) edac_report_setup()
42 else if (!strncmp(str, "off", 3)) edac_report_setup()
44 else if (!strncmp(str, "force", 5)) edac_report_setup()
/linux-4.1.27/arch/metag/tbx/
H A Dtbistring.c26 const char *str, int match_len) __TBIFindStr()
41 if (match_len && str[match_len-1] == '\0') __TBIFindStr()
74 if (!strncmp(str, (const char *)search->String, __TBIFindStr()
86 const void *__TBITransStr(const char *str, int len) __TBITransStr() argument
93 search = __TBIFindStr(search, str, len); __TBITransStr()
25 __TBIFindStr(const TBISTR *start, const char *str, int match_len) __TBIFindStr() argument
/linux-4.1.27/arch/arm64/kernel/
H A Dtraps.c54 static void dump_mem(const char *lvl, const char *str, unsigned long bottom, dump_mem() argument
69 printk("%s%s(0x%016lx to 0x%016lx)\n", lvl, str, bottom, top); dump_mem()
73 char str[sizeof(" 12345678") * 8 + 1]; dump_mem() local
75 memset(str, ' ', sizeof(str)); dump_mem()
76 str[sizeof(str) - 1] = '\0'; dump_mem()
82 sprintf(str + i * 9, " %08x", val); dump_mem()
84 sprintf(str + i * 9, " ????????"); dump_mem()
87 printk("%s%04lx:%s\n", lvl, first & 0xffff, str); dump_mem()
105 char str[sizeof("00000000 ") * 5 + 2 + 1], *p = str; dump_instr() local
128 printk("%sCode: %s\n", lvl, str); dump_instr()
188 static int __die(const char *str, int err, struct thread_info *thread, __die() argument
196 str, err, ++die_counter); __die()
199 ret = notify_die(DIE_OOPS, str, regs, err, 0, SIGSEGV); __die()
223 void die(const char *str, struct pt_regs *regs, int err) die() argument
233 ret = __die(str, err, thread, regs); die()
251 void arm64_notify_die(const char *str, struct pt_regs *regs, arm64_notify_die() argument
259 die(str, regs, err); arm64_notify_die()
/linux-4.1.27/fs/cifs/
H A Dsmbencrypt.c52 str_to_key(unsigned char *str, unsigned char *key) str_to_key() argument
56 key[0] = str[0] >> 1; str_to_key()
57 key[1] = ((str[0] & 0x01) << 6) | (str[1] >> 2); str_to_key()
58 key[2] = ((str[1] & 0x03) << 5) | (str[2] >> 3); str_to_key()
59 key[3] = ((str[2] & 0x07) << 4) | (str[3] >> 4); str_to_key()
60 key[4] = ((str[3] & 0x0F) << 3) | (str[4] >> 5); str_to_key()
61 key[5] = ((str[4] & 0x1F) << 2) | (str[5] >> 6); str_to_key()
62 key[6] = ((str[5] & 0x3F) << 1) | (str[6] >> 7); str_to_key()
63 key[7] = str[6] & 0x7F; str_to_key()
/linux-4.1.27/scripts/
H A Dkallsyms.c85 static inline int is_arm_mapping_symbol(const char *str) is_arm_mapping_symbol() argument
87 return str[0] == '$' && strchr("axtd", str[1]) is_arm_mapping_symbol()
88 && (str[2] == '\0' || str[2] == '.'); is_arm_mapping_symbol()
114 char str[500]; read_symbol() local
118 rc = fscanf(in, "%llx %c %499s\n", &s->addr, &stype, str); read_symbol()
120 if (rc != EOF && fgets(str, 500, in) == NULL) read_symbol()
124 if (strlen(str) > KSYM_NAME_LEN) { read_symbol()
127 str, strlen(str), KSYM_NAME_LEN); read_symbol()
131 sym = str; read_symbol()
133 if (symbol_prefix_char && str[0] == symbol_prefix_char) read_symbol()
156 else if (str[0] == '$') read_symbol()
164 s->len = strlen(str) + 1; read_symbol()
171 strcpy((char *)s->sym + 1, str); read_symbol()
460 static void *find_token(unsigned char *str, int len, unsigned char *token) find_token() argument
465 if (str[i] == token[0] && str[i+1] == token[1]) find_token()
466 return &str[i]; find_token()
473 static void compress_symbols(unsigned char *str, int idx) compress_symbols() argument
484 p2 = find_token(p1, len, str); compress_symbols()
503 p2 = find_token(p1, size, str); compress_symbols()
627 static int prefix_underscores_count(const char *str) prefix_underscores_count() argument
629 const char *tail = str; prefix_underscores_count()
634 return tail - str; prefix_underscores_count()
H A Dgen_initramfs_list.sh118 local str="${mode} ${uid} ${gid}"
125 str="${ftype} ${name} ${location} ${str}"
135 str="${ftype} ${name} ${str} ${dev} ${maj} ${min}"
139 str="${ftype} ${name} ${target} ${str}"
142 str="${ftype} ${name} ${str}"
146 echo "${str}" >> ${output}
/linux-4.1.27/arch/arm/mach-omap1/
H A Dams-delta-fiq-handler.S112 str r8, [r12, #IRQ_CONTROL_REG_OFFSET]
119 str r8, [r12, #IRQ_MIR_REG_OFFSET]
136 str r11, [r12, #OMAP1510_GPIO_INT_MASK]
145 str r10, [r12, #OMAP1510_GPIO_INT_STATUS] @ ack the interrupt
147 str r11, [r12, #OMAP1510_GPIO_INT_MASK]
160 str r8, [r9, #BUF_STATE] @ enter data processing state
162 str r10, [r9, #BUF_KEY] @ clear keycode
164 str r10, [r9, #BUF_MASK]
167 str r11, [r9, #BUF_GPIO_INT_MASK] @ save mask for later restore
169 str r11, [r12, #OMAP1510_GPIO_INT_MASK] @ store into the mask register
187 str r10, [r9, #BUF_STATE] @ reset state to start
192 str r11, [r12, #OMAP1510_GPIO_INT_MASK] @ restore into the mask register
201 str r10, [r9, #BUF_KEYS_CNT]
211 str r8, [r12] @ append it to the buffer tail
214 str r10, [r9, #BUF_TAIL_OFFSET]
218 str r10, [r9, #BUF_CNT_INT_KEY]
235 str r10, [r9, #BUF_CNT_INT_HSW]
250 str r10, [r9, #BUF_CNT_INT_MDM]
257 str r10, [r12, #IRQ_ISR_REG_OFFSET] @ place it in the ISR register
/linux-4.1.27/drivers/pnp/
H A Dsupport.c39 void pnp_eisa_id_to_string(u32 id, char *str) pnp_eisa_id_to_string() argument
51 str[0] = 'A' + ((id >> 26) & 0x3f) - 1; pnp_eisa_id_to_string()
52 str[1] = 'A' + ((id >> 21) & 0x1f) - 1; pnp_eisa_id_to_string()
53 str[2] = 'A' + ((id >> 16) & 0x1f) - 1; pnp_eisa_id_to_string()
54 str[3] = hex_asc_hi(id >> 8); pnp_eisa_id_to_string()
55 str[4] = hex_asc_lo(id >> 8); pnp_eisa_id_to_string()
56 str[5] = hex_asc_hi(id); pnp_eisa_id_to_string()
57 str[6] = hex_asc_lo(id); pnp_eisa_id_to_string()
58 str[7] = '\0'; pnp_eisa_id_to_string()
/linux-4.1.27/arch/arm/include/debug/
H A Domap2plus.S133 str \rp, [\tmp, #0] @ omap_uart_phys
135 str \rp, [\tmp, #4] @ omap_uart_virt
137 str \rp, [\tmp, #8] @ omap_uart_lsr
143 str \rp, [\tmp, #0] @ omap_uart_phys
146 str \rp, [\tmp, #4] @ omap_uart_virt
148 str \rp, [\tmp, #8] @ omap_uart_lsr
154 str \rp, [\tmp, #0] @ omap_uart_phys
157 str \rp, [\tmp, #4] @ omap_uart_virt
159 str \rp, [\tmp, #8] @ omap_uart_lsr
H A Dsirf.S27 str \rd, [\rx, #SIRF_LLUART_TXFIFO_DATA]
/linux-4.1.27/security/integrity/ima/
H A Dima_template.c49 static int __init ima_template_setup(char *str) ima_template_setup() argument
52 int template_len = strlen(str); ima_template_setup()
61 template_desc = lookup_template_desc(str); ima_template_setup()
64 str, CONFIG_IMA_DEFAULT_TEMPLATE); ima_template_setup()
72 if (template_len == 3 && strcmp(str, IMA_TEMPLATE_IMA_NAME) == 0 && ima_template_setup()
83 static int __init ima_template_fmt_setup(char *str) ima_template_fmt_setup() argument
90 if (template_desc_init_fields(str, NULL, NULL) < 0) { ima_template_fmt_setup()
92 str, CONFIG_IMA_DEFAULT_TEMPLATE); ima_template_fmt_setup()
96 defined_templates[num_templates - 1].fmt = str; ima_template_fmt_setup()
/linux-4.1.27/drivers/media/usb/stkwebcam/
H A Dstk-webcam.h40 #define STK_INFO(str, args...) printk(KERN_INFO PREFIX str, ##args)
41 #define STK_ERROR(str, args...) printk(KERN_ERR PREFIX str, ##args)
42 #define STK_WARNING(str, args...) printk(KERN_WARNING PREFIX str, ##args)
/linux-4.1.27/drivers/spi/
H A Dspi-s3c24xx-fiq.S44 str fiq_rtmp, [ fiq_rirq, # S3C2410_SRCPND - S3C24XX_VA_IRQ ]
57 str fiq_rtmp, [ fiq_rirq, # S3C2410_INTMOD - S3C24XX_VA_IRQ ]
74 str fiq_rtmp, [ fiq_rirq, # S3C2410_SRCPND - S3C24XX_VA_IRQ ]
83 str fiq_rtmp, [ fiq_rirq, # S3C2410_INTMOD - S3C24XX_VA_IRQ ]
99 str fiq_rtmp, [ fiq_rirq, # S3C2410_SRCPND - S3C24XX_VA_IRQ ]
108 str fiq_rtmp, [ fiq_rirq, # S3C2410_INTMOD - S3C24XX_VA_IRQ ]
/linux-4.1.27/arch/mips/alchemy/common/
H A Dprom.c92 static inline void str2eaddr(unsigned char *ea, unsigned char *str) str2eaddr() argument
99 if ((*str == '.') || (*str == ':')) str2eaddr()
100 str++; str2eaddr()
101 num = str2hexnum(*str++) << 4; str2eaddr()
102 num |= str2hexnum(*str++); str2eaddr()
/linux-4.1.27/arch/m68k/emu/
H A Dnfcon.c26 static void nfputs(const char *str, unsigned int count) nfputs() argument
33 memcpy(buf, str, 64); nfputs()
35 str += 64; nfputs()
38 memcpy(buf, str, count); nfputs()
43 static void nfcon_write(struct console *con, const char *str, nfcon_write() argument
46 nfputs(str, count); nfcon_write()
/linux-4.1.27/fs/gfs2/
H A Dglops.c319 const struct gfs2_dinode *str = buf; gfs2_dinode_in() local
323 if (unlikely(ip->i_no_addr != be64_to_cpu(str->di_num.no_addr))) gfs2_dinode_in()
325 ip->i_no_formal_ino = be64_to_cpu(str->di_num.no_formal_ino); gfs2_dinode_in()
326 ip->i_inode.i_mode = be32_to_cpu(str->di_mode); gfs2_dinode_in()
331 ip->i_inode.i_rdev = MKDEV(be32_to_cpu(str->di_major), gfs2_dinode_in()
332 be32_to_cpu(str->di_minor)); gfs2_dinode_in()
336 i_uid_write(&ip->i_inode, be32_to_cpu(str->di_uid)); gfs2_dinode_in()
337 i_gid_write(&ip->i_inode, be32_to_cpu(str->di_gid)); gfs2_dinode_in()
338 gfs2_set_nlink(&ip->i_inode, be32_to_cpu(str->di_nlink)); gfs2_dinode_in()
339 i_size_write(&ip->i_inode, be64_to_cpu(str->di_size)); gfs2_dinode_in()
340 gfs2_set_inode_blocks(&ip->i_inode, be64_to_cpu(str->di_blocks)); gfs2_dinode_in()
341 atime.tv_sec = be64_to_cpu(str->di_atime); gfs2_dinode_in()
342 atime.tv_nsec = be32_to_cpu(str->di_atime_nsec); gfs2_dinode_in()
345 ip->i_inode.i_mtime.tv_sec = be64_to_cpu(str->di_mtime); gfs2_dinode_in()
346 ip->i_inode.i_mtime.tv_nsec = be32_to_cpu(str->di_mtime_nsec); gfs2_dinode_in()
347 ip->i_inode.i_ctime.tv_sec = be64_to_cpu(str->di_ctime); gfs2_dinode_in()
348 ip->i_inode.i_ctime.tv_nsec = be32_to_cpu(str->di_ctime_nsec); gfs2_dinode_in()
350 ip->i_goal = be64_to_cpu(str->di_goal_meta); gfs2_dinode_in()
351 ip->i_generation = be64_to_cpu(str->di_generation); gfs2_dinode_in()
353 ip->i_diskflags = be32_to_cpu(str->di_flags); gfs2_dinode_in()
354 ip->i_eattr = be64_to_cpu(str->di_eattr); gfs2_dinode_in()
357 height = be16_to_cpu(str->di_height); gfs2_dinode_in()
362 depth = be16_to_cpu(str->di_depth); gfs2_dinode_in()
366 ip->i_entries = be32_to_cpu(str->di_entries); gfs2_dinode_in()
H A Ddentry.c106 static int gfs2_dhash(const struct dentry *dentry, struct qstr *str) gfs2_dhash() argument
108 str->hash = gfs2_disk_hash(str->name, str->len); gfs2_dhash()
/linux-4.1.27/arch/mips/pmcs-msp71xx/
H A Dmsp_prom.c86 int str2eaddr(unsigned char *ea, unsigned char *str) str2eaddr() argument
91 while (*str != '\0') { str2eaddr()
92 if ((*str == '.') || (*str == ':')) { str2eaddr()
95 str++; str2eaddr()
98 num |= str2hexnum(*str++); str2eaddr()
110 static inline unsigned long str2hex(unsigned char *str) str2hex() argument
114 while (*str) { str2hex()
116 value |= str2hexnum(*str++); str2hex()
424 char *str; prom_getmdesc() local
429 str = prom_getenv(memsz_env); prom_getmdesc()
430 if (!str) { prom_getmdesc()
435 memsize = simple_strtol(str, NULL, 0); prom_getmdesc()
446 str = prom_getenv(heaptop_env); prom_getmdesc()
447 if (!str) { prom_getmdesc()
452 heaptop = simple_strtol(str, NULL, 16); prom_getmdesc()
455 heaptop = simple_strtol(str, NULL, 0); prom_getmdesc()
/linux-4.1.27/arch/arm/mach-omap2/
H A Dsram34xx.S134 ARM( str \Rt, \label )
135 THUMB( str \Rt, [r7, \label - omap3_sram_configure_core_dpll] )
189 str r12, [r11] @ (no OCP barrier needed)
195 str r12, [r11] @ (no OCP barrier needed)
202 str r12, [r11] @ write back to SDRC_POWER register
208 str r12, [r11]
222 str r12, [r11]
233 str r12, [r11]
242 str r9, [r11] @ restore SDRC_POWER, no barrier needed
261 str r12, [r11] @ store
265 str r12, [r11]
268 str r12, [r11]
271 str r12, [r11]
277 str r12, [r11]
281 str r12, [r11]
284 str r12, [r11]
287 str r12, [r11]
H A Dsram242x.S53 str r3, [r2] @ go to L1-freq operation
68 str r10, [r11] @ commit to DLLA_CTRL
81 str r3, [r2] @ go to L0-freq operation
89 str r1, [r11] @ restore DLLA_CTRL high value
91 str r1, [r11] @ set value DLLB_CTRL
95 str r10, [r0] @ write dll_status and return counter
116 str r5, [r4] @ set up for change.
119 str r5, [r4] @ Force transition to L1
174 str r3, [r4] @ set new state (pll/x, x=1 or 2)
182 str r5, [r6] @ set new RFR_1 value
184 str r5, [r6] @ set RFR_2
191 str r1, [r2] @ write out new SDRC_DLLA_CTRL
193 str r1, [r2] @ commit to SDRC_DLLB_CTRL
211 str r8, [r10] @ set up for change.
214 str r8, [r10] @ Force transition to L1
257 str r7, [r8] @ go to fast relock
268 str r0, [r4] @ set dpll ctrl val
272 str r8, [r4] @ make dividers take
287 str r8, [r4] @ set val
300 str r1, [r4] @ update refresh timing
306 str r10, [r11] @ commit to DLLA_CTRL
308 str r10, [r11] @ hit DLLB also
H A Dsram243x.S53 str r3, [r2] @ go to L1-freq operation
68 str r10, [r11] @ commit to DLLA_CTRL
81 str r3, [r2] @ go to L0-freq operation
89 str r1, [r11] @ restore DLLA_CTRL high value
91 str r1, [r11] @ set value DLLB_CTRL
95 str r10, [r0] @ write dll_status and return counter
116 str r5, [r4] @ set up for change.
119 str r5, [r4] @ Force transition to L1
174 str r3, [r4] @ set new state (pll/x, x=1 or 2)
182 str r5, [r6] @ set new RFR_1 value
184 str r5, [r6] @ set RFR_2
191 str r1, [r2] @ write out new SDRC_DLLA_CTRL
193 str r1, [r2] @ commit to SDRC_DLLB_CTRL
211 str r8, [r10] @ set up for change.
214 str r8, [r10] @ Force transition to L1
257 str r7, [r8] @ go to fast relock
268 str r0, [r4] @ set dpll ctrl val
272 str r8, [r4] @ make dividers take
287 str r8, [r4] @ set val
300 str r1, [r4] @ update refresh timing
306 str r10, [r11] @ commit to DLLA_CTRL
308 str r10, [r11] @ hit DLLB also
/linux-4.1.27/drivers/s390/block/
H A Ddasd_devmap.c113 dasd_call_setup(char *str) dasd_call_setup() argument
118 dasd[count++] = str; dasd_call_setup()
132 dasd_busid(char **str, int *id0, int *id1, int *devno) dasd_busid() argument
137 if (strncmp(DASD_IPLDEV, *str, strlen(DASD_IPLDEV)) == 0) { dasd_busid()
145 *str += strlen(DASD_IPLDEV); dasd_busid()
151 if ((*str)[0] == '0' && (*str)[1] == 'x') { dasd_busid()
152 *str += 2; dasd_busid()
155 if (!isxdigit((*str)[0])) /* We require at least one hex digit */ dasd_busid()
157 val = simple_strtoul(*str, str, 16); dasd_busid()
158 if (old_style || (*str)[0] != '.') { dasd_busid()
169 (*str)++; dasd_busid()
170 if (!isxdigit((*str)[0])) /* We require at least one hex digit */ dasd_busid()
172 val = simple_strtoul(*str, str, 16); dasd_busid()
173 if (val < 0 || val > 0xff || (*str)++[0] != '.') dasd_busid()
176 if (!isxdigit((*str)[0])) /* We require at least one hex digit */ dasd_busid()
178 val = simple_strtoul(*str, str, 16); dasd_busid()
191 dasd_feature_list(char *str, char **endp) dasd_feature_list() argument
196 if (*str != '(') { dasd_feature_list()
197 *endp = str; dasd_feature_list()
200 str++; dasd_feature_list()
205 str[len] && str[len] != ':' && str[len] != ')'; len++); dasd_feature_list()
206 if (len == 2 && !strncmp(str, "ro", 2)) dasd_feature_list()
208 else if (len == 4 && !strncmp(str, "diag", 4)) dasd_feature_list()
210 else if (len == 3 && !strncmp(str, "raw", 3)) dasd_feature_list()
212 else if (len == 6 && !strncmp(str, "erplog", 6)) dasd_feature_list()
214 else if (len == 8 && !strncmp(str, "failfast", 8)) dasd_feature_list()
218 len, str); dasd_feature_list()
221 str += len; dasd_feature_list()
222 if (*str != ':') dasd_feature_list()
224 str++; dasd_feature_list()
226 if (*str != ')') { dasd_feature_list()
231 str++; dasd_feature_list()
232 *endp = str; dasd_feature_list()
315 char bus_id[DASD_BUS_ID_SIZE+1], *str; dasd_parse_range() local
317 str = parsestring; dasd_parse_range()
318 rc = dasd_busid(&str, &from_id0, &from_id1, &from); dasd_parse_range()
323 if (*str == '-') { dasd_parse_range()
324 str++; dasd_parse_range()
325 rc = dasd_busid(&str, &to_id0, &to_id1, &to); dasd_parse_range()
335 features = dasd_feature_list(str, &str); dasd_parse_range()
347 if (*str == ',') dasd_parse_range()
348 return str + 1; dasd_parse_range()
349 if (*str == '\0') dasd_parse_range()
350 return str; dasd_parse_range()
352 str); dasd_parse_range()
H A Ddasd_proc.c275 char *buffer, *str; dasd_stats_proc_write() local
285 str = skip_spaces(buffer); dasd_stats_proc_write()
286 if (strncmp(str, "set", 3) == 0 && isspace(str[3])) { dasd_stats_proc_write()
288 str = skip_spaces(str + 4); dasd_stats_proc_write()
289 if (strcmp(str, "on") == 0) { dasd_stats_proc_write()
305 } else if (strcmp(str, "off") == 0) { dasd_stats_proc_write()
314 } else if (strncmp(str, "reset", 5) == 0) { dasd_stats_proc_write()
326 str); dasd_stats_proc_write()
/linux-4.1.27/drivers/staging/lustre/lnet/lnet/
H A Dconfig.c51 lnet_syntax(char *name, char *str, int offset, int width) lnet_syntax() argument
61 LCONSOLE_ERROR_MSG(0x10f, "Error parsing '%s=\"%s\"'\n", name, str); lnet_syntax()
183 char *str; lnet_parse_networks() local
205 str = tmp = tokens; lnet_parse_networks()
212 while (str != NULL && *str != 0) { lnet_parse_networks()
213 char *comma = strchr(str, ','); lnet_parse_networks()
214 char *bracket = strchr(str, '('); lnet_parse_networks()
215 char *square = strchr(str, '['); lnet_parse_networks()
255 net = libcfs_str2net(cfs_trimwhite(str)); lnet_parse_networks()
260 tmp = str; lnet_parse_networks()
273 str = comma; lnet_parse_networks()
278 net = libcfs_str2net(cfs_trimwhite(str)); lnet_parse_networks()
280 tmp = str; lnet_parse_networks()
326 str = bracket + 1; lnet_parse_networks()
330 str = cfs_trimwhite(str); lnet_parse_networks()
331 if (*str != 0) { lnet_parse_networks()
332 tmp = str; lnet_parse_networks()
335 str = comma + 1; lnet_parse_networks()
339 str = cfs_trimwhite(str); lnet_parse_networks()
340 if (*str != 0) { lnet_parse_networks()
341 tmp = str; lnet_parse_networks()
418 lnet_str2tbs_sep(struct list_head *tbs, char *str) lnet_str2tbs_sep() argument
428 /* Split 'str' into separate commands */ lnet_str2tbs_sep()
431 while (isspace(*str)) lnet_str2tbs_sep()
432 str++; lnet_str2tbs_sep()
435 for (sep = str; *sep != 0; sep++) lnet_str2tbs_sep()
439 nob = (int)(sep - str); lnet_str2tbs_sep()
448 if (isspace(str[i])) lnet_str2tbs_sep()
451 ltb->ltb_text[i] = str[i]; lnet_str2tbs_sep()
468 str = sep + 1; lnet_str2tbs_sep()
477 char *str, char *sep1, char *sep2, lnet_expand1tb()
480 int len1 = (int)(sep1 - str); lnet_expand1tb()
491 memcpy(ltb->ltb_text, str, len1); lnet_expand1tb()
501 lnet_str2tbs_expand(struct list_head *tbs, char *str) lnet_str2tbs_expand() argument
518 sep = strchr(str, '['); lnet_str2tbs_expand()
542 &pending, str, sep, sep2, lnet_str2tbs_expand()
570 if (lnet_expand1tb(&pending, str, sep, sep2, lnet_str2tbs_expand()
585 lnet_parse_hops(char *str, unsigned int *hops) lnet_parse_hops() argument
587 int len = strlen(str); lnet_parse_hops()
590 return (sscanf(str, "%u%n", hops, &nob) >= 1 && lnet_parse_hops()
598 lnet_parse_priority(char *str, unsigned int *priority, char **token) lnet_parse_priority() argument
604 sep = strchr(str, LNET_PRIORITY_SEPARATOR); lnet_parse_priority()
614 *token += sep - str + 1; lnet_parse_priority()
618 CDEBUG(D_NET, "gateway %s, priority %d, nob %d\n", str, *priority, nob); lnet_parse_priority()
628 lnet_parse_route(char *str, int *im_a_router) lnet_parse_route() argument
642 char *token = str; lnet_parse_route()
653 strncpy(cmd, str, sizeof(cmd) - 1); lnet_parse_route()
656 sep = str; lnet_parse_route()
765 lnet_syntax("routes", cmd, (int)(token - str), strlen(token)); lnet_parse_route()
476 lnet_expand1tb(struct list_head *list, char *str, char *sep1, char *sep2, char *item, int itemlen) lnet_expand1tb() argument
/linux-4.1.27/drivers/char/
H A Dhangcheck-timer.c82 static int __init hangcheck_parse_tick(char *str) hangcheck_parse_tick() argument
85 if (get_option(&str,&par)) hangcheck_parse_tick()
90 static int __init hangcheck_parse_margin(char *str) hangcheck_parse_margin() argument
93 if (get_option(&str,&par)) hangcheck_parse_margin()
98 static int __init hangcheck_parse_reboot(char *str) hangcheck_parse_reboot() argument
101 if (get_option(&str,&par)) hangcheck_parse_reboot()
106 static int __init hangcheck_parse_dump_tasks(char *str) hangcheck_parse_dump_tasks() argument
109 if (get_option(&str,&par)) hangcheck_parse_dump_tasks()
/linux-4.1.27/arch/parisc/include/asm/
H A Dled.h34 int lcd_print(const char *str);
36 #define lcd_print(str)
/linux-4.1.27/arch/hexagon/include/asm/
H A Dtraps.h26 extern int die(const char *str, struct pt_regs *regs, long err);
27 extern int die_if_kernel(char *str, struct pt_regs *regs, long err);
/linux-4.1.27/mm/
H A Dfailslab.c28 static int __init setup_failslab(char *str) setup_failslab() argument
30 return setup_fault_attr(&failslab.attr, str); setup_failslab()
/linux-4.1.27/tools/power/cpupower/bench/
H A Dparse.c37 * @param str string that represents a scheduler priority
43 enum sched_prio string_to_prio(const char *str) string_to_prio() argument
45 if (strncasecmp("high", str, strlen(str)) == 0) string_to_prio()
47 else if (strncasecmp("default", str, strlen(str)) == 0) string_to_prio()
49 else if (strncasecmp("low", str, strlen(str)) == 0) string_to_prio()
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/
H A Dbios.h29 u16 nvbios_findstr(const u8 *data, int size, const char *str, int len);
/linux-4.1.27/arch/arm/kernel/
H A Ddebug.S106 str r2, [r0]
107 str r3, [r1]
133 str r2, [r0]
134 str r2, [r1]
/linux-4.1.27/drivers/iommu/
H A Dirq_remapping.c165 static __init int setup_nointremap(char *str) setup_nointremap() argument
172 static __init int setup_irqremap(char *str) setup_irqremap() argument
174 if (!str) setup_irqremap()
177 while (*str) { setup_irqremap()
178 if (!strncmp(str, "on", 2)) setup_irqremap()
180 else if (!strncmp(str, "off", 3)) setup_irqremap()
182 else if (!strncmp(str, "nosid", 5)) setup_irqremap()
184 else if (!strncmp(str, "no_x2apic_optout", 16)) setup_irqremap()
187 str += strcspn(str, ","); setup_irqremap()
188 while (*str == ',') setup_irqremap()
189 str++; setup_irqremap()
/linux-4.1.27/drivers/cpuidle/
H A Dgovernor.c22 * @str: the name
26 static struct cpuidle_governor * __cpuidle_find_governor(const char *str) __cpuidle_find_governor() argument
31 if (!strncasecmp(str, gov->name, CPUIDLE_NAME_LEN)) __cpuidle_find_governor()
/linux-4.1.27/drivers/usb/mon/
H A Dmon_stat.c23 char str[STAT_BUF_SIZE]; member in struct:snap
36 sp->slen = snprintf(sp->str, STAT_BUF_SIZE, mon_stat_open()
49 return simple_read_from_buffer(buf, nbytes, ppos, sp->str, sp->slen); mon_stat_read()
/linux-4.1.27/arch/sh/drivers/pci/
H A Dfixups-sdk7786.c28 char *__init pcibios_setup(char *str) pcibios_setup() argument
30 if (strcmp(str, "slot4en") == 0) { pcibios_setup()
35 return str; pcibios_setup()
/linux-4.1.27/arch/mips/loongson1/common/
H A Dprom.c40 char *str = prom_getenv(env); env_or_default() local
41 return str ? simple_strtol(str, 0, 0) : dfl; env_or_default()
/linux-4.1.27/arch/mips/mti-sead3/
H A Dsead3-display.c41 void mips_display_message(const char *str) mips_display_message() argument
52 if (*str) mips_display_message()
53 ch = *str++; mips_display_message()
/linux-4.1.27/arch/avr32/kernel/
H A Dnmi_debug.c48 static int __init nmi_debug_setup(char *str) nmi_debug_setup() argument
58 if (*str != '=') nmi_debug_setup()
61 for (p = str + 1; *p; p = sep + 1) { nmi_debug_setup()
/linux-4.1.27/arch/m68k/atari/
H A Ddebug.c42 static void atari_mfp_console_write(struct console *co, const char *str, atari_mfp_console_write() argument
46 if (*str == '\n') atari_mfp_console_write()
48 ata_mfp_out(*str++); atari_mfp_console_write()
61 static void atari_scc_console_write(struct console *co, const char *str, atari_scc_console_write() argument
65 if (*str == '\n') atari_scc_console_write()
67 ata_scc_out(*str++); atari_scc_console_write()
78 static void atari_midi_console_write(struct console *co, const char *str, atari_midi_console_write() argument
82 if (*str == '\n') atari_midi_console_write()
84 ata_midi_out(*str++); atari_midi_console_write()
109 static void atari_par_console_write(struct console *co, const char *str, atari_par_console_write() argument
118 if (*str == '\n') { atari_par_console_write()
124 if (!ata_par_out(*str++)) { atari_par_console_write()
/linux-4.1.27/sound/isa/sb/
H A Dsb_common.c109 char *str; snd_sbdsp_probe() local
137 str = "1.0"; snd_sbdsp_probe()
142 str = "2.01+"; snd_sbdsp_probe()
145 str = "2.0"; snd_sbdsp_probe()
150 str = "Pro"; snd_sbdsp_probe()
154 str = "16"; snd_sbdsp_probe()
163 str = "16 (ALS-100)"; snd_sbdsp_probe()
166 str = "16 (ALS-4000)"; snd_sbdsp_probe()
169 str = "(DT019X/ALS007)"; snd_sbdsp_probe()
172 str = "16 (CS5530)"; snd_sbdsp_probe()
175 str = "Pro (Jazz16)"; snd_sbdsp_probe()
180 sprintf(chip->name, "Sound Blaster %s", str); snd_sbdsp_probe()
/linux-4.1.27/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
H A DUtil.py32 str = "%5u.%09u" % (nsecs_secs(nsecs), nsecs_nsecs(nsecs)),
33 return str
80 return str(id)
/linux-4.1.27/tools/lib/traceevent/
H A Dparse-filter.c218 free(arg->str.val); free_arg()
219 regfree(&arg->str.reg); free_arg()
220 free(arg->str.buffer); free_arg()
226 free(arg->value.str); free_arg()
367 arg->value.str = strdup(token); create_arg_item()
368 if (!arg->value.str) { create_arg_item()
456 char *str; add_right() local
477 * The arg must be num, str, or field add_right()
499 if (strlen(arg->value.str) == 1 && add_right()
511 str = arg->value.str; add_right()
546 ret = regcomp(&op->str.reg, str, REG_ICASE|REG_NOSUB); add_right()
550 str); add_right()
561 op->str.type = op_type; add_right()
562 op->str.field = left->field.field; add_right()
563 op->str.val = strdup(str); add_right()
564 if (!op->str.val) { add_right()
571 op->str.buffer = malloc(op->str.field->size + 1); add_right()
572 if (!op->str.buffer) { add_right()
577 op->str.buffer[op->str.field->size] = 0; add_right()
1471 char *str; copy_filter_type() local
1480 str = arg_to_str(source, filter_type->filter); copy_filter_type()
1481 if (!str) copy_filter_type()
1484 if (strcmp(str, "TRUE") == 0 || strcmp(str, "FALSE") == 0) { copy_filter_type()
1491 if (strcmp(str, "TRUE") == 0) copy_filter_type()
1502 free(str); copy_filter_type()
1506 filter_event(filter, event, str, NULL); copy_filter_type()
1507 free(str); copy_filter_type()
1553 char *str; pevent_update_trivial() local
1583 str = pevent_filter_make_string(source, event->id); pevent_update_trivial()
1584 if (!str) pevent_update_trivial()
1588 if (strcmp(str, "TRUE") != 0 && strcmp(str, "FALSE") != 0) pevent_update_trivial()
1589 filter_event(dest, event, str, NULL); pevent_update_trivial()
1590 free(str); pevent_update_trivial()
1873 if (arg->str.field->flags & FIELD_IS_STRING) { get_field_str()
1874 val = record->data + arg->str.field->offset; get_field_str()
1880 if (*(val + arg->str.field->size - 1)) { get_field_str()
1882 memcpy(arg->str.buffer, val, arg->str.field->size); get_field_str()
1884 val = arg->str.buffer; get_field_str()
1888 event = arg->str.field->event; get_field_str()
1890 addr = get_value(event, arg->str.field, record); get_field_str()
1892 if (arg->str.field->flags & (FIELD_IS_POINTER | FIELD_IS_LONG)) get_field_str()
1911 if (arg->str.field == &comm) test_str()
1916 switch (arg->str.type) { test_str()
1918 return strcmp(val, arg->str.val) == 0; test_str()
1921 return strcmp(val, arg->str.val) != 0; test_str()
1925 return !regexec(&arg->str.reg, val, 0, NULL, 0); test_str()
1928 return regexec(&arg->str.reg, val, 0, NULL, 0); test_str()
2060 char *str = NULL; op_to_str() local
2096 str = left; op_to_str()
2113 asprintf(&str, val ? "TRUE" : "FALSE"); op_to_str()
2121 str = right; op_to_str()
2126 str = left; op_to_str()
2131 asprintf(&str, "(%s) %s (%s)", left, op, right); op_to_str()
2147 asprintf(&str, right_val ? "FALSE" : "TRUE"); op_to_str()
2150 asprintf(&str, "%s(%s)", op, right); op_to_str()
2159 return str; op_to_str()
2164 char *str = NULL; val_to_str() local
2166 asprintf(&str, "%lld", arg->value.val); val_to_str()
2168 return str; val_to_str()
2181 char *str = NULL; exp_to_str() local
2224 asprintf(&str, "%s %s %s", lstr, op, rstr); exp_to_str()
2229 return str; exp_to_str()
2236 char *str = NULL; num_to_str() local
2268 asprintf(&str, "%s %s %s", lstr, op, rstr); num_to_str()
2279 return str; num_to_str()
2284 char *str = NULL; str_to_str() local
2287 switch (arg->str.type) { str_to_str()
2303 asprintf(&str, "%s %s \"%s\"", str_to_str()
2304 arg->str.field->name, op, arg->str.val); str_to_str()
2311 return str; str_to_str()
2316 char *str = NULL; arg_to_str() local
2320 asprintf(&str, arg->boolean.value ? "TRUE" : "FALSE"); arg_to_str()
2321 return str; arg_to_str()
2354 * This string must be freed with free(str).
/linux-4.1.27/tools/power/cpupower/utils/
H A Dcpufreq-set.c62 static unsigned long string_to_frequency(const char *str) string_to_frequency() argument
71 while (*str == '0') string_to_frequency()
72 str++; string_to_frequency()
74 for (scan = str; isdigit(*scan) || *scan == '.'; scan++) { string_to_frequency()
98 for (cp = 0; isdigit(str[cp]); cp++) string_to_frequency()
101 if (str[cp] == '.') { string_to_frequency()
102 while (power > -1 && isdigit(str[cp+1])) string_to_frequency()
114 for (i = 0; i < cp; i++, str++) { string_to_frequency()
115 if (*str == '.') string_to_frequency()
116 str++; string_to_frequency()
117 normalized[i] = *str; string_to_frequency()
/linux-4.1.27/drivers/media/platform/ti-vpe/
H A Dvpdma.h158 #define ADB_ADDR(dma_buf, str, fld) ((dma_buf)->addr + offsetof(str, fld))
159 #define MMR_ADB_ADDR(buf, str, fld) ADB_ADDR(&(buf), struct str, fld)
161 #define VPDMA_SET_MMR_ADB_HDR(buf, str, hdr, regs, offset_a) \
164 struct str *adb = NULL; \
165 h = MMR_ADB_ADDR(buf, str, hdr); \
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
H A Dsec_lproc.c81 char str[32]; sptlrpc_info_lprocfs_seq_show() local
92 sec_flags2str(sec->ps_flvr.sf_flags, str, sizeof(str)); sptlrpc_info_lprocfs_seq_show()
97 sptlrpc_flavor2name_bulk(&sec->ps_flvr, str, sizeof(str))); sptlrpc_info_lprocfs_seq_show()
99 sec_flags2str(sec->ps_flvr.sf_flags, str, sizeof(str))); sptlrpc_info_lprocfs_seq_show()
/linux-4.1.27/arch/m68k/apollo/
H A Dconfig.c120 void dn_serial_console_write (struct console *co, const char *str,unsigned int count) dn_serial_console_write() argument
123 if (*str == '\n') { dn_serial_console_write()
128 sio01.rhrb_thrb = (unsigned char)*str++; dn_serial_console_write()
134 void dn_serial_print (const char *str) dn_serial_print() argument
136 while (*str) { dn_serial_print()
137 if (*str == '\n') { dn_serial_print()
142 sio01.rhrb_thrb = (unsigned char)*str++; dn_serial_print()
/linux-4.1.27/arch/arm/mm/
H A Dproc-v7m.S87 str r12, [r0, V7M_SCB_VTOR]
92 str r5, [r0, #V7M_SCB_SHCSR]
96 str r5, [r0, V7M_SCB_SHPR2] @ set SVC priority
98 str r5, [r0, V7M_SCB_SHPR3] @ set PendSV priority
103 str r1, [r12, #11 * 4] @ write the temporary SVC vector entry
110 str r5, [r12, #11 * 4] @ restore the original SVC vector entry
122 str r12, [r0, V7M_SCB_CCR]
/linux-4.1.27/sound/oss/
H A Dvidc_fill.S27 str r4, [r2], #4
41 str r4, [r2], #4
53 str r4, [r2], #4
67 str r4, [r2], #4
80 str r4, [r2], #4
96 str r4, [r2], #4
118 str r0, [r2], #4
/linux-4.1.27/sound/soc/samsung/
H A Dsmdk_wm8580.c207 char *str; smdk_audio_init() local
213 str = (char *)smdk_dai[PRI_PLAYBACK].cpu_dai_name; smdk_audio_init()
214 str[strlen(str) - 1] = '2'; smdk_audio_init()
215 str = (char *)smdk_dai[PRI_CAPTURE].cpu_dai_name; smdk_audio_init()
216 str[strlen(str) - 1] = '2'; smdk_audio_init()
/linux-4.1.27/arch/arm/crypto/
H A Daes-armv4.S208 str r0,[r12,#0]
209 str r1,[r12,#4]
210 str r2,[r12,#8]
211 str r3,[r12,#12]
248 str lr,[sp,#-4]! @ push lr
435 str r0,[r11],#16
437 str r1,[r11,#-12]
439 str r2,[r11,#-8]
440 str r3,[r11,#-4]
452 str r0,[r11],#16
453 str r1,[r11,#-12]
454 str r2,[r11,#-8]
455 str r3,[r11,#-4]
461 str r12,[r11,#240-16]
481 str r0,[r11],#16
483 str r1,[r11,#-12]
485 str r2,[r11,#-8]
487 str r3,[r11,#-4]
507 str r8,[r11],#8
509 str r9,[r11,#-4]
517 str r8,[r11],#8
518 str r9,[r11,#-4]
524 str r12,[r11,#240-24]
545 str r0,[r11],#24
547 str r1,[r11,#-20]
549 str r2,[r11,#-16]
551 str r3,[r11,#-12]
559 str r7,[r11,#-8]
560 str r9,[r11,#-4]
578 str r8,[r11],#8
580 str r9,[r11,#-4]
588 str r8,[r11],#8
589 str r9,[r11,#-4]
593 str r12,[r11,#240-32]
614 str r0,[r11],#32
616 str r1,[r11,#-28]
618 str r2,[r11,#-24]
620 str r3,[r11,#-20]
642 str r4,[r11,#-16]
644 str r7,[r11,#-12]
646 str r8,[r11,#-8]
647 str r9,[r11,#-4]
657 str lr,[sp,#-4]! @ push lr
684 str r0,[r8],#-16
685 str r1,[r8,#16+4]
686 str r2,[r8,#16+8]
687 str r3,[r8,#16+12]
688 str r4,[r7],#16
689 str r5,[r7,#-12]
690 str r6,[r7,#-8]
691 str r9,[r7,#-4]
733 str r4,[r11],#4
903 str r0,[r12,#0]
904 str r1,[r12,#4]
905 str r2,[r12,#8]
906 str r3,[r12,#12]
943 str lr,[sp,#-4]! @ push lr
/linux-4.1.27/drivers/mfd/
H A Dipaq-micro.c248 char *str; ipaq_micro_eeprom_dump() local
251 str = ipaq_micro_str(dump, 10); ipaq_micro_eeprom_dump()
252 if (str) { ipaq_micro_eeprom_dump()
253 dev_info(micro->dev, "HM version %s\n", str); ipaq_micro_eeprom_dump()
254 kfree(str); ipaq_micro_eeprom_dump()
256 str = ipaq_micro_str(dump+10, 40); ipaq_micro_eeprom_dump()
257 if (str) { ipaq_micro_eeprom_dump()
258 dev_info(micro->dev, "serial number: %s\n", str); ipaq_micro_eeprom_dump()
260 add_device_randomness(str, strlen(str)); ipaq_micro_eeprom_dump()
261 kfree(str); ipaq_micro_eeprom_dump()
263 str = ipaq_micro_str(dump+50, 20); ipaq_micro_eeprom_dump()
264 if (str) { ipaq_micro_eeprom_dump()
265 dev_info(micro->dev, "module ID: %s\n", str); ipaq_micro_eeprom_dump()
266 kfree(str); ipaq_micro_eeprom_dump()
268 str = ipaq_micro_str(dump+70, 10); ipaq_micro_eeprom_dump()
269 if (str) { ipaq_micro_eeprom_dump()
270 dev_info(micro->dev, "product revision: %s\n", str); ipaq_micro_eeprom_dump()
271 kfree(str); ipaq_micro_eeprom_dump()
/linux-4.1.27/security/apparmor/
H A Dmatch.c285 * aa_dfa_match_len - traverse @dfa to find state @str stops at
286 * @dfa: the dfa to match @str against (NOT NULL)
288 * @str: the string of bytes to match against the dfa (NOT NULL)
291 * aa_dfa_match_len will match @str against the dfa and return the state it
301 const char *str, int len) aa_dfa_match_len()
312 /* current state is <state>, matching character *str */ aa_dfa_match_len()
318 pos = base_idx(base[state]) + equiv[(u8) *str++]; aa_dfa_match_len()
327 pos = base_idx(base[state]) + (u8) *str++; aa_dfa_match_len()
339 * aa_dfa_match - traverse @dfa to find state @str stops at
340 * @dfa: the dfa to match @str against (NOT NULL)
342 * @str: the null terminated string of bytes to match against the dfa (NOT NULL)
344 * aa_dfa_match will match @str against the dfa and return the state it
351 const char *str) aa_dfa_match()
362 /* current state is <state>, matching character *str */ aa_dfa_match()
367 while (*str) { aa_dfa_match()
368 pos = base_idx(base[state]) + equiv[(u8) *str++]; aa_dfa_match()
376 while (*str) { aa_dfa_match()
377 pos = base_idx(base[state]) + (u8) *str++; aa_dfa_match()
407 /* current state is <state>, matching character *str */ aa_dfa_next()
300 aa_dfa_match_len(struct aa_dfa *dfa, unsigned int start, const char *str, int len) aa_dfa_match_len() argument
350 aa_dfa_match(struct aa_dfa *dfa, unsigned int start, const char *str) aa_dfa_match() argument
/linux-4.1.27/arch/xtensa/platforms/iss/
H A Dnetwork.c101 static char *split_if_spec(char *str, ...) split_if_spec() argument
106 va_start(ap, str); split_if_spec()
108 if (*str == '\0') split_if_spec()
110 end = strchr(str, ','); split_if_spec()
111 if (end != str) split_if_spec()
112 *arg = str; split_if_spec()
116 str = end; split_if_spec()
119 return str; split_if_spec()
124 static void setup_etheraddr(struct net_device *dev, char *str) setup_etheraddr() argument
128 if (str == NULL) setup_etheraddr()
131 if (!mac_pton(str, addr)) { setup_etheraddr()
133 dev->name, str); setup_etheraddr()
610 static int __init iss_net_setup(char *str) iss_net_setup() argument
619 end = strchr(str, '='); iss_net_setup()
625 rc = kstrtouint(str, 0, &n); iss_net_setup()
628 printk(ERR "Failed to parse '%s'\n", str); iss_net_setup()
631 str = end; iss_net_setup()
656 new->init = str + 1; iss_net_setup()
/linux-4.1.27/arch/arc/kernel/
H A Dsetup.c137 #define IS_AVAIL1(v, str) ((v) ? str : "")
139 #define IS_AVAIL2(v, str, cfg) IS_AVAIL1(v, str), IS_AVAIL1(v, IS_USED(cfg))
170 cpu_id, tbl->info.str, isa_nm, arc_cpu_mumbojumbo()
300 char str[512]; setup_processor() local
306 printk(arc_cpu_mumbojumbo(cpu_id, str, sizeof(str))); setup_processor()
311 printk(arc_extn_mumbojumbo(cpu_id, str, sizeof(str))); setup_processor()
415 char *str; show_cpuinfo() local
423 str = (char *)__get_free_page(GFP_TEMPORARY); show_cpuinfo()
424 if (!str) show_cpuinfo()
427 seq_printf(m, arc_cpu_mumbojumbo(cpu_id, str, PAGE_SIZE)); show_cpuinfo()
433 seq_printf(m, arc_mmu_mumbojumbo(cpu_id, str, PAGE_SIZE)); show_cpuinfo()
434 seq_printf(m, arc_cache_mumbojumbo(cpu_id, str, PAGE_SIZE)); show_cpuinfo()
435 seq_printf(m, arc_extn_mumbojumbo(cpu_id, str, PAGE_SIZE)); show_cpuinfo()
438 free_page((unsigned long)str); show_cpuinfo()
H A Dtraps.c31 void die(const char *str, struct pt_regs *regs, unsigned long address) die() argument
33 show_kernel_fault_diag(str, regs, address); die()
45 unhandled_exception(const char *str, struct pt_regs *regs, siginfo_t *info) unhandled_exception() argument
59 die(str, regs, (unsigned long)info->si_addr); unhandled_exception()
65 #define DO_ERROR_INFO(signr, str, name, sicode) \
74 return unhandled_exception(str, regs, &info);\
/linux-4.1.27/drivers/rapidio/
H A Drio-sysfs.c44 char *str = buf; routes_show() local
51 str += routes_show()
52 sprintf(str, "%04x %02x\n", i, routes_show()
56 return (str - buf); routes_show()
74 char *str = buf; lnext_show() local
80 str += sprintf(str, "%s\n", lnext_show()
83 str += sprintf(str, "null\n"); lnext_show()
87 return str - buf; lnext_show()
/linux-4.1.27/drivers/s390/cio/
H A Dblacklist.c101 static int parse_busid(char *str, unsigned int *cssid, unsigned int *ssid, parse_busid() argument
109 if (*str == '\0') parse_busid()
113 str_work = str; parse_busid()
114 val = simple_strtoul(str, &str_work, 16); parse_busid()
127 str_work = str; parse_busid()
144 "kernel parameter\n", str); parse_busid()
149 static int blacklist_parse_parameters(char *str, range_action action, blacklist_parse_parameters() argument
159 while ((parm = strsep(&str, ","))) { blacklist_parse_parameters()
227 blacklist_setup (char *str) blacklist_setup() argument
230 if (blacklist_parse_parameters(str, add, 1)) blacklist_setup()
/linux-4.1.27/fs/romfs/
H A Dstorage.c71 const char *str, size_t size) romfs_mtd_strcmp()
87 if (memcmp(buf, str, len) != 0) romfs_mtd_strcmp()
92 str += len; romfs_mtd_strcmp()
168 const char *str, size_t size) romfs_blk_strcmp()
182 matched = (memcmp(bh->b_data + offset, str, segment) == 0); romfs_blk_strcmp()
186 str += segment; romfs_blk_strcmp()
267 * - the string to be compared to, str, may not be NUL-terminated; instead the
272 const char *str, size_t size) romfs_dev_strcmp()
286 return romfs_mtd_strcmp(sb, pos, str, size); romfs_dev_strcmp()
290 return romfs_blk_strcmp(sb, pos, str, size); romfs_dev_strcmp()
70 romfs_mtd_strcmp(struct super_block *sb, unsigned long pos, const char *str, size_t size) romfs_mtd_strcmp() argument
167 romfs_blk_strcmp(struct super_block *sb, unsigned long pos, const char *str, size_t size) romfs_blk_strcmp() argument
271 romfs_dev_strcmp(struct super_block *sb, unsigned long pos, const char *str, size_t size) romfs_dev_strcmp() argument
/linux-4.1.27/arch/arm/plat-iop/
H A Dpci.c96 "str %1, [%2]\n\t" iop3xx_read()
149 "str %1, [%2]\n\t" iop3xx_write_config()
150 "str %0, [%3]\n\t" iop3xx_write_config()
372 static int __init iop3xx_init_atu_setup(char *str) iop3xx_init_atu_setup() argument
375 if (str) { iop3xx_init_atu_setup()
376 while (*str != '\0') { iop3xx_init_atu_setup()
377 switch (*str) { iop3xx_init_atu_setup()
393 *str); iop3xx_init_atu_setup()
394 *(str + 1) = '\0'; iop3xx_init_atu_setup()
396 str++; iop3xx_init_atu_setup()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/
H A Dlinux-cpu.c824 char *str = pattern; cfs_cpt_table_create_pattern() local
831 str = strchr(str, '['); cfs_cpt_table_create_pattern()
832 if (str == NULL) cfs_cpt_table_create_pattern()
834 str++; cfs_cpt_table_create_pattern()
837 str = cfs_trimwhite(pattern); cfs_cpt_table_create_pattern()
838 if (*str == 'n' || *str == 'N') { cfs_cpt_table_create_pattern()
839 pattern = str + 1; cfs_cpt_table_create_pattern()
859 for (str = cfs_trimwhite(pattern), c = 0;; c++) { cfs_cpt_table_create_pattern()
862 char *bracket = strchr(str, '['); cfs_cpt_table_create_pattern()
869 if (*str != 0) { cfs_cpt_table_create_pattern()
870 CERROR("Invalid pattern %s\n", str); cfs_cpt_table_create_pattern()
880 if (sscanf(str, "%d%n", &cpt, &n) < 1) { cfs_cpt_table_create_pattern()
881 CERROR("Invalid cpu pattern %s\n", str); cfs_cpt_table_create_pattern()
896 str = cfs_trimwhite(str + n); cfs_cpt_table_create_pattern()
897 if (str != bracket) { cfs_cpt_table_create_pattern()
898 CERROR("Invalid pattern %s\n", str); cfs_cpt_table_create_pattern()
902 bracket = strchr(str, ']'); cfs_cpt_table_create_pattern()
905 cpt, str); cfs_cpt_table_create_pattern()
909 if (cfs_expr_list_parse(str, (bracket - str) + 1, cfs_cpt_table_create_pattern()
911 CERROR("Can't parse number range: %s\n", str); cfs_cpt_table_create_pattern()
936 str = cfs_trimwhite(bracket + 1); cfs_cpt_table_create_pattern()
/linux-4.1.27/kernel/
H A Dsysctl_binary.c986 char *str, *end; bin_intvec() local
993 str = buffer; bin_intvec()
994 end = str + result; bin_intvec()
999 value = simple_strtoul(str, &str, 10); bin_intvec()
1000 while (isspace(*str)) bin_intvec()
1001 str++; bin_intvec()
1008 if (!isdigit(*str)) bin_intvec()
1016 char *str, *end; bin_intvec() local
1019 str = buffer; bin_intvec()
1020 end = str + BUFSZ; bin_intvec()
1028 str += scnprintf(str, end - str, "%lu\t", value); bin_intvec()
1031 result = kernel_write(file, buffer, str - buffer, 0); bin_intvec()
1057 char *str, *end; bin_ulongvec() local
1064 str = buffer; bin_ulongvec()
1065 end = str + result; bin_ulongvec()
1070 value = simple_strtoul(str, &str, 10); bin_ulongvec()
1071 while (isspace(*str)) bin_ulongvec()
1072 str++; bin_ulongvec()
1079 if (!isdigit(*str)) bin_ulongvec()
1087 char *str, *end; bin_ulongvec() local
1090 str = buffer; bin_ulongvec()
1091 end = str + BUFSZ; bin_ulongvec()
1099 str += scnprintf(str, end - str, "%lu\t", value); bin_ulongvec()
1102 result = kernel_write(file, buffer, str - buffer, 0); bin_ulongvec()
1120 char buf[40], *str = buf; bin_uuid() local
1133 if (!isxdigit(str[0]) || !isxdigit(str[1])) bin_uuid()
1136 uuid[i] = (hex_to_bin(str[0]) << 4) | bin_uuid()
1137 hex_to_bin(str[1]); bin_uuid()
1138 str += 2; bin_uuid()
1139 if (*str == '-') bin_uuid()
1140 str++; bin_uuid()
/linux-4.1.27/drivers/power/reset/
H A Dat91-reset.c63 "str %2, [%0, #" __stringify(AT91_SDRAMC_TR) "]\n\t" at91sam9260_restart()
66 "str %3, [%0, #" __stringify(AT91_SDRAMC_LPR) "]\n\t" at91sam9260_restart()
69 "str %4, [%1, #" __stringify(AT91_RSTC_CR) "]\n\t" at91sam9260_restart()
103 "1: str %3, [%0, #" __stringify(AT91_DDRSDRC_RTR) "]\n\t" at91sam9g45_restart()
105 " str %4, [%0, #" __stringify(AT91_DDRSDRC_LPR) "]\n\t" at91sam9g45_restart()
111 " str %5, [%2, #" __stringify(AT91_RSTC_CR) "]\n\t" at91sam9g45_restart()
/linux-4.1.27/arch/powerpc/sysdev/
H A Dfsl_85xx_l2ctlr.c51 static int __init get_size_from_cmdline(char *str) get_size_from_cmdline() argument
53 if (!str) get_size_from_cmdline()
56 sram_size = str; get_size_from_cmdline()
60 static int __init get_offset_from_cmdline(char *str) get_offset_from_cmdline() argument
62 if (!str) get_offset_from_cmdline()
65 sram_offset = str; get_offset_from_cmdline()
/linux-4.1.27/sound/pci/trident/
H A Dtrident.c82 const char *str; snd_trident_probe() local
109 str = "TRID4DWAVEDX"; snd_trident_probe()
112 str = "TRID4DWAVENX"; snd_trident_probe()
115 str = "SI7018"; snd_trident_probe()
118 str = "Unknown"; snd_trident_probe()
120 strcpy(card->driver, str); snd_trident_probe()

Completed in 10536 milliseconds

1234567