/linux/tools/debugging/ |
H A D | kernel-chktaint | 55 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 …]
|
/linux/scripts/kconfig/ |
H A D | expr.h | 32 struct expr * const expr; member 47 struct expr { struct 60 struct expr *expr; argument 192 struct expr *expr; /* the optional conditional part of the property */ member 247 struct expr *visibility; 253 struct expr *dep; 286 struct expr *expr_alloc_symbol(struct symbol *sym); 287 struct expr *expr_alloc_one(enum expr_type type, struct expr *ce); 288 struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2); 289 struct expr *expr_alloc_comp(enum expr_type type, struct symbol *s1, struct symbol *s2); [all …]
|
H A D | expr.c | 21 static struct expr *expr_eliminate_yn(struct expr *e); 33 static struct expr *expr_lookup(enum expr_type type, void *l, void *r) in expr_lookup() 35 struct expr *e; in expr_lookup() 57 struct expr *expr_alloc_symbol(struct symbol *sym) in expr_alloc_symbol() 62 struct expr *expr_alloc_one(enum expr_type type, struct expr *ce) in expr_alloc_one() 67 struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e in expr_alloc_two() [all...] |
H A D | menu.c | 103 static struct expr *rewrite_m(struct expr *e) in rewrite_m() 110 e = expr_alloc_one(E_NOT, rewrite_m(e->left.expr)); in rewrite_m() 115 rewrite_m(e->left.expr), in rewrite_m() 116 rewrite_m(e->right.expr)); in rewrite_m() 129 void menu_add_dep(struct expr *dep) in menu_add_dep() 150 static struct property *menu_add_prop(enum prop_type type, struct expr *expr, in menu_add_prop() argument 151 struct expr *dep) in menu_add_prop() 161 prop->expr = expr; in menu_add_prop() 162 prop->visible.expr = dep; in menu_add_prop() 179 struct expr *dep) in menu_add_prompt() [all …]
|
/linux/tools/testing/selftests/nolibc/ |
H A D | nolibc-test.c | 185 #define EXPECT_ZR(cond, expr) \ argument 186 do { if (!(cond)) result(llen, SKIPPED); else ret += expect_zr(expr, llen); } while (0) 189 int expect_zr(int expr, int llen) in expect_zr() argument 191 int ret = !(expr == 0); in expect_zr() 193 llen += printf(" = %d ", expr); in expect_zr() 199 #define EXPECT_NZ(cond, expr, val) \ argument 200 do { if (!(cond)) result(llen, SKIPPED); else ret += expect_nz(expr, llen; } while (0) 203 int expect_nz(int expr, int llen) in expect_nz() argument 205 int ret = !(expr != 0); in expect_nz() 207 llen += printf(" = %d ", expr); in expect_nz() [all …]
|
/linux/tools/perf/util/ |
H A D | expr.y | 56 %type <ids> expr if_expr 157 if_expr: expr IF expr ELSE if_expr 196 | expr 199 expr: NUMBER 218 | expr '|' expr 247 | expr '&' expr 276 | expr '^' expr 287 | expr '<' expr { BINARY_OP($$, <, $1, $3); } 288 | expr '>' expr { BINARY_OP($$, >, $1, $3); } 289 | expr '+' expr { BINARY_OP($$, +, $1, $3); } [all …]
|
H A D | bpf-filter.y | 22 static void perf_bpf_filter_error(struct list_head *expr __maybe_unused, 39 struct perf_bpf_filter_expr *expr; 43 %type <expr> filter_term filter_expr 44 %destructor { free ($$); } <expr> 66 struct perf_bpf_filter_expr *expr; 69 expr = $1; 71 expr = perf_bpf_filter_expr__new(PBF_TERM_NONE, /*part=*/0, 73 list_add_tail(&$1->list, &expr->groups); 75 expr->val++; 76 list_add_tail(&$3->list, &expr->groups); [all …]
|
H A D | bpf-filter.c | 119 static int check_sample_flags(struct evsel *evsel, struct perf_bpf_filter_expr *expr) in check_sample_flags() argument 123 if (expr->term >= PBF_TERM_SAMPLE_START && expr->term <= PBF_TERM_SAMPLE_END && in check_sample_flags() 124 (evsel->core.attr.sample_type & (1 << (expr->term - PBF_TERM_SAMPLE_START)))) in check_sample_flags() 127 if (expr->term == PBF_TERM_UID || expr->term == PBF_TERM_GID) { in check_sample_flags() 132 if (expr->op == PBF_OP_GROUP_BEGIN) { in check_sample_flags() 135 list_for_each_entry(group, &expr->groups, list) { in check_sample_flags() 142 info = get_sample_info(expr->term); in check_sample_flags() 145 evsel__name(evsel), expr->term); in check_sample_flags() 158 struct perf_bpf_filter_expr *expr; in get_filter_entries() local 160 list_for_each_entry(expr, &evsel->bpf_filters, list) { in get_filter_entries() [all …]
|
/linux/net/netfilter/ |
H A D | nft_objref.c | 14 #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 D | nf_tables_core.c | 77 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 D | nft_compat.c | 73 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 D | nft_numgen.c | 36 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 …]
|
H A D | nft_dynset.c | 22 bool expr; member 33 struct nft_expr *expr; in nft_dynset_expr_setup() local 37 expr = nft_setelem_expr_at(elem_expr, elem_expr->size); in nft_dynset_expr_setup() 38 if (nft_expr_clone(expr, priv->expr_array[i], GFP_ATOMIC) < 0) in nft_dynset_expr_setup() 48 const struct nft_expr *expr, in nft_dynset_new() argument 51 const struct nft_dynset *priv = nft_expr_priv(expr); in nft_dynset_new() 81 void nft_dynset_eval(const struct nft_expr *expr, in nft_dynset_eval() argument 84 const struct nft_dynset *priv = nft_expr_priv(expr); in nft_dynset_eval() 95 expr, regs, &ext)) { in nft_dynset_eval() 130 struct nft_expr *expr; in nft_dynset_expr_alloc() local [all …]
|
H A D | nft_hash.c | 26 static void nft_jhash_eval(const struct nft_expr *expr, in nft_jhash_eval() argument 30 struct nft_jhash *priv = nft_expr_priv(expr); in nft_jhash_eval() 46 static void nft_symhash_eval(const struct nft_expr *expr, in nft_symhash_eval() argument 50 struct nft_symhash *priv = nft_expr_priv(expr); in nft_symhash_eval() 71 const struct nft_expr *expr, in nft_jhash_init() argument 74 struct nft_jhash *priv = nft_expr_priv(expr); in nft_jhash_init() 118 const struct nft_expr *expr, in nft_symhash_init() argument 121 struct nft_symhash *priv = nft_expr_priv(expr); in nft_symhash_init() 143 const struct nft_expr *expr, bool reset) in nft_jhash_dump() argument 145 const struct nft_jhash *priv = nft_expr_priv(expr); in nft_jhash_dump() [all …]
|
H A D | nft_fwd_netdev.c | 24 static void nft_fwd_netdev_eval(const struct nft_expr *expr, in nft_fwd_netdev_eval() argument 28 struct nft_fwd_netdev *priv = nft_expr_priv(expr); in nft_fwd_netdev_eval() 47 const struct nft_expr *expr, in nft_fwd_netdev_init() argument 50 struct nft_fwd_netdev *priv = nft_expr_priv(expr); in nft_fwd_netdev_init() 60 const struct nft_expr *expr, bool reset) in nft_fwd_netdev_dump() argument 62 struct nft_fwd_netdev *priv = nft_expr_priv(expr); in nft_fwd_netdev_dump() 75 const struct nft_expr *expr) in nft_fwd_netdev_offload() argument 77 const struct nft_fwd_netdev *priv = nft_expr_priv(expr); in nft_fwd_netdev_offload() 83 static bool nft_fwd_netdev_offload_action(const struct nft_expr *expr) in nft_fwd_netdev_offload_action() argument 94 static void nft_fwd_neigh_eval(const struct nft_expr *expr, in nft_fwd_neigh_eval() argument [all …]
|
H A D | nft_immediate.c | 18 void nft_immediate_eval(const struct nft_expr *expr, in nft_immediate_eval() argument 22 const struct nft_immediate_expr *priv = nft_expr_priv(expr); in nft_immediate_eval() 47 const struct nft_expr *expr, in nft_immediate_init() argument 50 struct nft_immediate_expr *priv = nft_expr_priv(expr); in nft_immediate_init() 96 const struct nft_expr *expr) in nft_immediate_activate() argument 98 const struct nft_immediate_expr *priv = nft_expr_priv(expr); in nft_immediate_activate() 143 const struct nft_expr *expr, in nft_immediate_deactivate() argument 146 const struct nft_immediate_expr *priv = nft_expr_priv(expr); in nft_immediate_deactivate() 187 const struct nft_expr *expr) in nft_immediate_destroy() argument 189 const struct nft_immediate_expr *priv = nft_expr_priv(expr); in nft_immediate_destroy() [all …]
|
H A D | nft_dup_netdev.c | 20 static void nft_dup_netdev_eval(const struct nft_expr *expr, in nft_dup_netdev_eval() argument 24 struct nft_dup_netdev *priv = nft_expr_priv(expr); in nft_dup_netdev_eval() 35 const struct nft_expr *expr, in nft_dup_netdev_init() argument 38 struct nft_dup_netdev *priv = nft_expr_priv(expr); in nft_dup_netdev_init() 48 const struct nft_expr *expr, bool reset) in nft_dup_netdev_dump() argument 50 struct nft_dup_netdev *priv = nft_expr_priv(expr); in nft_dup_netdev_dump() 63 const struct nft_expr *expr) in nft_dup_netdev_offload() argument 65 const struct nft_dup_netdev *priv = nft_expr_priv(expr); in nft_dup_netdev_offload() 71 static bool nft_dup_netdev_offload_action(const struct nft_expr *expr) in nft_dup_netdev_offload_action() argument
|
/linux/drivers/gpu/drm/i915/ |
H A D | i915_gem.h | 104 #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
|
/linux/include/net/netfilter/ |
H A D | nft_meta.h | 19 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); 47 const struct nft_expr *expr); 50 void nft_meta_inner_eval(const struct nft_expr *expr,
|
H A D | nf_tables_core.h | 131 void nft_meta_get_eval(const struct nft_expr *expr, 133 void nft_cmp_eval(const struct nft_expr *expr, 135 void nft_lookup_eval(const struct nft_expr *expr, 137 void nft_payload_eval(const struct nft_expr *expr, 139 void nft_immediate_eval(const struct nft_expr *expr, 141 void nft_bitwise_eval(const struct nft_expr *expr, 143 void nft_range_eval(const struct nft_expr *expr, 145 void nft_byteorder_eval(const struct nft_expr *expr, 147 void nft_dynset_eval(const struct nft_expr *expr, 149 void nft_rt_get_eval(const struct nft_expr *expr, [all …]
|
H A D | nft_fib.h | 21 int nft_fib_dump(struct sk_buff *skb, const struct nft_expr *expr, bool reset); 22 int nft_fib_init(const struct nft_ctx *ctx, const struct nft_expr *expr, 24 int nft_fib_validate(const struct nft_ctx *ctx, const struct nft_expr *expr); 26 void nft_fib4_eval_type(const struct nft_expr *expr, struct nft_regs *regs, 28 void nft_fib4_eval(const struct nft_expr *expr, struct nft_regs *regs, 31 void nft_fib6_eval_type(const struct nft_expr *expr, struct nft_regs *regs, 33 void nft_fib6_eval(const struct nft_expr *expr, struct nft_regs *regs, 40 const struct nft_expr *expr);
|
/linux/drivers/pinctrl/aspeed/ |
H A D | pinctrl-aspeed.c | 76 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 …]
|
/linux/net/bridge/netfilter/ |
H A D | nft_meta_bridge.c | 24 static void nft_meta_bridge_get_eval(const struct nft_expr *expr, in nft_meta_bridge_get_eval() argument 28 const struct nft_meta *priv = nft_expr_priv(expr); in nft_meta_bridge_get_eval() 63 return nft_meta_get_eval(expr, regs, pkt); in nft_meta_bridge_get_eval() 73 const struct nft_expr *expr, in nft_meta_bridge_get_init() argument 76 struct nft_meta *priv = nft_expr_priv(expr); in nft_meta_bridge_get_init() 90 return nft_meta_get_init(ctx, expr, tb); in nft_meta_bridge_get_init() 108 static void nft_meta_bridge_set_eval(const struct nft_expr *expr, in nft_meta_bridge_set_eval() argument 112 const struct nft_meta *meta = nft_expr_priv(expr); in nft_meta_bridge_set_eval() 123 nft_meta_set_eval(expr, regs, pkt); in nft_meta_bridge_set_eval() 128 const struct nft_expr *expr, in nft_meta_bridge_set_init() argument [all …]
|
/linux/drivers/md/dm-vdo/ |
H A D | permassert.h | 31 #define VDO_ASSERT(expr, ...) vdo_must_use(__VDO_ASSERT(expr, __VA_ARGS__)) argument 34 #define VDO_ASSERT_LOG_ONLY(expr, ...) __VDO_ASSERT(expr, __VA_ARGS__) argument 36 #define __VDO_ASSERT(expr, ...) \ argument 37 (likely(expr) ? VDO_SUCCESS \ 38 : vdo_assertion_failed(STRINGIFY(expr), __FILE__, __LINE__, __VA_ARGS__))
|
/linux/fs/xfs/ |
H A D | xfs_linux.h | 219 #define ASSERT_ALWAYS(expr) \ argument 220 (likely(expr) ? (void)0 : assfail(NULL, #expr, __FILE__, __LINE__)) 223 #define ASSERT(expr) \ argument 224 (likely(expr) ? (void)0 : assfail(NULL, #expr, __FILE__, __LINE__)) 230 #define ASSERT(expr) \ argument 231 (likely(expr) ? (void)0 : asswarn(NULL, #expr, __FILE__, __LINE__)) 235 #define ASSERT(expr) ((void)0) argument 240 #define XFS_IS_CORRUPT(mp, expr) \ argument 241 (unlikely(expr) ? xfs_corruption_error(#expr, XFS_ERRLEVEL_LOW, (mp), \
|