/scripts/kconfig/ |
D | util.c | 35 gs.s = xmalloc(sizeof(char) * 64); in str_new() 38 strcpy(gs.s, "\0"); in str_new() 45 if (gs->s) in str_free() 46 free(gs->s); in str_free() 47 gs->s = NULL; in str_free() 52 void str_append(struct gstr *gs, const char *s) in str_append() argument 55 if (s) { in str_append() 56 l = strlen(gs->s) + strlen(s) + 1; in str_append() 58 gs->s = xrealloc(gs->s, l); in str_append() 61 strcat(gs->s, s); in str_append() [all …]
|
/scripts/ |
D | subarch.include | 7 SUBARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \ 8 -e s/sun4u/sparc64/ \ 9 -e s/arm.*/arm/ -e s/sa110/arm/ \ 10 -e s/s390x/s390/ -e s/parisc64/parisc/ \ 11 -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \ 12 -e s/sh[234].*/sh/ -e s/aarch64.*/arm64/ \ 13 -e s/riscv.*/riscv/)
|
D | insert-sys-cert.c | 94 struct sym *s) in get_symbol_from_map() argument 99 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() 125 s->address = strtoul(l, NULL, 16); in get_symbol_from_map() 126 if (s->address == 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() 158 char *name, struct sym *s) in get_symbol_from_table() argument [all …]
|
D | headerdep.pl | 128 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",
|
D | sorttable.h | 200 Elf_Shdr *s, *shdr = (Elf_Shdr *)((char *)ehdr + _r(&ehdr->e_shoff)); in do_sort() local 235 for (i = 0, s = shdr; s < shdr + shnum; i++, s++) { in do_sort() 236 idx = r(&s->sh_name); in do_sort() 238 extab_sec = s; in do_sort() 242 symtab_sec = s; in do_sort() 244 strtab_sec = s; in do_sort() 246 if ((r(&s->sh_type) == SHT_REL || in do_sort() 247 r(&s->sh_type) == SHT_RELA) && in do_sort() 248 r(&s->sh_info) == extab_index) { in do_sort() 249 relocs = (void *)ehdr + _r(&s->sh_offset); in do_sort() [all …]
|
D | extract-sys-certs.pl | 106 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};
|
D | decodecode | 12 rm -f $T $T.s $T.o $T.oo $T.aa $T.dis 76 ${CROSS_COMPILE}as $AFLAGS -o $t.o $t.s > /dev/null 2>&1 118 echo -n " .$type 0x" > $T.s 119 echo $beforemark | sed -e 's/ /,0x/g; s/[<>()]//g' >> $T.s 122 rm -f $T.o $T.s $T.dis 130 echo -n " .$type 0x" > $T.s 131 echo $code >> $T.s
|
D | get_abi.pl | 302 printf "#define LINENO %s%s#%s\n\n", 326 printf ".. _%s:\n\n", $data{$what}->{label}; 338 printf "| %s", $name . " " x ($len - length($name)) . " |\n"; 394 foreach my $s (@matches) { 395 if (defined($data{$s}) && defined($data{$s}->{label})) { 396 my $xref = $s; 399 $xref = ":ref:`$xref <" . $data{$s}->{label} . ">`"; 401 $desc =~ s,$bondary$s$bondary,$xref,g; 445 printf "Users:\n\t%s\n\n", $users if ($users ne ""); 483 printf "Kernel version:\t\t%s\n", $kernelversion if ($kernelversion); [all …]
|
D | bootgraph.pl | 177 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";
|
D | gen_ksymdeps.sh | 22 for s in $ksyms 24 echo $s | sed -e 's:^_*: $(wildcard include/ksym/:' \
|
D | parse-maintainers.pl | 102 my $s = shift; 103 $s =~ s/\s+$//; 104 $s =~ s/^\s+//; 105 return $s;
|
/scripts/dtc/ |
D | util.c | 26 char *xstrdup(const char *s) in xstrdup() argument 28 int len = strlen(s) + 1; in xstrdup() 31 memcpy(d, s, len); in xstrdup() 110 const char *s = data; in util_is_printable_string() local 118 if (s[len - 1] != '\0') in util_is_printable_string() 121 se = s + len; in util_is_printable_string() 123 while (s < se) { in util_is_printable_string() 124 ss = s; in util_is_printable_string() 125 while (s < se && *s && isprint((unsigned char)*s)) in util_is_printable_string() 126 s++; in util_is_printable_string() [all …]
|
D | fdtdump.c | 59 const char *p, *s, *t; in dump_blob() local 104 s = p; in dump_blob() 105 p = PALIGN(p + strlen(s) + 1, 4); in dump_blob() 107 if (*s == '\0') in dump_blob() 108 s = "/"; in dump_blob() 110 printf("%*s%s {\n", depth * shift, "", s); in dump_blob() 133 s = p_strings + fdt32_to_cpu(GET_CELL(p)); in dump_blob() 140 printf("%*s%s", depth * shift, "", s); in dump_blob()
|
D | util.h | 29 #define stringify(s) stringify_(s) argument 30 #define stringify_(s) #s argument 63 extern char *xstrdup(const char *s); 87 char get_escape_char(const char *s, int *i);
|
D | fdtget.c | 57 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/mod/ |
D | modpost.c | 226 struct symbol *s = NOFAIL(malloc(sizeof(*s) + strlen(name) + 1)); in alloc_symbol() local 228 memset(s, 0, sizeof(*s)); in alloc_symbol() 229 strcpy(s->name, name); in alloc_symbol() 230 s->weak = weak; in alloc_symbol() 231 s->next = next; in alloc_symbol() 232 s->is_static = 1; in alloc_symbol() 233 return s; in alloc_symbol() 250 struct symbol *s; in find_symbol() local 256 for (s = symbolhash[tdb_hash(name) % SYMBOL_HASH_SIZE]; s; s = s->next) { in find_symbol() 257 if (strcmp(s->name, name) == 0) in find_symbol() [all …]
|
/scripts/coccinelle/misc/ |
D | doubleinit.cocci | 18 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)
|
D | array_size_dup.cocci | 43 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 …]
|
D | orplus.cocci | 29 @s@ 53 @depends on s@ 60 @script:python depends on s && org@ 66 @script:python depends on s && report@
|
/scripts/selinux/genheaders/ |
D | genheaders.c | 29 static char *stoupperx(const char *s) in stoupperx() argument 31 char *s2 = strdup(s); in stoupperx() 71 const char *s = initial_sid_to_string[i]; in main() local 73 if (s) in main() 74 initial_sid_to_string[i] = stoupperx(s); in main() 88 const char *s = initial_sid_to_string[i]; in main() local 89 if (s) in main() 90 fprintf(fout, "#define SECINITSID_%-39s %2d\n", s, i); in main() 98 static char s[] = "SOCKET"; in main() local 100 int len = strlen(map->name), l = sizeof(s) - 1; in main() [all …]
|
/scripts/tracing/ |
D | draw_functrace.py | 72 s = "%s----%s (%s)\n" % (branch, self._func, self._time) 74 s = "%s----%s\n" % (branch, self._func) 81 s += "%s" % self._children[i].__toString(branch +\ 84 s += "%s" % self._children[i].__toString(branch +\ 87 return s
|
/scripts/dtc/libfdt/ |
D | fdt_strerror.c | 52 const char *s = fdt_errtable[-errval].str; in fdt_strerror() local 54 if (s) in fdt_strerror() 55 return s; in fdt_strerror()
|
/scripts/coccinelle/api/ |
D | check_bq27xxx_data.cocci | 20 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/coccinelle/free/ |
D | pci_free_consistent.cocci | 43 …ssing pci_free_consistent; pci_alloc_consistent on line %s and return without freeing on line %s" … 51 …ssing pci_free_consistent; pci_alloc_consistent on line %s and return without freeing on line %s" …
|
/scripts/coccinelle/api/alloc/ |
D | zalloc-simple.cocci | 6 /// 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) 200 msg="WARNING: vzalloc should be used for %s, instead of vmalloc/memset" % (x) 221 msg="%s" % (x) 230 msg="WARNING: dma_alloc_coherent used in %s already zeroes out memory, so memset is not needed" % (… 251 msg="%s" % (x) 260 msg="WARNING: kzalloc_node should be used for %s, instead of kmalloc_node/memset" % (x) 281 msg="%s" % (x) [all …]
|