Home
last modified time | relevance | path

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

12345678910>>...16

/openbmc/linux/tools/debugging/
H A Dkernel-chktaint55 if [ `expr $T % 2` -eq 0 ]; then
62 T=`expr $T / 2`
63 if [ `expr $T % 2` -eq 0 ]; then
70 T=`expr $T / 2`
71 if [ `expr $T % 2` -eq 0 ]; then
78 T=`expr $T / 2`
79 if [ `expr $T % 2` -eq 0 ]; then
86 T=`expr $T / 2`
87 if [ `expr $T % 2` -eq 0 ]; then
94 T=`expr $T / 2`
[all …]
/openbmc/linux/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
194 struct expr *expr; /* the optional conditional part of the property */ member
244 struct expr *visibility;
250 struct expr *dep;
287 struct expr *expr_alloc_symbol(struct symbol *sym);
288 struct expr *expr_alloc_one(enum expr_type type, struct expr *ce);
289 struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2);
[all …]
H A Dexpr.c16 static struct expr *expr_eliminate_yn(struct expr *e);
18 struct expr *expr_alloc_symbol(struct symbol *sym) in expr_alloc_symbol()
20 struct expr *e = xcalloc(1, sizeof(*e)); in expr_alloc_symbol()
26 struct expr *expr_alloc_one(enum expr_type type, struct expr *ce) in expr_alloc_one()
28 struct expr *e = xcalloc(1, sizeof(*e)); in expr_alloc_one()
30 e->left.expr = ce; in expr_alloc_one()
34 struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2) in expr_alloc_two()
36 struct expr *e = xcalloc(1, sizeof(*e)); in expr_alloc_two()
38 e->left.expr = e1; in expr_alloc_two()
39 e->right.expr = e2; in expr_alloc_two()
[all …]
H A Dmenu.c83 static struct expr *rewrite_m(struct expr *e) in rewrite_m()
90 e->left.expr = rewrite_m(e->left.expr); in rewrite_m()
94 e->left.expr = rewrite_m(e->left.expr); in rewrite_m()
95 e->right.expr = rewrite_m(e->right.expr); in rewrite_m()
108 void menu_add_dep(struct expr *dep) in menu_add_dep()
129 static struct property *menu_add_prop(enum prop_type type, struct expr *expr, in menu_add_prop() argument
130 struct expr *dep) in menu_add_prop()
140 prop->expr = expr; in menu_add_prop()
141 prop->visible.expr = dep; in menu_add_prop()
158 struct expr *dep) in menu_add_prompt()
[all …]
H A Dsymbol.c90 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_default_prop()
102 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_range_prop()
146 range_sym = prop->expr->left.sym; in sym_validate_range()
149 range_sym = prop->expr->right.sym; in sym_validate_range()
190 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_calc_visibility()
212 if (sym->dir_dep.expr) in sym_calc_visibility()
213 tri = expr_calc_value(sym->dir_dep.expr); in sym_calc_visibility()
221 if (sym->rev_dep.expr) in sym_calc_visibility()
222 tri = expr_calc_value(sym->rev_dep.expr); in sym_calc_visibility()
230 if (sym->implied.expr) in sym_calc_visibility()
[all …]
/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 …]
/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 …]
/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/linux/tools/perf/util/
H A Dbpf-filter.c58 static int check_sample_flags(struct evsel *evsel, struct perf_bpf_filter_expr *expr) in check_sample_flags() argument
62 if (evsel->core.attr.sample_type & expr->sample_flags) in check_sample_flags()
65 if (expr->op == PBF_OP_GROUP_BEGIN) { in check_sample_flags()
68 list_for_each_entry(group, &expr->groups, list) { in check_sample_flags()
75 info = get_sample_info(expr->sample_flags); in check_sample_flags()
78 evsel__name(evsel), expr->sample_flags); in check_sample_flags()
94 struct perf_bpf_filter_expr *expr; in perf_bpf_filter__prepare() local
104 list_for_each_entry(expr, &evsel->bpf_filters, list) { in perf_bpf_filter__prepare()
106 .op = expr->op, in perf_bpf_filter__prepare()
107 .part = expr->part, in perf_bpf_filter__prepare()
[all …]
H A Dexpr.y54 %type <ids> expr if_expr
155 if_expr: expr IF expr ELSE if_expr
194 | expr
197 expr: NUMBER
216 | expr '|' expr
245 | expr '&' expr
274 | expr '^' expr
285 | expr '<' expr { BINARY_OP($$, <, $1, $3); }
286 | expr '>' expr { BINARY_OP($$, >, $1, $3); }
287 | expr '+' expr { BINARY_OP($$, +, $1, $3); }
[all …]
H A Dbpf-filter.y14 static void perf_bpf_filter_error(struct list_head *expr __maybe_unused,
30 struct perf_bpf_filter_expr *expr;
34 %type <expr> filter_term filter_expr
35 %destructor { free ($$); } <expr>
56 struct perf_bpf_filter_expr *expr;
59 expr = $1;
61 expr = perf_bpf_filter_expr__new(0, 0, PBF_OP_GROUP_BEGIN, 1);
62 list_add_tail(&$1->list, &expr->groups);
64 expr->val++;
65 list_add_tail(&$3->list, &expr->groups);
[all …]
/openbmc/linux/tools/testing/selftests/nolibc/
H A Dnolibc-test.c165 #define EXPECT_ZR(cond, expr) \ argument
166 do { if (!(cond)) result(llen, SKIPPED); else ret += expect_zr(expr, llen); } while (0)
169 int expect_zr(int expr, int llen) in expect_zr() argument
171 int ret = !(expr == 0); in expect_zr()
173 llen += printf(" = %d ", expr); in expect_zr()
179 #define EXPECT_NZ(cond, expr, val) \ argument
180 do { if (!(cond)) result(llen, SKIPPED); else ret += expect_nz(expr, llen; } while (0)
183 int expect_nz(int expr, int llen) in expect_nz() argument
185 int ret = !(expr != 0); in expect_nz()
187 llen += printf(" = %d ", expr); in expect_nz()
[all …]
/openbmc/qemu/rust/qemu-api/src/
H A Dvmstate.rs16 ($field_exists_fn:expr, $version_id:expr, $size:expr) => {{
39 ($version_id:expr, $size:expr) => {{
47 ($size:expr) => {{
55 …$field_name:ident, $struct_name:ty, $field_exists_fn:expr, $version_id:expr, $info:expr, $size:exp…
80 ($field_name:ident, $struct_name:ty, $version_id:expr, $info:expr, $size:expr) => {{
88 ($field_name:ident, $struct_name:ty, $version_id:expr) => {{
110 ($field_name:ident, $struct_name:ty, $version_id:expr) => {{
132 … ($field_name:ident, $struct_name:ty, $length:expr, $version_id:expr, $info:expr, $size:expr) => {{
157 ($field_name:ident, $struct_name:ty, $length:expr, $version_id:expr) => {{
172 ($field_name:ident, $struct_name:ty, $length:expr) => {{
[all …]
/openbmc/qemu/subprojects/libvhost-user/include/
H A Dcompiler.h241 #define typeof_strip_qual(expr) \ argument
244 __builtin_types_compatible_p(typeof(expr), bool) || \
245 __builtin_types_compatible_p(typeof(expr), const bool) || \
246 __builtin_types_compatible_p(typeof(expr), volatile bool) || \
247 __builtin_types_compatible_p(typeof(expr), const volatile bool), \
250 __builtin_types_compatible_p(typeof(expr), signed char) || \
251 __builtin_types_compatible_p(typeof(expr), const signed char) || \
252 __builtin_types_compatible_p(typeof(expr), volatile signed char) || \
253 __builtin_types_compatible_p(typeof(expr), const volatile signed char), \
256 __builtin_types_compatible_p(typeof(expr), unsigned char) || \
[all …]
/openbmc/qemu/subprojects/libvduse/include/
H A Dcompiler.h241 #define typeof_strip_qual(expr) \ argument
244 __builtin_types_compatible_p(typeof(expr), bool) || \
245 __builtin_types_compatible_p(typeof(expr), const bool) || \
246 __builtin_types_compatible_p(typeof(expr), volatile bool) || \
247 __builtin_types_compatible_p(typeof(expr), const volatile bool), \
250 __builtin_types_compatible_p(typeof(expr), signed char) || \
251 __builtin_types_compatible_p(typeof(expr), const signed char) || \
252 __builtin_types_compatible_p(typeof(expr), volatile signed char) || \
253 __builtin_types_compatible_p(typeof(expr), const volatile signed char), \
256 __builtin_types_compatible_p(typeof(expr), unsigned char) || \
[all …]
/openbmc/qemu/include/qemu/
H A Dcompiler.h241 #define typeof_strip_qual(expr) \ argument
244 __builtin_types_compatible_p(typeof(expr), bool) || \
245 __builtin_types_compatible_p(typeof(expr), const bool) || \
246 __builtin_types_compatible_p(typeof(expr), volatile bool) || \
247 __builtin_types_compatible_p(typeof(expr), const volatile bool), \
250 __builtin_types_compatible_p(typeof(expr), signed char) || \
251 __builtin_types_compatible_p(typeof(expr), const signed char) || \
252 __builtin_types_compatible_p(typeof(expr), volatile signed char) || \
253 __builtin_types_compatible_p(typeof(expr), const volatile signed char), \
256 __builtin_types_compatible_p(typeof(expr), unsigned char) || \
[all …]
/openbmc/linux/net/netfilter/
H A Dnft_objref.c14 #define nft_objref_priv(expr) *((struct nft_object **)nft_expr_priv(expr)) argument
16 void nft_objref_eval(const struct nft_expr *expr, in nft_objref_eval() argument
20 struct nft_object *obj = nft_objref_priv(expr); in nft_objref_eval()
26 const struct nft_expr *expr, in nft_objref_init() argument
29 struct nft_object *obj = nft_objref_priv(expr); in nft_objref_init()
47 nft_objref_priv(expr) = obj; in nft_objref_init()
53 const struct nft_expr *expr, bool reset) in nft_objref_dump() argument
55 const struct nft_object *obj = nft_objref_priv(expr); in nft_objref_dump()
69 const struct nft_expr *expr, in nft_objref_deactivate() argument
72 struct nft_object *obj = nft_objref_priv(expr); in nft_objref_deactivate()
[all …]
H A Dnf_tables_core.c77 static void nft_bitwise_fast_eval(const struct nft_expr *expr, in nft_bitwise_fast_eval() argument
80 const struct nft_bitwise_fast_expr *priv = nft_expr_priv(expr); in nft_bitwise_fast_eval()
87 static void nft_cmp_fast_eval(const struct nft_expr *expr, in nft_cmp_fast_eval() argument
90 const struct nft_cmp_fast_expr *priv = nft_expr_priv(expr); in nft_cmp_fast_eval()
97 static void nft_cmp16_fast_eval(const struct nft_expr *expr, in nft_cmp16_fast_eval() argument
100 const struct nft_cmp16_fast_expr *priv = nft_expr_priv(expr); in nft_cmp16_fast_eval()
147 static bool nft_payload_fast_eval(const struct nft_expr *expr, in nft_payload_fast_eval() argument
151 const struct nft_payload *priv = nft_expr_priv(expr); in nft_payload_fast_eval()
206 static void expr_call_ops_eval(const struct nft_expr *expr, in expr_call_ops_eval() argument
216 e = (unsigned long)expr->ops->eval; in expr_call_ops_eval()
[all …]
H A Dnft_compat.c73 static void nft_target_eval_xt(const struct nft_expr *expr, in nft_target_eval_xt() argument
77 void *info = nft_expr_priv(expr); in nft_target_eval_xt()
78 struct xt_target *target = expr->ops->data; in nft_target_eval_xt()
100 static void nft_target_eval_bridge(const struct nft_expr *expr, in nft_target_eval_bridge() argument
104 void *info = nft_expr_priv(expr); in nft_target_eval_bridge()
105 struct xt_target *target = expr->ops->data; in nft_target_eval_bridge()
243 nft_target_init(const struct nft_ctx *ctx, const struct nft_expr *expr, in nft_target_init() argument
246 void *info = nft_expr_priv(expr); in nft_target_init()
247 struct xt_target *target = expr->ops->data; in nft_target_init()
292 static void __nft_mt_tg_destroy(struct module *me, const struct nft_expr *expr) in __nft_mt_tg_destroy() argument
[all …]
H A Dnft_numgen.c36 static void nft_ng_inc_eval(const struct nft_expr *expr, in nft_ng_inc_eval() argument
40 struct nft_ng_inc *priv = nft_expr_priv(expr); in nft_ng_inc_eval()
53 const struct nft_expr *expr, in nft_ng_inc_init() argument
56 struct nft_ng_inc *priv = nft_expr_priv(expr); in nft_ng_inc_init()
88 const struct nft_expr *expr) in nft_ng_inc_reduce() argument
90 const struct nft_ng_inc *priv = nft_expr_priv(expr); in nft_ng_inc_reduce()
116 const struct nft_expr *expr, bool reset) in nft_ng_inc_dump() argument
118 const struct nft_ng_inc *priv = nft_expr_priv(expr); in nft_ng_inc_dump()
125 const struct nft_expr *expr) in nft_ng_inc_destroy() argument
127 const struct nft_ng_inc *priv = nft_expr_priv(expr); in nft_ng_inc_destroy()
[all …]
/openbmc/linux/drivers/gpu/drm/i915/
H A Di915_gem.h104 #define GEM_WARN_ON(expr) WARN_ON(expr) argument
106 #define GEM_DEBUG_WARN_ON(expr) GEM_WARN_ON(expr) argument
112 #define GEM_BUG_ON(expr) BUILD_BUG_ON_INVALID(expr) argument
113 #define GEM_WARN_ON(expr) ({ unlikely(!!(expr)); }) argument
115 #define GEM_DEBUG_WARN_ON(expr) ({ BUILD_BUG_ON_INVALID(expr); 0; }) argument
126 #define GEM_TRACE_DUMP_ON(expr) \ argument
127 do { if (expr) GEM_TRACE_DUMP(); } while (0)
132 #define GEM_TRACE_DUMP_ON(expr) BUILD_BUG_ON_INVALID(expr) argument
/openbmc/linux/drivers/pinctrl/aspeed/
H A Dpinctrl-aspeed.c76 const struct aspeed_sig_expr *expr) in aspeed_sig_expr_enable() argument
80 pr_debug("Enabling signal %s for %s\n", expr->signal, in aspeed_sig_expr_enable()
81 expr->function); in aspeed_sig_expr_enable()
83 ret = aspeed_sig_expr_eval(ctx, expr, true); in aspeed_sig_expr_enable()
88 return aspeed_sig_expr_set(ctx, expr, true); in aspeed_sig_expr_enable()
94 const struct aspeed_sig_expr *expr) in aspeed_sig_expr_disable() argument
98 pr_debug("Disabling signal %s for %s\n", expr->signal, in aspeed_sig_expr_disable()
99 expr->function); in aspeed_sig_expr_disable()
101 ret = aspeed_sig_expr_eval(ctx, expr, true); in aspeed_sig_expr_disable()
106 return aspeed_sig_expr_set(ctx, expr, false); in aspeed_sig_expr_disable()
[all …]
/openbmc/linux/include/net/netfilter/
H A Dnft_meta.h19 const struct nft_expr *expr,
23 const struct nft_expr *expr,
27 const struct nft_expr *expr, bool reset);
30 const struct nft_expr *expr, bool reset);
32 void nft_meta_get_eval(const struct nft_expr *expr,
36 void nft_meta_set_eval(const struct nft_expr *expr,
41 const struct nft_expr *expr);
44 const struct nft_expr *expr,
48 const struct nft_expr *expr);
51 void nft_meta_inner_eval(const struct nft_expr *expr,

12345678910>>...16