Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 94) sorted by relevance

1234

/scripts/kconfig/
Dexpr.c21 e->type = E_SYMBOL; in expr_alloc_symbol()
26 struct expr *expr_alloc_one(enum expr_type type, struct expr *ce) in expr_alloc_one() argument
29 e->type = type; in expr_alloc_one()
34 struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2) in expr_alloc_two() argument
37 e->type = type; in expr_alloc_two()
43 struct expr *expr_alloc_comp(enum expr_type type, struct symbol *s1, struct symbol *s2) in expr_alloc_comp() argument
46 e->type = type; in expr_alloc_comp()
75 switch (org->type) { in expr_copy()
98 fprintf(stderr, "can't copy type %d\n", e->type); in expr_copy()
112 switch (e->type) { in expr_free()
[all …]
Dmenu.c88 switch (e->type) { in rewrite_m()
113 void menu_set_type(int type) in menu_set_type() argument
117 if (sym->type == type) in menu_set_type()
119 if (sym->type == S_UNKNOWN) { in menu_set_type()
120 sym->type = type; in menu_set_type()
126 sym_type_name(sym->type), sym_type_name(type)); in menu_set_type()
129 static struct property *menu_add_prop(enum prop_type type, struct expr *expr, in menu_add_prop() argument
136 prop->type = type; in menu_add_prop()
157 struct property *menu_add_prompt(enum prop_type type, char *prompt, in menu_add_prompt() argument
160 struct property *prop = menu_add_prop(type, NULL, dep); in menu_add_prompt()
[all …]
Dlist.h19 #define container_of(ptr, type, member) ({ \ argument
20 const typeof( ((type *)0)->member ) *__mptr = (ptr); \
21 (type *)( (char *)__mptr - offsetof(type,member) );})
40 #define list_entry(ptr, type, member) \ argument
41 container_of(ptr, type, member)
Dexpr.h43 enum expr_type type; member
91 enum symbol_type type; member
191 enum prop_type type; /* type of property */ member
204 if (st->type == (tok))
289 struct expr *expr_alloc_one(enum expr_type type, struct expr *ce);
290 struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2);
291 struct expr *expr_alloc_comp(enum expr_type type, struct symbol *s1, struct symbol *s2);
304 struct expr *expr_trans_compare(struct expr *e, enum expr_type type, struct symbol *sym);
314 return !e || (e->type == E_SYMBOL && e->left.sym == &symbol_yes); in expr_is_yes()
319 return e && (e->type == E_SYMBOL && e->left.sym == &symbol_no); in expr_is_no()
Dsymbol.c43 enum symbol_type type = sym->type; in sym_get_type() local
45 if (type == S_TRISTATE) { in sym_get_type()
47 type = S_BOOLEAN; in sym_get_type()
49 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()
109 switch (sym->type) { in sym_get_range_val()
129 switch (sym->type) { in sym_validate_range()
193 if (choice_sym && sym->type == S_TRISTATE && in sym_calc_visibility()
[all …]
Dparser.y42 enum symbol_type type; member
91 %type <symbol> nonconst_symbol
92 %type <symbol> symbol
93 %type <type> type logic_type default
94 %type <expr> expr
95 %type <expr> if_expr
96 %type <string> end
97 %type <menu> if_entry menu_entry choice_entry
98 %type <string> word_opt assign_val
99 %type <flavor> assign_op
[all …]
Dqconf.cc94 int type; in updateMenu() local
108 if (prop) switch (prop->type) { in updateMenu()
135 type = sym_get_type(sym); in updateMenu()
136 switch (type) { in updateMenu()
148 if (sym_is_choice_value(sym) && type == S_BOOLEAN) in updateMenu()
159 if (sym_is_choice_value(sym) && type == S_BOOLEAN) in updateMenu()
215 enum symbol_type type = menu->sym->type; in init() local
221 if (type == S_INT || type == S_HEX || type == S_STRING) in init()
398 enum prop_type type; in updateSelection() local
411 type = menu->prompt ? menu->prompt->type : P_UNKNOWN; in updateSelection()
[all …]
/scripts/dtc/
Ddtc-parser.y66 %type <data> propdata
67 %type <data> propdataprefix
68 %type <flags> header
69 %type <flags> headers
70 %type <re> memreserve
71 %type <re> memreserves
72 %type <array> arrayprefix
73 %type <data> bytestring
74 %type <prop> propdef
75 %type <proplist> proplist
[all …]
Dfdtget.c31 int type; /* data type (s/i/u/x or 0 for default) */ member
66 is_string = (disp->type) == 's' || in show_data()
67 (!disp->type && util_is_printable_string(data, len)); in show_data()
89 fmt[1] = disp->type ? disp->type : 'd'; in show_data()
312 if (utilfdt_decode_type(optarg, &disp.type, in main()
Dfdtput.c25 int type; /* data type (s/i/u/x or 0 for default) */ member
73 fmt[1] = disp->type ? disp->type : 'd'; in encode_value()
77 if (disp->type == 's') in encode_value()
94 if (disp->type == 's') { in encode_value()
319 if (utilfdt_decode_type(optarg, &disp.type, in main()
/scripts/gcc-plugins/
Dstructleak_plugin.c81 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()
107 if (TREE_CODE(type) == ENUMERAL_TYPE) in finish_type()
111 if (TYPE_USERSPACE(type)) in finish_type()
114 if (is_userspace_type(type)) in finish_type()
115 TYPE_USERSPACE(type) = 1; in finish_type()
124 tree type; in initialize() local
157 type = TREE_TYPE(var); in initialize()
[all …]
Drandomize_layout_plugin.c78 tree type; in handle_randomize_layout_attr() local
97 type = *node; in handle_randomize_layout_attr()
100 type = TREE_TYPE(*node); in handle_randomize_layout_attr()
103 if (TREE_CODE(type) != RECORD_TYPE) { in handle_randomize_layout_attr()
104 error("%qE attribute used on %qT applies to struct types only", name, type); in handle_randomize_layout_attr()
108 if (lookup_attribute(IDENTIFIER_POINTER(name), TYPE_ATTRIBUTES(type))) { in handle_randomize_layout_attr()
109 error("%qE attribute is already applied to the type %qT", name, type); in handle_randomize_layout_attr()
261 static void shuffle(const_tree type, tree *newtree, unsigned long length) in shuffle() argument
271 gcc_assert(TREE_CODE(type) == RECORD_TYPE); in shuffle()
273 structname = ORIG_TYPE_NAME(type); in shuffle()
[all …]
Dlatent_entropy_plugin.c116 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/gdb/linux/
Drbtree.py14 if root.type == rb_root_type.get_type():
16 elif root.type != rb_root_type.get_type().pointer():
17 raise gdb.GdbError("Must be struct rb_root not {}".format(root.type))
30 if root.type == rb_root_type.get_type():
32 elif root.type != rb_root_type.get_type().pointer():
33 raise gdb.GdbError("Must be struct rb_root not {}".format(root.type))
55 if node.type == rb_node_type.get_type():
57 elif node.type != rb_node_type.get_type().pointer():
58 raise gdb.GdbError("Must be struct rb_node not {}".format(node.type))
78 if node.type == rb_node_type.get_type():
[all …]
Dlists.py24 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()):
/scripts/atomic/
Datomics.tbl8 # * 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/
Drecordmcount.pl166 my $type;
196 $type = ".long";
200 $type = ".quad";
226 $type = ".quad";
259 $type = ".quad";
277 $type = ".quad";
280 $type = "data8";
301 $type = ".xword";
355 $type = ".dword";
363 $type = ".quad";
[all …]
Dget_abi.pl82 $data{$nametag}->{type} = "File";
88 my $type = $file;
89 $type =~ s,.*/(.*)/.*,$1,;
162 $data{$what}->{type} = $type;
297 ($data{$a}->{type} eq "File") cmp ($data{$b}->{type} eq "File") ||
300 my $type = $data{$what}->{type};
313 if ($type ne "File") {
357 if ($type eq "File") {
364 if ($type eq "File") {
490 my $type = $data{$what}->{type};
[all …]
Dstackdelta25 my ($file, $func, $size, $type) = split;
41 $su{"${file}\t${func}"} = {size => $size, type => $type};
Dkernel-doc325 my ($type, $declaration_name, $return_type);
698 $type = $args{'parametertypes'}{$parameter};
699 if ($type =~ m/$function_pointer/) {
703 $type =~ s/([^\*])$/$1 /;
704 print ".BI \"" . $parenth . $type . "\" " . " \"" . $post . "\"\n";
977 $type = $args{'parametertypes'}{$parameter};
979 if ($type =~ m/$function_pointer/) {
983 print $type;
1003 $type = $args{'parametertypes'}{$parameter};
1005 if ($type ne "") {
[all …]
Dcheckpatch.pl196 foreach my $type (sort keys %types) {
197 my $orig_type = $type;
199 my $level = $types{$type};
201 $type = RED . $type . RESET;
203 $type = YELLOW . $type . RESET;
205 $type = GREEN . $type . RESET;
208 print(++$count . "\t" . $type . "\n");
249 my $type = '';
260 $verbose_messages{$type} = trim($desc);
262 $type = $1;
[all …]
Dasn1_compiler.c306 struct type *type; member
682 struct type *type_def;
684 struct token *type; member
705 struct type { struct
715 static struct type *type_list; argument
716 static struct type **type_index;
721 const struct type *const *a = _a, *const *b = _b; in type_index_compare()
733 const struct type *const *ti = _ti; in type_finder()
734 const struct type *type = *ti; in type_finder() local
736 if (token->size != type->name->size) in type_finder()
[all …]
/scripts/coccinelle/misc/
Dbadty.cocci5 //# 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/genksyms/
Dgenksyms.c61 static void print_type_name(enum symbol_type type, const char *name);
160 if (map_to_ns(sym->type) == map_to_ns(ns) && in find_symbol()
165 if (exact && sym && sym->type != ns) in find_symbol()
174 return ((sym->type == SYM_STRUCT || in is_unknown_symbol()
175 sym->type == SYM_UNION || in is_unknown_symbol()
176 sym->type == SYM_ENUM) && in is_unknown_symbol()
185 static struct symbol *__add_symbol(const char *name, enum symbol_type type, in __add_symbol() argument
199 if (type == SYM_ENUM_CONST) { in __add_symbol()
220 } else if (type == SYM_ENUM) { in __add_symbol()
231 if (map_to_ns(sym->type) == map_to_ns(type) && in __add_symbol()
[all …]
/scripts/package/
Dsnapcraft.template7 type: kernel
13 source-type: tar

1234