Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 130) sorted by relevance

123456

/scripts/kconfig/
A Dutil.c52 gs.s = xmalloc(sizeof(char) * 64); in str_new()
55 strcpy(gs.s, "\0"); in str_new()
62 free(gs->s); in str_free()
63 gs->s = NULL; in str_free()
71 if (s) { in str_append()
72 l = strlen(gs->s) + strlen(s) + 1; in str_append()
74 gs->s = xrealloc(gs->s, l); in str_append()
77 strcat(gs->s, s); in str_append()
87 vsnprintf(s, sizeof(s), fmt, ap); in str_printf()
88 str_append(gs, s); in str_printf()
[all …]
/scripts/dtc/
A Dof_unittest_expect290 printf "%s %s%s%s\n", $prefix, $line_num, $timestamp, $line;
307 printf "%s %s%s%s\n", $prefix, $line_num, $timestamp, $line;
337 printf "** %s%s$script_name WARNING - not found ---> %s\n",
364 printf "%s %s%s%s\n", $prefix, $line_num, $timestamp, $line;
381 printf "%s %s%s%s\n", $prefix, $line_num, $timestamp, $line;
410 printf "** %s%s$script_name WARNING - next line matches EXPECT_NOT\n",
412 printf "** %s%s%s\n", $line_num, $timestamp, $line;
501 printf "%s %s%s%s\n", $prefix, $line_num, $timestamp, $line;
A Dutil.c31 memcpy(d, s, len); in xstrdup()
132 se = s + len; in util_is_printable_string()
134 while (s < se) { in util_is_printable_string()
135 ss = s; in util_is_printable_string()
136 while (s < se && *s && isprint((unsigned char)*s)) in util_is_printable_string()
137 s++; in util_is_printable_string()
140 if (*s != '\0' || s == ss) in util_is_printable_string()
143 s++; in util_is_printable_string()
197 char c = s[*i]; in get_escape_char()
395 s = data; in utilfdt_print_data()
[all …]
A Dutil.h31 #define stringify(s) stringify_(s) argument
32 #define stringify_(s) #s argument
65 extern char *xstrdup(const char *s);
66 extern char *xstrndup(const char *s, size_t len);
90 char get_escape_char(const char *s, int *i);
A Dfdtget.c57 const char *s; in show_data() local
73 for (s = data; s - data < len; s += strlen(s) + 1) { in show_data()
74 if (s != data) in show_data()
76 printf("%s", (const char *)s); in show_data()
/scripts/
A Dsubarch.include7 SUBARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \
8 -e s/sun4u/sparc64/ \
9 -e /^arm64$$/!s/arm.*/arm/ -e s/sa110/arm/ \
10 -e s/s390x/s390/ \
11 -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \
12 -e s/sh[234].*/sh/ -e s/aarch64.*/arm64/ \
13 -e s/riscv.*/riscv/ -e s/loongarch.*/loongarch/)
A Dinsert-sys-cert.c99 s->size = 0; in get_symbol_from_map()
100 s->address = 0; in get_symbol_from_map()
101 s->offset = 0; in get_symbol_from_map()
128 s->offset = get_offset_from_address(hdr, s->address); in get_symbol_from_map()
129 s->name = name; in get_symbol_from_map()
130 s->content = (void *)hdr + s->offset; in get_symbol_from_map()
166 s->size = 0; in get_symbol_from_table()
167 s->address = 0; in get_symbol_from_table()
168 s->offset = 0; in get_symbol_from_table()
178 s->offset = s->address - sec->sh_addr in get_symbol_from_table()
[all …]
A Dheaderdep.pl128 printf "%s from %s,\n", $msg, $last->[1] if defined $last;
131 printf "%s from %s:%d%s\n",
137 printf "%s:%d: warning: recursive header inclusion\n",
178 printf "\t%s [label=\"%s\"];\n",
187 printf "\t%s -> %s;\n",
A Dextract-sys-certs.pl106 my $s = undef;
120 die "Cert object in multiple sections: ", $s_name, " and ", $s->{name}, "\n"
121 if ($s);
135 $s = $sec;
139 unless ($s);
141 print "Certificate list in section ", $s->{name}, "\n";
143 my $foff = $start - $s->{vma} + $s->{foff};
A Dbootgraph.pl177 my ($s, $s2, $s3, $e, $w, $y, $y2, $style);
184 $s = ($start{$key} - $firsttime) * $mult;
185 $s2 = $s + 6;
186 $s3 = $s + 1;
188 $w = $e - $s;
201 print "<rect x=\"$s\" width=\"$w\" y=\"$y\" height=\"115\" style=\"$style_wait\"/>\n";
203 print "<rect x=\"$s\" width=\"$w\" y=\"$y\" height=\"145\" style=\"$style\"/>\n";
A Dverify_builtin_ranges.awk25 if (getline s <fn == 1) {
26 if (match(s, /DKBUILD_MODFILE=['"]+[^'"]+/) > 0) {
29 } else if (match(s, /RUST_MODFILE=[^ ]+/) > 0)
30 mod = substr(s, RSTART + 13, RLENGTH - 13);
215 s = $0;
217 $0 = s " " $0;
253 s = $0;
255 $0 = s " " $0;
A Dgen-crc-consts.py60 s = prefix + terms[j] + (' +' if j < len(terms) - 1 else '')
62 while j < len(terms) and len(s) < 73:
63 s += ' ' + terms[j] + (' +' if j < len(terms) - 1 else '')
65 print(s)
71 s = f'{"least" if variant.lsb else "most"}-significant-bit-first CRC-{variant.bits}'
94 s = ''
100 if len(s + next_entry) > 71:
102 s = ''
103 s += (' ' if s else '') + next_entry
104 if s:
A Ddecodecode14 rm -f $T $T.s $T.o $T.oo $T.aa $T.dis
79 ${CROSS_COMPILE}as $AFLAGS -o $t.o $t.s > /dev/null 2>&1
224 echo -n " .$type 0x" > $T.s
226 echo $beforemark | sed -e 's/ /,0x/g; s/[<>()]//g' >> $T.s
238 rm -f $T.o $T.s $T.dis
244 echo -n " .$type 0x" > $T.s
245 echo $code >> $T.s
A Dgenerate_builtin_ranges.awk25 if (getline s <fn == 1) {
26 if (match(s, /DKBUILD_MODFILE=['"]+[^'"]+/) > 0) {
29 } else if (match(s, /RUST_MODFILE=[^ ]+/) > 0)
30 mod = substr(s, RSTART + 13, RLENGTH - 13);
175 s = $0;
180 $0 = s " " $0;
190 s = $0;
192 $0 = s " " $0;
/scripts/coccinelle/misc/
A Ddoubleinit.cocci18 identifier I, s, fld;
23 struct I s =@p0 { ..., .fld@p = E, ...};
25 @s@
26 identifier I, s, r.fld;
31 struct I s =@p0 { ..., .fld@p = E, ...};
36 ps << s.p;
42 cocci.print_secs("s",ps)
48 ps << s.p;
53 msg = "%s: first occurrence line %s, second occurrence line %s" % (fld,ps[0].line,pr[0].line)
A Darray_size_dup.cocci43 msg = "WARNING: array_size is used later (line %s) to compute the same size" % (p2[0].line)
51 msg = "WARNING: array_size is used later (line %s) to compute the same size" % (p2[0].line)
72 msg = "WARNING: array_size is already used (line %s) to compute the same size" % (p1[0].line)
80 msg = "WARNING: array_size is already used (line %s) to compute the same size" % (p1[0].line)
108 msg = "WARNING: array3_size is used later (line %s) to compute the same size" % (p2[0].line)
116 msg = "WARNING: array3_size is used later (line %s) to compute the same size" % (p2[0].line)
138 msg = "WARNING: array3_size is already used (line %s) to compute the same size" % (p1[0].line)
146 msg = "WARNING: array3_size is already used (line %s) to compute the same size" % (p1[0].line)
172 msg = "WARNING: struct_size is used later (line %s) to compute the same size" % (p2[0].line)
180 msg = "WARNING: struct_size is used later (line %s) to compute the same size" % (p2[0].line)
[all …]
/scripts/include/
A Dhash.h5 static inline unsigned int hash_str(const char *s) in hash_str() argument
10 for (; *s; s++) in hash_str()
11 hash = (hash ^ *s) * 0x01000193; in hash_str()
A Dxalloc.h35 static inline char *xstrdup(const char *s) in xstrdup() argument
37 char *p = strdup(s); in xstrdup()
44 static inline char *xstrndup(const char *s, size_t n) in xstrndup() argument
46 char *p = strndup(s, n); in xstrndup()
/scripts/mod/
A Dmodpost.c239 struct symbol *s = xmalloc(sizeof(*s) + strlen(name) + 1); in alloc_symbol() local
241 memset(s, 0, sizeof(*s)); in alloc_symbol()
244 return s; in alloc_symbol()
273 return s; in sym_find_with_module()
356 if (s && (!external_module || s->module->is_vmlinux || s->module == mod)) { in sym_add_exported()
369 return s; in sym_add_exported()
1464 return s; in remove_dot()
1799 for (char *s = mod->no_trim_symbol; s; s = next_string(s , &size)) { in keep_no_trim_symbols() local
1966 s->crc, s->name); in add_versions()
1980 s->module->seen = s->module->is_vmlinux; in add_depends()
[all …]
/scripts/coccinelle/api/
A Dstring_choices.cocci2 /// Find places to use string_choices.h's various helpers.
14 - ((E == 1) ? "" : "s")
17 - ((E > 1) ? "s" : "")
26 * (E@P == 1) ? "" : "s"
28 * (E@P > 1) ? "s" : ""
36 coccilib.report.print_report(p[0], "opportunity for str_plural(%s)" % e)
55 coccilib.report.print_report(p[0], "opportunity for str_up_down(%s)" % e)
74 coccilib.report.print_report(p[0], "opportunity for str_down_up(%s)" % e)
131 coccilib.report.print_report(p[0], "opportunity for str_hi_lo(%s)" % e)
169 coccilib.report.print_report(p[0], "opportunity for str_lo_hi(%s)" % e)
[all …]
A Dcheck_bq27xxx_data.cocci20 Printf.printf "%s:%d:%d-%d: %s" p.file p.line p.col p.col_end msg
88 "WARNING %s and %s (line %d) are identical\n"
124 "WARNING %s and %s (line %d) are identical\n"
160 "WARNING %s and %s (line %d) are identical\n"
/scripts/dtc/libfdt/
A Dfdt_strerror.c53 const char *s = fdt_errtable[-errval].str; in fdt_strerror() local
55 if (s) in fdt_strerror()
56 return s; in fdt_strerror()
/scripts/gendwarfksyms/
A Dtypes.c41 static int type_list_append(struct list_head *list, const char *s, void *owned) in type_list_append() argument
45 if (!s) in type_list_append()
49 entry->str = s; in type_list_append()
91 static void type_expansion_append(struct type_expansion *type, const char *s, in type_expansion_append() argument
94 type->len += type_list_append(&type->expanded, s, owned); in type_expansion_append()
254 static void version_add(struct version *version, const char *s) in version_add() argument
256 version->crc = crc32(version->crc, (void *)s, strlen(s)); in version_add()
258 type_expansion_append(&version->type, s, NULL); in version_add()
270 static inline bool is_type_prefix(const char *s) in is_type_prefix() argument
272 return (s[0] == 's' || s[0] == 'u' || s[0] == 'e' || s[0] == 't') && in is_type_prefix()
[all …]
/scripts/basic/
A Dfixdep.c179 static int str_ends_with(const char *s, int slen, const char *sub) in str_ends_with() argument
186 return !memcmp(s + slen - sublen, sub, sublen); in str_ends_with()
242 static int is_ignored_file(const char *s, int len) in is_ignored_file() argument
244 return str_ends_with(s, len, "include/generated/autoconf.h"); in is_ignored_file()
248 static int is_no_parse_file(const char *s, int len) in is_no_parse_file() argument
251 return str_ends_with(s, len, ".rlib") || in is_no_parse_file()
252 str_ends_with(s, len, ".rmeta") || in is_no_parse_file()
253 str_ends_with(s, len, ".so"); in is_no_parse_file()
/scripts/coccinelle/api/alloc/
A Dzalloc-simple.cocci6 /// Note in particular that there are no ...s in the rule, so all of the
161 msg="%s" % (x)
170 msg="WARNING: kzalloc should be used for %s, instead of kmalloc/memset" % (x)
191 msg="%s" % (x)
221 msg="%s" % (x)
251 msg="%s" % (x)
281 msg="%s" % (x)
311 msg="%s" % (x)
341 msg="%s" % (x)
371 msg="%s" % (x)
[all …]

Completed in 35 milliseconds

123456