/scripts/atomic/ |
D | gen-atomic-fallback.sh | 15 local name="$1"; shift 22 local atomicname="${arch}${atomic}_${pfx}${name}${sfx}${order}" 42 local name="$1"; shift 46 local tmpl="$(find_fallback_template "${pfx}" "${name}" "${sfx}" "${order}")" 47 gen_template_fallback "${tmpl}" "${meta}" "${pfx}" "${name}" "${sfx}" "${order}" "$@" 65 local name="$1"; shift 71 local basename="${arch}${atomic}_${pfx}${name}${sfx}" 81 local name="$1"; shift 86 local basename="${arch}${atomic}_${pfx}${name}${sfx}" 88 local template="$(find_fallback_template "${pfx}" "${name}" "${sfx}" "${order}")" [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 | 14 local name="$(gen_param_name "${arg}")" 30 printf "\tinstrument_atomic_${rw}(${name}, sizeof(*${name}));\n" 50 local name="$1"; shift 54 local atomicname="arch_${atomic}_${pfx}${name}${sfx}${order}" 56 local template="$(find_fallback_template "${pfx}" "${name}" "${sfx}" "${order}")" 77 local name="$1"; shift 83 local atomicname="${atomic}_${pfx}${name}${sfx}${order}" 85 local guard="$(gen_guard "${meta}" "${atomic}" "${pfx}" "${name}" "${sfx}" "${order}")" 127 local name="$1"; shift 129 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}); 86 grep '^[a-z]' "$1" | while read name meta args; do 87 gen_proto "${meta}" "${name}" "atomic64" "s64" ${args} 95 grep '^[a-z]' "$1" | while read name meta args; do 96 gen_proto "${meta}" "${name}" "atomic" "int" ${args}
|
/scripts/ |
D | bloat-o-meter | 31 size, type, name = line.split() 34 if name.startswith("__mod_"): continue 35 if name.startswith("__se_sys"): continue 36 if name.startswith("__se_compat_sys"): continue 37 if name.startswith("__addressable_"): continue 38 if name == "linux_banner": continue 40 name = re_NUMBER.sub('', name) 41 sym[name] = sym.get(name, 0) + int(size, 16) 55 for name in old: 56 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 | 389 $file = $File::Find::name; 986 my ($name, $address) = parse_email($email); 988 my $tmp_email = format_email($name, $address, $email_usename); 1155 my $name = ""; 1159 $name = $1; 1167 $name =~ s/^\s+|\s+$//g; 1168 $name =~ s/^\"|\"$//g; 1171 if ($name =~ /[^\w \-]/i) { ##has "must quote" chars 1172 $name =~ s/(?<!\\)"/\\"/g; ##escape quotes 1173 $name = "\"$name\""; [all …]
|
D | decode_stacktrace.sh | 69 for fn in $(find "$modpath" -name "${module//_/[-_]}.ko*") ; do 130 local name=${symbol%+*} 135 if [[ $aarray_support == true && "${cache[$module,$name]+isset}" == "isset" ]]; then 136 local base_addr=${cache[$module,$name]} 138 …local base_addr=$(nm "$objfile" 2>/dev/null | awk '$3 == "'$name'" && ($2 == "t" || $2 == "T") {pr… 144 cache[$module,$name]="$base_addr" 153 expr=${expr/$name/0x$base_addr} 185 if [[ $name =~ ^_R && $cppfilt != "" ]] ; then 186 name=$("$cppfilt" "$cppfilt_opts" "$name") 190 symbol="$segment$name ($code)"
|
/scripts/dtc/libfdt/ |
D | libfdt.h | 251 #define fdt_set_hdr_(name) \ argument 252 static inline void fdt_set_##name(void *fdt, uint32_t val) \ 255 fdth->name = cpu_to_fdt32(val); \ 456 const char *name, int namelen); 482 int fdt_subnode_offset(const void *fdt, int parentoffset, const char *name); 660 const char *name, 693 const char *name, int *lenp); 695 const char *name, in fdt_get_property_w() argument 699 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w() 751 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() 246 tree_val = fdt_getprop(fdto, tree_node, name, &tree_len); in overlay_update_local_node_references() 272 name, in overlay_update_local_node_references() 273 strlen(name), in overlay_update_local_node_references() 371 const char *name, uint32_t name_len, in overlay_fixup_one_phandle() argument 404 name, name_len, poffset, in overlay_fixup_one_phandle() [all …]
|
D | fdt_rw.c | 184 static int fdt_resize_property_(void *fdt, int nodeoffset, const char *name, in fdt_resize_property_() argument 190 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in fdt_resize_property_() 202 static int fdt_add_property_(void *fdt, int nodeoffset, const char *name, in fdt_add_property_() argument 214 namestroff = fdt_find_add_string_(fdt, name, &allocated); in fdt_add_property_() 225 fdt_del_last_string_(fdt, name); in fdt_add_property_() 235 int fdt_set_name(void *fdt, int nodeoffset, const char *name) in fdt_set_name() argument 247 newlen = strlen(name); in fdt_set_name() 254 memcpy(namep, name, newlen+1); in fdt_set_name() 258 int fdt_setprop_placeholder(void *fdt, int nodeoffset, const char *name, in fdt_setprop_placeholder() argument 266 err = fdt_resize_property_(fdt, nodeoffset, name, len, &prop); in fdt_setprop_placeholder() [all …]
|
D | fdt_ro.c | 226 const char *name, int namelen) in fdt_subnode_offset_namelen() argument 236 && fdt_nodename_eq_(fdt, offset, name, namelen)) in fdt_subnode_offset_namelen() 245 const char *name) in fdt_subnode_offset() argument 247 return fdt_subnode_offset_namelen(fdt, parentoffset, name, strlen(name)); in fdt_subnode_offset() 310 nameptr = nh->name; in fdt_get_name() 396 const char *name, in fdt_get_property_namelen_() argument 412 name, namelen)) { in fdt_get_property_namelen_() 427 const char *name, in fdt_get_property_namelen() argument 438 return fdt_get_property_namelen_(fdt, offset, name, namelen, lenp, in fdt_get_property_namelen() 445 const char *name, int *lenp) in fdt_get_property() argument [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 | 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); 18 struct symbol * sym_lookup(const char *name, int flags); 19 struct symbol * sym_find(const char *name); 44 void variable_add(const char *name, const char *value,
|
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 | symbol.c | 15 .name = "y", 21 .name = "m", 27 .name = "n", 33 .name = "", 308 sym->name); in sym_warn_unmet_dep() 357 sym->curr.val = sym->name; in sym_calc_value() 805 struct symbol *sym_lookup(const char *name, int flags) in sym_lookup() argument 811 if (name) { in sym_lookup() 812 if (name[0] && !name[1]) { in sym_lookup() 813 switch (name[0]) { in sym_lookup() [all …]
|
D | conf.c | 139 printf("(%s) ", sym->name); in conf_string() 172 if (sym->name) in conf_sym() 173 printf("(%s) ", sym->name); in conf_sym() 284 if (child->sym->name) in conf_choice() 285 printf(" (%s)", child->sym->name); in conf_choice() 427 if (sym->name) { in check_conf() 433 printf("%s%s=%s\n", CONFIG_, sym->name, str); in check_conf() 437 printf("%s%s=%s\n", CONFIG_, sym->name, str); in check_conf() 504 const char *name, *defconfig_file = NULL /* gcc uninit */; in main() local 576 name = av[optind]; in main() [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 67 for (i = 0; secclass_map[i].name; i++) in main() 68 fprintf(fout, "class %s\n", secclass_map[i].name); in main() 74 const char *name = initial_sid_to_string[i]; in main() local 76 if (name) in main() 77 fprintf(fout, "sid %s\n", name); in main() 84 for (i = 0; secclass_map[i].name; i++) { in main() 86 fprintf(fout, "class %s\n", map->name); 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() 80 for (i = 0; secclass_map[i].name; i++) { in main() 82 fprintf(fout, "#define SECCLASS_%-39s %2d\n", map->name, i+1); in main() 97 for (i = 0; secclass_map[i].name; i++) { in main() 100 int len = strlen(map->name), l = sizeof(s) - 1; in main() 101 if (len >= l && memcmp(map->name + len - l, s, l) == 0) in main() 102 fprintf(fout, "\tcase SECCLASS_%s:\n", map->name); in main() 125 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/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 …]
|