Home
last modified time | relevance | path

Searched refs:str (Results 1 – 200 of 1338) sorted by relevance

1234567

/linux-4.1.27/sound/pci/lola/
Dlola_pcm.c65 struct lola_stream *str) in lola_stream_clear_pending_irq() argument
67 unsigned int val = lola_dsd_read(chip, str->dsd, STS); in lola_stream_clear_pending_irq()
70 lola_dsd_write(chip, str->dsd, STS, val); in lola_stream_clear_pending_irq()
73 static void lola_stream_start(struct lola *chip, struct lola_stream *str, in lola_stream_start() argument
76 lola_stream_clear_pending_irq(chip, str); in lola_stream_start()
77 lola_dsd_write(chip, str->dsd, CTL, in lola_stream_start()
85 static void lola_stream_stop(struct lola *chip, struct lola_stream *str, in lola_stream_stop() argument
88 lola_dsd_write(chip, str->dsd, CTL, in lola_stream_stop()
93 lola_stream_clear_pending_irq(chip, str); in lola_stream_stop()
96 static void wait_for_srst_clear(struct lola *chip, struct lola_stream *str) in wait_for_srst_clear() argument
[all …]
/linux-4.1.27/lib/
Dcmdline.c25 static int get_range(char **str, int *pint) in get_range() argument
29 (*str)++; in get_range()
30 upper_range = simple_strtol((*str), NULL, 0); in get_range()
52 int get_option(char **str, int *pint) in get_option() argument
54 char *cur = *str; in get_option()
58 *pint = simple_strtol(cur, str, 0); in get_option()
59 if (cur == *str) in get_option()
61 if (**str == ',') { in get_option()
62 (*str)++; in get_option()
65 if (**str == '-') in get_option()
[all …]
Dvsprintf.c1862 char *str, *end; in vsnprintf() local
1870 str = buf; in vsnprintf()
1888 if (str < end) { in vsnprintf()
1889 if (copy > end - str) in vsnprintf()
1890 copy = end - str; in vsnprintf()
1891 memcpy(str, old_fmt, copy); in vsnprintf()
1893 str += read; in vsnprintf()
1910 if (str < end) in vsnprintf()
1911 *str = ' '; in vsnprintf()
1912 ++str; in vsnprintf()
[all …]
Dglob.c40 bool __pure glob_match(char const *pat, char const *str) in glob_match() argument
56 unsigned char c = *str++; in glob_match()
68 back_str = --str; /* Allow zero-length match */ in glob_match()
118 str = ++back_str; in glob_match()
136 char const *pat, *str; member
140 static bool __pure __init test(char const *pat, char const *str, bool expected) in test() argument
142 bool match = glob_match(pat, str); in test()
160 printk(message, pat, str, mismatch + 3*match); in test()
Dargv_split.c11 static int count_argc(const char *str) in count_argc() argument
16 for (was_space = true; *str; str++) { in count_argc()
17 if (isspace(*str)) { in count_argc()
59 char **argv_split(gfp_t gfp, const char *str, int *argcp) in argv_split() argument
66 argv_str = kstrndup(str, KMALLOC_MAX_SIZE - 1, gfp); in argv_split()
Dstrnlen_user.c103 long strnlen_user(const char __user *str, long count) in strnlen_user() argument
111 src_addr = (unsigned long)str; in strnlen_user()
114 return do_strnlen_user(str, count, max); in strnlen_user()
134 long strlen_user(const char __user *str) in strlen_user() argument
139 src_addr = (unsigned long)str; in strlen_user()
142 return do_strnlen_user(str, ~0ul, max); in strlen_user()
Dtest-kstrtox.c9 const char *str; member
18 const char *str; \
36 rv = fn(t->str, t->base, &tmp); \
39 t->str, t->base, rv, tmp); \
54 rv = fn(t->str, t->base, &res); \
57 t->str, t->base, t->expected_res, rv); \
62 t->str, t->base, t->expected_res, res); \
/linux-4.1.27/arch/mips/kernel/
Dsegment.c15 static void build_segment_config(char *str, unsigned int cfg) in build_segment_config() argument
24 str += sprintf(str, "%-5s", am_str[am]); in build_segment_config()
31 str += sprintf(str, " %03lx", in build_segment_config()
33 str += sprintf(str, " %01ld", in build_segment_config()
36 str += sprintf(str, " UND"); in build_segment_config()
37 str += sprintf(str, " U"); in build_segment_config()
41 str += sprintf(str, " %01ld\n", in build_segment_config()
48 char str[42]; in show_segments() local
54 build_segment_config(str, segcfg); in show_segments()
55 seq_printf(m, " 0 e0000000 512M %s", str); in show_segments()
[all …]
Dmips-mt.c24 static int __init maxvpes(char *str) in maxvpes() argument
26 get_option(&str, &vpelimit); in maxvpes()
35 static int __init maxtcs(char *str) in maxtcs() argument
37 get_option(&str, &tclimit); in maxtcs()
134 static int __init rpsctl_set(char *str) in rpsctl_set() argument
136 get_option(&str, &mt_opt_rpsctl); in rpsctl_set()
141 static int __init nblsu_set(char *str) in nblsu_set() argument
143 get_option(&str, &mt_opt_nblsu); in nblsu_set()
148 static int __init config7_set(char *str) in config7_set() argument
150 get_option(&str, &mt_opt_config7); in config7_set()
[all …]
/linux-4.1.27/tools/perf/util/
Dstring.c10 s64 perf_atoll(const char *str) in perf_atoll() argument
16 if (!isdigit(str[0])) in perf_atoll()
19 length = strtoll(str, &p, 10); in perf_atoll()
76 static int count_argc(const char *str) in count_argc() argument
80 while (*str) { in count_argc()
81 str = skip_sep(str); in count_argc()
82 if (*str) { in count_argc()
84 str = skip_arg(str); in count_argc()
118 char **argv_split(const char *str, int *argcp) in argv_split() argument
120 int argc = count_argc(str); in argv_split()
[all …]
Dcomm.c7 char *str; member
24 zfree(&cs->str); in comm_str__put()
29 static struct comm_str *comm_str__alloc(const char *str) in comm_str__alloc() argument
37 cs->str = strdup(str); in comm_str__alloc()
38 if (!cs->str) { in comm_str__alloc()
46 static struct comm_str *comm_str__findnew(const char *str, struct rb_root *root) in comm_str__findnew() argument
57 cmp = strcmp(str, iter->str); in comm_str__findnew()
67 new = comm_str__alloc(str); in comm_str__findnew()
77 struct comm *comm__new(const char *str, u64 timestamp, bool exec) in comm__new() argument
87 comm->comm_str = comm_str__findnew(str, &comm_str_root); in comm__new()
[all …]
Dcgroup.c76 static int add_cgroup(struct perf_evlist *evlist, char *str) in add_cgroup() argument
88 if (!strcmp(cgrp->name, str)) in add_cgroup()
99 cgrp->name = str; in add_cgroup()
101 cgrp->fd = open_cgroup(str); in add_cgroup()
141 int parse_cgroups(const struct option *opt __maybe_unused, const char *str, in parse_cgroups() argument
145 const char *p, *e, *eos = str + strlen(str); in parse_cgroups()
155 p = strchr(str, ','); in parse_cgroups()
159 if (e - str) { in parse_cgroups()
161 s = strndup(str, e - str); in parse_cgroups()
174 str = p+1; in parse_cgroups()
Dparse-events.l16 static int __value(YYSTYPE *yylval, char *str, int base, int token) in __value() argument
21 num = strtoull(str, NULL, base); in __value()
45 static int str(yyscan_t scanner, int token) in str() function
50 yylval->str = strdup(text); in str()
59 yylval->str = strdup(text); in pmu_str_check()
135 str(yyscanner, PE_EVENT_NAME);
156 {name_minus} { return str(yyscanner, PE_NAME); }
160 {modifier_bp} { return str(yyscanner, PE_MODIFIER_BP); }
205 cycles-ct { return str(yyscanner, PE_KERNEL_PMU_EVENT); }
206 cycles-t { return str(yyscanner, PE_KERNEL_PMU_EVENT); }
[all …]
Dparse-events.c230 char *str = strchr(name, ':'); in tracepoint_name_to_path() local
232 if (path == NULL || str == NULL) { in tracepoint_name_to_path()
237 path->system = strndup(name, str - name); in tracepoint_name_to_path()
238 path->name = strdup(str+1); in tracepoint_name_to_path()
300 static int parse_aliases(char *str, const char *names[][PERF_EVSEL__MAX_ALIASES], int size) in parse_aliases() argument
308 if (n > longest && !strncasecmp(str, names[i][j], n)) in parse_aliases()
339 char *str = op_result[i]; in parse_events_add_cache() local
341 n += snprintf(name + n, MAX_NAME_LEN - n, "-%s", str); in parse_events_add_cache()
344 cache_op = parse_aliases(str, perf_evsel__hw_cache_op, in parse_events_add_cache()
354 cache_result = parse_aliases(str, perf_evsel__hw_cache_result, in parse_events_add_cache()
[all …]
Dstrfilter.c174 const char *str) in strfilter_node__compare() argument
181 return strfilter_node__compare(node->l, str) || in strfilter_node__compare()
182 strfilter_node__compare(node->r, str); in strfilter_node__compare()
184 return strfilter_node__compare(node->l, str) && in strfilter_node__compare()
185 strfilter_node__compare(node->r, str); in strfilter_node__compare()
187 return !strfilter_node__compare(node->r, str); in strfilter_node__compare()
189 return strglobmatch(str, node->p); in strfilter_node__compare()
194 bool strfilter__compare(struct strfilter *filter, const char *str) in strfilter__compare() argument
198 return strfilter_node__compare(filter->root, str); in strfilter__compare()
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
91 int type_term, char *config, char *str);
97 int parse_events__modifier_event(struct list_head *list, char *str, bool add);
Dutil.h156 extern int prefixcmp(const char *str, const char *prefix);
159 static inline const char *skip_prefix(const char *str, const char *prefix) in skip_prefix() argument
162 return strncmp(str, prefix, len) ? NULL : str + len; in 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);
Dwrapper.c15 char *xstrdup(const char *str) in xstrdup() argument
17 char *ret = strdup(str); in xstrdup()
19 release_pack_memory(strlen(str) + 1, -1); in xstrdup()
20 ret = strdup(str); in xstrdup()
Dheader.c91 static int do_write_string(int fd, const char *str) in do_write_string() argument
96 olen = strlen(str) + 1; in do_write_string()
104 return write_padded(fd, str, olen, len); in do_write_string()
639 char str[MAXPATHLEN]; in write_topo_node() local
647 sprintf(str, "/sys/devices/system/node/node%d/meminfo", node); in write_topo_node()
648 fp = fopen(str, "r"); in write_topo_node()
676 sprintf(str, "/sys/devices/system/node/node%d/cpulist", node); in write_topo_node()
678 fp = fopen(str, "r"); in write_topo_node()
912 char *str; in print_cmdline() local
915 str = ph->env.cmdline; in print_cmdline()
[all …]
/linux-4.1.27/fs/efivarfs/
Dinode.c47 bool efivarfs_valid_name(const char *str, int len) in efivarfs_valid_name() argument
52 const char *s = str + len - EFI_VARIABLE_GUID_LEN; in efivarfs_valid_name()
84 static void efivarfs_hex_to_guid(const char *str, efi_guid_t *guid) in efivarfs_hex_to_guid() argument
86 guid->b[0] = hex_to_bin(str[6]) << 4 | hex_to_bin(str[7]); in efivarfs_hex_to_guid()
87 guid->b[1] = hex_to_bin(str[4]) << 4 | hex_to_bin(str[5]); in efivarfs_hex_to_guid()
88 guid->b[2] = hex_to_bin(str[2]) << 4 | hex_to_bin(str[3]); in efivarfs_hex_to_guid()
89 guid->b[3] = hex_to_bin(str[0]) << 4 | hex_to_bin(str[1]); in efivarfs_hex_to_guid()
90 guid->b[4] = hex_to_bin(str[11]) << 4 | hex_to_bin(str[12]); in efivarfs_hex_to_guid()
91 guid->b[5] = hex_to_bin(str[9]) << 4 | hex_to_bin(str[10]); in efivarfs_hex_to_guid()
92 guid->b[6] = hex_to_bin(str[16]) << 4 | hex_to_bin(str[17]); in efivarfs_hex_to_guid()
[all …]
/linux-4.1.27/drivers/firmware/
Discsi_ibft.c208 char *str = buf; in sprintf_ipaddr() local
216 str += sprintf(buf, "%pI4", ip + 12); in sprintf_ipaddr()
221 str += sprintf(str, "%pI6", ip); in sprintf_ipaddr()
223 str += sprintf(str, "\n"); in sprintf_ipaddr()
224 return str - buf; in sprintf_ipaddr()
227 static ssize_t sprintf_string(char *str, int len, char *buf) in sprintf_string() argument
229 return sprintf(str, "%.*s\n", len, buf); in sprintf_string()
261 char *str = buf; in ibft_attr_show_initiator() local
268 str += sprintf(str, "%d\n", initiator->hdr.index); in ibft_attr_show_initiator()
271 str += sprintf(str, "%d\n", initiator->hdr.flags); in ibft_attr_show_initiator()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/
Dnidstrings.c71 char *str; in libcfs_next_nidstring() local
76 str = libcfs_nidstrings[libcfs_nidstring_idx++]; in libcfs_next_nidstring()
81 return str; in libcfs_next_nidstring()
84 static int libcfs_lo_str2addr(const char *str, int nob, __u32 *addr) in libcfs_lo_str2addr() argument
90 static void libcfs_ip_addr2str(__u32 addr, char *str) in libcfs_ip_addr2str() argument
92 snprintf(str, LNET_NIDSTR_SIZE, "%u.%u.%u.%u", in libcfs_ip_addr2str()
97 static int libcfs_ip_str2addr(const char *str, int nob, __u32 *addr) in libcfs_ip_str2addr() argument
106 if (sscanf(str, "%u.%u.%u.%u%n", &a, &b, &c, &d, &n) >= 4 && in libcfs_ip_str2addr()
117 static void libcfs_decnum_addr2str(__u32 addr, char *str) in libcfs_decnum_addr2str() argument
119 snprintf(str, LNET_NIDSTR_SIZE, "%u", addr); in libcfs_decnum_addr2str()
[all …]
Dlibcfs_string.c46 int cfs_str2mask(const char *str, const char *(*bit2str)(int bit), in cfs_str2mask() argument
58 while (*str != '\0') { in cfs_str2mask()
59 while (isspace(*str)) in cfs_str2mask()
60 str++; in cfs_str2mask()
61 if (*str == '\0') in cfs_str2mask()
63 if (*str == '+' || *str == '-') { in cfs_str2mask()
64 op = *str++; in cfs_str2mask()
68 while (isspace(*str)) in cfs_str2mask()
69 str++; in cfs_str2mask()
70 if (*str == '\0') /* trailing op */ in cfs_str2mask()
[all …]
Ddebug.c256 libcfs_debug_mask2str(char *str, int size, int mask, int is_subsys) in libcfs_debug_mask2str() argument
266 str[0] = '0'; in libcfs_debug_mask2str()
279 str[len] = ' '; in libcfs_debug_mask2str()
285 str[len] = *token; in libcfs_debug_mask2str()
294 str[len] = 0; in libcfs_debug_mask2str()
296 str[size - 1] = 0; in libcfs_debug_mask2str()
302 libcfs_debug_str2mask(int *mask, const char *str, int is_subsys) in libcfs_debug_str2mask() argument
313 for (n = strlen(str); n > 0; n--) in libcfs_debug_str2mask()
314 if (!isspace(str[n-1])) in libcfs_debug_str2mask()
317 t = sscanf(str, "%i%n", &m, &matched); in libcfs_debug_str2mask()
[all …]
Dtracefile.c478 cfs_trace_assertion_failed(const char *str, in cfs_trace_assertion_failed() argument
489 cfs_print_to_console(&hdr, D_EMERG, str, strlen(str), in cfs_trace_assertion_failed()
808 int cfs_trace_allocate_string_buffer(char **str, int nob) in cfs_trace_allocate_string_buffer() argument
813 *str = kmalloc(nob, GFP_IOFS | __GFP_ZERO); in cfs_trace_allocate_string_buffer()
814 if (*str == NULL) in cfs_trace_allocate_string_buffer()
820 void cfs_trace_free_string_buffer(char *str, int nob) in cfs_trace_free_string_buffer() argument
822 kfree(str); in cfs_trace_free_string_buffer()
827 char *str; in cfs_trace_dump_debug_buffer_usrstr() local
830 rc = cfs_trace_allocate_string_buffer(&str, usr_str_nob + 1); in cfs_trace_dump_debug_buffer_usrstr()
834 rc = cfs_trace_copyin_string(str, usr_str_nob + 1, in cfs_trace_dump_debug_buffer_usrstr()
[all …]
/linux-4.1.27/arch/x86/boot/
Dprintf.c43 static char *number(char *str, long num, int base, int size, int precision, in number() argument
92 *str++ = ' '; in number()
94 *str++ = sign; in number()
97 *str++ = '0'; in number()
99 *str++ = '0'; in number()
100 *str++ = ('X' | locase); in number()
105 *str++ = c; in number()
107 *str++ = '0'; in number()
109 *str++ = tmp[i]; in number()
111 *str++ = ' '; in number()
[all …]
Dmkcpustr.c26 const char *str; in main() local
32 str = x86_cap_flags[i*32+j]; in main()
38 if (!str) in main()
39 str = ""; in main()
41 i, j, str); in main()
42 } else if (str) { in main()
46 i, j, i, j, str); in main()
/linux-4.1.27/arch/alpha/boot/
Dstdio.c47 static char * number(char * str, unsigned long long num, int base, int size, int precision, int typ… in number() argument
91 *str++ = ' '; in number()
93 *str++ = sign; in number()
96 *str++ = '0'; in number()
98 *str++ = '0'; in number()
99 *str++ = digits[33]; in number()
104 *str++ = c; in number()
106 *str++ = '0'; in number()
108 *str++ = tmp[i]; in number()
110 *str++ = ' '; in number()
[all …]
/linux-4.1.27/tools/perf/arch/arm/tests/
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]
[all …]
/linux-4.1.27/arch/powerpc/boot/
Dstdio.c73 static char * number(char * str, unsigned long long num, int base, int size, int precision, int typ… in number() argument
117 *str++ = ' '; in number()
119 *str++ = sign; in number()
122 *str++ = '0'; in number()
124 *str++ = '0'; in number()
125 *str++ = digits[33]; in number()
130 *str++ = c; in number()
132 *str++ = '0'; in number()
134 *str++ = tmp[i]; in number()
136 *str++ = ' '; in number()
[all …]
Dplanetcore.c57 const char *str = planetcore_get_key(table, key); in planetcore_get_decimal() local
58 if (!str) in planetcore_get_decimal()
61 *val = strtoull(str, NULL, 10); in planetcore_get_decimal()
67 const char *str = planetcore_get_key(table, key); in planetcore_get_hex() local
68 if (!str) in planetcore_get_hex()
71 *val = strtoull(str, NULL, 16); in planetcore_get_hex()
/linux-4.1.27/drivers/mmc/core/
Ddebugfs.c57 const char *str; in mmc_ios_show() local
74 str = "open drain"; in mmc_ios_show()
77 str = "push-pull"; in mmc_ios_show()
80 str = "invalid"; in mmc_ios_show()
83 seq_printf(s, "bus mode:\t%u (%s)\n", ios->bus_mode, str); in mmc_ios_show()
87 str = "don't care"; in mmc_ios_show()
90 str = "active high"; in mmc_ios_show()
93 str = "active low"; in mmc_ios_show()
96 str = "invalid"; in mmc_ios_show()
99 seq_printf(s, "chip select:\t%u (%s)\n", ios->chip_select, str); in mmc_ios_show()
[all …]
/linux-4.1.27/drivers/firmware/efi/libstub/
Defi-stub-helper.c49 void efi_printk(efi_system_table_t *sys_table_arg, char *str) in efi_printk() argument
53 for (s8 = str; *s8; s8++) { in efi_printk()
318 char *str; in efi_parse_options() local
324 str = strstr(cmdline, "efi="); in efi_parse_options()
325 if (!str) in efi_parse_options()
329 str += strlen("efi="); in efi_parse_options()
335 while (*str) { in efi_parse_options()
336 if (!strncmp(str, "nochunk", 7)) { in efi_parse_options()
337 str += strlen("nochunk"); in efi_parse_options()
342 while (*str && *str != ',') in efi_parse_options()
[all …]
/linux-4.1.27/arch/x86/kernel/acpi/
Dsleep.c121 static int __init acpi_sleep_setup(char *str) in acpi_sleep_setup() argument
123 while ((str != NULL) && (*str != '\0')) { in acpi_sleep_setup()
124 if (strncmp(str, "s3_bios", 7) == 0) in acpi_sleep_setup()
126 if (strncmp(str, "s3_mode", 7) == 0) in acpi_sleep_setup()
128 if (strncmp(str, "s3_beep", 7) == 0) in acpi_sleep_setup()
131 if (strncmp(str, "s4_nohwsig", 10) == 0) in acpi_sleep_setup()
134 if (strncmp(str, "nonvs", 5) == 0) in acpi_sleep_setup()
136 if (strncmp(str, "nonvs_s3", 8) == 0) in acpi_sleep_setup()
138 if (strncmp(str, "old_ordering", 12) == 0) in acpi_sleep_setup()
140 str = strchr(str, ','); in acpi_sleep_setup()
[all …]
/linux-4.1.27/include/linux/netfilter/ipset/
Dip_set_comment.h25 if (unlikely(comment->str)) { in ip_set_init_comment()
26 kfree(comment->str); in ip_set_init_comment()
27 comment->str = NULL; in ip_set_init_comment()
33 comment->str = kzalloc(len + 1, GFP_ATOMIC); in ip_set_init_comment()
34 if (unlikely(!comment->str)) in ip_set_init_comment()
36 strlcpy(comment->str, ext->comment, len + 1); in ip_set_init_comment()
42 if (!comment->str) in ip_set_put_comment()
44 return nla_put_string(skb, IPSET_ATTR_COMMENT, comment->str); in ip_set_put_comment()
50 if (unlikely(!comment->str)) in ip_set_comment_free()
52 kfree(comment->str); in ip_set_comment_free()
[all …]
/linux-4.1.27/arch/ia64/kernel/
Dsal.c47 const char *str; in ia64_sal_strerror() local
49 case 0: str = "Call completed without error"; break; in ia64_sal_strerror()
50 case 1: str = "Effect a warm boot of the system to complete " in ia64_sal_strerror()
52 case -1: str = "Not implemented"; break; in ia64_sal_strerror()
53 case -2: str = "Invalid argument"; break; in ia64_sal_strerror()
54 case -3: str = "Call completed with error"; break; in ia64_sal_strerror()
55 case -4: str = "Virtual address not registered"; break; in ia64_sal_strerror()
56 case -5: str = "No information available"; break; in ia64_sal_strerror()
57 case -6: str = "Insufficient space to add the entry"; break; in ia64_sal_strerror()
58 case -7: str = "Invalid entry_addr value"; break; in ia64_sal_strerror()
[all …]
Dmachvec.c48 char str[64]; in machvec_init_from_cmdline() local
55 strlcpy(str, start + strlen("machvec="), sizeof(str)); in machvec_init_from_cmdline()
56 if ( (end = strchr(str, ' ')) ) in machvec_init_from_cmdline()
59 return machvec_init(str); in machvec_init_from_cmdline()
/linux-4.1.27/arch/arm64/kvm/
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)]
[all …]
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)] )
[all …]
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)]
[all …]
/linux-4.1.27/arch/arm/mach-at91/
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]
[all …]
/linux-4.1.27/net/decnet/
Dsysctl_net_decnet.c68 static void strip_it(char *str) in strip_it() argument
71 switch (*str) { in strip_it()
76 *str = 0; in strip_it()
81 str++; in strip_it()
89 static int parse_addr(__le16 *addr, char *str) in parse_addr() argument
93 while(*str && !ISNUM(*str)) str++; in parse_addr()
95 if (*str == 0) in parse_addr()
98 area = (*str++ - '0'); in parse_addr()
99 if (ISNUM(*str)) { in parse_addr()
101 area += (*str++ - '0'); in parse_addr()
[all …]
/linux-4.1.27/arch/arm/mach-imx/
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]
[all …]
/linux-4.1.27/kernel/printk/
Dbraille.c10 char *_braille_console_setup(char **str, char **brl_options) in _braille_console_setup() argument
12 if (!memcmp(*str, "brl,", 4)) { in _braille_console_setup()
14 *str += 4; in _braille_console_setup()
15 } else if (!memcmp(str, "brl=", 4)) { in _braille_console_setup()
16 *brl_options = *str + 4; in _braille_console_setup()
17 *str = strchr(*brl_options, ','); in _braille_console_setup()
18 if (!*str) in _braille_console_setup()
21 *((*str)++) = 0; in _braille_console_setup()
25 return *str; in _braille_console_setup()
/linux-4.1.27/drivers/char/tpm/
Dtpm-sysfs.c37 char *str = buf; in pubek_show() local
58 str += in pubek_show()
59 sprintf(str, in pubek_show()
77 str += sprintf(str, "%02X ", data[i + 28]); in pubek_show()
79 str += sprintf(str, "\n"); in pubek_show()
82 rc = str - buf; in pubek_show()
94 char *str = buf; in pcrs_show() local
107 str += sprintf(str, "PCR-%02d: ", i); in pcrs_show()
109 str += sprintf(str, "%02X ", digest[j]); in pcrs_show()
110 str += sprintf(str, "\n"); in pcrs_show()
[all …]
/linux-4.1.27/arch/x86/pci/
Dcommon.c533 char *__init pcibios_setup(char *str) in pcibios_setup() argument
535 if (!strcmp(str, "off")) { in pcibios_setup()
538 } else if (!strcmp(str, "bfsort")) { in pcibios_setup()
541 } else if (!strcmp(str, "nobfsort")) { in pcibios_setup()
546 else if (!strcmp(str, "bios")) { in pcibios_setup()
549 } else if (!strcmp(str, "nobios")) { in pcibios_setup()
552 } else if (!strcmp(str, "biosirq")) { in pcibios_setup()
555 } else if (!strncmp(str, "pirqaddr=", 9)) { in pcibios_setup()
556 pirq_table_addr = simple_strtoul(str+9, NULL, 0); in pcibios_setup()
561 else if (!strcmp(str, "conf1")) { in pcibios_setup()
[all …]
/linux-4.1.27/tools/perf/
Dbuiltin-probe.c70 static int parse_probe_event(const char *str) in parse_probe_event() argument
75 pr_debug("probe-definition(%d): %s\n", params.nevents, str); in parse_probe_event()
90 ret = parse_perf_probe_command(str, pev); in parse_probe_event()
162 const char *str, int unset __maybe_unused) in opt_add_probe_event() argument
164 if (str) { in opt_add_probe_event()
166 return parse_probe_event(str); in opt_add_probe_event()
172 const char *str, int unset __maybe_unused) in opt_del_probe_event() argument
174 if (str) { in opt_del_probe_event()
178 strlist__add(params.dellist, str); in opt_del_probe_event()
183 static int opt_set_target(const struct option *opt, const char *str, in opt_set_target() argument
[all …]
Dbuiltin-script.c50 const char *str; member
53 {.str = "comm", .field = PERF_OUTPUT_COMM},
54 {.str = "tid", .field = PERF_OUTPUT_TID},
55 {.str = "pid", .field = PERF_OUTPUT_PID},
56 {.str = "time", .field = PERF_OUTPUT_TIME},
57 {.str = "cpu", .field = PERF_OUTPUT_CPU},
58 {.str = "event", .field = PERF_OUTPUT_EVNAME},
59 {.str = "trace", .field = PERF_OUTPUT_TRACE},
60 {.str = "ip", .field = PERF_OUTPUT_IP},
61 {.str = "sym", .field = PERF_OUTPUT_SYM},
[all …]
/linux-4.1.27/arch/unicore32/kernel/
Dtraps.c64 static void dump_mem(const char *lvl, const char *str, unsigned long bottom, in dump_mem() argument
80 lvl, str, bottom, top); in dump_mem()
84 char str[sizeof(" 12345678") * 8 + 1]; in dump_mem() local
86 memset(str, ' ', sizeof(str)); in dump_mem()
87 str[sizeof(str) - 1] = '\0'; in dump_mem()
93 sprintf(str + i * 9, " %08lx", val); in dump_mem()
95 sprintf(str + i * 9, " ????????"); in dump_mem()
98 printk(KERN_DEFAULT "%s%04lx:%s\n", lvl, first & 0xffff, str); in dump_mem()
109 char str[sizeof("00000000 ") * 5 + 2 + 1], *p = str; in dump_instr() local
133 printk(KERN_DEFAULT "%sCode: %s\n", lvl, str); in dump_instr()
[all …]
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]
/linux-4.1.27/kernel/power/
Dwakelock.c40 char *str = buf; in pm_show_wakelocks() local
48 str += scnprintf(str, end - str, "%s ", wl->name); in pm_show_wakelocks()
50 if (str > buf) in pm_show_wakelocks()
51 str--; in pm_show_wakelocks()
53 str += scnprintf(str, end - str, "\n"); in pm_show_wakelocks()
56 return (str - buf); in pm_show_wakelocks()
188 const char *str = buf; in pm_wake_lock() local
197 while (*str && !isspace(*str)) in pm_wake_lock()
198 str++; in pm_wake_lock()
200 len = str - buf; in pm_wake_lock()
[all …]
Dhibernate.c1091 static int __init resume_setup(char *str) in resume_setup() argument
1096 strncpy( resume_file, str, 255 ); in resume_setup()
1100 static int __init resume_offset_setup(char *str) in resume_offset_setup() argument
1107 if (sscanf(str, "%llu", &offset) == 1) in resume_offset_setup()
1113 static int __init hibernate_setup(char *str) in hibernate_setup() argument
1115 if (!strncmp(str, "noresume", 8)) in hibernate_setup()
1117 else if (!strncmp(str, "nocompress", 10)) in hibernate_setup()
1119 else if (!strncmp(str, "no", 2)) { in hibernate_setup()
1126 static int __init noresume_setup(char *str) in noresume_setup() argument
1132 static int __init resumewait_setup(char *str) in resumewait_setup() argument
[all …]
/linux-4.1.27/arch/um/drivers/
Dslirp_kern.c71 static int slirp_setup(char *str, char **mac_out, void *data) in slirp_setup() argument
78 str = split_if_spec(str, mac_out, NULL); in slirp_setup()
80 if (str == NULL) /* no command line given after MAC addr */ in slirp_setup()
89 init->argw.argv[i++] = str; in slirp_setup()
90 while(*str && *str!=',') { in slirp_setup()
91 if (*str == '_') in slirp_setup()
92 *str=' '; in slirp_setup()
93 str++; in slirp_setup()
95 if (*str != ',') in slirp_setup()
97 *str++ = '\0'; in slirp_setup()
Dfd.c19 char str[sizeof("1234567890\0")]; member
22 static void *fd_init(char *str, int device, const struct chan_opts *opts) in fd_init() argument
28 if (*str != ':') { in fd_init()
33 str++; in fd_init()
34 n = strtoul(str, &end, 0); in fd_init()
35 if ((*end != '\0') || (end == str)) { in fd_init()
37 "'%s'\n", str); in fd_init()
64 sprintf(data->str, "%d", data->fd); in fd_open()
65 *dev_out = data->str; in fd_open()
Dnet_user.c54 char *str; in read_output() local
68 str = "length"; in read_output()
78 str = "data"; in read_output()
89 "errno = %d\n", str, -ret); in read_output()
92 "%d of %d bytes\n", str, ret, expected); in read_output()
250 char *split_if_spec(char *str, ...) in split_if_spec() argument
255 va_start(ap, str); in split_if_spec()
257 if (*str == '\0') in split_if_spec()
259 end = strchr(str, ','); in split_if_spec()
260 if (end != str) in split_if_spec()
[all …]
Dchan_kern.c14 static void *not_configged_init(char *str, int device, in not_configged_init() argument
347 static int one_chan_config_string(struct chan *chan, char *str, int size, in one_chan_config_string() argument
353 CONFIG_CHUNK(str, size, n, "none", 1); in one_chan_config_string()
357 CONFIG_CHUNK(str, size, n, chan->ops->type, 0); in one_chan_config_string()
360 CONFIG_CHUNK(str, size, n, "", 1); in one_chan_config_string()
364 CONFIG_CHUNK(str, size, n, ":", 0); in one_chan_config_string()
365 CONFIG_CHUNK(str, size, n, chan->dev, 0); in one_chan_config_string()
371 char *str, int size, char **error_out) in chan_pair_config_string() argument
375 n = one_chan_config_string(in, str, size, error_out); in chan_pair_config_string()
376 str += n; in chan_pair_config_string()
[all …]
Dnet_kern.c298 static void setup_etheraddr(struct net_device *dev, char *str) in setup_etheraddr() argument
304 if (str == NULL) in setup_etheraddr()
308 addr[i] = simple_strtoul(str, &end, 16); in setup_etheraddr()
309 if ((end == str) || in setup_etheraddr()
313 "as an ethernet address\n", str); in setup_etheraddr()
316 str = end + 1; in setup_etheraddr()
529 static int eth_parse(char *str, int *index_out, char **str_out, in eth_parse() argument
535 n = simple_strtoul(str, &end, 0); in eth_parse()
536 if (end == str) { in eth_parse()
541 str = end; in eth_parse()
[all …]
Dmconsole_kern.h27 #define CONFIG_CHUNK(str, size, current, chunk, end) \ argument
31 str = NULL; \
32 if(str != NULL){ \
33 strcpy(str, chunk); \
34 str += strlen(chunk); \
Dubd_kern.c228 static int fake_ide_setup(char *str) in fake_ide_setup() argument
243 char *str = *ptr, *end; in parse_unit() local
246 if(isdigit(*str)) { in parse_unit()
247 n = simple_strtoul(str, &end, 0); in parse_unit()
248 if(end == str) in parse_unit()
252 else if (('a' <= *str) && (*str <= 'z')) { in parse_unit()
253 n = *str - 'a'; in parse_unit()
254 str++; in parse_unit()
255 *ptr = str; in parse_unit()
264 static int ubd_setup_common(char *str, int *index_out, char **error_out) in ubd_setup_common() argument
[all …]
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) in con_config() argument
79 return line_config(vts, ARRAY_SIZE(vts), str, &opts, error_out); in con_config()
82 static int con_get_config(char *dev, char *str, int size, char **error_out) in con_get_config() argument
84 return line_get_config(dev, vts, ARRAY_SIZE(vts), str, size, error_out); in con_get_config()
193 static int console_chan_setup(char *str) in console_chan_setup() argument
195 line_setup(vt_conf, MAX_TTYS, &def_conf, str, "console"); in console_chan_setup()
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) in ssl_config() argument
74 return line_config(serial_lines, ARRAY_SIZE(serial_lines), str, &opts, in ssl_config()
78 static int ssl_get_config(char *dev, char *str, int size, char **error_out) in ssl_get_config() argument
80 return line_get_config(dev, serial_lines, ARRAY_SIZE(serial_lines), str, in ssl_get_config()
192 static int ssl_chan_setup(char *str) in ssl_chan_setup() argument
194 line_setup(conf, NR_PORTS, &def_conf, str, "serial line"); in ssl_chan_setup()
Dstderr_console.c38 static int stderr_setup(char *str) in stderr_setup() argument
40 if (!str) in stderr_setup()
42 use_stderr_console = simple_strtoul(str,&str,0); in stderr_setup()
Dtty.c19 static void *tty_chan_init(char *str, int device, const struct chan_opts *opts) in tty_chan_init() argument
23 if (*str != ':') { in tty_chan_init()
28 str++; in tty_chan_init()
33 *data = ((struct tty_chan) { .dev = str, in tty_chan_init()
Dport_user.c24 static void *port_init(char *str, int device, const struct chan_opts *opts) in port_init() argument
31 if (*str != ':') { in port_init()
36 str++; in port_init()
37 port = strtoul(str, &end, 0); in port_init()
38 if ((*end != '\0') || (end == str)) { in port_init()
40 str); in port_init()
/linux-4.1.27/arch/c6x/kernel/
Dsoc.c34 static int __init get_mac_addr_from_cmdline(char *str) in get_mac_addr_from_cmdline() argument
38 for (count = 0; count < 6 && *str; count++, str += 3) { in get_mac_addr_from_cmdline()
39 if (!isxdigit(str[0]) || !isxdigit(str[1])) in get_mac_addr_from_cmdline()
41 if (str[2] != ((count < 5) ? ':' : '\0')) in get_mac_addr_from_cmdline()
46 val |= isdigit(str[i]) ? in get_mac_addr_from_cmdline()
47 str[i] - '0' : toupper(str[i]) - 'A' + 10; in get_mac_addr_from_cmdline()
/linux-4.1.27/arch/arm/lib/
Dio-writesw-armv3.S29 str r3, [r0]
48 str ip, [r0]
52 str ip, [r0]
56 str ip, [r0]
60 str ip, [r0]
64 str ip, [r0]
68 str ip, [r0]
72 str ip, [r0]
76 str ip, [r0]
91 str ip, [r0]
[all …]
Dio-writesl.S24 str r3, [r0, #0]
25 str r4, [r0, #0]
26 str ip, [r0, #0]
27 str lr, [r0, #0]
48 str ip, [r0]
56 str ip, [r0]
64 str ip, [r0]
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/init/
Ddo_mounts_md.c63 static int __init md_setup(char *str) in md_setup() argument
70 if (*str == 'd') { in md_setup()
72 str++; in md_setup()
74 if (get_option(&str, &minor) != 2) { /* MD Number */ in md_setup()
78 str1 = str; in md_setup()
92 switch (get_option(&str, &level)) { /* RAID level */ in md_setup()
95 if (get_option(&str, &factor) != 2 || /* Chunk Size */ in md_setup()
96 get_option(&str, &fault) != 2) { in md_setup()
110 str = str1; in md_setup()
118 minor, pername, str); in md_setup()
[all …]
Ddo_mounts.c47 static int __init load_ramdisk(char *str) in load_ramdisk() argument
49 rd_doload = simple_strtol(str,NULL,0) & 3; in load_ramdisk()
54 static int __init readonly(char *str) in readonly() argument
56 if (*str) in readonly()
62 static int __init readwrite(char *str) in readwrite() argument
64 if (*str) in readwrite()
301 static int __init rootwait_setup(char *str) in rootwait_setup() argument
303 if (*str) in rootwait_setup()
312 static int __init root_data_setup(char *str) in root_data_setup() argument
314 root_mount_data = str; in root_data_setup()
[all …]
Dmain.c153 static int __init set_reset_devices(char *str) in set_reset_devices() argument
174 int n = strlen(p->str); in obsolete_checksetup()
175 if (parameqn(line, p->str, n)) { in obsolete_checksetup()
185 p->str); in obsolete_checksetup()
203 static int __init debug_kernel(char *str) in debug_kernel() argument
209 static int __init quiet_kernel(char *str) in quiet_kernel() argument
218 static int __init loglevel(char *str) in loglevel() argument
227 if (get_option(&str, &newlevel)) { in loglevel()
320 static int __init init_setup(char *str) in init_setup() argument
324 execute_command = str; in init_setup()
[all …]
/linux-4.1.27/arch/arm/mach-tegra/
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]
[all …]
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
[all …]
/linux-4.1.27/drivers/net/wan/lmc/
Dlmc_debug.c15 char str[80], *pstr; in lmcConsoleLog() local
17 sprintf(str, KERN_DEBUG "lmc: %s: ", type); in lmcConsoleLog()
18 pstr = str+strlen(str); in lmcConsoleLog()
36 printk(str); in lmcConsoleLog()
37 sprintf(str, KERN_DEBUG "lmc: %s: ", type); in lmcConsoleLog()
38 pstr=str+strlen(str); in lmcConsoleLog()
44 printk(str); in lmcConsoleLog()
/linux-4.1.27/arch/arm/mach-davinci/
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]
[all …]
/linux-4.1.27/fs/cifs/
Dsmbencrypt.c52 str_to_key(unsigned char *str, unsigned char *key) in str_to_key() argument
56 key[0] = str[0] >> 1; in str_to_key()
57 key[1] = ((str[0] & 0x01) << 6) | (str[1] >> 2); in str_to_key()
58 key[2] = ((str[1] & 0x03) << 5) | (str[2] >> 3); in str_to_key()
59 key[3] = ((str[2] & 0x07) << 4) | (str[3] >> 4); in str_to_key()
60 key[4] = ((str[3] & 0x0F) << 3) | (str[4] >> 5); in str_to_key()
61 key[5] = ((str[4] & 0x1F) << 2) | (str[5] >> 6); in str_to_key()
62 key[6] = ((str[5] & 0x3F) << 1) | (str[6] >> 7); in str_to_key()
63 key[7] = str[6] & 0x7F; in str_to_key()
/linux-4.1.27/arch/mips/emma/markeins/
Dled.c33 void markeins_led(const char *str) in markeins_led() argument
36 int len = strlen(str); in markeins_led()
44 emma2rh_out8(LED_BASE + i, str[i]); in markeins_led()
48 str[i]); in markeins_led()
53 char str[10]; in markeins_led_hex() local
55 sprintf(str, "%08x", val); in markeins_led_hex()
56 markeins_led(str); in markeins_led_hex()
/linux-4.1.27/drivers/staging/lustre/include/linux/libcfs/
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) argument
/linux-4.1.27/drivers/staging/lustre/lnet/lnet/
Dconfig.c51 lnet_syntax(char *name, char *str, int offset, int width) in lnet_syntax() argument
61 LCONSOLE_ERROR_MSG(0x10f, "Error parsing '%s=\"%s\"'\n", name, str); in lnet_syntax()
183 char *str; in lnet_parse_networks() local
205 str = tmp = tokens; in lnet_parse_networks()
212 while (str != NULL && *str != 0) { in lnet_parse_networks()
213 char *comma = strchr(str, ','); in lnet_parse_networks()
214 char *bracket = strchr(str, '('); in lnet_parse_networks()
215 char *square = strchr(str, '['); in lnet_parse_networks()
255 net = libcfs_str2net(cfs_trimwhite(str)); in lnet_parse_networks()
260 tmp = str; in lnet_parse_networks()
[all …]
/linux-4.1.27/arch/arm/mach-iop13xx/
Dsetup.c511 static int __init iop13xx_init_uart_setup(char *str) in iop13xx_init_uart_setup() argument
513 if (str) { in iop13xx_init_uart_setup()
514 while (*str != '\0') { in iop13xx_init_uart_setup()
515 switch(*str) { in iop13xx_init_uart_setup()
527 " at character: \'%c\'", *str); in iop13xx_init_uart_setup()
528 *(str + 1) = '\0'; in iop13xx_init_uart_setup()
531 str++; in iop13xx_init_uart_setup()
537 static int __init iop13xx_init_i2c_setup(char *str) in iop13xx_init_i2c_setup() argument
539 if (str) { in iop13xx_init_i2c_setup()
540 while (*str != '\0') { in iop13xx_init_i2c_setup()
[all …]
/linux-4.1.27/scripts/
Dkallsyms.c85 static inline int is_arm_mapping_symbol(const char *str) in is_arm_mapping_symbol() argument
87 return str[0] == '$' && strchr("axtd", str[1]) in is_arm_mapping_symbol()
88 && (str[2] == '\0' || str[2] == '.'); in is_arm_mapping_symbol()
114 char str[500]; in read_symbol() local
118 rc = fscanf(in, "%llx %c %499s\n", &s->addr, &stype, str); in read_symbol()
120 if (rc != EOF && fgets(str, 500, in) == NULL) in read_symbol()
124 if (strlen(str) > KSYM_NAME_LEN) { in read_symbol()
127 str, strlen(str), KSYM_NAME_LEN); in read_symbol()
131 sym = str; in read_symbol()
133 if (symbol_prefix_char && str[0] == symbol_prefix_char) in read_symbol()
[all …]
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/powerpc/xmon/
Dnonstdio.c91 char *xmon_gets(char *str, int nb) in xmon_gets() argument
96 for (p = str; p < str + nb - 1; ) { in xmon_gets()
99 if (p == str) in xmon_gets()
108 return str; in xmon_gets()
129 void xmon_puts(const char *str) in xmon_puts() argument
131 xmon_write(str, strlen(str)); in xmon_puts()
/linux-4.1.27/arch/sh/boards/mach-sdk7786/
Dnmi.c28 static int __init nmi_mode_setup(char *str) in nmi_mode_setup() argument
30 if (!str) in nmi_mode_setup()
33 if (strcmp(str, "manual") == 0) in nmi_mode_setup()
35 else if (strcmp(str, "aux") == 0) in nmi_mode_setup()
37 else if (strcmp(str, "masked") == 0) in nmi_mode_setup()
39 else if (strcmp(str, "any") == 0) in nmi_mode_setup()
43 pr_warning("Unknown NMI mode %s\n", str); in nmi_mode_setup()
/linux-4.1.27/kernel/trace/
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/arch/arm64/kernel/
Dtraps.c54 static void dump_mem(const char *lvl, const char *str, unsigned long bottom, in dump_mem() argument
69 printk("%s%s(0x%016lx to 0x%016lx)\n", lvl, str, bottom, top); in dump_mem()
73 char str[sizeof(" 12345678") * 8 + 1]; in dump_mem() local
75 memset(str, ' ', sizeof(str)); in dump_mem()
76 str[sizeof(str) - 1] = '\0'; in dump_mem()
82 sprintf(str + i * 9, " %08x", val); in dump_mem()
84 sprintf(str + i * 9, " ????????"); in dump_mem()
87 printk("%s%04lx:%s\n", lvl, first & 0xffff, str); in dump_mem()
105 char str[sizeof("00000000 ") * 5 + 2 + 1], *p = str; in dump_instr() local
128 printk("%sCode: %s\n", lvl, str); in dump_instr()
[all …]
/linux-4.1.27/arch/arm/kvm/
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)]
[all …]
/linux-4.1.27/tools/lib/traceevent/
Dparse-filter.c218 free(arg->str.val); in free_arg()
219 regfree(&arg->str.reg); in free_arg()
220 free(arg->str.buffer); in free_arg()
226 free(arg->value.str); in free_arg()
367 arg->value.str = strdup(token); in create_arg_item()
368 if (!arg->value.str) { in create_arg_item()
456 char *str; in add_right() local
499 if (strlen(arg->value.str) == 1 && in add_right()
511 str = arg->value.str; in add_right()
546 ret = regcomp(&op->str.reg, str, REG_ICASE|REG_NOSUB); in add_right()
[all …]
/linux-4.1.27/kernel/
Dreboot.c491 static int __init reboot_setup(char *str) in reboot_setup() argument
501 switch (*str) { in reboot_setup()
518 if (isdigit(*(str+1))) { in reboot_setup()
519 rc = kstrtoint(str+1, 0, &reboot_cpu); in reboot_setup()
522 } else if (str[1] == 'm' && str[2] == 'p' && in reboot_setup()
523 isdigit(*(str+3))) { in reboot_setup()
524 rc = kstrtoint(str+3, 0, &reboot_cpu); in reboot_setup()
541 reboot_type = *str; in reboot_setup()
549 str = strchr(str, ','); in reboot_setup()
550 if (str) in reboot_setup()
[all …]
Dsysctl_binary.c986 char *str, *end; in bin_intvec() local
993 str = buffer; in bin_intvec()
994 end = str + result; in bin_intvec()
999 value = simple_strtoul(str, &str, 10); in bin_intvec()
1000 while (isspace(*str)) in bin_intvec()
1001 str++; in bin_intvec()
1008 if (!isdigit(*str)) in bin_intvec()
1016 char *str, *end; in bin_intvec() local
1019 str = buffer; in bin_intvec()
1020 end = str + BUFSZ; in bin_intvec()
[all …]
Dprofile.c53 int profile_setup(char *str) in profile_setup() argument
60 if (!strncmp(str, sleepstr, strlen(sleepstr))) { in profile_setup()
63 if (str[strlen(sleepstr)] == ',') in profile_setup()
64 str += strlen(sleepstr) + 1; in profile_setup()
65 if (get_option(&str, &par)) in profile_setup()
72 } else if (!strncmp(str, schedstr, strlen(schedstr))) { in profile_setup()
74 if (str[strlen(schedstr)] == ',') in profile_setup()
75 str += strlen(schedstr) + 1; in profile_setup()
76 if (get_option(&str, &par)) in profile_setup()
80 } else if (!strncmp(str, kvmstr, strlen(kvmstr))) { in profile_setup()
[all …]
/linux-4.1.27/fs/btrfs/
Drcu-string.h21 char str[0]; member
31 strncpy(ret->str, src, len); in rcu_string_strdup()
35 static inline void rcu_string_free(struct rcu_string *str) in rcu_string_free() argument
37 if (str) in rcu_string_free()
38 kfree_rcu(str, rcu); in rcu_string_free()
55 __str->str; \
/linux-4.1.27/drivers/char/
Dhangcheck-timer.c82 static int __init hangcheck_parse_tick(char *str) in hangcheck_parse_tick() argument
85 if (get_option(&str,&par)) in hangcheck_parse_tick()
90 static int __init hangcheck_parse_margin(char *str) in hangcheck_parse_margin() argument
93 if (get_option(&str,&par)) in hangcheck_parse_margin()
98 static int __init hangcheck_parse_reboot(char *str) in hangcheck_parse_reboot() argument
101 if (get_option(&str,&par)) in hangcheck_parse_reboot()
106 static int __init hangcheck_parse_dump_tasks(char *str) in hangcheck_parse_dump_tasks() argument
109 if (get_option(&str,&par)) in hangcheck_parse_dump_tasks()
/linux-4.1.27/arch/mips/pmcs-msp71xx/
Dmsp_prom.c86 int str2eaddr(unsigned char *ea, unsigned char *str) in str2eaddr() argument
91 while (*str != '\0') { in str2eaddr()
92 if ((*str == '.') || (*str == ':')) { in str2eaddr()
95 str++; in str2eaddr()
98 num |= str2hexnum(*str++); in str2eaddr()
110 static inline unsigned long str2hex(unsigned char *str) in str2hex() argument
114 while (*str) { in str2hex()
116 value |= str2hexnum(*str++); in str2hex()
424 char *str; in prom_getmdesc() local
429 str = prom_getenv(memsz_env); in prom_getmdesc()
[all …]
/linux-4.1.27/drivers/s390/block/
Ddasd_devmap.c113 dasd_call_setup(char *str) in dasd_call_setup() argument
118 dasd[count++] = str; in dasd_call_setup()
132 dasd_busid(char **str, int *id0, int *id1, int *devno) in dasd_busid() argument
137 if (strncmp(DASD_IPLDEV, *str, strlen(DASD_IPLDEV)) == 0) { in dasd_busid()
145 *str += strlen(DASD_IPLDEV); in dasd_busid()
151 if ((*str)[0] == '0' && (*str)[1] == 'x') { in dasd_busid()
152 *str += 2; in dasd_busid()
155 if (!isxdigit((*str)[0])) /* We require at least one hex digit */ in dasd_busid()
157 val = simple_strtoul(*str, str, 16); in dasd_busid()
158 if (old_style || (*str)[0] != '.') { in dasd_busid()
[all …]
Ddasd_proc.c275 char *buffer, *str; in dasd_stats_proc_write() local
285 str = skip_spaces(buffer); in dasd_stats_proc_write()
286 if (strncmp(str, "set", 3) == 0 && isspace(str[3])) { in dasd_stats_proc_write()
288 str = skip_spaces(str + 4); in dasd_stats_proc_write()
289 if (strcmp(str, "on") == 0) { in dasd_stats_proc_write()
305 } else if (strcmp(str, "off") == 0) { in dasd_stats_proc_write()
314 } else if (strncmp(str, "reset", 5) == 0) { in dasd_stats_proc_write()
326 str); in dasd_stats_proc_write()
/linux-4.1.27/drivers/firmware/efi/
Defi.c58 static int __init parse_efi_cmdline(char *str) in parse_efi_cmdline() argument
60 if (!str) { in parse_efi_cmdline()
65 if (parse_option_str(str, "noruntime")) in parse_efi_cmdline()
81 char *str = buf; in systab_show() local
87 str += sprintf(str, "MPS=0x%lx\n", efi.mps); in systab_show()
89 str += sprintf(str, "ACPI20=0x%lx\n", efi.acpi20); in systab_show()
91 str += sprintf(str, "ACPI=0x%lx\n", efi.acpi); in systab_show()
93 str += sprintf(str, "SMBIOS=0x%lx\n", efi.smbios); in systab_show()
95 str += sprintf(str, "SMBIOS3=0x%lx\n", efi.smbios3); in systab_show()
97 str += sprintf(str, "HCDP=0x%lx\n", efi.hcdp); in systab_show()
[all …]
Defivars.c126 char *str = buf; in efivar_guid_read() local
131 efi_guid_to_str(&var->VendorGuid, str); in efivar_guid_read()
132 str += strlen(str); in efivar_guid_read()
133 str += sprintf(str, "\n"); in efivar_guid_read()
135 return str - buf; in efivar_guid_read()
142 char *str = buf; in efivar_attr_read() local
152 str += sprintf(str, "EFI_VARIABLE_NON_VOLATILE\n"); in efivar_attr_read()
154 str += sprintf(str, "EFI_VARIABLE_BOOTSERVICE_ACCESS\n"); in efivar_attr_read()
156 str += sprintf(str, "EFI_VARIABLE_RUNTIME_ACCESS\n"); in efivar_attr_read()
158 str += sprintf(str, "EFI_VARIABLE_HARDWARE_ERROR_RECORD\n"); in efivar_attr_read()
[all …]
/linux-4.1.27/arch/mips/sibyte/common/
Dcfe_console.c12 static void cfe_console_write(struct console *cons, const char *str, in cfe_console_write() argument
18 if (!str[i]) in cfe_console_write()
21 if (str[i] == '\n') { in cfe_console_write()
23 written = cfe_write(cfe_cons_handle, &str[last], i-last); in cfe_console_write()
34 written = cfe_write(cfe_cons_handle, &str[last], count-last); in cfe_console_write()
43 static int cfe_console_setup(struct console *cons, char *str) in cfe_console_setup() argument
Dcfe.c180 static int __init initrd_setup(char *str) in initrd_setup() argument
189 if (!str[idx] || (str[idx] == ' ')) break; in initrd_setup()
190 rdarg[idx] = str[idx]; in initrd_setup()
194 str = rdarg; in initrd_setup()
200 for (tmp = str; *tmp != '@'; tmp++) { in initrd_setup()
210 initrd_size = simple_strtoul(str, &endptr, 16); in initrd_setup()
/linux-4.1.27/security/selinux/ss/
Dcontext.h32 char *str; /* string representation if context cannot be mapped. */ member
124 if (src->str) { in context_cpy()
125 dst->str = kstrdup(src->str, GFP_ATOMIC); in context_cpy()
126 if (!dst->str) in context_cpy()
130 dst->str = NULL; in context_cpy()
135 kfree(dst->str); in context_cpy()
144 kfree(c->str); in context_destroy()
145 c->str = NULL; in context_destroy()
153 return (c1->len == c2->len && !strcmp(c1->str, c2->str)); in context_cmp()
/linux-4.1.27/drivers/s390/char/
Dhmcdrv_ftp.c53 const char *str; /* command string */ in hmcdrv_ftp_cmd_getid() member
68 {.str = "get", /* [0] get (CRC = 0x68eb) */ in hmcdrv_ftp_cmd_getid()
70 {.str = "dir", /* [1] dir (CRC = 0x6a9e) */ in hmcdrv_ftp_cmd_getid()
72 {.str = "delete", /* [2] delete (CRC = 0x53ae) */ in hmcdrv_ftp_cmd_getid()
74 {.str = "nls", /* [3] nls (CRC = 0xf87c) */ in hmcdrv_ftp_cmd_getid()
76 {.str = "put", /* [4] put (CRC = 0xac56) */ in hmcdrv_ftp_cmd_getid()
78 {.str = "append", /* [5] append (CRC = 0xf56e) */ in hmcdrv_ftp_cmd_getid()
80 {.str = NULL} /* [6] unused */ in hmcdrv_ftp_cmd_getid()
95 if (!pdesc->str || strncmp(pdesc->str, cmd, len)) in hmcdrv_ftp_cmd_getid()
99 pdesc->str, pdesc->cmd); in hmcdrv_ftp_cmd_getid()
Dtape_proc.c42 const char *str; in tape_proc_show() local
66 str = tape_state_verbose[device->tape_state]; in tape_proc_show()
68 str = "UNKNOWN"; in tape_proc_show()
69 seq_printf(m, "%s\t", str); in tape_proc_show()
73 str = tape_op_verbose[request->op]; in tape_proc_show()
75 str = "---"; in tape_proc_show()
76 seq_printf(m, "%s\t", str); in tape_proc_show()
Dsclp.h210 sclp_ebcasc_str(unsigned char *str, int nr) in sclp_ebcasc_str() argument
212 (MACHINE_IS_VM) ? EBCASC(str, nr) : EBCASC_500(str, nr); in sclp_ebcasc_str()
217 sclp_ascebc_str(unsigned char *str, int nr) in sclp_ascebc_str() argument
219 (MACHINE_IS_VM) ? ASCEBC(str, nr) : ASCEBC_500(str, nr); in sclp_ascebc_str()
/linux-4.1.27/arch/mips/lasat/
Dpicvue.c110 void pvc_write_string(const unsigned char *str, u8 addr, int line) in pvc_write_string() argument
118 while (*str != 0 && i < PVC_LINELEN) { in pvc_write_string()
119 pvc_write(*str++, MODE_DATA); in pvc_write_string()
124 void pvc_write_string_centered(const unsigned char *str, int line) in pvc_write_string_centered() argument
126 int len = strlen(str); in pvc_write_string_centered()
132 addr = (PVC_VISIBLE_CHARS - strlen(str))/2; in pvc_write_string_centered()
134 pvc_write_string(str, addr, line); in pvc_write_string_centered()
137 void pvc_dump_string(const unsigned char *str) in pvc_dump_string() argument
139 int len = strlen(str); in pvc_dump_string()
141 pvc_write_string(str, 0, 0); in pvc_dump_string()
[all …]
/linux-4.1.27/arch/arm/mach-pxa/
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/arch/arm/mach-sa1100/
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/arch/m68k/atari/
Ddebug.c42 static void atari_mfp_console_write(struct console *co, const char *str, in atari_mfp_console_write() argument
46 if (*str == '\n') in atari_mfp_console_write()
48 ata_mfp_out(*str++); in atari_mfp_console_write()
61 static void atari_scc_console_write(struct console *co, const char *str, in atari_scc_console_write() argument
65 if (*str == '\n') in atari_scc_console_write()
67 ata_scc_out(*str++); in atari_scc_console_write()
78 static void atari_midi_console_write(struct console *co, const char *str, in atari_midi_console_write() argument
82 if (*str == '\n') in atari_midi_console_write()
84 ata_midi_out(*str++); in atari_midi_console_write()
109 static void atari_par_console_write(struct console *co, const char *str, in atari_par_console_write() argument
[all …]
/linux-4.1.27/drivers/gpu/host1x/
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) in write_to_seqfile() argument
34 seq_write((struct seq_file *)ctx, str, len); in write_to_seqfile()
37 static inline void write_to_printk(void *ctx, const char *str, size_t len) in write_to_printk() argument
39 pr_info("%s", str); in write_to_printk()
/linux-4.1.27/arch/mips/alchemy/common/
Dprom.c92 static inline void str2eaddr(unsigned char *ea, unsigned char *str) in str2eaddr() argument
99 if ((*str == '.') || (*str == ':')) in str2eaddr()
100 str++; in str2eaddr()
101 num = str2hexnum(*str++) << 4; in str2eaddr()
102 num |= str2hexnum(*str++); in str2eaddr()
/linux-4.1.27/fs/gfs2/
Dglops.c319 const struct gfs2_dinode *str = buf; in gfs2_dinode_in() local
323 if (unlikely(ip->i_no_addr != be64_to_cpu(str->di_num.no_addr))) in gfs2_dinode_in()
325 ip->i_no_formal_ino = be64_to_cpu(str->di_num.no_formal_ino); in gfs2_dinode_in()
326 ip->i_inode.i_mode = be32_to_cpu(str->di_mode); in gfs2_dinode_in()
331 ip->i_inode.i_rdev = MKDEV(be32_to_cpu(str->di_major), in gfs2_dinode_in()
332 be32_to_cpu(str->di_minor)); in gfs2_dinode_in()
336 i_uid_write(&ip->i_inode, be32_to_cpu(str->di_uid)); in gfs2_dinode_in()
337 i_gid_write(&ip->i_inode, be32_to_cpu(str->di_gid)); in gfs2_dinode_in()
338 gfs2_set_nlink(&ip->i_inode, be32_to_cpu(str->di_nlink)); in gfs2_dinode_in()
339 i_size_write(&ip->i_inode, be64_to_cpu(str->di_size)); in gfs2_dinode_in()
[all …]
Dsuper.c453 const struct gfs2_statfs_change *str = buf; in gfs2_statfs_change_in() local
455 sc->sc_total = be64_to_cpu(str->sc_total); in gfs2_statfs_change_in()
456 sc->sc_free = be64_to_cpu(str->sc_free); in gfs2_statfs_change_in()
457 sc->sc_dinodes = be64_to_cpu(str->sc_dinodes); in gfs2_statfs_change_in()
462 struct gfs2_statfs_change *str = buf; in gfs2_statfs_change_out() local
464 str->sc_total = cpu_to_be64(sc->sc_total); in gfs2_statfs_change_out()
465 str->sc_free = cpu_to_be64(sc->sc_free); in gfs2_statfs_change_out()
466 str->sc_dinodes = cpu_to_be64(sc->sc_dinodes); in gfs2_statfs_change_out()
698 struct gfs2_dinode *str = buf; in gfs2_dinode_out() local
700 str->di_header.mh_magic = cpu_to_be32(GFS2_MAGIC); in gfs2_dinode_out()
[all …]
/linux-4.1.27/security/integrity/ima/
Dima_template.c49 static int __init ima_template_setup(char *str) in ima_template_setup() argument
52 int template_len = strlen(str); in ima_template_setup()
61 template_desc = lookup_template_desc(str); in ima_template_setup()
64 str, CONFIG_IMA_DEFAULT_TEMPLATE); in ima_template_setup()
72 if (template_len == 3 && strcmp(str, IMA_TEMPLATE_IMA_NAME) == 0 && in ima_template_setup()
83 static int __init ima_template_fmt_setup(char *str) in ima_template_fmt_setup() argument
90 if (template_desc_init_fields(str, NULL, NULL) < 0) { in ima_template_fmt_setup()
92 str, CONFIG_IMA_DEFAULT_TEMPLATE); in ima_template_fmt_setup()
96 defined_templates[num_templates - 1].fmt = str; in ima_template_fmt_setup()
/linux-4.1.27/arch/mips/loongson/common/
Dmachtype.c45 char *p, str[MACHTYPE_LEN + 1]; in prom_init_machtype() local
56 strncpy(str, p, MACHTYPE_LEN); in prom_init_machtype()
57 str[MACHTYPE_LEN] = '\0'; in prom_init_machtype()
58 p = strstr(str, " "); in prom_init_machtype()
63 if (strstr(system_types[machtype], str)) { in prom_init_machtype()
/linux-4.1.27/sound/isa/sb/
Dsb_common.c109 char *str; in snd_sbdsp_probe() local
137 str = "1.0"; in snd_sbdsp_probe()
142 str = "2.01+"; in snd_sbdsp_probe()
145 str = "2.0"; in snd_sbdsp_probe()
150 str = "Pro"; in snd_sbdsp_probe()
154 str = "16"; in snd_sbdsp_probe()
163 str = "16 (ALS-100)"; in snd_sbdsp_probe()
166 str = "16 (ALS-4000)"; in snd_sbdsp_probe()
169 str = "(DT019X/ALS007)"; in snd_sbdsp_probe()
172 str = "16 (CS5530)"; in snd_sbdsp_probe()
[all …]
/linux-4.1.27/arch/arm/mach-omap2/
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
[all …]
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
[all …]
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
[all …]
/linux-4.1.27/drivers/pnp/
Dsupport.c39 void pnp_eisa_id_to_string(u32 id, char *str) in pnp_eisa_id_to_string() argument
51 str[0] = 'A' + ((id >> 26) & 0x3f) - 1; in pnp_eisa_id_to_string()
52 str[1] = 'A' + ((id >> 21) & 0x1f) - 1; in pnp_eisa_id_to_string()
53 str[2] = 'A' + ((id >> 16) & 0x1f) - 1; in pnp_eisa_id_to_string()
54 str[3] = hex_asc_hi(id >> 8); in pnp_eisa_id_to_string()
55 str[4] = hex_asc_lo(id >> 8); in pnp_eisa_id_to_string()
56 str[5] = hex_asc_hi(id); in pnp_eisa_id_to_string()
57 str[6] = hex_asc_lo(id); in pnp_eisa_id_to_string()
58 str[7] = '\0'; in pnp_eisa_id_to_string()
/linux-4.1.27/arch/arc/kernel/
Dsetup.c137 #define IS_AVAIL1(v, str) ((v) ? str : "") argument
139 #define IS_AVAIL2(v, str, cfg) IS_AVAIL1(v, str), IS_AVAIL1(v, IS_USED(cfg)) argument
170 cpu_id, tbl->info.str, isa_nm, in arc_cpu_mumbojumbo()
300 char str[512]; in setup_processor() local
306 printk(arc_cpu_mumbojumbo(cpu_id, str, sizeof(str))); in setup_processor()
311 printk(arc_extn_mumbojumbo(cpu_id, str, sizeof(str))); in setup_processor()
415 char *str; in show_cpuinfo() local
423 str = (char *)__get_free_page(GFP_TEMPORARY); in show_cpuinfo()
424 if (!str) in show_cpuinfo()
427 seq_printf(m, arc_cpu_mumbojumbo(cpu_id, str, PAGE_SIZE)); in show_cpuinfo()
[all …]
Dtraps.c31 void die(const char *str, struct pt_regs *regs, unsigned long address) in die() argument
33 show_kernel_fault_diag(str, regs, address); in die()
45 unhandled_exception(const char *str, struct pt_regs *regs, siginfo_t *info) in unhandled_exception() argument
59 die(str, regs, (unsigned long)info->si_addr); in unhandled_exception()
65 #define DO_ERROR_INFO(signr, str, name, sicode) \ argument
74 return unhandled_exception(str, regs, &info);\
/linux-4.1.27/tools/power/cpupower/utils/
Dcpufreq-set.c62 static unsigned long string_to_frequency(const char *str) in string_to_frequency() argument
71 while (*str == '0') in string_to_frequency()
72 str++; in string_to_frequency()
74 for (scan = str; isdigit(*scan) || *scan == '.'; scan++) { in string_to_frequency()
98 for (cp = 0; isdigit(str[cp]); cp++) in string_to_frequency()
101 if (str[cp] == '.') { in string_to_frequency()
102 while (power > -1 && isdigit(str[cp+1])) in string_to_frequency()
114 for (i = 0; i < cp; i++, str++) { in string_to_frequency()
115 if (*str == '.') in string_to_frequency()
116 str++; in string_to_frequency()
[all …]
/linux-4.1.27/tools/iio/
Dlsiio.c33 static inline int check_prefix(const char *str, const char *prefix) in check_prefix() argument
35 return strlen(str) > strlen(prefix) && in check_prefix()
36 strncmp(str, prefix, strlen(prefix)) == 0; in check_prefix()
39 static inline int check_postfix(const char *str, const char *postfix) in check_postfix() argument
41 return strlen(str) > strlen(postfix) && in check_postfix()
42 strcmp(str + strlen(str) - strlen(postfix), postfix) == 0; in check_postfix()
/linux-4.1.27/scripts/kconfig/
Dzconf.hash.c34 static const struct kconf_id *kconf_id_lookup(register const char *str, register unsigned int len);
45 kconf_id_hash (register const char *str, register unsigned int len) in kconf_id_hash() argument
81 hval += asso_values[(unsigned char)str[2]]; in kconf_id_hash()
85 hval += asso_values[(unsigned char)str[0]]; in kconf_id_hash()
88 return hval + asso_values[(unsigned char)str[len - 1]]; in kconf_id_hash()
171 kconf_id_lookup (register const char *str, register unsigned int len) in kconf_id_lookup() argument
272 register int key = kconf_id_hash (str, len); in kconf_id_lookup()
281 if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0') in kconf_id_lookup()
Dzconf.l49 static void append_string(const char *str, int size) in append_string() argument
58 memcpy(text + text_size, str, size); in append_string()
63 static void alloc_string(const char *str, int size) in alloc_string() argument
66 memcpy(text, str, size); in alloc_string()
74 int str = 0;
126 str = yytext[0];
Dsymbol.c160 char str[64]; in sym_validate_range() local
183 sprintf(str, "%lld", val2); in sym_validate_range()
185 sprintf(str, "0x%llx", val2); in sym_validate_range()
186 sym->curr.val = strdup(str); in sym_validate_range()
552 bool sym_string_valid(struct symbol *sym, const char *str) in sym_string_valid() argument
560 ch = *str++; in sym_string_valid()
562 ch = *str++; in sym_string_valid()
565 if (ch == '0' && *str != 0) in sym_string_valid()
567 while ((ch = *str++)) { in sym_string_valid()
573 if (str[0] == '0' && (str[1] == 'x' || str[1] == 'X')) in sym_string_valid()
[all …]
/linux-4.1.27/drivers/iommu/
Dirq_remapping.c165 static __init int setup_nointremap(char *str) in setup_nointremap() argument
172 static __init int setup_irqremap(char *str) in setup_irqremap() argument
174 if (!str) in setup_irqremap()
177 while (*str) { in setup_irqremap()
178 if (!strncmp(str, "on", 2)) in setup_irqremap()
180 else if (!strncmp(str, "off", 3)) in setup_irqremap()
182 else if (!strncmp(str, "nosid", 5)) in setup_irqremap()
184 else if (!strncmp(str, "no_x2apic_optout", 16)) in setup_irqremap()
187 str += strcspn(str, ","); in setup_irqremap()
188 while (*str == ',') in setup_irqremap()
[all …]
/linux-4.1.27/arch/arm/mach-omap1/
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
[all …]
Dsleep.S85 str r9, [r6, #EMIFF_SDRAM_CONFIG_ASM_OFFSET & 0xff]
90 str r9, [r6, #EMIFS_CONFIG_ASM_OFFSET & 0xff]
134 str r7, [r6, #EMIFF_SDRAM_CONFIG_ASM_OFFSET & 0xff]
135 str r8, [r6, #EMIFS_CONFIG_ASM_OFFSET & 0xff]
160 str r5, [r4, #EMIFS_CONFIG_ASM_OFFSET & 0xff]
164 str r5, [r4, #EMIFS_CONFIG_ASM_OFFSET & 0xff]
170 str r5, [r4, #EMIFF_SDRAM_CONFIG_ASM_OFFSET & 0xff]
175 str r5, [r4, #EMIFS_CONFIG_ASM_OFFSET & 0xff]
240 str r9, [r6, #EMIFF_SDRAM_CONFIG_ASM_OFFSET & 0xff]
245 str r9, [r6, #EMIFS_CONFIG_ASM_OFFSET & 0xff]
[all …]
/linux-4.1.27/arch/arm/kernel/
Dtraps.c55 static int __init user_debug_setup(char *str) in user_debug_setup() argument
57 get_option(&str, &user_debug); in user_debug_setup()
96 static void dump_mem(const char *lvl, const char *str, unsigned long bottom, in dump_mem() argument
111 printk("%s%s(0x%08lx to 0x%08lx)\n", lvl, str, bottom, top); in dump_mem()
115 char str[sizeof(" 12345678") * 8 + 1]; in dump_mem() local
117 memset(str, ' ', sizeof(str)); in dump_mem()
118 str[sizeof(str) - 1] = '\0'; in dump_mem()
124 sprintf(str + i * 9, " %08lx", val); in dump_mem()
126 sprintf(str + i * 9, " ????????"); in dump_mem()
129 printk("%s%04lx:%s\n", lvl, first & 0xffff, str); in dump_mem()
[all …]
Dhead.S172 1: str r3, [r0], #4
173 str r3, [r0], #4
174 str r3, [r0], #4
175 str r3, [r0], #4
191 str r7, [r0], #4 @ set top PGD entry bits
192 str r3, [r0], #4 @ set bottom PGD entry bits
194 str r3, [r0], #4 @ set bottom PGD entry bits
195 str r7, [r0], #4 @ set top PGD entry bits
222 str r3, [r4, r5, lsl #PMD_ORDER] @ identity mapping
234 1: str r3, [r0], #1 << PMD_ORDER
[all …]
Dhead-common.S99 str r9, [r4] @ Save processor ID
100 str r1, [r5] @ Save machine type
101 str r2, [r6] @ Save atags pointer
216 str r3, [r0], #4
217 str r3, [r0], #4
218 str r3, [r0], #4
219 str r3, [r0], #4
/linux-4.1.27/arch/tile/include/uapi/arch/
Dsim.h158 sim_print(const char* str) in sim_print() argument
160 for ( ; *str != '\0'; str++) in sim_print()
163 (*str << _SIM_CONTROL_OPERATOR_BITS)); in sim_print()
176 sim_print_string(const char* str) in sim_print_string() argument
178 for ( ; *str != '\0'; str++) in sim_print_string()
181 (*str << _SIM_CONTROL_OPERATOR_BITS)); in sim_print_string()
200 sim_command(const char* str) in sim_command() argument
205 c = *str++; in sim_command()
/linux-4.1.27/arch/mips/sgi-ip32/
Dip32-setup.c49 static inline void str2eaddr(unsigned char *ea, unsigned char *str) in str2eaddr() argument
56 if(*str == ':') in str2eaddr()
57 str++; in str2eaddr()
58 num = str2hexnum(*str++) << 4; in str2eaddr()
59 num |= (str2hexnum(*str++)); in str2eaddr()
/linux-4.1.27/drivers/mfd/
Dipaq-micro.c248 char *str; in ipaq_micro_eeprom_dump() local
251 str = ipaq_micro_str(dump, 10); in ipaq_micro_eeprom_dump()
252 if (str) { in ipaq_micro_eeprom_dump()
253 dev_info(micro->dev, "HM version %s\n", str); in ipaq_micro_eeprom_dump()
254 kfree(str); in ipaq_micro_eeprom_dump()
256 str = ipaq_micro_str(dump+10, 40); in ipaq_micro_eeprom_dump()
257 if (str) { in ipaq_micro_eeprom_dump()
258 dev_info(micro->dev, "serial number: %s\n", str); in ipaq_micro_eeprom_dump()
260 add_device_randomness(str, strlen(str)); in ipaq_micro_eeprom_dump()
261 kfree(str); in ipaq_micro_eeprom_dump()
[all …]
/linux-4.1.27/drivers/edac/
Dedac_stub.c35 static int __init edac_report_setup(char *str) in edac_report_setup() argument
37 if (!str) in edac_report_setup()
40 if (!strncmp(str, "on", 2)) in edac_report_setup()
42 else if (!strncmp(str, "off", 3)) in edac_report_setup()
44 else if (!strncmp(str, "force", 5)) in edac_report_setup()
/linux-4.1.27/drivers/acpi/
Dosl.c1397 static int __init acpi_os_name_setup(char *str) in acpi_os_name_setup() argument
1402 if (!str || !*str) in acpi_os_name_setup()
1405 for (; count-- && *str; str++) { in acpi_os_name_setup()
1406 if (isalnum(*str) || *str == ' ' || *str == ':') in acpi_os_name_setup()
1407 *p++ = *str; in acpi_os_name_setup()
1408 else if (*str == '\'' || *str == '"') in acpi_os_name_setup()
1437 void __init acpi_osi_setup(char *str) in acpi_osi_setup() argument
1446 if (str == NULL || *str == '\0') { in acpi_osi_setup()
1452 if (*str == '!') { in acpi_osi_setup()
1453 str++; in acpi_osi_setup()
[all …]
/linux-4.1.27/sound/soc/samsung/
Dsmdk_wm8580.c207 char *str; in smdk_audio_init() local
213 str = (char *)smdk_dai[PRI_PLAYBACK].cpu_dai_name; in smdk_audio_init()
214 str[strlen(str) - 1] = '2'; in smdk_audio_init()
215 str = (char *)smdk_dai[PRI_CAPTURE].cpu_dai_name; in smdk_audio_init()
216 str[strlen(str) - 1] = '2'; in smdk_audio_init()
/linux-4.1.27/arch/sh/kernel/
Dtraps.c17 void die(const char *str, struct pt_regs *regs, long err) in die() argument
27 printk("%s: %04lx [#%d]\n", str, err & 0xffff, ++die_counter); in die()
38 notify_die(DIE_OOPS, str, regs, err, 255, SIGSEGV); in die()
57 void die_if_kernel(const char *str, struct pt_regs *regs, long err) in die_if_kernel() argument
60 die(str, regs, err); in die_if_kernel()
69 void die_if_no_fixup(const char *str, struct pt_regs *regs, long err) in die_if_no_fixup() argument
79 die(str, regs, err); in die_if_no_fixup()
/linux-4.1.27/arch/x86/kernel/
Dsys_x86_64.c59 static int __init control_va_addr_alignment(char *str) in control_va_addr_alignment() argument
65 if (*str == 0) in control_va_addr_alignment()
68 if (*str == '=') in control_va_addr_alignment()
69 str++; in control_va_addr_alignment()
71 if (!strcmp(str, "32")) in control_va_addr_alignment()
73 else if (!strcmp(str, "64")) in control_va_addr_alignment()
75 else if (!strcmp(str, "off")) in control_va_addr_alignment()
77 else if (!strcmp(str, "on")) in control_va_addr_alignment()
Dmpparse.c76 void __init default_mpc_oem_bus_info(struct mpc_bus *m, char *str) in default_mpc_oem_bus_info() argument
78 memcpy(str, m->bustype, 6); in default_mpc_oem_bus_info()
79 str[6] = 0; in default_mpc_oem_bus_info()
80 apic_printk(APIC_VERBOSE, "Bus #%d is %s\n", m->busid, str); in default_mpc_oem_bus_info()
85 char str[7]; in MP_bus_info() local
87 x86_init.mpparse.mpc_oem_bus_info(m, str); in MP_bus_info()
92 m->busid, str, MAX_MP_BUSSES - 1); in MP_bus_info()
98 if (strncmp(str, BUSTYPE_ISA, sizeof(BUSTYPE_ISA) - 1) == 0) { in MP_bus_info()
102 } else if (strncmp(str, BUSTYPE_PCI, sizeof(BUSTYPE_PCI) - 1) == 0) { in MP_bus_info()
109 } else if (strncmp(str, BUSTYPE_EISA, sizeof(BUSTYPE_EISA) - 1) == 0) { in MP_bus_info()
[all …]
Dapm_32.c502 static void apm_error(char *str, int err) in apm_error() argument
510 pr_notice("%s: %s\n", str, error_table[i].msg); in apm_error()
512 pr_notice("%s: linux error code %i\n", str, err); in apm_error()
515 str, err); in apm_error()
1866 static int __init apm_setup(char *str) in apm_setup() argument
1870 while ((str != NULL) && (*str != '\0')) { in apm_setup()
1871 if (strncmp(str, "off", 3) == 0) in apm_setup()
1873 if (strncmp(str, "on", 2) == 0) in apm_setup()
1875 if ((strncmp(str, "bounce-interval=", 16) == 0) || in apm_setup()
1876 (strncmp(str, "bounce_interval=", 16) == 0)) in apm_setup()
[all …]
Dtraps.c194 do_trap_no_signal(struct task_struct *tsk, int trapnr, char *str, in do_trap_no_signal() argument
214 die(str, regs, error_code); in do_trap_no_signal()
254 do_trap(int trapnr, int signr, char *str, struct pt_regs *regs, in do_trap() argument
260 if (!do_trap_no_signal(tsk, trapnr, str, regs, error_code)) in do_trap()
278 tsk->comm, tsk->pid, str, in do_trap()
289 static void do_error_trap(struct pt_regs *regs, long error_code, char *str, in do_error_trap() argument
295 if (notify_die(DIE_TRAP, str, regs, error_code, trapnr, signr) != in do_error_trap()
298 do_trap(trapnr, signr, str, regs, error_code, in do_error_trap()
305 #define DO_ERROR(trapnr, signr, str, name) \ argument
308 do_error_trap(regs, error_code, str, trapnr, signr); \
[all …]
/linux-4.1.27/drivers/pci/hotplug/
Dcpcihp_generic.c81 char *str; in validate_parameters() local
89 str = bridge; in validate_parameters()
90 if (!*str) in validate_parameters()
93 tmp = simple_strtoul(str, &p, 16); in validate_parameters()
94 if (p == str || tmp > 0xff) { in validate_parameters()
104 str = p + 1; in validate_parameters()
105 tmp = simple_strtoul(str, &p, 16); in validate_parameters()
106 if (p == str || tmp > 0x1f) { in validate_parameters()
/linux-4.1.27/tools/perf/ui/browsers/
Dheader.c15 char *str = *arg; in ui_browser__argv_write() local
20 if (offset >= strlen(str)) in ui_browser__argv_write()
21 str = empty; in ui_browser__argv_write()
23 str = str + offset; in ui_browser__argv_write()
28 slsmg_write_nstring(str, browser->width); in ui_browser__argv_write()
/linux-4.1.27/arch/x86/mm/
Dsetup_nx.c18 static int __init noexec_setup(char *str) in noexec_setup() argument
20 if (!str) in noexec_setup()
22 if (!strncmp(str, "on", 2)) { in noexec_setup()
24 } else if (!strncmp(str, "off", 3)) { in noexec_setup()
/linux-4.1.27/arch/metag/tbx/
Dtbistring.c26 const char *str, int match_len) in __TBIFindStr() argument
41 if (match_len && str[match_len-1] == '\0') in __TBIFindStr()
74 if (!strncmp(str, (const char *)search->String, in __TBIFindStr()
86 const void *__TBITransStr(const char *str, int len) in __TBITransStr() argument
93 search = __TBIFindStr(search, str, len); in __TBITransStr()
/linux-4.1.27/drivers/input/serio/
Di8042.c138 static bool (*i8042_platform_filter)(unsigned char data, unsigned char str,
153 int i8042_install_filter(bool (*filter)(unsigned char data, unsigned char str, in i8042_install_filter() argument
174 int i8042_remove_filter(bool (*filter)(unsigned char data, unsigned char str, in i8042_remove_filter() argument
231 unsigned char data, str; in i8042_flush() local
237 while ((str = i8042_read_status()) & I8042_STR_OBF) { in i8042_flush()
242 data, str & I8042_STR_AUXDATA ? "aux" : "kbd"); in i8042_flush()
431 static bool i8042_filter(unsigned char data, unsigned char str, in i8042_filter() argument
435 if ((~str & I8042_STR_AUXDATA) && in i8042_filter()
443 if (i8042_platform_filter && i8042_platform_filter(data, str, serio)) { in i8042_filter()
462 unsigned char str, data; in i8042_interrupt() local
[all …]
/linux-4.1.27/drivers/pnp/pnpbios/
Dcore.c410 static int __init pnpbios_setup(char *str) in pnpbios_setup() argument
414 while ((str != NULL) && (*str != '\0')) { in pnpbios_setup()
415 if (strncmp(str, "off", 3) == 0) in pnpbios_setup()
417 if (strncmp(str, "on", 2) == 0) in pnpbios_setup()
419 invert = (strncmp(str, "no-", 3) == 0); in pnpbios_setup()
421 str += 3; in pnpbios_setup()
422 if (strncmp(str, "curr", 4) == 0) in pnpbios_setup()
424 str = strchr(str, ','); in pnpbios_setup()
425 if (str != NULL) in pnpbios_setup()
426 str += strspn(str, ", \t"); in pnpbios_setup()
/linux-4.1.27/sound/firewire/dice/
Ddice-midi.c94 struct snd_rawmidi_str *str) in set_midi_substream_names() argument
98 list_for_each_entry(subs, &str->substreams, list) { in set_midi_substream_names()
107 struct snd_rawmidi_str *str; in snd_dice_create_midi() local
137 str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT]; in snd_dice_create_midi()
139 set_midi_substream_names(dice, str); in snd_dice_create_midi()
148 str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT]; in snd_dice_create_midi()
150 set_midi_substream_names(dice, str); in snd_dice_create_midi()
/linux-4.1.27/arch/xtensa/platforms/iss/
Dnetwork.c101 static char *split_if_spec(char *str, ...) in split_if_spec() argument
106 va_start(ap, str); in split_if_spec()
108 if (*str == '\0') in split_if_spec()
110 end = strchr(str, ','); in split_if_spec()
111 if (end != str) in split_if_spec()
112 *arg = str; in split_if_spec()
116 str = end; in split_if_spec()
119 return str; in split_if_spec()
124 static void setup_etheraddr(struct net_device *dev, char *str) in setup_etheraddr() argument
128 if (str == NULL) in setup_etheraddr()
[all …]
/linux-4.1.27/arch/arm/crypto/
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
[all …]
/linux-4.1.27/arch/m68k/emu/
Dnfcon.c26 static void nfputs(const char *str, unsigned int count) in nfputs() argument
33 memcpy(buf, str, 64); in nfputs()
35 str += 64; in nfputs()
38 memcpy(buf, str, count); in nfputs()
43 static void nfcon_write(struct console *con, const char *str, in nfcon_write() argument
46 nfputs(str, count); in nfcon_write()
/linux-4.1.27/sound/firewire/fireworks/
Dfireworks_midi.c115 struct snd_rawmidi_str *str) in set_midi_substream_names() argument
119 list_for_each_entry(subs, &str->substreams, list) { in set_midi_substream_names()
128 struct snd_rawmidi_str *str; in snd_efw_create_midi_devices() local
148 str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT]; in snd_efw_create_midi_devices()
150 set_midi_substream_names(efw, str); in snd_efw_create_midi_devices()
159 str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT]; in snd_efw_create_midi_devices()
161 set_midi_substream_names(efw, str); in snd_efw_create_midi_devices()
/linux-4.1.27/sound/firewire/bebob/
Dbebob_midi.c114 struct snd_rawmidi_str *str) in set_midi_substream_names() argument
118 list_for_each_entry(subs, &str->substreams, list) { in set_midi_substream_names()
128 struct snd_rawmidi_str *str; in snd_bebob_create_midi_devices() local
148 str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT]; in snd_bebob_create_midi_devices()
150 set_midi_substream_names(bebob, str); in snd_bebob_create_midi_devices()
159 str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT]; in snd_bebob_create_midi_devices()
161 set_midi_substream_names(bebob, str); in snd_bebob_create_midi_devices()
/linux-4.1.27/tools/power/cpupower/bench/
Dparse.c43 enum sched_prio string_to_prio(const char *str) in string_to_prio() argument
45 if (strncasecmp("high", str, strlen(str)) == 0) in string_to_prio()
47 else if (strncasecmp("default", str, strlen(str)) == 0) in string_to_prio()
49 else if (strncasecmp("low", str, strlen(str)) == 0) in string_to_prio()
/linux-4.1.27/arch/arm/include/debug/
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
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-cpu.c824 char *str = pattern; in cfs_cpt_table_create_pattern() local
831 str = strchr(str, '['); in cfs_cpt_table_create_pattern()
832 if (str == NULL) in cfs_cpt_table_create_pattern()
834 str++; in cfs_cpt_table_create_pattern()
837 str = cfs_trimwhite(pattern); in cfs_cpt_table_create_pattern()
838 if (*str == 'n' || *str == 'N') { in cfs_cpt_table_create_pattern()
839 pattern = str + 1; in cfs_cpt_table_create_pattern()
859 for (str = cfs_trimwhite(pattern), c = 0;; c++) { in cfs_cpt_table_create_pattern()
862 char *bracket = strchr(str, '['); in cfs_cpt_table_create_pattern()
869 if (*str != 0) { in cfs_cpt_table_create_pattern()
[all …]
/linux-4.1.27/security/tomoyo/
Dload_policy.c23 static int __init tomoyo_loader_setup(char *str) in tomoyo_loader_setup() argument
25 tomoyo_loader = str; in tomoyo_loader_setup()
62 static int __init tomoyo_trigger_setup(char *str) in tomoyo_trigger_setup() argument
64 tomoyo_trigger = str; in tomoyo_trigger_setup()
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
Dsec_lproc.c81 char str[32]; in sptlrpc_info_lprocfs_seq_show() local
92 sec_flags2str(sec->ps_flvr.sf_flags, str, sizeof(str)); in sptlrpc_info_lprocfs_seq_show()
97 sptlrpc_flavor2name_bulk(&sec->ps_flvr, str, sizeof(str))); in sptlrpc_info_lprocfs_seq_show()
99 sec_flags2str(sec->ps_flvr.sf_flags, str, sizeof(str))); in sptlrpc_info_lprocfs_seq_show()
/linux-4.1.27/drivers/media/platform/ti-vpe/
Dvpdma.h158 #define ADB_ADDR(dma_buf, str, fld) ((dma_buf)->addr + offsetof(str, fld)) argument
159 #define MMR_ADB_ADDR(buf, str, fld) ADB_ADDR(&(buf), struct str, fld) argument
161 #define VPDMA_SET_MMR_ADB_HDR(buf, str, hdr, regs, offset_a) \ argument
164 struct str *adb = NULL; \
165 h = MMR_ADB_ADDR(buf, str, hdr); \
/linux-4.1.27/drivers/net/ethernet/broadcom/
Dbcmsysport.h584 #define STAT_MIB(str, m, _type) { \ argument
585 .stat_string = str, \
591 #define STAT_MIB_RX(str, m) STAT_MIB(str, m, BCM_SYSPORT_STAT_MIB_RX) argument
592 #define STAT_MIB_TX(str, m) STAT_MIB(str, m, BCM_SYSPORT_STAT_MIB_TX) argument
593 #define STAT_RUNT(str, m) STAT_MIB(str, m, BCM_SYSPORT_STAT_RUNT) argument
594 #define STAT_MIB_SOFT(str, m) STAT_MIB(str, m, BCM_SYSPORT_STAT_SOFT) argument
596 #define STAT_RXCHK(str, m, ofs) { \ argument
597 .stat_string = str, \
604 #define STAT_RBUF(str, m, ofs) { \ argument
605 .stat_string = str, \
/linux-4.1.27/drivers/media/usb/stkwebcam/
Dstk-webcam.h40 #define STK_INFO(str, args...) printk(KERN_INFO PREFIX str, ##args) argument
41 #define STK_ERROR(str, args...) printk(KERN_ERR PREFIX str, ##args) argument
42 #define STK_WARNING(str, args...) printk(KERN_WARNING PREFIX str, ##args) argument
/linux-4.1.27/fs/romfs/
Dstorage.c71 const char *str, size_t size) in romfs_mtd_strcmp() argument
87 if (memcmp(buf, str, len) != 0) in romfs_mtd_strcmp()
92 str += len; in romfs_mtd_strcmp()
168 const char *str, size_t size) in romfs_blk_strcmp() argument
182 matched = (memcmp(bh->b_data + offset, str, segment) == 0); in romfs_blk_strcmp()
186 str += segment; in romfs_blk_strcmp()
272 const char *str, size_t size) in romfs_dev_strcmp() argument
286 return romfs_mtd_strcmp(sb, pos, str, size); in romfs_dev_strcmp()
290 return romfs_blk_strcmp(sb, pos, str, size); in romfs_dev_strcmp()
/linux-4.1.27/arch/m32r/kernel/
Dtraps.c217 void die(const char * str, struct pt_regs * regs, long err) in die() argument
222 printk("%s: %04lx\n", str, err & 0xffff); in die()
229 static __inline__ void die_if_kernel(const char * str, in die_if_kernel() argument
233 die(str, regs, err); in die_if_kernel()
236 static __inline__ void do_trap(int trapnr, int signr, const char * str, in do_trap() argument
252 die(str, regs, error_code); in do_trap()
257 #define DO_ERROR(trapnr, signr, str, name) \ argument
263 #define DO_ERROR_INFO(trapnr, signr, str, name, sicode, siaddr) \ argument
271 do_trap(trapnr, signr, str, regs, error_code, &info); \
/linux-4.1.27/include/linux/
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, in i8042_install_filter() argument
97 static inline int i8042_remove_filter(bool (*filter)(unsigned char data, unsigned char str, in i8042_remove_filter() argument
Dinit.h244 const char *str; member
255 #define __setup_param(str, unique_id, fn, early) \ argument
257 __aligned(1) = str; \
263 #define __setup(str, fn) \ argument
264 __setup_param(str, fn, fn, 0)
270 #define early_param(str, fn) \ argument
271 __setup_param(str, fn, fn, 1)
358 #define __setup_param(str, unique_id, fn) /* nothing */ argument
359 #define __setup(str, func) /* nothing */ argument
Dstring.h65 static inline __must_check char *strstrip(char *str) in strstrip() argument
67 return strim(str); in strstrip()
122 extern char **argv_split(gfp_t gfp, const char *str, int *argcp);
142 static inline bool strstarts(const char *str, const char *prefix) in strstarts() argument
144 return strncmp(str, prefix, strlen(prefix)) == 0; in strstarts()
/linux-4.1.27/fs/xfs/libxfs/
Dxfs_dquot_buf.c57 const char *str) in xfs_dqcheck() argument
81 str, id, be16_to_cpu(ddq->d_magic), XFS_DQUOT_MAGIC); in xfs_dqcheck()
88 str, id, ddq->d_version, XFS_DQUOT_VERSION); in xfs_dqcheck()
98 str, id, ddq->d_flags); in xfs_dqcheck()
107 str, ddq, id, be32_to_cpu(ddq->d_id)); in xfs_dqcheck()
119 str, (int)be32_to_cpu(ddq->d_id), ddq); in xfs_dqcheck()
130 str, (int)be32_to_cpu(ddq->d_id), ddq); in xfs_dqcheck()
141 str, (int)be32_to_cpu(ddq->d_id), ddq); in xfs_dqcheck()
/linux-4.1.27/arch/arm/mm/
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/drivers/scsi/pm8001/
Dpm8001_ctl.c293 char *str = buf; in pm8001_ctl_aap_log_show() local
296 str += sprintf(str, "0x%08x 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x" in pm8001_ctl_aap_log_show()
308 return str - buf; in pm8001_ctl_aap_log_show()
324 char *str = buf; in pm8001_ctl_ib_queue_log_show() local
332 str += sprintf(str, "0x%08x\n", IB_MEMMAP(start)); in pm8001_ctl_ib_queue_log_show()
339 return str - buf; in pm8001_ctl_ib_queue_log_show()
357 char *str = buf; in pm8001_ctl_ob_queue_log_show() local
365 str += sprintf(str, "0x%08x\n", OB_MEMMAP(start)); in pm8001_ctl_ob_queue_log_show()
372 return str - buf; in pm8001_ctl_ob_queue_log_show()
387 char *str = buf; in pm8001_ctl_bios_version_show() local
[all …]
/linux-4.1.27/sound/pci/trident/
Dtrident.c82 const char *str; in snd_trident_probe() local
109 str = "TRID4DWAVEDX"; in snd_trident_probe()
112 str = "TRID4DWAVENX"; in snd_trident_probe()
115 str = "SI7018"; in snd_trident_probe()
118 str = "Unknown"; in snd_trident_probe()
120 strcpy(card->driver, str); in snd_trident_probe()
/linux-4.1.27/arch/powerpc/sysdev/
Dfsl_85xx_l2ctlr.c51 static int __init get_size_from_cmdline(char *str) in get_size_from_cmdline() argument
53 if (!str) in get_size_from_cmdline()
56 sram_size = str; in get_size_from_cmdline()
60 static int __init get_offset_from_cmdline(char *str) in get_offset_from_cmdline() argument
62 if (!str) in get_offset_from_cmdline()
65 sram_offset = str; in get_offset_from_cmdline()
/linux-4.1.27/security/keys/encrypted-keys/
Dencrypted.h39 static inline void dump_hmac(const char *str, const u8 *digest, in dump_hmac() argument
42 if (str) in dump_hmac()
43 pr_info("encrypted_key: %s", str); in dump_hmac()
61 static inline void dump_hmac(const char *str, const u8 *digest, in dump_hmac() argument
/linux-4.1.27/drivers/s390/cio/
Dblacklist.c101 static int parse_busid(char *str, unsigned int *cssid, unsigned int *ssid, in parse_busid() argument
109 if (*str == '\0') in parse_busid()
113 str_work = str; in parse_busid()
114 val = simple_strtoul(str, &str_work, 16); in parse_busid()
127 str_work = str; in parse_busid()
144 "kernel parameter\n", str); in parse_busid()
149 static int blacklist_parse_parameters(char *str, range_action action, in blacklist_parse_parameters() argument
159 while ((parm = strsep(&str, ","))) { in blacklist_parse_parameters()
227 blacklist_setup (char *str) in blacklist_setup() argument
230 if (blacklist_parse_parameters(str, add, 1)) in blacklist_setup()
/linux-4.1.27/arch/xtensa/platforms/xtfpga/
Dlcd.c66 void lcd_disp_at_pos(char *str, unsigned char pos) in lcd_disp_at_pos() argument
70 while (*str != 0) { in lcd_disp_at_pos()
71 lcd_put_byte(LCD_DATA_ADDR, *str); in lcd_disp_at_pos()
73 str++; in lcd_disp_at_pos()
/linux-4.1.27/drivers/scsi/
Dg_NCR5380.c122 static void __init internal_setup(int board, char *str, int *ints) in internal_setup() argument
173 static int __init do_NCR5380_setup(char *str) in do_NCR5380_setup() argument
177 get_options(str, ARRAY_SIZE(ints), ints); in do_NCR5380_setup()
178 internal_setup(BOARD_NCR5380, str, ints); in do_NCR5380_setup()
191 static int __init do_NCR53C400_setup(char *str) in do_NCR53C400_setup() argument
195 get_options(str, ARRAY_SIZE(ints), ints); in do_NCR53C400_setup()
196 internal_setup(BOARD_NCR53C400, str, ints); in do_NCR53C400_setup()
209 static int __init do_NCR53C400A_setup(char *str) in do_NCR53C400A_setup() argument
213 get_options(str, ARRAY_SIZE(ints), ints); in do_NCR53C400A_setup()
214 internal_setup(BOARD_NCR53C400A, str, ints); in do_NCR53C400A_setup()
[all …]
/linux-4.1.27/security/apparmor/include/
Dapparmor.h67 void aa_info_message(const char *str);
94 static inline bool aa_strneq(const char *str, const char *sub, int len) in aa_strneq() argument
96 return !strncmp(str, sub, len) && !str[len]; in aa_strneq()
/linux-4.1.27/arch/mips/txx9/generic/
Dsetup.c182 char *str = (char *)(long)argv32[i]; in prom_init_cmdline() local
185 if (strchr(str, ' ')) { in prom_init_cmdline()
187 strcat(arcs_cmdline, str); in prom_init_cmdline()
190 strcat(arcs_cmdline, str); in prom_init_cmdline()
307 char *str = strsep(&s, " "); in preprocess_cmdline() local
308 if (strncmp(str, "board=", 6) == 0) { in preprocess_cmdline()
309 txx9_board_vec = find_board_byname(str + 6); in preprocess_cmdline()
311 } else if (strncmp(str, "masterclk=", 10) == 0) { in preprocess_cmdline()
313 if (kstrtouint(str + 10, 10, &val) == 0) in preprocess_cmdline()
316 } else if (strcmp(str, "icdisable") == 0) { in preprocess_cmdline()
[all …]
Dpci.c400 char * (*txx9_board_pcibios_setup)(char *str) __initdata;
402 char *__init txx9_pcibios_setup(char *str) in txx9_pcibios_setup() argument
404 if (txx9_board_pcibios_setup && !txx9_board_pcibios_setup(str)) in txx9_pcibios_setup()
406 if (!strcmp(str, "picmg")) { in txx9_pcibios_setup()
411 } else if (!strcmp(str, "nopicmg")) { in txx9_pcibios_setup()
416 } else if (!strncmp(str, "clk=", 4)) { in txx9_pcibios_setup()
417 char *val = str + 4; in txx9_pcibios_setup()
426 } else if (!strncmp(str, "err=", 4)) { in txx9_pcibios_setup()
427 if (!strcmp(str + 4, "panic")) in txx9_pcibios_setup()
429 else if (!strcmp(str + 4, "ignore")) in txx9_pcibios_setup()
[all …]
/linux-4.1.27/drivers/media/platform/vivid/
Dvivid-kthread-cap.c427 char str[100]; in vivid_fillbuff() local
492 snprintf(str, sizeof(str), " %02d:%02d:%02d:%03d %u%s", in vivid_fillbuff()
501 tpg_gen_text(tpg, basep, line++ * line_height, 16, str); in vivid_fillbuff()
504 snprintf(str, sizeof(str), " %dx%d, input %d ", in vivid_fillbuff()
506 tpg_gen_text(tpg, basep, line++ * line_height, 16, str); in vivid_fillbuff()
510 snprintf(str, sizeof(str), in vivid_fillbuff()
516 tpg_gen_text(tpg, basep, line++ * line_height, 16, str); in vivid_fillbuff()
517 snprintf(str, sizeof(str), in vivid_fillbuff()
521 tpg_gen_text(tpg, basep, line++ * line_height, 16, str); in vivid_fillbuff()
523 snprintf(str, sizeof(str), in vivid_fillbuff()
[all …]
/linux-4.1.27/arch/alpha/lib/
Dsrm_puts.c9 srm_puts(const char *str, long len) in srm_puts() argument
18 written = callback_puts(0, str, remaining); in srm_puts()
20 str += written; in srm_puts()
/linux-4.1.27/arch/arm/plat-iop/
Dpci.c372 static int __init iop3xx_init_atu_setup(char *str) in iop3xx_init_atu_setup() argument
375 if (str) { in iop3xx_init_atu_setup()
376 while (*str != '\0') { in iop3xx_init_atu_setup()
377 switch (*str) { in iop3xx_init_atu_setup()
393 *str); in iop3xx_init_atu_setup()
394 *(str + 1) = '\0'; in iop3xx_init_atu_setup()
396 str++; in iop3xx_init_atu_setup()
/linux-4.1.27/drivers/xen/
Dmanage.c212 char *str; in shutdown_handler() local
234 str = (char *)xenbus_read(xbt, "control", "shutdown", NULL); in shutdown_handler()
236 if (XENBUS_IS_ERR_READ(str)) { in shutdown_handler()
242 if (strcmp(str, handler->command) == 0) in shutdown_handler()
252 kfree(str); in shutdown_handler()
259 pr_info("Ignoring shutdown request: %s\n", str); in shutdown_handler()
263 kfree(str); in shutdown_handler()
/linux-4.1.27/sound/firewire/oxfw/
Doxfw-midi.c132 struct snd_rawmidi_str *str) in set_midi_substream_names() argument
136 list_for_each_entry(subs, &str->substreams, list) { in set_midi_substream_names()
147 struct snd_rawmidi_str *str; in snd_oxfw_create_midi() local
187 str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_INPUT]; in snd_oxfw_create_midi()
189 set_midi_substream_names(oxfw, str); in snd_oxfw_create_midi()
198 str = &rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT]; in snd_oxfw_create_midi()
200 set_midi_substream_names(oxfw, str); in snd_oxfw_create_midi()
/linux-4.1.27/drivers/mtd/
Dafs.c171 char *str; in parse_afs_partitions() local
212 str = (char *)(parts + idx); in parse_afs_partitions()
235 strcpy(str, iis.name); in parse_afs_partitions()
237 parts[idx].name = str; in parse_afs_partitions()
244 iis.imageNumber, str); in parse_afs_partitions()
247 str = str + strlen(iis.name) + 1; in parse_afs_partitions()
/linux-4.1.27/arch/m68k/apollo/
Dconfig.c120 void dn_serial_console_write (struct console *co, const char *str,unsigned int count) in dn_serial_console_write() argument
123 if (*str == '\n') { in dn_serial_console_write()
128 sio01.rhrb_thrb = (unsigned char)*str++; in dn_serial_console_write()
134 void dn_serial_print (const char *str) in dn_serial_print() argument
136 while (*str) { in dn_serial_print()
137 if (*str == '\n') { in dn_serial_print()
142 sio01.rhrb_thrb = (unsigned char)*str++; in dn_serial_print()
/linux-4.1.27/sound/pci/ymfpci/
Dymfpci.c183 const char *str, *model; in snd_card_ymfpci_probe() local
200 case 0x0004: str = "YMF724"; model = "DS-1"; break; in snd_card_ymfpci_probe()
201 case 0x000d: str = "YMF724F"; model = "DS-1"; break; in snd_card_ymfpci_probe()
202 case 0x000a: str = "YMF740"; model = "DS-1L"; break; in snd_card_ymfpci_probe()
203 case 0x000c: str = "YMF740C"; model = "DS-1L"; break; in snd_card_ymfpci_probe()
204 case 0x0010: str = "YMF744"; model = "DS-1S"; break; in snd_card_ymfpci_probe()
205 case 0x0012: str = "YMF754"; model = "DS-1E"; break; in snd_card_ymfpci_probe()
206 default: model = str = "???"; break; in snd_card_ymfpci_probe()
280 strcpy(card->driver, str); in snd_card_ymfpci_probe()
281 sprintf(card->shortname, "Yamaha %s (%s)", model, str); in snd_card_ymfpci_probe()
/linux-4.1.27/arch/mips/fw/lib/
Dcmdline.c90 char *str; in fw_getenvl() local
93 str = fw_getenv(envname); in fw_getenvl()
94 if (str) { in fw_getenvl()
95 tmp = kstrtoul(str, 0, &envl); in fw_getenvl()
/linux-4.1.27/drivers/spi/
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/net/core/
Dutils.c52 __be32 in_aton(const char *str) in in_aton() argument
61 if (*str != '\0') { in in_aton()
63 while (*str != '\0' && *str != '.' && *str != '\n') { in in_aton()
65 val += *str - '0'; in in_aton()
66 str++; in in_aton()
69 if (*str != '\0') in in_aton()
70 str++; in in_aton()
/linux-4.1.27/sound/core/oss/
Dmixer_oss.c967 char str[64]; in snd_mixer_oss_build_test_all() local
974 sprintf(str, "%s Switch", ptr->name); in snd_mixer_oss_build_test_all()
975 err = snd_mixer_oss_build_test(mixer, slot, str, ptr->index, in snd_mixer_oss_build_test_all()
979 sprintf(str, "%s Route", ptr->name); in snd_mixer_oss_build_test_all()
980 err = snd_mixer_oss_build_test(mixer, slot, str, ptr->index, in snd_mixer_oss_build_test_all()
984 sprintf(str, "%s Volume", ptr->name); in snd_mixer_oss_build_test_all()
985 err = snd_mixer_oss_build_test(mixer, slot, str, ptr->index, in snd_mixer_oss_build_test_all()
989 sprintf(str, "%s Playback Switch", ptr->name); in snd_mixer_oss_build_test_all()
990 err = snd_mixer_oss_build_test(mixer, slot, str, ptr->index, in snd_mixer_oss_build_test_all()
994 sprintf(str, "%s Playback Route", ptr->name); in snd_mixer_oss_build_test_all()
[all …]
/linux-4.1.27/arch/um/include/shared/
Dinit.h82 const char *str; member
109 #define __uml_setup(str, fn, help...) \ argument
110 __non_empty_string(fn ##_setup, str); \
112 static char __uml_setup_str_##fn[] __initdata = str; \
115 #define __uml_setup(str, fn, help...) \ argument
/linux-4.1.27/arch/blackfin/include/asm/
Dearly_printk.h23 #define early_shadow_puts(str) early_shadow_write(NULL, str, strlen(str)) argument
/linux-4.1.27/arch/sh/drivers/pci/
Dfixups-sdk7786.c28 char *__init pcibios_setup(char *str) in pcibios_setup() argument
30 if (strcmp(str, "slot4en") == 0) { in pcibios_setup()
35 return str; in pcibios_setup()
/linux-4.1.27/include/xen/
Dxenbus.h185 #define XENBUS_IS_ERR_READ(str) ({ \ argument
186 if (!IS_ERR(str) && strlen(str) == 0) { \
187 kfree(str); \
188 str = ERR_PTR(-ERANGE); \
190 IS_ERR(str); \
/linux-4.1.27/drivers/rapidio/
Drio-sysfs.c44 char *str = buf; in routes_show() local
51 str += in routes_show()
52 sprintf(str, "%04x %02x\n", i, in routes_show()
56 return (str - buf); in routes_show()
74 char *str = buf; in lnext_show() local
80 str += sprintf(str, "%s\n", in lnext_show()
83 str += sprintf(str, "null\n"); in lnext_show()
87 return str - buf; in lnext_show()
/linux-4.1.27/scripts/dtc/libfdt/
Dfdt_strerror.c59 const char *str; member
63 [(val)] = { .str = #val, }
89 const char *s = fdt_errtable[-errval].str; in fdt_strerror()
/linux-4.1.27/samples/bpf/
Dtracex2_user.c12 static void stars(char *str, long val, long max, int width) in stars() argument
17 str[i] = '*'; in stars()
19 str[i - 1] = '+'; in stars()
20 str[i] = '\0'; in stars()
/linux-4.1.27/scripts/genksyms/
Dkeywords.hash.c_shipped34 static const struct resword *is_reserved_word(register const char *str, register unsigned int len);
47 is_reserved_hash (register const char *str, register unsigned int len)
78 …turn len + asso_values[(unsigned char)str[2]] + asso_values[(unsigned char)str[0]] + asso_values[(…
88 is_reserved_word (register const char *str, register unsigned int len)
218 register int key = is_reserved_hash (str, len);
224 if (*str == *s && !strcmp (str + 1, s + 1))

1234567