Home
last modified time | relevance | path

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

123456

/openbmc/u-boot/scripts/kconfig/
H A 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
195 struct expr *expr; /* the optional conditional part of the property */ member
245 struct expr *visibility;
251 struct expr *dep;
292 struct expr *expr_alloc_symbol(struct symbol *sym);
293 struct expr *expr_alloc_one(enum expr_type type, struct expr *ce);
294 struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2);
[all …]
H A Dexpr.c14 static int expr_eq(struct expr *e1, struct expr *e2);
15 static struct expr *expr_eliminate_yn(struct expr *e);
17 struct expr *expr_alloc_symbol(struct symbol *sym) in expr_alloc_symbol()
19 struct expr *e = xcalloc(1, sizeof(*e)); in expr_alloc_symbol()
25 struct expr *expr_alloc_one(enum expr_type type, struct expr *ce) in expr_alloc_one()
27 struct expr *e = xcalloc(1, sizeof(*e)); in expr_alloc_one()
29 e->left.expr = ce; in expr_alloc_one()
33 struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2) in expr_alloc_two()
35 struct expr *e = xcalloc(1, sizeof(*e)); in expr_alloc_two()
37 e->left.expr = e1; in expr_alloc_two()
[all …]
H A 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 …]
H A Dsymbol.c36 struct expr *sym_env_list;
42 prop->expr = expr_alloc_symbol(sym_lookup(def, SYMBOL_CONST)); in sym_add_default()
120 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_default_prop()
132 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_range_prop()
176 val2 = sym_get_range_val(prop->expr->left.sym, base); in sym_validate_range()
178 val2 = sym_get_range_val(prop->expr->right.sym, base); in sym_validate_range()
222 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_calc_visibility()
244 if (sym->dir_dep.expr) in sym_calc_visibility()
245 tri = expr_calc_value(sym->dir_dep.expr); in sym_calc_visibility()
253 if (sym->rev_dep.expr) in sym_calc_visibility()
[all …]
H A Dzconf.y41 struct expr *expr; member
90 %type <expr> expr
91 %type <expr> if_expr
221 config_option: T_DEFAULT expr if_expr T_EOL
348 if_entry: T_IF expr nl
458 depends: T_DEPENDS T_ON expr T_EOL
501 | T_IF expr { $$ = $2; }
504 expr: symbol { $$ = expr_alloc_symbol($1); }
511 | T_OPEN_PAREN expr T_CLOSE_PAREN { $$ = $2; }
512 | T_NOT expr { $$ = expr_alloc_one(E_NOT, $2); }
[all …]
H A Dlkc.h104 void menu_add_dep(struct expr *dep);
105 void menu_add_visibility(struct expr *dep);
106 struct property *menu_add_prompt(enum prop_type type, char *prompt, struct expr *dep);
107 void menu_add_expr(enum prop_type type, struct expr *expr, struct expr *dep);
108 void menu_add_symbol(enum prop_type type, struct symbol *sym, struct expr *dep);
137 extern struct expr *sym_env_list;
/openbmc/qemu/scripts/qapi/
H A Dexpr.py223 def check_flags(expr: QAPIExpression) -> None:
234 if key in expr and expr[key] is not False:
236 expr.info, "flag '%s' may only use false value" % key)
238 if key in expr and expr[key] is not True:
240 expr.info, "flag '%s' may only use true value" % key)
241 if 'allow-oob' in expr and 'coroutine' in expr:
247 expr.info, "flags 'allow-oob' and 'coroutine' are incompatible")
250 def check_if(expr: Dict[str, object],
306 ifcond = expr.get('if')
444 def check_enum(expr: QAPIExpression) -> None:
[all …]
H A Dschema.py44 from .expr import check_exprs
1228 def _def_include(self, expr: QAPIExpression) -> None:
1229 include = expr['include']
1230 assert expr.doc is None
1232 QAPISchemaInclude(self._make_module(include), expr.info))
1340 def _def_enum_type(self, expr: QAPIExpression) -> None:
1341 name = expr['enum']
1342 data = expr['data']
1343 prefix = expr.get('prefix')
1344 ifcond = QAPISchemaIfCond(expr.get('if'))
[all …]
H A Dparser.py142 expr = self.get_expr()
143 if not isinstance(expr, dict):
147 if 'include' in expr:
149 if len(expr) != 1:
151 include = expr['include']
163 elif "pragma" in expr:
165 if len(expr) != 1:
167 pragma = expr['pragma']
177 self._add_expr(expr, info, cur_doc)
181 def _add_expr(self, expr: Mapping[str, object],
[all …]
/openbmc/u-boot/cmd/
H A Dtest.c56 int i, op, left, adv, expr, last_expr, last_unop, last_binop; in do_test() local
73 expr = 0; in do_test()
88 expr = 1; in do_test()
92 expr = 1; in do_test()
98 expr = strlen(ap[1]) == 0 ? 1 : 0; in do_test()
101 expr = strlen(ap[1]) == 0 ? 0 : 1; in do_test()
104 expr = strcmp(ap[0], ap[2]) == 0; in do_test()
107 expr = strcmp(ap[0], ap[2]) != 0; in do_test()
110 expr = strcmp(ap[0], ap[2]) < 0; in do_test()
113 expr = strcmp(ap[0], ap[2]) > 0; in do_test()
[all …]
/openbmc/qemu/subprojects/libvhost-user/include/
H A Dcompiler.h339 #define typeof_strip_qual(expr) \
342 __builtin_types_compatible_p(typeof(expr), bool) || \
343 __builtin_types_compatible_p(typeof(expr), const bool) || \
344 __builtin_types_compatible_p(typeof(expr), volatile bool) || \
345 __builtin_types_compatible_p(typeof(expr), const volatile bool), \
348 __builtin_types_compatible_p(typeof(expr), signed char) || \
349 __builtin_types_compatible_p(typeof(expr), const signed char) || \
350 __builtin_types_compatible_p(typeof(expr), volatile signed char) || \
351 __builtin_types_compatible_p(typeof(expr), const volatile signed char), \
354 __builtin_types_compatible_p(typeof(expr), unsigne
241 typeof_strip_qual(expr) global() argument
[all...]
/openbmc/qemu/subprojects/libvduse/include/
H A Dcompiler.h339 #define typeof_strip_qual(expr) \
342 __builtin_types_compatible_p(typeof(expr), bool) || \
343 __builtin_types_compatible_p(typeof(expr), const bool) || \
344 __builtin_types_compatible_p(typeof(expr), volatile bool) || \
345 __builtin_types_compatible_p(typeof(expr), const volatile bool), \
348 __builtin_types_compatible_p(typeof(expr), signed char) || \
349 __builtin_types_compatible_p(typeof(expr), const signed char) || \
350 __builtin_types_compatible_p(typeof(expr), volatile signed char) || \
351 __builtin_types_compatible_p(typeof(expr), const volatile signed char), \
354 __builtin_types_compatible_p(typeof(expr), unsigne
241 typeof_strip_qual(expr) global() argument
[all...]
/openbmc/qemu/include/qemu/
H A Dcompiler.h339 #define typeof_strip_qual(expr) \ argument
342 __builtin_types_compatible_p(typeof(expr), bool) || \
343 __builtin_types_compatible_p(typeof(expr), const bool) || \
344 __builtin_types_compatible_p(typeof(expr), volatile bool) || \
345 __builtin_types_compatible_p(typeof(expr), const volatile bool), \
348 __builtin_types_compatible_p(typeof(expr), signed char) || \
349 __builtin_types_compatible_p(typeof(expr), const signed char) || \
350 __builtin_types_compatible_p(typeof(expr), volatile signed char) || \
351 __builtin_types_compatible_p(typeof(expr), const volatile signed char), \
354 __builtin_types_compatible_p(typeof(expr), unsigned char) || \
[all …]
/openbmc/u-boot/test/py/tests/
H A Dtest_hush_if_test.py98 def exec_hush_if(u_boot_console, expr, result): argument
103 args = len(expr.split(' ')) - 1
109 cmd = 'if ' + expr + '; then echo true; else echo false; fi'
121 def test_hush_if_test(u_boot_console, expr, result): argument
124 exec_hush_if(u_boot_console, expr, result)
147 expr = 'test -e hostfs - ' + test_file
148 exec_hush_if(u_boot_console, expr, False)
155 expr = 'test -e hostfs - ' + test_file
156 exec_hush_if(u_boot_console, expr, True)
160 expr = 'test -e hostfs - ' + test_file
[all …]
/openbmc/phosphor-mrw-tools/
H A Dgen_settings.pl92 my $expr = $1;
93 my $value = evaluate($expr);
97 my $exprStart = index($row, $expr);
99 my $back = substr($row, $exprStart + length($expr) + 2);
115 my $expr = shift;
120 $expr =~ s/$var/$exprVars{$var}/;
123 my $value = eval($expr);
126 die "Invalid expression found: $expr\n";
/openbmc/u-boot/include/test/
H A Dut.h112 #define ut_assertnull(expr) { \ argument
113 const void *val = (expr); \
117 #expr " != NULL", \
124 #define ut_assertnonnull(expr) { \ argument
125 const void *val = (expr); \
129 #expr " = NULL", \
136 #define ut_assertok_ptr(expr) { \ argument
137 const void *val = (expr); \
141 #expr " = NULL", \
/openbmc/u-boot/tools/buildman/
H A Dboard.py9 def __init__(self, expr): argument
15 self._expr = expr
16 self._re = re.compile(expr)
44 def AddExpr(self, expr): argument
51 self._expr_list.append(Expr(expr))
55 return '&'.join([str(expr) for expr in self._expr_list])
67 for expr in self._expr_list:
68 if not expr.Matches(props):
271 for expr in exclude:
272 exclude_list.append(Expr(expr))
[all …]
H A Dkconfiglib.py1397 def _eval_expr(self, expr): argument
1401 if expr is None:
1404 res = self._eval_expr_rec(expr)
1416 def _eval_expr_rec(self, expr): argument
1417 if isinstance(expr, Symbol):
1420 if expr.type != BOOL and expr.type != TRISTATE:
1422 return expr.get_value()
1424 if isinstance(expr, str):
1425 return expr if (expr == "y" or expr == "m") else "n"
1429 if expr[0] == AND:
[all …]
/openbmc/openbmc/poky/meta/recipes-core/initrdscripts/initramfs-framework/
H A Ddebug22 shell_wanted_status=`expr $bootparam_shell : '\(.*\):.*'`
23 shell_wanted_module=`expr $bootparam_shell : '.*:\(.*\)'`
46 shell_debug_wanted_status=`expr $bootparam_shell_debug : '\(.*\):.*'`
47 shell_debug_wanted_module=`expr $bootparam_shell_debug : '.*:\(.*\)'`
/openbmc/openbmc/poky/meta/classes-recipe/
H A Dimage-live.bbclass163 SECTORS=$(expr $(du --apparent-size -ks ${FATSOURCEDIR} | cut -f 1) \* 2)
175 DIR_BYTES=$(expr $(find ${FATSOURCEDIR} | tail -n +2 | wc -l) \* 32)
177 DIR_BYTES=$(expr $DIR_BYTES + $(expr $(find ${FATSOURCEDIR} -type d | tail -n +2 | wc -l) \* 32))
179 FAT_BYTES=$(expr $SECTORS \* 4)
181 FAT_BYTES=$(expr $FAT_BYTES + $(expr $(find ${FATSOURCEDIR} -type d | tail -n +2 | wc -l) \* 4))
184 DIR_SECTORS=$(expr $(expr $DIR_BYTES + 511) / 512)
186 FAT_SECTORS=$(expr $(expr $(expr $FAT_BYTES + 511) / 512) \* 2)
187 SECTORS=$(expr $SECTORS + $(expr $DIR_SECTORS + $FAT_SECTORS))
190 BLOCKS=$(expr $(expr $SECTORS / 2) + ${BOOTIMG_EXTRA_SPACE})
195 if [ $(expr $BLOCKS / 1024) -gt 512 ]; then
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-security/keyutils/files/
H A D0001-tests-toolbox.inc.sh-update-regex-for-getting-endian.patch24 -if expr "$endian" : '.* MSB \+\(pie executable\|executable\|shared object\).*' >&/dev/null
25 +if expr "$endian" : '.* MSB .*\(pie executable\|executable\|shared object\).*' >&/dev/null
28 -elif expr "$endian" : '.* LSB \+\(pie executable\|executable\|shared object\).*' >&/dev/null
29 +elif expr "$endian" : '.* LSB .*\(pie executable\|executable\|shared object\).*' >&/dev/null
/openbmc/openbmc/meta-aspeed/recipes-bsp/u-boot/
H A Du-boot-aspeed.inc70 i=$(expr $i + 1);
72 j=$(expr $j + 1);
78 k=$(expr $k + 1);
99 i=$(expr $i + 1);
101 j=$(expr $j + 1);
124 i=$(expr $i + 1);
126 j=$(expr $j + 1);
153 i=$(expr $i + 1);
155 j=$(expr $j + 1);
195 i=$(expr $i + 1);
[all …]
/openbmc/sdeventplus/src/sdeventplus/internal/
H A Dcexec.hpp5 #define SDEVENTPLUS_CHECK(msg, expr) \ argument
6 CHECK_RET(expr, [&](int ret) { throw SdEventError(ret, (msg)); })
/openbmc/google-misc/subprojects/ncsid/src/
H A Dcommon_defs.h19 #define RETURN_IF_ERROR(expr, msg) \ argument
22 int _ret = (expr); \
/openbmc/qemu/rust/qemu-api/src/
H A Dvmstate.rs60 ($func:expr, $typ:ty, $($field:tt).+) => {
97 ($e:expr) => {
203 …($struct_name:ty, $field_name:ident $([0 .. $num:ident $(* $factor:expr)?])? $(, $test_fn:expr)? $…
428 ($size:expr) => {{
456 ($struct_name:ty, $test_fn:expr) => {{
481 …y, $field_name:ident $([0 .. $num:ident $(* $factor:expr)?])?, $vmsd:expr, $type:ty $(, $test_fn:e…
510 ($struct_name:ty, $field_name:ident $([0 .. $num:ident $(* $factor:expr)?])?) => {{
546 ($($field:expr),*$(,)*) => {{
561 ($struct_name:ty, $test_name:expr, $test_fn:expr $(,)?) => {
594 ($($subsection:expr),*$(,)*) => {{

123456