Home
last modified time | relevance | path

Searched refs:expr (Results 1 – 20 of 20) sorted by relevance

/scripts/kconfig/
Dexpr.h38 struct expr *expr; member
42 struct expr { struct
52 for (e = (l); e && (s = e->right.sym); e = e->left.expr)
55 struct expr *expr; member
198 struct expr *expr; /* the optional conditional part of the property */ member
248 struct expr *visibility;
254 struct expr *dep;
295 struct expr *expr_alloc_symbol(struct symbol *sym);
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);
[all …]
Dexpr.c16 static int expr_eq(struct expr *e1, struct expr *e2);
17 static struct expr *expr_eliminate_yn(struct expr *e);
19 struct expr *expr_alloc_symbol(struct symbol *sym) in expr_alloc_symbol()
21 struct expr *e = xcalloc(1, sizeof(*e)); in expr_alloc_symbol()
27 struct expr *expr_alloc_one(enum expr_type type, struct expr *ce) in expr_alloc_one()
29 struct expr *e = xcalloc(1, sizeof(*e)); in expr_alloc_one()
31 e->left.expr = ce; in expr_alloc_one()
35 struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2) in expr_alloc_two()
37 struct expr *e = xcalloc(1, sizeof(*e)); in expr_alloc_two()
39 e->left.expr = e1; in expr_alloc_two()
[all …]
Dmenu.c81 static struct expr *rewrite_m(struct expr *e) in rewrite_m()
88 e->left.expr = rewrite_m(e->left.expr); in rewrite_m()
92 e->left.expr = rewrite_m(e->left.expr); in rewrite_m()
93 e->right.expr = rewrite_m(e->right.expr); in rewrite_m()
106 void menu_add_dep(struct expr *dep) in menu_add_dep()
127 …uct property *menu_add_prop(enum prop_type type, char *prompt, struct expr *expr, struct expr *dep) in menu_add_prop() argument
132 prop->expr = expr; in menu_add_prop()
133 prop->visible.expr = dep; in menu_add_prop()
149 struct expr *dup_expr; in menu_add_prop()
164 prop->visible.expr in menu_add_prop()
[all …]
Dsymbol.c82 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_default_prop()
94 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_range_prop()
138 val2 = sym_get_range_val(prop->expr->left.sym, base); in sym_validate_range()
140 val2 = sym_get_range_val(prop->expr->right.sym, base); in sym_validate_range()
184 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_calc_visibility()
206 if (sym->dir_dep.expr) in sym_calc_visibility()
207 tri = expr_calc_value(sym->dir_dep.expr); in sym_calc_visibility()
215 if (sym->rev_dep.expr) in sym_calc_visibility()
216 tri = expr_calc_value(sym->rev_dep.expr); in sym_calc_visibility()
224 if (sym->implied.expr && sym->dir_dep.tri != no) in sym_calc_visibility()
[all …]
Dparser.y39 struct expr *expr; member
97 %type <expr> expr
98 %type <expr> if_expr
190 config_option: default expr if_expr T_EOL
316 if_entry: T_IF expr T_EOL
416 depends: T_DEPENDS T_ON expr T_EOL
447 | T_IF expr { $$ = $2; }
450 expr: symbol { $$ = expr_alloc_symbol($1); }
457 | T_OPEN_PAREN expr T_CLOSE_PAREN { $$ = $2; }
458 | T_NOT expr { $$ = expr_alloc_one(E_NOT, $2); }
[all …]
Dlkc.h72 void menu_add_dep(struct expr *dep);
73 void menu_add_visibility(struct expr *dep);
74 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);
Dconfdata.c373 if (expr_calc_value(prop->visible.expr) == no || in conf_read_simple()
374 prop->expr->type != E_SYMBOL) in conf_read_simple()
376 sym_calc_value(prop->expr->left.sym); in conf_read_simple()
377 name = sym_get_string_value(prop->expr->left.sym); in conf_read_simple()
1174 struct expr *e; in randomize_choice_values()
1189 expr_list_for_each_sym(prop->expr, e, sym) in randomize_choice_values()
1199 expr_list_for_each_sym(prop->expr, e, sym) { in randomize_choice_values()
1222 struct expr *e; in set_all_choice_values()
1229 expr_list_for_each_sym(prop->expr, e, sym) { in set_all_choice_values()
Dqconf.cc110 tristate expr; in updateMenu() local
162 expr = sym_get_tristate_value(sym); in updateMenu()
163 switch (expr) { in updateMenu()
186 if (expr != no) in updateMenu()
188 if (expr != mod) in updateMenu()
190 if (expr != yes) in updateMenu()
1114 if (_menu->prompt->visible.expr) { in menuInfo()
1116 expr_print(_menu->prompt->visible.expr, expr_print_help, &debug, E_NONE); in menuInfo()
1136 if (sym->rev_dep.expr) { in debug_info()
1138 expr_print(sym->rev_dep.expr, expr_print_help, &debug, E_NONE); in debug_info()
[all …]
Dlkc_proto.h65 void expr_print(struct expr *e, void (*fn)(void *, struct symbol *, const char *), void *data, int …
DMakefile146 common-objs := confdata.o expr.o lexer.lex.o parser.tab.o preprocess.o \
/scripts/
Ddecode_stacktrace.sh61 local expr=${symbol%/*}
65 expr=${expr/$name/0x$base_addr}
68 expr=$((expr))
69 local address=$(printf "%x\n" "$expr")
Dspdxcheck.py162 def parse(self, expr): argument
165 self.parser.parse(expr, lexer = self.lexer)
179 expr = line.split(':')[1].strip()
182 expr = expr.rstrip('*/').strip()
185 expr = expr.rstrip('\"').strip()
186 self.parse(expr)
196 col = line.find(expr) + pe.tok.lexpos
Ddecodecode55 width=`expr index "$code" ' '`
93 marker=`expr index "$code" "\<"`
95 marker=`expr index "$code" "\("`
Dlink-vmlinux.sh291 VERSION=$(expr 0$(cat .version) + 1)
DMakefile.lib327 dec_size=$$(expr $$dec_size + $$fsize); \
Dcheckpatch.pl5567 my $expr = '\s*\(\s*' . $tested . '\s*\)\s*;';
5568 …(kfree|usb_free_urb|debugfs_remove(?:_recursive)?|(?:kmem_cache|mempool|dma_pool)_destroy)$expr/) {
/scripts/genksyms/
Dparse.y478 struct string_list *expr = copy_list_range(*$3, *$2); variable
479 add_symbol(name, SYM_ENUM_CONST, expr, 0);
Dgenksyms.c205 struct string_list *expr; in __add_symbol() local
210 expr = copy_list_range(last_enum_expr, NULL); in __add_symbol()
212 expr, in __add_symbol()
/scripts/mod/
Dmodpost.h98 void *do_nofail(void *ptr, const char *expr);
Dmodpost.c114 void *do_nofail(void *ptr, const char *expr) in do_nofail() argument
117 fatal("modpost: Memory allocation failure: %s.\n", expr); in do_nofail()