Home
last modified time | relevance | path

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

1234

/scripts/kconfig/
Dexpr.c22 e->type = E_SYMBOL; in expr_alloc_symbol()
27 struct expr *expr_alloc_one(enum expr_type type, struct expr *ce) in expr_alloc_one() argument
30 e->type = type; in expr_alloc_one()
35 struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2) in expr_alloc_two() argument
38 e->type = type; in expr_alloc_two()
44 struct expr *expr_alloc_comp(enum expr_type type, struct symbol *s1, struct symbol *s2) in expr_alloc_comp() argument
47 e->type = type; in expr_alloc_comp()
76 switch (org->type) { in expr_copy()
99 fprintf(stderr, "can't copy type %d\n", e->type); in expr_copy()
113 switch (e->type) { in expr_free()
[all …]
Dmenu.c86 switch (e->type) { in rewrite_m()
111 void menu_set_type(int type) in menu_set_type() argument
115 if (sym->type == type) in menu_set_type()
117 if (sym->type == S_UNKNOWN) { in menu_set_type()
118 sym->type = type; in menu_set_type()
124 sym_type_name(sym->type), sym_type_name(type)); in menu_set_type()
127 static struct property *menu_add_prop(enum prop_type type, char *prompt, struct expr *expr, struct … in menu_add_prop() argument
129 struct property *prop = prop_alloc(type, current_entry->sym); in menu_add_prop()
145 if(type == P_PROMPT) { in menu_add_prop()
177 struct property *menu_add_prompt(enum prop_type type, char *prompt, struct expr *dep) in menu_add_prompt() argument
[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
195 enum prop_type type; /* type of property */ member
208 if (st->type == (tok))
296 struct expr *expr_alloc_one(enum expr_type type, struct expr *ce);
297 struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2);
298 struct expr *expr_alloc_comp(enum expr_type type, struct symbol *s1, struct symbol *s2);
310 struct expr *expr_trans_compare(struct expr *e, enum expr_type type, struct symbol *sym);
320 return !e || (e->type == E_SYMBOL && e->left.sym == &symbol_yes); in expr_is_yes()
325 return e && (e->type == E_SYMBOL && e->left.sym == &symbol_no); in expr_is_no()
Dsymbol.c38 enum symbol_type type = sym->type; in sym_get_type() local
40 if (type == S_TRISTATE) { in sym_get_type()
42 type = S_BOOLEAN; in sym_get_type()
44 type = S_BOOLEAN; in sym_get_type()
46 return type; in sym_get_type()
49 const char *sym_type_name(enum symbol_type type) in sym_type_name() argument
51 switch (type) { in sym_type_name()
104 switch (sym->type) { in sym_get_range_val()
124 switch (sym->type) { in sym_validate_range()
144 if (sym->type == S_INT) in sym_validate_range()
[all …]
Dparser.y41 enum symbol_type type; member
93 %type <string> prompt
94 %type <symbol> nonconst_symbol
95 %type <symbol> symbol
96 %type <type> type logic_type default
97 %type <expr> expr
98 %type <expr> if_expr
99 %type <string> end
100 %type <menu> if_entry menu_entry choice_entry
101 %type <string> word_opt assign_val
[all …]
Dlkc.h74 struct property *menu_add_prompt(enum prop_type type, char *prompt, struct expr *dep);
75 void menu_add_expr(enum prop_type type, struct expr *expr, struct expr *dep);
76 void menu_add_symbol(enum prop_type type, struct symbol *sym, struct expr *dep);
81 void menu_set_type(int type);
115 struct property *prop_alloc(enum prop_type type, struct symbol *sym);
/scripts/dtc/
Ddtc-parser.y62 %type <data> propdata
63 %type <data> propdataprefix
64 %type <flags> header
65 %type <flags> headers
66 %type <re> memreserve
67 %type <re> memreserves
68 %type <array> arrayprefix
69 %type <data> bytestring
70 %type <prop> propdef
71 %type <proplist> proplist
[all …]
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.c83 static bool is_userspace_type(tree type) in is_userspace_type() argument
87 for (field = TYPE_FIELDS(type); field; field = TREE_CHAIN(field)) { in is_userspace_type()
103 tree type = (tree)event_data; in finish_type() local
105 if (type == NULL_TREE || type == error_mark_node) in finish_type()
109 if (TREE_CODE(type) == ENUMERAL_TYPE) in finish_type()
113 if (TYPE_USERSPACE(type)) in finish_type()
116 if (is_userspace_type(type)) in finish_type()
117 TYPE_USERSPACE(type) = 1; in finish_type()
126 tree type; in initialize() local
161 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()
256 static void shuffle(const_tree type, tree *newtree, unsigned long length) in shuffle() argument
266 gcc_assert(TREE_CODE(type) == RECORD_TYPE); in shuffle()
268 structname = ORIG_TYPE_NAME(type); in shuffle()
[all …]
Dlatent_entropy_plugin.c110 static tree tree_get_random_const(tree type) in tree_get_random_const() argument
114 mask = 1ULL << (TREE_INT_CST_LOW(TYPE_SIZE(type)) - 1); in tree_get_random_const()
117 if (TYPE_UNSIGNED(type)) in tree_get_random_const()
118 return build_int_cstu(type, mask & get_random_const()); in tree_get_random_const()
119 return build_int_cst(type, mask & get_random_const()); in tree_get_random_const()
127 tree type; in handle_latent_entropy_attribute() local
156 type = TREE_TYPE(*node); in handle_latent_entropy_attribute()
157 switch (TREE_CODE(type)) { in handle_latent_entropy_attribute()
165 tree fld, lst = TYPE_FIELDS(type); in handle_latent_entropy_attribute()
198 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))
42 if head.type == hlist_head.get_type().pointer():
44 elif head.type != hlist_head.get_type():
46 .format(head.type))
61 if (head.type == list_head.get_type().pointer()):
63 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/
Dnamespace.pl224 my ($source, $type, $name);
268 ($type, $name) = (split(/ +/, $_, 3))[1..2];
291 if ($type !~ /^[ABCDGRSTUWVabdgrstwv?]$/) {
298 $type = 'R' if ($type eq '?'); # binutils replaced ? with R at one point
300 $type = 'R' if ($name =~ /^__ksymtab/ || $name =~ /^__kstrtab/);
302 if ($type =~ /[ABCDGRSTWV]/ &&
325 push(@nmdata, "$type $name");
395 my ($type, $name) = split(' ', $nmdata->[$i], 2);
396 if ($type eq "U" || $type eq "w") {
399 $nmdata->[$i] = "$type $name $object";
[all …]
Dget_abi.pl60 $data{$nametag}->{type} = "File";
65 my $type = $file;
66 $type =~ s,.*/(.*)/.*,$1,;
129 $data{$what}->{type} = $type;
208 ($data{$a}->{type} eq "File") cmp ($data{$b}->{type} eq "File") ||
211 my $type = $data{$what}->{type};
249 if ($type eq "File") {
274 print "Defined on file :ref:`$file <$fileref>`\n\n" if ($type ne "File");
328 my $type = $data{$what}->{type};
329 next if ($type eq "File");
Drecordmcount.pl166 my $type;
229 $type = ".long";
233 $type = ".quad";
262 $type = ".quad";
291 $type = ".quad";
309 $type = ".quad";
312 $type = "data8";
333 $type = ".xword";
387 $type = ".dword";
395 $type = ".quad";
[all …]
Dkernel-doc311 my ($type, $declaration_name, $return_type);
597 $type = $args{'parametertypes'}{$parameter};
598 if ($type =~ m/([^\(]*\(\*)\s*\)\s*\(([^\)]*)\)/) {
602 $type =~ s/([^\*])$/$1 /;
603 print ".BI \"" . $parenth . $type . "\" " . $parameter . " \"" . $post . "\"\n";
852 $type = $args{'parametertypes'}{$parameter};
854 if ($type =~ m/([^\(]*\(\*)\s*\)\s*\(([^\)]*)\)/) {
858 print $type . " " . $parameter;
876 $type = $args{'parametertypes'}{$parameter};
878 if ($type ne "") {
[all …]
Dstackdelta25 my ($file, $func, $size, $type) = split;
41 $su{"${file}\t${func}"} = {size => $size, type => $type};
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 …]
Dcheckpatch.pl159 foreach my $type (@types) {
160 print(++$count . "\t" . $type . "\n");
1367 my $type = '';
1399 $type = '#';
1410 push(@stack, [ $type, $level ]);
1412 ($type, $level) = @{$stack[$#stack - 1]};
1414 ($type, $level) = @{pop(@stack)};
1434 if (($type eq '' || $type eq '(') && $c eq '(') {
1436 $type = '(';
1438 if ($type eq '(' && $c eq ')') {
[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