| /scripts/kconfig/ |
| D | expr.c | 33 static struct expr *expr_lookup(enum expr_type type, void *l, void *r) in expr_lookup() argument 38 hash = hash_32((unsigned int)type ^ hash_ptr(l) ^ hash_ptr(r)); in expr_lookup() 41 if (e->type == type && e->left._initdata == l && in expr_lookup() 47 e->type = type; in expr_lookup() 62 struct expr *expr_alloc_one(enum expr_type type, struct expr *ce) in expr_alloc_one() argument 64 return expr_lookup(type, ce, NULL); in expr_alloc_one() 67 struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2) in expr_alloc_two() argument 69 return expr_lookup(type, e1, e2); in expr_alloc_two() 72 struct expr *expr_alloc_comp(enum expr_type type, struct symbol *s1, struct symbol *s2) in expr_alloc_comp() argument 74 return expr_lookup(type, s1, s2); in expr_alloc_comp() [all …]
|
| D | menu.c | 108 switch (e->type) { in rewrite_m() 114 e = expr_alloc_two(e->type, in rewrite_m() 134 void menu_set_type(int type) in menu_set_type() argument 138 if (sym->type == type) in menu_set_type() 140 if (sym->type == S_UNKNOWN) { in menu_set_type() 141 sym->type = type; in menu_set_type() 147 sym_type_name(sym->type), sym_type_name(type)); in menu_set_type() 150 static struct property *menu_add_prop(enum prop_type type, struct expr *expr, in menu_add_prop() argument 157 prop->type = type; in menu_add_prop() 178 struct property *menu_add_prompt(enum prop_type type, const char *prompt, in menu_add_prompt() argument [all …]
|
| D | expr.h | 49 enum expr_type type; member 97 enum symbol_type type; member 189 enum prop_type type; /* type of property */ member 202 if (st->type == (tok)) 287 struct expr *expr_alloc_one(enum expr_type type, struct expr *ce); 288 struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2); 289 struct expr *expr_alloc_comp(enum expr_type type, struct symbol *s1, struct symbol *s2); 299 struct expr *expr_trans_compare(struct expr *e, enum expr_type type, struct symbol *sym); 309 return !e || (e->type == E_SYMBOL && e->left.sym == &symbol_yes); in expr_is_yes()
|
| D | parser.y | 42 enum symbol_type type; member 90 %type <symbol> nonconst_symbol 91 %type <symbol> symbol 92 %type <type> type default 93 %type <expr> expr 94 %type <expr> if_expr 95 %type <string> end 96 %type <menu> if_entry menu_entry choice_entry 97 %type <string> assign_val 98 %type <flavor> assign_op [all …]
|
| D | symbol.c | 19 .type = S_TRISTATE, 27 .type = S_TRISTATE, 35 .type = S_TRISTATE, 47 enum symbol_type type = sym->type; in sym_get_type() local 49 if (type == S_TRISTATE && modules_val == no) in sym_get_type() 50 type = S_BOOLEAN; in sym_get_type() 51 return type; in sym_get_type() 54 const char *sym_type_name(enum symbol_type type) in sym_type_name() argument 56 switch (type) { in sym_type_name() 135 switch (sym->type) { in sym_get_range_val() [all …]
|
| /scripts/gendwarfksyms/ |
| D | types.c | 76 static void type_expansion_init(struct type_expansion *type) in type_expansion_init() argument 78 type->name = NULL; in type_expansion_init() 79 type->len = 0; in type_expansion_init() 80 INIT_LIST_HEAD(&type->expanded); in type_expansion_init() 83 static inline void type_expansion_free(struct type_expansion *type) in type_expansion_free() argument 85 free(type->name); in type_expansion_free() 86 type->name = NULL; in type_expansion_free() 87 type->len = 0; in type_expansion_free() 88 type_list_free(&type->expanded); in type_expansion_free() 91 static void type_expansion_append(struct type_expansion *type, const char *s, in type_expansion_append() argument [all …]
|
| D | kabi.c | 83 enum kabi_rule_type type; member 92 static inline unsigned int rule_values_hash(enum kabi_rule_type type, in rule_values_hash() argument 95 return hash_32(type) ^ hash_str(target); in rule_values_hash() 100 return rule_values_hash(rule->type, rule->target); in rule_hash() 131 enum kabi_rule_type type; in kabi_read_rules() member 135 .type = KABI_RULE_TYPE_DECLONLY, in kabi_read_rules() 139 .type = KABI_RULE_TYPE_ENUMERATOR_IGNORE, in kabi_read_rules() 143 .type = KABI_RULE_TYPE_ENUMERATOR_VALUE, in kabi_read_rules() 147 .type = KABI_RULE_TYPE_BYTE_SIZE, in kabi_read_rules() 151 .type = KABI_RULE_TYPE_TYPE_STRING, in kabi_read_rules() [all …]
|
| D | dwarf.c | 45 #define DEFINE_GET_ATTR(attr, type) \ argument 47 type *value) \ 250 #define DEFINE_MATCH(type) \ argument 251 static bool match_##type##_type(Dwarf_Die *die) \ 253 return dwarf_tag(die) == DW_TAG_##type##_type; \ 303 Dwarf_Die type; in process_type_attr() local 305 if (get_ref_die_attr(die, DW_AT_type, &type)) { in process_type_attr() 306 check(process_type(state, cache, &type)); in process_type_attr() 326 Dwarf_Die *die, const char *type) in __process_list_type() argument 337 process(cache, type); in __process_list_type() [all …]
|
| /scripts/dtc/ |
| D | dtc-parser.y | 72 %type <data> propdata 73 %type <data> propdataprefix 74 %type <flags> header 75 %type <flags> headers 76 %type <re> memreserve 77 %type <re> memreserves 78 %type <array> arrayprefix 79 %type <data> bytestring 80 %type <prop> propdef 81 %type <proplist> proplist [all …]
|
| D | of_unittest_expect | 34 my $type; 38 ($expect_next, $type) = split(/<</, $expect); 39 ($type) = split(/>>/, $type); 53 if ($type eq "int") { 59 } elsif ($type eq "hex") { 65 } elsif ($type eq "all") { 67 } elsif ($type eq "") { 75 print "** ERROR: special pattern not recognized: <<$type>>, CONSOLE_LOG line: $.\n";
|
| /scripts/gcc-plugins/ |
| D | structleak_plugin.c | 81 static bool is_userspace_type(tree type) in is_userspace_type() argument 85 for (field = TYPE_FIELDS(type); field; field = TREE_CHAIN(field)) { in is_userspace_type() 101 tree type = (tree)event_data; in finish_type() local 103 if (type == NULL_TREE || type == error_mark_node) in finish_type() 106 if (TREE_CODE(type) == ENUMERAL_TYPE) in finish_type() 109 if (TYPE_USERSPACE(type)) in finish_type() 112 if (is_userspace_type(type)) in finish_type() 113 TYPE_USERSPACE(type) = 1; in finish_type() 122 tree type; in initialize() local 155 type = TREE_TYPE(var); in initialize() [all …]
|
| D | randomize_layout_plugin.c | 56 tree type; in handle_randomize_layout_attr() local 75 type = *node; in handle_randomize_layout_attr() 81 type = TREE_TYPE(*node); in handle_randomize_layout_attr() 84 if (TREE_CODE(type) != RECORD_TYPE) { in handle_randomize_layout_attr() 85 error("%qE attribute used on %qT applies to struct types only", name, type); in handle_randomize_layout_attr() 89 if (lookup_attribute(IDENTIFIER_POINTER(name), TYPE_ATTRIBUTES(type))) { in handle_randomize_layout_attr() 90 error("%qE attribute is already applied to the type %qT", name, type); in handle_randomize_layout_attr() 242 static void shuffle(const_tree type, tree *newtree, unsigned long length) in shuffle() argument 252 gcc_assert(TREE_CODE(type) == RECORD_TYPE); in shuffle() 254 structname = ORIG_TYPE_NAME(type); in shuffle() [all …]
|
| D | gcc-common.h | 113 tree cstr, elem, index, type; in build_const_char_string() local 118 type = build_array_type(elem, index); in build_const_char_string() 119 TREE_TYPE(cstr) = type; in build_const_char_string() 126 static inline void __add_type_attr(tree type, const char *attr, tree args) in __add_type_attr() argument 130 if (type == NULL_TREE) in __add_type_attr() 132 oldattr = lookup_attribute(attr, TYPE_ATTRIBUTES(type)); in __add_type_attr() 138 TYPE_ATTRIBUTES(type) = copy_list(TYPE_ATTRIBUTES(type)); in __add_type_attr() 139 TYPE_ATTRIBUTES(type) = tree_cons(get_identifier(attr), args, TYPE_ATTRIBUTES(type)); in __add_type_attr() 142 static inline void add_type_attr(tree type, const char *attr, tree args) in add_type_attr() argument 144 tree main_variant = TYPE_MAIN_VARIANT(type); in add_type_attr() [all …]
|
| D | latent_entropy_plugin.c | 116 static tree tree_get_random_const(tree type) in tree_get_random_const() argument 120 mask = 1ULL << (TREE_INT_CST_LOW(TYPE_SIZE(type)) - 1); in tree_get_random_const() 123 if (TYPE_UNSIGNED(type)) in tree_get_random_const() 124 return build_int_cstu(type, mask & get_random_const()); in tree_get_random_const() 125 return build_int_cst(type, mask & get_random_const()); in tree_get_random_const() 133 tree type; in handle_latent_entropy_attribute() local 158 type = TREE_TYPE(*node); in handle_latent_entropy_attribute() 159 switch (TREE_CODE(type)) { in handle_latent_entropy_attribute() 167 tree fld, lst = TYPE_FIELDS(type); in handle_latent_entropy_attribute() 196 DECL_INITIAL(*node) = build_constructor(type, vals); in handle_latent_entropy_attribute() [all …]
|
| /scripts/atomic/ |
| D | atomics.tbl | 8 # * I/i - int: returns base type 9 # * R - return: returns base type (has _return variants) 10 # * F/f - fetch: returns base type (has fetch_ variants) 11 # * l - load: returns base type (has _acquire order variant) 14 # Where args contains list of type[:name], where type is: 15 # * cv - const pointer to atomic base type (atomic_t/atomic64_t/atomic_long_t) 16 # * v - pointer to atomic base type (atomic_t/atomic64_t/atomic_long_t) 17 # * i - base type (int/s64/long) 18 # * p - pointer to base type (int/s64/long)
|
| /scripts/gdb/linux/ |
| D | mapletree.py | 36 if mt.type == maple_tree_root_type.get_type().pointer(): 38 elif mt.type != maple_tree_root_type.get_type(): 40 .format(maple_tree_root_type.get_type().pointer(), mt.type)) 110 if node.type != maple_enode_type.get_type().pointer(): 112 … .format(mte_safe_root.__name__, maple_enode_type.get_type().pointer(), node.type)) 121 if entry.type == maple_enode_type.get_type().pointer(): 123 elif entry.type == ulong_type: 127 … .format(mte_node_type.__name__, maple_enode_type.get_type().pointer(), entry.type)) 131 if node.type != maple_node_type.get_type().pointer(): 133 … .format(ma_dead_node.__name__, maple_node_type.get_type().pointer(), node.type)) [all …]
|
| D | rbtree.py | 26 if root.type == rb_root_type.get_type(): 28 elif root.type != rb_root_type.get_type().pointer(): 29 raise gdb.GdbError("Must be struct rb_root not {}".format(root.type)) 42 if root.type == rb_root_type.get_type(): 44 elif root.type != rb_root_type.get_type().pointer(): 45 raise gdb.GdbError("Must be struct rb_root not {}".format(root.type)) 67 if node.type == rb_node_type.get_type(): 69 elif node.type != rb_node_type.get_type().pointer(): 70 raise gdb.GdbError("Must be struct rb_node not {}".format(node.type)) 90 if node.type == rb_node_type.get_type(): [all …]
|
| D | lists.py | 24 if head.type == list_head.get_type().pointer(): 26 elif head.type != list_head.get_type(): 28 .format(head.type)) 47 if head.type == hlist_head.get_type().pointer(): 49 elif head.type != hlist_head.get_type(): 51 .format(head.type)) 66 if (head.type == list_head.get_type().pointer()): 68 elif (head.type != list_head.get_type()):
|
| D | radixtree.py | 26 node_type = node.type 34 if root.type == radix_tree_root_type.get_type().pointer(): 36 elif root.type != radix_tree_root_type.get_type(): 38 .format(radix_tree_root_type.get_type(), root.type)) 64 node = slot.cast(node.type.pointer()).dereference()
|
| /scripts/include/ |
| D | list.h | 19 #define container_of(ptr, type, member) ({ \ argument 21 _Static_assert(__same_type(*(ptr), ((type *)0)->member) || \ 24 ((type *)(__mptr - offsetof(type, member))); }) 228 #define list_entry(ptr, type, member) \ argument 229 container_of(ptr, type, member) 239 #define list_first_entry(ptr, type, member) \ argument 240 list_entry((ptr)->next, type, member) 250 #define list_last_entry(ptr, type, member) \ argument 251 list_entry((ptr)->prev, type, member) 398 #define hlist_entry(ptr, type, member) container_of(ptr, type, member) argument [all …]
|
| /scripts/coccinelle/misc/ |
| D | badty.cocci | 5 //# in memory allocation functions by checking the type of the allocated memory 26 type T; 40 type T; 55 type T; 69 coccilib.org.print_todo(p[0], "WARNING sizeof argument should be pointer type, not structure type") 75 msg="WARNING: Use correct pointer type argument for sizeof"
|
| /scripts/ |
| D | recordmcount.pl | 166 my $type; 196 $type = ".long"; 200 $type = ".quad"; 226 $type = ".quad"; 259 $type = ".quad"; 277 $type = ".quad"; 294 $type = ".xword"; 348 $type = ".dword"; 356 $type = ".quad"; 443 printf FILE "\t%s %s + %d\n", $type, $ref_func, $cur_offset - $offset;
|
| D | kernel-doc | 181 my ($type, $declaration_name, $return_type); 593 $type = $args{'parametertypes'}{$parameter}; 594 if ($type =~ m/$function_pointer/) { 598 $type =~ s/([^\*])$/$1 /; 599 print ".BI \"" . $parenth . $type . "\" " . " \"" . $post . "\"\n"; 848 $type = $args{'parametertypes'}{$parameter}; 850 if ($type =~ m/$function_pointer/) { 854 $signature .= $type; 912 $type = $args{'parametertypes'}{$parameter}; 914 if ($type ne "") { [all …]
|
| D | stackdelta | 25 my ($file, $func, $size, $type) = split; 41 $su{"${file}\t${func}"} = {size => $size, type => $type};
|
| /scripts/genksyms/ |
| D | genksyms.c | 59 static void print_type_name(enum symbol_type type, const char *name); 158 if (map_to_ns(sym->type) == map_to_ns(ns) && in find_symbol() 163 if (exact && sym && sym->type != ns) in find_symbol() 172 return ((sym->type == SYM_STRUCT || in is_unknown_symbol() 173 sym->type == SYM_UNION || in is_unknown_symbol() 174 sym->type == SYM_ENUM) && in is_unknown_symbol() 183 static struct symbol *__add_symbol(const char *name, enum symbol_type type, in __add_symbol() argument 197 if (type == SYM_ENUM_CONST) { in __add_symbol() 218 } else if (type == SYM_ENUM) { in __add_symbol() 229 if (map_to_ns(sym->type) == map_to_ns(type) && in __add_symbol() [all …]
|