/scripts/ |
D | namespace.pl | 164 $_ = $File::Find::name; 224 my ($source, $type, $name); 268 ($type, $name) = (split(/ +/, $_, 3))[1..2]; 294 elsif ($name =~ /\./) { 300 $type = 'R' if ($name =~ /^__ksymtab/ || $name =~ /^__kstrtab/); 301 $name =~ s/_R[a-f0-9]{8}$//; # module versions adds this 303 $name ne 'init_module' && 304 $name ne 'cleanup_module' && 305 $name ne 'Using_Versions' && 306 $name !~ /^Version_[0-9]+$/ && [all …]
|
D | bloat-o-meter | 29 size, type, name = line.split() 32 if name.startswith("__mod_"): continue 33 if name.startswith("__se_sys"): continue 34 if name.startswith("__se_compat_sys"): continue 35 if name.startswith("__addressable_"): continue 36 if name == "linux_banner": continue 38 name = re_NUMBER.sub('', name) 39 sym[name] = sym.get(name, 0) + int(size, 16) 53 for name in old: 54 otot += old[name] [all …]
|
D | patch-kernel | 110 name="gzip" 114 name="bzip" 118 name="bzip2" 122 name="xz" 126 name="zip" 130 name="uncompress" 134 name="plaintext" 148 echo -n "Applying $1 (${name})... " 162 find $sourcedir/ '(' -name '*.orig' -o -name '.*.orig' ')' -exec rm -f {} \; 170 echo -n "Reversing $1 (${name}) ... " [all …]
|
D | get_maintainer.pl | 380 $file = $File::Find::name; 960 my ($name, $address) = parse_email($email); 962 my $tmp_email = format_email($name, $address, $email_usename); 1124 my $name = ""; 1128 $name = $1; 1136 $name =~ s/^\s+|\s+$//g; 1137 $name =~ s/^\"|\"$//g; 1140 if ($name =~ /[^\w \-]/i) { ##has "must quote" chars 1141 $name =~ s/(?<!\\)"/\\"/g; ##escape quotes 1142 $name = "\"$name\""; [all …]
|
D | decode_stacktrace.sh | 31 local objfile=$(find "$modpath" -name "${module//_/[-_]}.ko*" -print -quit) 48 local name=${symbol%+*} 53 if [[ "${cache[$module,$name]+isset}" == "isset" ]]; then 54 local base_addr=${cache[$module,$name]} 56 local base_addr=$(nm "$objfile" | grep -i ' t ' | awk "/ $name\$/ {print \$1}" | head -n1) 57 cache[$module,$name]="$base_addr" 65 expr=${expr/$name/0x$base_addr} 94 symbol="$segment$name ($code)"
|
/scripts/atomic/ |
D | gen-atomic-fallback.sh | 14 local name="$1"; shift 20 local atomicname="${atomic}_${pfx}${name}${sfx}${order}" 40 local name="$1"; shift 44 local tmpl="$(find_fallback_template "${pfx}" "${name}" "${sfx}" "${order}")" 45 gen_template_fallback "${tmpl}" "${meta}" "${pfx}" "${name}" "${sfx}" "${order}" "$@" 64 local name="$1"; shift 68 local basename="${atomic}_${pfx}${name}${sfx}" 70 local template="$(find_fallback_template "${pfx}" "${name}" "${sfx}" "${order}")" 75 gen_proto_fallback "${meta}" "${pfx}" "${name}" "${sfx}" "" "$@" 78 gen_proto_fallback "${meta}" "${pfx}" "${name}" "${sfx}" "_acquire" "$@" [all …]
|
D | atomic-tbl.sh | 43 local name="$1"; shift 55 for base in "${pfx}${name}${sfx}${order}" "${name}"; do 89 local name="${1#c}" 116 local name="$(gen_param_name "${arg}")" 119 printf "${type}${name}" 150 local name="$1"; shift 153 gen_proto_order_variant "${meta}" "${pfx}" "${name}" "${sfx}" "" "$@" 156 gen_proto_order_variant "${meta}" "${pfx}" "${name}" "${sfx}" "_acquire" "$@" 159 gen_proto_order_variant "${meta}" "${pfx}" "${name}" "${sfx}" "_release" "$@" 162 gen_proto_order_variant "${meta}" "${pfx}" "${name}" "${sfx}" "_relaxed" "$@" [all …]
|
D | gen-atomic-instrumented.sh | 13 local name="$(gen_param_name "${arg}")" 23 printf "\tkasan_check_${rw}(${name}, sizeof(*${name}));\n" 41 local name="$1"; shift 45 local atomicname="arch_${atomic}_${pfx}${name}${sfx}${order}" 47 local template="$(find_fallback_template "${pfx}" "${name}" "${sfx}" "${order}")" 68 local name="$1"; shift 74 local atomicname="${atomic}_${pfx}${name}${sfx}${order}" 76 local guard="$(gen_guard "${meta}" "${atomic}" "${pfx}" "${name}" "${sfx}" "${order}")" 118 local name="$1"; shift 120 local guard="defined(arch_${name}${sfx})" [all …]
|
D | gen-atomic-long.sh | 39 local name="$1$2$3$4"; shift; shift; shift; shift 50 atomic_long_${name}(${params}) 52 ${retstmt}${atomic}_${name}(${argscast}); 85 grep '^[a-z]' "$1" | while read name meta args; do 86 gen_proto "${meta}" "${name}" "atomic64" "s64" ${args} 94 grep '^[a-z]' "$1" | while read name meta args; do 95 gen_proto "${meta}" "${name}" "atomic" "int" ${args}
|
/scripts/dtc/libfdt/ |
D | libfdt.h | 247 #define fdt_set_hdr_(name) \ argument 248 static inline void fdt_set_##name(void *fdt, uint32_t val) \ 251 fdth->name = cpu_to_fdt32(val); \ 451 const char *name, int namelen); 477 int fdt_subnode_offset(const void *fdt, int parentoffset, const char *name); 655 const char *name, 688 const char *name, int *lenp); 690 const char *name, in fdt_get_property_w() argument 694 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w() 746 const char *name, int namelen, int *lenp); [all …]
|
D | fdt_wip.c | 14 const char *name, int namelen, in fdt_setprop_inplace_namelen_partial() argument 21 propval = fdt_getprop_namelen_w(fdt, nodeoffset, name, namelen, in fdt_setprop_inplace_namelen_partial() 33 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name, in fdt_setprop_inplace() argument 39 propval = fdt_getprop(fdt, nodeoffset, name, &proplen); in fdt_setprop_inplace() 46 return fdt_setprop_inplace_namelen_partial(fdt, nodeoffset, name, in fdt_setprop_inplace() 47 strlen(name), 0, in fdt_setprop_inplace() 59 int fdt_nop_property(void *fdt, int nodeoffset, const char *name) in fdt_nop_property() argument 64 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); in fdt_nop_property()
|
D | fdt_overlay.c | 117 const char *name, uint32_t delta) in overlay_phandle_add_offset() argument 123 val = fdt_getprop(fdt, node, name, &len); in overlay_phandle_add_offset() 138 return fdt_setprop_inplace_u32(fdt, node, name, adj_val); in overlay_phandle_add_offset() 232 const char *name; in overlay_update_local_node_references() local 238 &name, &fixup_len); in overlay_update_local_node_references() 245 tree_val = fdt_getprop(fdto, tree_node, name, &tree_len); in overlay_update_local_node_references() 271 name, in overlay_update_local_node_references() 272 strlen(name), in overlay_update_local_node_references() 370 const char *name, uint32_t name_len, in overlay_fixup_one_phandle() argument 403 name, name_len, poffset, in overlay_fixup_one_phandle() [all …]
|
D | fdt_rw.c | 170 static int fdt_resize_property_(void *fdt, int nodeoffset, const char *name, in fdt_resize_property_() argument 176 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in fdt_resize_property_() 188 static int fdt_add_property_(void *fdt, int nodeoffset, const char *name, in fdt_add_property_() argument 200 namestroff = fdt_find_add_string_(fdt, name, &allocated); in fdt_add_property_() 210 fdt_del_last_string_(fdt, name); in fdt_add_property_() 220 int fdt_set_name(void *fdt, int nodeoffset, const char *name) in fdt_set_name() argument 232 newlen = strlen(name); in fdt_set_name() 239 memcpy(namep, name, newlen+1); in fdt_set_name() 243 int fdt_setprop_placeholder(void *fdt, int nodeoffset, const char *name, in fdt_setprop_placeholder() argument 251 err = fdt_resize_property_(fdt, nodeoffset, name, len, &prop); in fdt_setprop_placeholder() [all …]
|
/scripts/kconfig/ |
D | preprocess.c | 24 fprintf(stderr, "%s:%d: ", current_file->name, yylineno); in pperror() 39 char *name; member 44 static void env_add(const char *name, const char *value) in env_add() argument 49 e->name = xstrdup(name); in env_add() 58 free(e->name); in env_del() 64 static char *env_expand(const char *name) in env_expand() argument 69 if (!*name) in env_expand() 73 if (!strcmp(name, e->name)) in env_expand() 77 value = getenv(name); in env_expand() 85 env_add(name, value); in env_expand() [all …]
|
D | confdata.c | 129 static int conf_touch_dep(const char *name) in conf_touch_dep() argument 136 if (depfile_prefix_len + strlen(name) + 3 > sizeof(depfile_path)) in conf_touch_dep() 140 s = name; in conf_touch_dep() 222 char *name = getenv("KCONFIG_CONFIG"); in conf_get_configname() local 224 return name ? name : ".config"; in conf_get_configname() 229 char *name = getenv("KCONFIG_AUTOCONFIG"); in conf_get_autoconfig_name() local 231 return name ? name : "include/config/auto.conf"; in conf_get_autoconfig_name() 259 p, sym->name); in conf_set_sym_val() 285 p, sym->name); in conf_set_sym_val() 350 int conf_read_simple(const char *name, int def) in conf_read_simple() argument [all …]
|
D | lkc_proto.h | 5 void conf_parse(const char *name); 6 int conf_read(const char *name); 7 int conf_read_simple(const char *name, int); 8 int conf_write_defconfig(const char *name); 9 int conf_write(const char *name); 32 struct symbol * sym_lookup(const char *name, int flags); 33 struct symbol * sym_find(const char *name); 58 void variable_add(const char *name, const char *value,
|
D | symbol.c | 15 .name = "y", 19 .name = "m", 23 .name = "n", 27 .name = "", 302 sym->name); in sym_warn_unmet_dep() 351 sym->curr.val = sym->name; in sym_calc_value() 800 struct symbol *sym_lookup(const char *name, int flags) in sym_lookup() argument 806 if (name) { in sym_lookup() 807 if (name[0] && !name[1]) { in sym_lookup() 808 switch (name[0]) { in sym_lookup() [all …]
|
D | conf.c | 136 printf("(%s) ", sym->name); in conf_string() 169 if (sym->name) in conf_sym() 170 printf("(%s) ", sym->name); in conf_sym() 281 if (child->sym->name) in conf_choice() 282 printf(" (%s)", child->sym->name); in conf_choice() 424 if (sym->name) { in check_conf() 430 printf("%s%s=%s\n", CONFIG_, sym->name, str); in check_conf() 434 printf("%s%s=%s\n", CONFIG_, sym->name, str); in check_conf() 490 const char *name, *defconfig_file = NULL /* gcc uninit */; in main() local 559 name = av[optind]; in main() [all …]
|
/scripts/selinux/genheaders/ |
D | genheaders.c | 14 const char *name; member 62 for (i = 0; secclass_map[i].name; i++) { in main() 64 map->name = stoupperx(map->name); in main() 76 for (i = 0; secclass_map[i].name; i++) { in main() 78 fprintf(fout, "#define SECCLASS_%-39s %2d\n", map->name, i+1); in main() 92 for (i = 0; secclass_map[i].name; i++) { in main() 95 int len = strlen(map->name), l = sizeof(s) - 1; in main() 96 if (len >= l && memcmp(map->name + len - l, s, l) == 0) in main() 97 fprintf(fout, "\tcase SECCLASS_%s:\n", map->name); in main() 120 for (i = 0; secclass_map[i].name; i++) { in main() [all …]
|
/scripts/gdb/linux/ |
D | clk.py | 64 def lookup_hlist(self, hlist_head, name): argument 66 if child['name'].string() == name: 68 result = self.lookup_hlist(child['children'], name) 72 def invoke(self, name): argument 73 name = name.string() 74 return (self.lookup_hlist(gdb.parse_and_eval("clk_root_list"), name) or 75 self.lookup_hlist(gdb.parse_and_eval("clk_orphan_list"), name))
|
D | device.py | 49 def get_bus_by_name(name): argument 51 if item['name'].string() == name: 53 raise gdb.GdbError("Can't find bus type {!r}".format(name)) 56 def get_class_by_name(name): argument 58 if item['name'].string() == name: 60 raise gdb.GdbError("Can't find device class {!r}".format(name)) 156 def invoke(self, bus, name): argument 157 name = name.string() 160 if dev_name(dev) == name: 170 def invoke(self, cls, name): argument [all …]
|
/scripts/dtc/ |
D | livetree.c | 39 struct property *build_property(char *name, struct data val, in build_property() argument 46 new->name = name; in build_property() 53 struct property *build_property_delete(char *name) in build_property_delete() argument 59 new->name = name; in build_property_delete() 119 struct node *name_node(struct node *node, char *name) in name_node() argument 121 assert(node->name == NULL); in name_node() 123 node->name = name; in name_node() 163 delete_property_by_name(old_node, new_prop->name); in merge_nodes() 170 if (streq(old_prop->name, new_prop->name)) { in merge_nodes() 200 delete_node_by_name(old_node, new_child->name); in merge_nodes() [all …]
|
/scripts/genksyms/ |
D | genksyms.c | 46 const char *name; member 61 static void print_type_name(enum symbol_type type, const char *name); 154 struct symbol *find_symbol(const char *name, enum symbol_type ns, int exact) in find_symbol() argument 156 unsigned long h = crc32(name) % HASH_BUCKETS; in find_symbol() 161 strcmp(name, sym->name) == 0 && in find_symbol() 185 static struct symbol *__add_symbol(const char *name, enum symbol_type type, in __add_symbol() argument 224 if (!name) in __add_symbol() 229 h = crc32(name) % HASH_BUCKETS; in __add_symbol() 232 strcmp(name, sym->name) == 0) { in __add_symbol() 239 print_type_name(type, name); in __add_symbol() [all …]
|
/scripts/selinux/mdp/ |
D | mdp.c | 24 static void usage(char *name) in usage() argument 26 printf("usage: %s [-m] policy_file context_file\n", name); in usage() 32 const char *name; member 64 for (i = 0; secclass_map[i].name; i++) in main() 65 fprintf(fout, "class %s\n", secclass_map[i].name); in main() 75 for (i = 0; secclass_map[i].name; i++) { in main() 77 fprintf(fout, "class %s\n", map->name); in main() 96 for (i = 0; secclass_map[i].name; i++) { in main() 99 fprintf(fout, "mlsconstrain %s {\n", map->name); in main() 116 for (i = 0; secclass_map[i].name; i++) in main() [all …]
|
/scripts/coccinelle/iterators/ |
D | use_after_iter.cocci | 24 iterator name list_for_each_entry; 25 iterator name list_for_each_entry_reverse; 26 iterator name list_for_each_entry_continue; 27 iterator name list_for_each_entry_continue_reverse; 28 iterator name list_for_each_entry_from; 29 iterator name list_for_each_entry_safe; 30 iterator name list_for_each_entry_safe_continue; 31 iterator name list_for_each_entry_safe_from; 32 iterator name list_for_each_entry_safe_reverse; 33 iterator name hlist_for_each_entry; [all …]
|