Searched refs:expr (Results 1 - 124 of 124) sorted by relevance

/linux-4.4.14/include/net/netfilter/
H A Dnft_meta.h15 const struct nft_expr *expr,
19 const struct nft_expr *expr,
23 const struct nft_expr *expr);
26 const struct nft_expr *expr);
28 void nft_meta_get_eval(const struct nft_expr *expr,
32 void nft_meta_set_eval(const struct nft_expr *expr,
H A Dnft_masq.h11 const struct nft_expr *expr,
14 int nft_masq_dump(struct sk_buff *skb, const struct nft_expr *expr);
16 int nft_masq_validate(const struct nft_ctx *ctx, const struct nft_expr *expr,
H A Dnft_redir.h13 const struct nft_expr *expr,
16 int nft_redir_dump(struct sk_buff *skb, const struct nft_expr *expr);
18 int nft_redir_validate(const struct nft_ctx *ctx, const struct nft_expr *expr,
H A Dnft_reject.h12 const struct nft_expr *expr,
15 int nft_reject_dump(struct sk_buff *skb, const struct nft_expr *expr);
H A Dnf_tables.h248 const struct nft_expr *expr,
618 void (*eval)(const struct nft_expr *expr,
626 const struct nft_expr *expr,
629 const struct nft_expr *expr);
631 const struct nft_expr *expr);
633 const struct nft_expr *expr,
654 static inline void *nft_expr_priv(const struct nft_expr *expr) nft_expr_priv() argument
656 return (void *)expr->data; nft_expr_priv()
661 void nft_expr_destroy(const struct nft_ctx *ctx, struct nft_expr *expr);
663 const struct nft_expr *expr);
706 static inline struct nft_expr *nft_expr_next(const struct nft_expr *expr) nft_expr_next() argument
708 return ((void *)expr) + expr->ops->size; nft_expr_next()
726 #define nft_rule_for_each_expr(expr, last, rule) \
727 for ((expr) = nft_expr_first(rule), (last) = nft_expr_last(rule); \
728 (expr) != (last); \
729 (expr) = nft_expr_next(expr))
903 MODULE_ALIAS("nft-expr-" __stringify(family) "-" name)
906 MODULE_ALIAS("nft-expr-" name)
/linux-4.4.14/scripts/kconfig/
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) expr_alloc_symbol()
19 struct expr *e = xcalloc(1, sizeof(*e)); expr_alloc_symbol()
25 struct expr *expr_alloc_one(enum expr_type type, struct expr *ce) expr_alloc_one()
27 struct expr *e = xcalloc(1, sizeof(*e)); expr_alloc_one()
29 e->left.expr = ce; expr_alloc_one()
33 struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2) expr_alloc_two()
35 struct expr *e = xcalloc(1, sizeof(*e)); expr_alloc_two()
37 e->left.expr = e1; expr_alloc_two()
38 e->right.expr = e2; expr_alloc_two()
42 struct expr *expr_alloc_comp(enum expr_type type, struct symbol *s1, struct symbol *s2) expr_alloc_comp()
44 struct expr *e = xcalloc(1, sizeof(*e)); expr_alloc_comp()
51 struct expr *expr_alloc_and(struct expr *e1, struct expr *e2) expr_alloc_and()
58 struct expr *expr_alloc_or(struct expr *e1, struct expr *e2) expr_alloc_or()
65 struct expr *expr_copy(const struct expr *org) expr_copy()
67 struct expr *e; expr_copy()
79 e->left.expr = expr_copy(org->left.expr); expr_copy()
93 e->left.expr = expr_copy(org->left.expr); expr_copy()
94 e->right.expr = expr_copy(org->right.expr); expr_copy()
106 void expr_free(struct expr *e) expr_free()
115 expr_free(e->left.expr); expr_free()
126 expr_free(e->left.expr); expr_free()
127 expr_free(e->right.expr); expr_free()
141 static void __expr_eliminate_eq(enum expr_type type, struct expr **ep1, struct expr **ep2) __expr_eliminate_eq()
144 __expr_eliminate_eq(type, &e1->left.expr, &e2); __expr_eliminate_eq()
145 __expr_eliminate_eq(type, &e1->right.expr, &e2); __expr_eliminate_eq()
149 __expr_eliminate_eq(type, &e1, &e2->left.expr); __expr_eliminate_eq()
150 __expr_eliminate_eq(type, &e1, &e2->right.expr); __expr_eliminate_eq()
175 void expr_eliminate_eq(struct expr **ep1, struct expr **ep2) expr_eliminate_eq()
200 static int expr_eq(struct expr *e1, struct expr *e2) expr_eq()
217 return expr_eq(e1->left.expr, e2->left.expr); expr_eq()
246 static struct expr *expr_eliminate_yn(struct expr *e) expr_eliminate_yn()
248 struct expr *tmp; expr_eliminate_yn()
252 e->left.expr = expr_eliminate_yn(e->left.expr); expr_eliminate_yn()
253 e->right.expr = expr_eliminate_yn(e->right.expr); expr_eliminate_yn()
254 if (e->left.expr->type == E_SYMBOL) { expr_eliminate_yn()
255 if (e->left.expr->left.sym == &symbol_no) { expr_eliminate_yn()
256 expr_free(e->left.expr); expr_eliminate_yn()
257 expr_free(e->right.expr); expr_eliminate_yn()
260 e->right.expr = NULL; expr_eliminate_yn()
262 } else if (e->left.expr->left.sym == &symbol_yes) { expr_eliminate_yn()
263 free(e->left.expr); expr_eliminate_yn()
264 tmp = e->right.expr; expr_eliminate_yn()
265 *e = *(e->right.expr); expr_eliminate_yn()
270 if (e->right.expr->type == E_SYMBOL) { expr_eliminate_yn()
271 if (e->right.expr->left.sym == &symbol_no) { expr_eliminate_yn()
272 expr_free(e->left.expr); expr_eliminate_yn()
273 expr_free(e->right.expr); expr_eliminate_yn()
276 e->right.expr = NULL; expr_eliminate_yn()
278 } else if (e->right.expr->left.sym == &symbol_yes) { expr_eliminate_yn()
279 free(e->right.expr); expr_eliminate_yn()
280 tmp = e->left.expr; expr_eliminate_yn()
281 *e = *(e->left.expr); expr_eliminate_yn()
288 e->left.expr = expr_eliminate_yn(e->left.expr); expr_eliminate_yn()
289 e->right.expr = expr_eliminate_yn(e->right.expr); expr_eliminate_yn()
290 if (e->left.expr->type == E_SYMBOL) { expr_eliminate_yn()
291 if (e->left.expr->left.sym == &symbol_no) { expr_eliminate_yn()
292 free(e->left.expr); expr_eliminate_yn()
293 tmp = e->right.expr; expr_eliminate_yn()
294 *e = *(e->right.expr); expr_eliminate_yn()
297 } else if (e->left.expr->left.sym == &symbol_yes) { expr_eliminate_yn()
298 expr_free(e->left.expr); expr_eliminate_yn()
299 expr_free(e->right.expr); expr_eliminate_yn()
302 e->right.expr = NULL; expr_eliminate_yn()
306 if (e->right.expr->type == E_SYMBOL) { expr_eliminate_yn()
307 if (e->right.expr->left.sym == &symbol_no) { expr_eliminate_yn()
308 free(e->right.expr); expr_eliminate_yn()
309 tmp = e->left.expr; expr_eliminate_yn()
310 *e = *(e->left.expr); expr_eliminate_yn()
313 } else if (e->right.expr->left.sym == &symbol_yes) { expr_eliminate_yn()
314 expr_free(e->left.expr); expr_eliminate_yn()
315 expr_free(e->right.expr); expr_eliminate_yn()
318 e->right.expr = NULL; expr_eliminate_yn()
332 struct expr *expr_trans_bool(struct expr *e) expr_trans_bool()
340 e->left.expr = expr_trans_bool(e->left.expr); expr_trans_bool()
341 e->right.expr = expr_trans_bool(e->right.expr); expr_trans_bool()
361 static struct expr *expr_join_or(struct expr *e1, struct expr *e2) expr_join_or()
363 struct expr *tmp; expr_join_or()
373 tmp = e1->left.expr; expr_join_or()
380 if (e2->left.expr->type != E_SYMBOL) expr_join_or()
382 sym2 = e2->left.expr->left.sym; expr_join_or()
410 if ((e1->type == E_NOT && e1->left.expr->type == E_SYMBOL && e2->type == E_SYMBOL) || expr_join_or()
411 (e2->type == E_NOT && e2->left.expr->type == E_SYMBOL && e1->type == E_SYMBOL)) expr_join_or()
425 static struct expr *expr_join_and(struct expr *e1, struct expr *e2) expr_join_and()
427 struct expr *tmp; expr_join_and()
437 tmp = e1->left.expr; expr_join_and()
444 if (e2->left.expr->type != E_SYMBOL) expr_join_and()
446 sym2 = e2->left.expr->left.sym; expr_join_and()
519 static void expr_eliminate_dups1(enum expr_type type, struct expr **ep1, struct expr **ep2) expr_eliminate_dups1()
523 struct expr *tmp; expr_eliminate_dups1()
526 expr_eliminate_dups1(type, &e1->left.expr, &e2); expr_eliminate_dups1()
527 expr_eliminate_dups1(type, &e1->right.expr, &e2); expr_eliminate_dups1()
531 expr_eliminate_dups1(type, &e1, &e2->left.expr); expr_eliminate_dups1()
532 expr_eliminate_dups1(type, &e1, &e2->right.expr); expr_eliminate_dups1()
571 struct expr *expr_eliminate_dups(struct expr *e) expr_eliminate_dups()
594 struct expr *expr_transform(struct expr *e) expr_transform()
596 struct expr *tmp; expr_transform()
611 e->left.expr = expr_transform(e->left.expr); expr_transform()
612 e->right.expr = expr_transform(e->right.expr); expr_transform()
621 e->left.expr = expr_alloc_symbol(e->left.sym); expr_transform()
655 e->left.expr = expr_alloc_symbol(e->left.sym); expr_transform()
661 switch (e->left.expr->type) { expr_transform()
664 tmp = e->left.expr->left.expr; expr_transform()
665 free(e->left.expr); expr_transform()
673 tmp = e->left.expr; expr_transform()
681 tmp = e->left.expr; expr_transform()
689 tmp = e->left.expr; expr_transform()
696 tmp = e->left.expr; expr_transform()
698 e->right.expr = expr_alloc_one(E_NOT, tmp->right.expr); expr_transform()
700 tmp->right.expr = NULL; expr_transform()
705 tmp = e->left.expr; expr_transform()
707 e->right.expr = expr_alloc_one(E_NOT, tmp->right.expr); expr_transform()
709 tmp->right.expr = NULL; expr_transform()
713 if (e->left.expr->left.sym == &symbol_yes) { expr_transform()
715 tmp = e->left.expr; expr_transform()
722 if (e->left.expr->left.sym == &symbol_mod) { expr_transform()
724 tmp = e->left.expr; expr_transform()
731 if (e->left.expr->left.sym == &symbol_no) { expr_transform()
733 tmp = e->left.expr; expr_transform()
751 int expr_contains_symbol(struct expr *dep, struct symbol *sym) expr_contains_symbol()
759 return expr_contains_symbol(dep->left.expr, sym) || expr_contains_symbol()
760 expr_contains_symbol(dep->right.expr, sym); expr_contains_symbol()
772 return expr_contains_symbol(dep->left.expr, sym); expr_contains_symbol()
779 bool expr_depends_symbol(struct expr *dep, struct symbol *sym) expr_depends_symbol()
786 return expr_depends_symbol(dep->left.expr, sym) || expr_depends_symbol()
787 expr_depends_symbol(dep->right.expr, sym); expr_depends_symbol()
808 struct expr *expr_trans_compare(struct expr *e, enum expr_type type, struct symbol *sym) expr_trans_compare()
810 struct expr *e1, *e2; expr_trans_compare()
820 e1 = expr_trans_compare(e->left.expr, E_EQUAL, sym); expr_trans_compare()
821 e2 = expr_trans_compare(e->right.expr, E_EQUAL, sym); expr_trans_compare()
830 e1 = expr_trans_compare(e->left.expr, E_EQUAL, sym); expr_trans_compare()
831 e2 = expr_trans_compare(e->right.expr, E_EQUAL, sym); expr_trans_compare()
840 return expr_trans_compare(e->left.expr, type == E_EQUAL ? E_UNEQUAL : E_EQUAL, sym); expr_trans_compare()
917 tristate expr_calc_value(struct expr *e) expr_calc_value()
933 val1 = expr_calc_value(e->left.expr); expr_calc_value()
934 val2 = expr_calc_value(e->right.expr); expr_calc_value()
937 val1 = expr_calc_value(e->left.expr); expr_calc_value()
938 val2 = expr_calc_value(e->right.expr); expr_calc_value()
941 val1 = expr_calc_value(e->left.expr); expr_calc_value()
1031 static inline struct expr * expr_get_leftmost_symbol()
1032 expr_get_leftmost_symbol(const struct expr *e) expr_get_leftmost_symbol()
1039 e = e->left.expr; expr_get_leftmost_symbol()
1048 struct expr *expr_simplify_unmet_dep(struct expr *e1, struct expr *e2) expr_simplify_unmet_dep()
1050 struct expr *ret; expr_simplify_unmet_dep()
1055 expr_simplify_unmet_dep(e1->left.expr, e2), expr_simplify_unmet_dep()
1056 expr_simplify_unmet_dep(e1->right.expr, e2)); expr_simplify_unmet_dep()
1058 struct expr *e; expr_simplify_unmet_dep()
1073 void expr_print(struct expr *e, void (*fn)(void *, struct symbol *, const char *), void *data, int prevtoken) expr_print()
1091 expr_print(e->left.expr, fn, data, E_NOT); expr_print()
1128 expr_print(e->left.expr, fn, data, E_OR); expr_print()
1130 expr_print(e->right.expr, fn, data, E_OR); expr_print()
1133 expr_print(e->left.expr, fn, data, E_AND); expr_print()
1135 expr_print(e->right.expr, fn, data, E_AND); expr_print()
1139 if (e->left.expr) { expr_print()
1141 expr_print(e->left.expr, fn, data, E_LIST); expr_print()
1168 void expr_fprint(struct expr *e, FILE *out) expr_fprint()
1203 void expr_gstr_print(struct expr *e, struct gstr *gs) expr_gstr_print()
H A Dexpr.h38 struct expr *expr; member in union:expr_data
42 struct expr { struct
52 for (e = (l); e && (s = e->right.sym); e = e->left.expr)
55 struct expr *expr; member in struct:expr_value
150 struct expr *expr; /* the optional conditional part of the property */ member in struct:property
173 struct expr *visibility;
174 struct expr *dep;
202 struct expr *expr_alloc_symbol(struct symbol *sym);
203 struct expr *expr_alloc_one(enum expr_type type, struct expr *ce);
204 struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2);
205 struct expr *expr_alloc_comp(enum expr_type type, struct symbol *s1, struct symbol *s2);
206 struct expr *expr_alloc_and(struct expr *e1, struct expr *e2);
207 struct expr *expr_alloc_or(struct expr *e1, struct expr *e2);
208 struct expr *expr_copy(const struct expr *org);
209 void expr_free(struct expr *e);
210 void expr_eliminate_eq(struct expr **ep1, struct expr **ep2);
211 tristate expr_calc_value(struct expr *e);
212 struct expr *expr_trans_bool(struct expr *e);
213 struct expr *expr_eliminate_dups(struct expr *e);
214 struct expr *expr_transform(struct expr *e);
215 int expr_contains_symbol(struct expr *dep, struct symbol *sym);
216 bool expr_depends_symbol(struct expr *dep, struct symbol *sym);
217 struct expr *expr_trans_compare(struct expr *e, enum expr_type type, struct symbol *sym);
218 struct expr *expr_simplify_unmet_dep(struct expr *e1, struct expr *e2);
220 void expr_fprint(struct expr *e, FILE *out);
222 void expr_gstr_print(struct expr *e, struct gstr *gs);
224 static inline int expr_is_yes(struct expr *e) expr_is_yes()
229 static inline int expr_is_no(struct expr *e) expr_is_no()
H A Dmenu.c82 static struct expr *menu_check_dep(struct expr *e) menu_check_dep()
89 e->left.expr = menu_check_dep(e->left.expr); menu_check_dep()
93 e->left.expr = menu_check_dep(e->left.expr); menu_check_dep()
94 e->right.expr = menu_check_dep(e->right.expr); menu_check_dep()
107 void menu_add_dep(struct expr *dep) menu_add_dep()
128 static struct property *menu_add_prop(enum prop_type type, char *prompt, struct expr *expr, struct expr *dep) menu_add_prop() argument
133 prop->expr = expr; menu_add_prop()
134 prop->visible.expr = menu_check_dep(dep); menu_add_prop()
150 struct expr *dup_expr; menu_add_prop()
165 prop->visible.expr menu_add_prop()
166 = expr_alloc_and(prop->visible.expr, menu_add_prop()
178 struct property *menu_add_prompt(enum prop_type type, char *prompt, struct expr *dep) menu_add_prompt()
183 void menu_add_visibility(struct expr *expr) menu_add_visibility() argument
186 expr); menu_add_visibility()
189 void menu_add_expr(enum prop_type type, struct expr *expr, struct expr *dep) menu_add_expr() argument
191 menu_add_prop(type, NULL, expr, dep); menu_add_expr()
194 void menu_add_symbol(enum prop_type type, struct symbol *sym, struct expr *dep) menu_add_symbol()
240 prop->expr->type != E_SYMBOL) sym_check_prop()
244 if (prop->expr->type != E_SYMBOL) sym_check_prop()
272 if (!menu_validate_number(sym, prop->expr->left.sym) || sym_check_prop()
273 !menu_validate_number(sym, prop->expr->right.sym)) sym_check_prop()
287 struct expr *parentdep, *basedep, *dep, *dep2, **ep; menu_finalize()
310 parentdep = parent->prompt->visible.expr; menu_finalize()
326 dep = expr_transform(prop->visible.expr); menu_finalize()
331 prop->visible.expr = dep; menu_finalize()
334 es->rev_dep.expr = expr_alloc_or(es->rev_dep.expr, menu_finalize()
342 basedep = parent->prompt ? parent->prompt->visible.expr : NULL; menu_finalize()
347 dep = menu->prompt ? menu->prompt->visible.expr : menu->dep; menu_finalize()
373 sym->dir_dep.expr = expr_alloc_or(sym->dir_dep.expr, parent->dep); menu_finalize()
404 prop->visible.expr = expr_alloc_and(expr_copy(basedep), menu_finalize()
405 prop->visible.expr); menu_finalize()
410 for (ep = &prop->expr; *ep; ep = &(*ep)->left.expr) menu_finalize()
440 sym->rev_dep.expr = expr_alloc_or(sym->rev_dep.expr, menu_finalize()
441 expr_alloc_and(parent->prompt->visible.expr, menu_finalize()
488 visible = menu->prompt->visible.tri = expr_calc_value(menu->prompt->visible.expr); menu_is_visible()
632 expr_gstr_print(prop->expr, r); get_symbol_str()
644 if (!expr_is_yes(prop->visible.expr)) { get_symbol_str()
646 expr_gstr_print(prop->visible.expr, r); get_symbol_str()
658 expr_gstr_print(prop->expr, r); for_all_properties()
662 if (sym->rev_dep.expr) {
664 expr_gstr_print(sym->rev_dep.expr, r);
H A Dlkc.h9 #include "expr.h"
88 /* confdata.c and expr.c */ xfwrite()
104 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);
135 extern struct expr *sym_env_list;
H A Dzconf.y41 struct expr *expr;
88 %type <expr> expr
89 %type <expr> if_expr
203 config_option: T_DEFAULT expr if_expr T_EOL
321 if_entry: T_IF expr nl
428 depends: T_DEPENDS T_ON expr T_EOL
471 | T_IF expr { $$ = $2; }
474 expr: symbol { $$ = expr_alloc_symbol($1); } label
481 | T_OPEN_PAREN expr T_CLOSE_PAREN { $$ = $2; }
482 | T_NOT expr { $$ = expr_alloc_one(E_NOT, $2); }
483 | expr T_OR expr { $$ = expr_alloc_two(E_OR, $1, $3); }
484 | expr T_AND expr { $$ = expr_alloc_two(E_AND, $1, $3); }
644 if (!expr_is_yes(prop->visible.expr)) {
646 expr_fprint(prop->visible.expr, out);
652 expr_fprint(prop->expr, out);
653 if (!expr_is_yes(prop->visible.expr)) {
655 expr_fprint(prop->visible.expr, out);
664 expr_fprint(prop->expr, out);
669 expr_fprint(prop->expr, out);
715 if (!expr_is_yes(prop->visible.expr)) {
717 expr_fprint(prop->visible.expr, out);
740 #include "expr.c"
H A Dsymbol.c36 struct expr *sym_env_list;
42 prop->expr = expr_alloc_symbol(sym_lookup(def, SYMBOL_CONST)); sym_add_default()
120 prop->visible.tri = expr_calc_value(prop->visible.expr); for_all_defaults()
132 prop->visible.tri = expr_calc_value(prop->visible.expr); for_all_properties()
176 val2 = sym_get_range_val(prop->expr->left.sym, base); sym_validate_range()
178 val2 = sym_get_range_val(prop->expr->right.sym, base); sym_validate_range()
217 prop->visible.tri = expr_calc_value(prop->visible.expr); for_all_prompts()
230 if (sym->dir_dep.expr)
231 tri = expr_calc_value(sym->dir_dep.expr);
239 if (sym->rev_dep.expr)
240 tri = expr_calc_value(sym->rev_dep.expr);
259 struct expr *e; sym_choice_default()
263 prop->visible.tri = expr_calc_value(prop->visible.expr); for_all_defaults()
273 expr_list_for_each_sym(prop->expr, e, def_sym)
285 struct expr *e; sym_calc_choice()
291 expr_list_for_each_sym(prop->expr, e, def_sym) { sym_calc_choice()
317 struct expr *e; sym_calc_value()
383 newval.tri = EXPR_AND(expr_calc_value(prop->expr), sym_calc_value()
389 struct expr *e; sym_calc_value()
390 e = expr_simplify_unmet_dep(sym->rev_dep.expr, sym_calc_value()
391 sym->dir_dep.expr); sym_calc_value()
396 expr_fprint(sym->dir_dep.expr, stderr); sym_calc_value()
446 expr_list_for_each_sym(prop->expr, e, choice_sym) { sym_calc_value()
510 struct expr *e; sym_set_tristate_value()
515 for (e = prop->expr; e; e = e->left.expr) { sym_set_tristate_value()
609 return val >= sym_get_range_val(prop->expr->left.sym, 10) && sym_string_within_range()
610 val <= sym_get_range_val(prop->expr->right.sym, 10); sym_string_within_range()
618 return val >= sym_get_range_val(prop->expr->left.sym, 16) && sym_string_within_range()
619 val <= sym_get_range_val(prop->expr->right.sym, 16); sym_string_within_range()
711 val = EXPR_AND(expr_calc_value(prop->expr), prop->visible.tri); sym_get_string_default()
1055 struct expr *expr; member in struct:dep_stack
1121 if (stack->expr) { sym_check_print_recursive()
1154 static struct symbol *sym_check_expr_deps(struct expr *e) sym_check_expr_deps()
1163 sym = sym_check_expr_deps(e->left.expr); sym_check_expr_deps()
1166 return sym_check_expr_deps(e->right.expr); sym_check_expr_deps()
1168 return sym_check_expr_deps(e->left.expr); sym_check_expr_deps()
1197 sym2 = sym_check_expr_deps(sym->rev_dep.expr); sym_check_sym_deps()
1205 sym2 = sym_check_expr_deps(prop->visible.expr); sym_check_sym_deps()
1210 stack.expr = prop->expr; sym_check_sym_deps()
1211 sym2 = sym_check_expr_deps(prop->expr); sym_check_sym_deps()
1214 stack.expr = NULL; sym_check_sym_deps()
1227 struct expr *e; sym_check_choice_deps()
1233 expr_list_for_each_sym(prop->expr, e, sym) sym_check_choice_deps()
1242 expr_list_for_each_sym(prop->expr, e, sym) { sym_check_choice_deps()
1248 expr_list_for_each_sym(prop->expr, e, sym) sym_check_choice_deps()
1318 if (prop->expr && (prop->expr->type == E_SYMBOL || prop_get_symbol()
1319 prop->expr->type == E_LIST)) prop_get_symbol()
1320 return prop->expr->left.sym; prop_get_symbol()
1368 prop->expr = expr_alloc_symbol(sym_lookup(env, SYMBOL_CONST));
H A Dqconf.cc111 tristate expr; updateMenu() local
163 expr = sym_get_tristate_value(sym); updateMenu()
164 switch (expr) { updateMenu()
187 if (expr != no) updateMenu()
189 if (expr != mod) updateMenu()
191 if (expr != yes) updateMenu()
1115 if (_menu->prompt->visible.expr) { menuInfo()
1117 expr_print(_menu->prompt->visible.expr, expr_print_help, &debug, E_NONE); menuInfo()
1137 if (sym->rev_dep.expr) { debug_info()
1139 expr_print(sym->rev_dep.expr, expr_print_help, &debug, E_NONE); debug_info()
1156 expr_print(prop->expr, expr_print_help, &debug, E_NONE); debug_info()
1162 expr_print(prop->expr, expr_print_help, &debug, E_NONE); debug_info()
1171 if (prop->visible.expr) { debug_info()
1173 expr_print(prop->visible.expr, expr_print_help, &debug, E_NONE); debug_info()
H A Dutil.c38 struct expr *e; file_write_dep()
H A Dconfdata.c274 if (expr_calc_value(prop->visible.expr) == no || for_all_defaults()
275 prop->expr->type != E_SYMBOL) for_all_defaults()
277 name = conf_expand_value(prop->expr->left.sym->name); for_all_defaults()
1057 struct expr *e; randomize_choice_values()
1072 expr_list_for_each_sym(prop->expr, e, sym) randomize_choice_values()
1082 expr_list_for_each_sym(prop->expr, e, sym) { randomize_choice_values()
1105 struct expr *e; set_all_choice_values()
1112 expr_list_for_each_sym(prop->expr, e, sym) { set_all_choice_values()
H A Dqconf.h17 #include "expr.h"
/linux-4.4.14/net/netfilter/
H A Dnft_dynset.c26 struct nft_expr *expr; member in struct:nft_dynset
30 static void *nft_dynset_new(struct nft_set *set, const struct nft_expr *expr, nft_dynset_new() argument
33 const struct nft_dynset *priv = nft_expr_priv(expr); nft_dynset_new()
53 if (priv->expr != NULL && nft_dynset_new()
54 nft_expr_clone(nft_set_ext_expr(ext), priv->expr) < 0) nft_dynset_new()
60 static void nft_dynset_eval(const struct nft_expr *expr, nft_dynset_eval() argument
64 const struct nft_dynset *priv = nft_expr_priv(expr); nft_dynset_eval()
71 expr, regs, &ext)) { nft_dynset_eval()
102 const struct nft_expr *expr, nft_dynset_init()
105 struct nft_dynset *priv = nft_expr_priv(expr); nft_dynset_init()
170 priv->expr = nft_expr_init(ctx, tb[NFTA_DYNSET_EXPR]); nft_dynset_init()
171 if (IS_ERR(priv->expr)) nft_dynset_init()
172 return PTR_ERR(priv->expr); nft_dynset_init()
175 if (!(priv->expr->ops->type->flags & NFT_EXPR_STATEFUL)) nft_dynset_init()
184 if (priv->expr != NULL) nft_dynset_init()
186 priv->expr->ops->size); nft_dynset_init()
202 if (priv->expr != NULL) nft_dynset_init()
203 nft_expr_destroy(ctx, priv->expr); nft_dynset_init()
208 const struct nft_expr *expr) nft_dynset_destroy()
210 struct nft_dynset *priv = nft_expr_priv(expr); nft_dynset_destroy()
213 if (priv->expr != NULL) nft_dynset_destroy()
214 nft_expr_destroy(ctx, priv->expr); nft_dynset_destroy()
217 static int nft_dynset_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_dynset_dump() argument
219 const struct nft_dynset *priv = nft_expr_priv(expr); nft_dynset_dump()
232 if (priv->expr && nft_expr_dump(skb, NFTA_DYNSET_EXPR, priv->expr)) nft_dynset_dump()
101 nft_dynset_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_dynset_init() argument
207 nft_dynset_destroy(const struct nft_ctx *ctx, const struct nft_expr *expr) nft_dynset_destroy() argument
H A Dnft_masq.c25 const struct nft_expr *expr, nft_masq_validate()
40 const struct nft_expr *expr, nft_masq_init()
43 struct nft_masq *priv = nft_expr_priv(expr); nft_masq_init()
46 err = nft_masq_validate(ctx, expr, NULL); nft_masq_init()
61 int nft_masq_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_masq_dump() argument
63 const struct nft_masq *priv = nft_expr_priv(expr); nft_masq_dump()
24 nft_masq_validate(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nft_data **data) nft_masq_validate() argument
39 nft_masq_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_masq_init() argument
H A Dnft_immediate.c26 static void nft_immediate_eval(const struct nft_expr *expr, nft_immediate_eval() argument
30 const struct nft_immediate_expr *priv = nft_expr_priv(expr); nft_immediate_eval()
41 const struct nft_expr *expr, nft_immediate_init()
44 struct nft_immediate_expr *priv = nft_expr_priv(expr); nft_immediate_init()
72 const struct nft_expr *expr) nft_immediate_destroy()
74 const struct nft_immediate_expr *priv = nft_expr_priv(expr); nft_immediate_destroy()
78 static int nft_immediate_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_immediate_dump() argument
80 const struct nft_immediate_expr *priv = nft_expr_priv(expr); nft_immediate_dump()
93 const struct nft_expr *expr, nft_immediate_validate()
96 const struct nft_immediate_expr *priv = nft_expr_priv(expr); nft_immediate_validate()
40 nft_immediate_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_immediate_init() argument
71 nft_immediate_destroy(const struct nft_ctx *ctx, const struct nft_expr *expr) nft_immediate_destroy() argument
92 nft_immediate_validate(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nft_data **data) nft_immediate_validate() argument
H A Dnf_tables_core.c65 static void nft_cmp_fast_eval(const struct nft_expr *expr, nft_cmp_fast_eval() argument
68 const struct nft_cmp_fast_expr *priv = nft_expr_priv(expr); nft_cmp_fast_eval()
76 static bool nft_payload_fast_eval(const struct nft_expr *expr, nft_payload_fast_eval() argument
80 const struct nft_payload *priv = nft_expr_priv(expr); nft_payload_fast_eval()
117 const struct nft_expr *expr, *last; nft_do_chain() local
138 nft_rule_for_each_expr(expr, last, rule) { nft_rule_for_each_expr()
139 if (expr->ops == &nft_cmp_fast_ops) nft_rule_for_each_expr()
140 nft_cmp_fast_eval(expr, &regs); nft_rule_for_each_expr()
141 else if (expr->ops != &nft_payload_fast_ops || nft_rule_for_each_expr()
142 !nft_payload_fast_eval(expr, &regs, pkt)) nft_rule_for_each_expr()
143 expr->ops->eval(expr, &regs, pkt); nft_rule_for_each_expr()
H A Dnft_limit.c108 static void nft_limit_pkts_eval(const struct nft_expr *expr, nft_limit_pkts_eval() argument
112 struct nft_limit_pkts *priv = nft_expr_priv(expr); nft_limit_pkts_eval()
126 const struct nft_expr *expr, nft_limit_pkts_init()
129 struct nft_limit_pkts *priv = nft_expr_priv(expr); nft_limit_pkts_init()
140 static int nft_limit_pkts_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_limit_pkts_dump() argument
142 const struct nft_limit_pkts *priv = nft_expr_priv(expr); nft_limit_pkts_dump()
156 static void nft_limit_pkt_bytes_eval(const struct nft_expr *expr, nft_limit_pkt_bytes_eval() argument
160 struct nft_limit *priv = nft_expr_priv(expr); nft_limit_pkt_bytes_eval()
168 const struct nft_expr *expr, nft_limit_pkt_bytes_init()
171 struct nft_limit *priv = nft_expr_priv(expr); nft_limit_pkt_bytes_init()
177 const struct nft_expr *expr) nft_limit_pkt_bytes_dump()
179 const struct nft_limit *priv = nft_expr_priv(expr); nft_limit_pkt_bytes_dump()
125 nft_limit_pkts_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_limit_pkts_init() argument
167 nft_limit_pkt_bytes_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_limit_pkt_bytes_init() argument
176 nft_limit_pkt_bytes_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_limit_pkt_bytes_dump() argument
H A Dnft_redir.c27 const struct nft_expr *expr, nft_redir_validate()
43 const struct nft_expr *expr, nft_redir_init()
46 struct nft_redir *priv = nft_expr_priv(expr); nft_redir_init()
50 err = nft_redir_validate(ctx, expr, NULL); nft_redir_init()
86 int nft_redir_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_redir_dump() argument
88 const struct nft_redir *priv = nft_expr_priv(expr); nft_redir_dump()
26 nft_redir_validate(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nft_data **data) nft_redir_validate() argument
42 nft_redir_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_redir_init() argument
H A Dnft_lookup.c28 static void nft_lookup_eval(const struct nft_expr *expr, nft_lookup_eval() argument
32 const struct nft_lookup *priv = nft_expr_priv(expr); nft_lookup_eval()
53 const struct nft_expr *expr, nft_lookup_init()
56 struct nft_lookup *priv = nft_expr_priv(expr); nft_lookup_init()
105 const struct nft_expr *expr) nft_lookup_destroy()
107 struct nft_lookup *priv = nft_expr_priv(expr); nft_lookup_destroy()
112 static int nft_lookup_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_lookup_dump() argument
114 const struct nft_lookup *priv = nft_expr_priv(expr); nft_lookup_dump()
52 nft_lookup_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_lookup_init() argument
104 nft_lookup_destroy(const struct nft_ctx *ctx, const struct nft_expr *expr) nft_lookup_destroy() argument
H A Dnft_cmp.c27 static void nft_cmp_eval(const struct nft_expr *expr, nft_cmp_eval() argument
31 const struct nft_cmp_expr *priv = nft_expr_priv(expr); nft_cmp_eval()
71 static int nft_cmp_init(const struct nft_ctx *ctx, const struct nft_expr *expr, nft_cmp_init() argument
74 struct nft_cmp_expr *priv = nft_expr_priv(expr); nft_cmp_init()
92 static int nft_cmp_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_cmp_dump() argument
94 const struct nft_cmp_expr *priv = nft_expr_priv(expr); nft_cmp_dump()
120 const struct nft_expr *expr, nft_cmp_fast_init()
123 struct nft_cmp_fast_expr *priv = nft_expr_priv(expr); nft_cmp_fast_init()
146 static int nft_cmp_fast_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_cmp_fast_dump() argument
148 const struct nft_cmp_fast_expr *priv = nft_expr_priv(expr); nft_cmp_fast_dump()
119 nft_cmp_fast_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_cmp_fast_init() argument
H A Dnft_bitwise.c28 static void nft_bitwise_eval(const struct nft_expr *expr, nft_bitwise_eval() argument
32 const struct nft_bitwise *priv = nft_expr_priv(expr); nft_bitwise_eval()
50 const struct nft_expr *expr, nft_bitwise_init()
53 struct nft_bitwise *priv = nft_expr_priv(expr); nft_bitwise_init()
93 static int nft_bitwise_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_bitwise_dump() argument
95 const struct nft_bitwise *priv = nft_expr_priv(expr); nft_bitwise_dump()
49 nft_bitwise_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_bitwise_init() argument
H A Dnft_byteorder.c28 static void nft_byteorder_eval(const struct nft_expr *expr, nft_byteorder_eval() argument
32 const struct nft_byteorder *priv = nft_expr_priv(expr); nft_byteorder_eval()
78 const struct nft_expr *expr, nft_byteorder_init()
81 struct nft_byteorder *priv = nft_expr_priv(expr); nft_byteorder_init()
120 static int nft_byteorder_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_byteorder_dump() argument
122 const struct nft_byteorder *priv = nft_expr_priv(expr); nft_byteorder_dump()
77 nft_byteorder_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_byteorder_init() argument
H A Dnft_exthdr.c28 static void nft_exthdr_eval(const struct nft_expr *expr, nft_exthdr_eval() argument
32 struct nft_exthdr *priv = nft_expr_priv(expr); nft_exthdr_eval()
58 const struct nft_expr *expr, nft_exthdr_init()
61 struct nft_exthdr *priv = nft_expr_priv(expr); nft_exthdr_init()
78 static int nft_exthdr_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_exthdr_dump() argument
80 const struct nft_exthdr *priv = nft_expr_priv(expr); nft_exthdr_dump()
57 nft_exthdr_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_exthdr_init() argument
H A Dnft_queue.c30 static void nft_queue_eval(const struct nft_expr *expr, nft_queue_eval() argument
34 struct nft_queue *priv = nft_expr_priv(expr); nft_queue_eval()
64 const struct nft_expr *expr, nft_queue_init()
67 struct nft_queue *priv = nft_expr_priv(expr); nft_queue_init()
85 static int nft_queue_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_queue_dump() argument
87 const struct nft_queue *priv = nft_expr_priv(expr); nft_queue_dump()
63 nft_queue_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_queue_init() argument
H A Dnft_reject_inet.c20 static void nft_reject_inet_eval(const struct nft_expr *expr, nft_reject_inet_eval() argument
24 struct nft_reject *priv = nft_expr_priv(expr); nft_reject_inet_eval()
65 const struct nft_expr *expr, nft_reject_inet_init()
68 struct nft_reject *priv = nft_expr_priv(expr); nft_reject_inet_init()
97 const struct nft_expr *expr) nft_reject_inet_dump()
99 const struct nft_reject *priv = nft_expr_priv(expr); nft_reject_inet_dump()
64 nft_reject_inet_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_reject_inet_init() argument
96 nft_reject_inet_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_reject_inet_dump() argument
H A Dnft_counter.c34 static void nft_counter_eval(const struct nft_expr *expr, nft_counter_eval() argument
38 struct nft_counter_percpu_priv *priv = nft_expr_priv(expr); nft_counter_eval()
72 static int nft_counter_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_counter_dump() argument
74 struct nft_counter_percpu_priv *priv = nft_expr_priv(expr); nft_counter_dump()
94 const struct nft_expr *expr, nft_counter_init()
97 struct nft_counter_percpu_priv *priv = nft_expr_priv(expr); nft_counter_init()
121 const struct nft_expr *expr) nft_counter_destroy()
123 struct nft_counter_percpu_priv *priv = nft_expr_priv(expr); nft_counter_destroy()
93 nft_counter_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_counter_init() argument
120 nft_counter_destroy(const struct nft_ctx *ctx, const struct nft_expr *expr) nft_counter_destroy() argument
H A Dnft_log.c29 static void nft_log_eval(const struct nft_expr *expr, nft_log_eval() argument
33 const struct nft_log *priv = nft_expr_priv(expr); nft_log_eval()
49 const struct nft_expr *expr, nft_log_init()
52 struct nft_log *priv = nft_expr_priv(expr); nft_log_init()
117 const struct nft_expr *expr) nft_log_destroy()
119 struct nft_log *priv = nft_expr_priv(expr); nft_log_destroy()
133 static int nft_log_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_log_dump() argument
135 const struct nft_log *priv = nft_expr_priv(expr); nft_log_dump()
48 nft_log_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_log_init() argument
116 nft_log_destroy(const struct nft_ctx *ctx, const struct nft_expr *expr) nft_log_destroy() argument
H A Dnft_reject.c30 const struct nft_expr *expr, nft_reject_init()
33 struct nft_reject *priv = nft_expr_priv(expr); nft_reject_init()
54 int nft_reject_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_reject_dump() argument
56 const struct nft_reject *priv = nft_expr_priv(expr); nft_reject_dump()
29 nft_reject_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_reject_init() argument
H A Dnft_compat.c57 static void nft_target_eval_xt(const struct nft_expr *expr, nft_target_eval_xt() argument
61 void *info = nft_expr_priv(expr); nft_target_eval_xt()
62 struct xt_target *target = expr->ops->data; nft_target_eval_xt()
83 static void nft_target_eval_bridge(const struct nft_expr *expr, nft_target_eval_bridge() argument
87 void *info = nft_expr_priv(expr); nft_target_eval_bridge()
88 struct xt_target *target = expr->ops->data; nft_target_eval_bridge()
207 nft_target_init(const struct nft_ctx *ctx, const struct nft_expr *expr, nft_target_init() argument
210 void *info = nft_expr_priv(expr); nft_target_init()
211 struct xt_target *target = expr->ops->data; nft_target_init()
250 nft_target_destroy(const struct nft_ctx *ctx, const struct nft_expr *expr) nft_target_destroy() argument
252 struct xt_target *target = expr->ops->data; nft_target_destroy()
253 void *info = nft_expr_priv(expr); nft_target_destroy()
266 static int nft_target_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_target_dump() argument
268 const struct xt_target *target = expr->ops->data; nft_target_dump()
269 void *info = nft_expr_priv(expr); nft_target_dump()
283 const struct nft_expr *expr, nft_target_validate()
286 struct xt_target *target = expr->ops->data; nft_target_validate()
307 static void nft_match_eval(const struct nft_expr *expr, nft_match_eval() argument
311 void *info = nft_expr_priv(expr); nft_match_eval()
312 struct xt_match *match = expr->ops->data; nft_match_eval()
395 nft_match_init(const struct nft_ctx *ctx, const struct nft_expr *expr, nft_match_init() argument
398 void *info = nft_expr_priv(expr); nft_match_init()
399 struct xt_match *match = expr->ops->data; nft_match_init()
432 nft_match_destroy(const struct nft_ctx *ctx, const struct nft_expr *expr) nft_match_destroy() argument
434 struct xt_match *match = expr->ops->data; nft_match_destroy()
435 void *info = nft_expr_priv(expr); nft_match_destroy()
448 static int nft_match_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_match_dump() argument
450 void *info = nft_expr_priv(expr); nft_match_dump()
451 struct xt_match *match = expr->ops->data; nft_match_dump()
465 const struct nft_expr *expr, nft_match_validate()
468 struct xt_match *match = expr->ops->data; nft_match_validate()
282 nft_target_validate(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nft_data **data) nft_target_validate() argument
464 nft_match_validate(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nft_data **data) nft_match_validate() argument
H A Dnft_meta.c27 void nft_meta_get_eval(const struct nft_expr *expr, nft_meta_get_eval() argument
31 const struct nft_meta *priv = nft_expr_priv(expr); nft_meta_get_eval()
191 void nft_meta_set_eval(const struct nft_expr *expr, nft_meta_set_eval() argument
195 const struct nft_meta *meta = nft_expr_priv(expr); nft_meta_set_eval()
223 const struct nft_expr *expr, nft_meta_get_init()
226 struct nft_meta *priv = nft_expr_priv(expr); nft_meta_get_init()
275 const struct nft_expr *expr, nft_meta_set_init()
278 struct nft_meta *priv = nft_expr_priv(expr); nft_meta_set_init()
305 const struct nft_expr *expr) nft_meta_get_dump()
307 const struct nft_meta *priv = nft_expr_priv(expr); nft_meta_get_dump()
321 const struct nft_expr *expr) nft_meta_set_dump()
323 const struct nft_meta *priv = nft_expr_priv(expr); nft_meta_set_dump()
222 nft_meta_get_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_meta_get_init() argument
274 nft_meta_set_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_meta_set_init() argument
304 nft_meta_get_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_meta_get_dump() argument
320 nft_meta_set_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_meta_set_dump() argument
H A Dnft_ct.c33 static void nft_ct_get_eval(const struct nft_expr *expr, nft_ct_get_eval() argument
37 const struct nft_ct *priv = nft_expr_priv(expr); nft_ct_get_eval()
152 static void nft_ct_set_eval(const struct nft_expr *expr, nft_ct_set_eval() argument
156 const struct nft_ct *priv = nft_expr_priv(expr); nft_ct_set_eval()
223 const struct nft_expr *expr, nft_ct_get_init()
226 struct nft_ct *priv = nft_expr_priv(expr); nft_ct_get_init()
323 const struct nft_expr *expr, nft_ct_set_init()
326 struct nft_ct *priv = nft_expr_priv(expr); nft_ct_set_init()
354 const struct nft_expr *expr) nft_ct_destroy()
359 static int nft_ct_get_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_ct_get_dump() argument
361 const struct nft_ct *priv = nft_expr_priv(expr); nft_ct_get_dump()
387 static int nft_ct_set_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_ct_set_dump() argument
389 const struct nft_ct *priv = nft_expr_priv(expr); nft_ct_set_dump()
222 nft_ct_get_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_ct_get_init() argument
322 nft_ct_set_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_ct_set_init() argument
353 nft_ct_destroy(const struct nft_ctx *ctx, const struct nft_expr *expr) nft_ct_destroy() argument
H A Dnft_payload.c68 static void nft_payload_eval(const struct nft_expr *expr, nft_payload_eval() argument
72 const struct nft_payload *priv = nft_expr_priv(expr); nft_payload_eval()
117 const struct nft_expr *expr, nft_payload_init()
120 struct nft_payload *priv = nft_expr_priv(expr); nft_payload_init()
131 static int nft_payload_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_payload_dump() argument
133 const struct nft_payload *priv = nft_expr_priv(expr); nft_payload_dump()
116 nft_payload_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_payload_init() argument
H A Dnft_nat.c39 static void nft_nat_eval(const struct nft_expr *expr, nft_nat_eval() argument
43 const struct nft_nat *priv = nft_expr_priv(expr); nft_nat_eval()
91 const struct nft_expr *expr, nft_nat_validate()
94 struct nft_nat *priv = nft_expr_priv(expr); nft_nat_validate()
117 static int nft_nat_init(const struct nft_ctx *ctx, const struct nft_expr *expr, nft_nat_init() argument
120 struct nft_nat *priv = nft_expr_priv(expr); nft_nat_init()
141 err = nft_nat_validate(ctx, expr, NULL); nft_nat_init()
215 static int nft_nat_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_nat_dump() argument
217 const struct nft_nat *priv = nft_expr_priv(expr); nft_nat_dump()
90 nft_nat_validate(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nft_data **data) nft_nat_validate() argument
H A Dnf_tables_api.c1516 * nft_register_expr - register nf_tables expr type
1517 * @ops: expr type
1519 * Registers the expr type for use with nf_tables. Returns zero on
1535 * nft_unregister_expr - unregister nf_tables expr type
1536 * @ops: expr type
1538 * Unregisters the expr typefor use with nf_tables.
1576 request_module("nft-expr-%u-%.*s", family, nft_expr_type_get()
1583 request_module("nft-expr-%.*s", nft_expr_type_get()
1599 const struct nft_expr *expr) nf_tables_fill_expr_info()
1601 if (nla_put_string(skb, NFTA_EXPR_NAME, expr->ops->type->name)) nf_tables_fill_expr_info()
1604 if (expr->ops->dump) { nf_tables_fill_expr_info()
1608 if (expr->ops->dump(skb, expr) < 0) nf_tables_fill_expr_info()
1620 const struct nft_expr *expr) nft_expr_dump()
1627 if (nf_tables_fill_expr_info(skb, expr) < 0) nft_expr_dump()
1686 struct nft_expr *expr) nf_tables_newexpr()
1691 expr->ops = ops; nf_tables_newexpr()
1693 err = ops->init(ctx, expr, (const struct nlattr **)info->tb); nf_tables_newexpr()
1701 expr->ops = NULL; nf_tables_newexpr()
1706 struct nft_expr *expr) nf_tables_expr_destroy()
1708 if (expr->ops->destroy) nf_tables_expr_destroy()
1709 expr->ops->destroy(ctx, expr); nf_tables_expr_destroy()
1710 module_put(expr->ops->type->owner); nf_tables_expr_destroy()
1717 struct nft_expr *expr; nft_expr_init() local
1725 expr = kzalloc(info.ops->size, GFP_KERNEL); nft_expr_init()
1726 if (expr == NULL) nft_expr_init()
1729 err = nf_tables_newexpr(ctx, &info, expr); nft_expr_init()
1733 return expr; nft_expr_init()
1740 void nft_expr_destroy(const struct nft_ctx *ctx, struct nft_expr *expr) nft_expr_destroy() argument
1742 nf_tables_expr_destroy(ctx, expr); nft_expr_destroy()
1743 kfree(expr); nft_expr_destroy()
1794 const struct nft_expr *expr, *next; nf_tables_fill_rule_info() local
1826 nft_rule_for_each_expr(expr, next, rule) { nft_rule_for_each_expr()
1827 if (nft_expr_dump(skb, NFTA_LIST_ELEM, expr) < 0) nft_rule_for_each_expr()
1992 struct nft_expr *expr; nf_tables_rule_destroy() local
1998 expr = nft_expr_first(rule); nf_tables_rule_destroy()
1999 while (expr->ops && expr != nft_expr_last(rule)) { nf_tables_rule_destroy()
2000 nf_tables_expr_destroy(ctx, expr); nf_tables_rule_destroy()
2001 expr = nft_expr_next(expr); nf_tables_rule_destroy()
2021 struct nft_expr *expr; nf_tables_newrule() local
2120 expr = nft_expr_first(rule);
2122 err = nf_tables_newexpr(&ctx, &info[i], expr);
2126 expr = nft_expr_next(expr);
4192 const struct nft_expr *expr, *last; nf_tables_check_loops() local
4201 nft_rule_for_each_expr(expr, last, rule) { nft_rule_for_each_expr()
4205 if (!expr->ops->validate) nft_rule_for_each_expr()
4208 err = expr->ops->validate(ctx, expr, &data); nft_rule_for_each_expr()
1598 nf_tables_fill_expr_info(struct sk_buff *skb, const struct nft_expr *expr) nf_tables_fill_expr_info() argument
1619 nft_expr_dump(struct sk_buff *skb, unsigned int attr, const struct nft_expr *expr) nft_expr_dump() argument
1684 nf_tables_newexpr(const struct nft_ctx *ctx, const struct nft_expr_info *info, struct nft_expr *expr) nf_tables_newexpr() argument
1705 nf_tables_expr_destroy(const struct nft_ctx *ctx, struct nft_expr *expr) nf_tables_expr_destroy() argument
H A Dnft_hash.c96 const struct nft_expr *expr, nft_hash_update()
112 he = new(set, expr, regs); nft_hash_update()
92 nft_hash_update(struct nft_set *set, const u32 *key, void *(*new)(struct nft_set *, const struct nft_expr *, struct nft_regs *regs), const struct nft_expr *expr, struct nft_regs *regs, const struct nft_set_ext **ext) nft_hash_update() argument
/linux-4.4.14/drivers/w1/
H A Dw1_log.h28 # define assert(expr) do {} while (0)
30 # define assert(expr) \
31 if(unlikely(!(expr))) { \
33 #expr, __FILE__, __func__, __LINE__); \
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/
H A Dlibcfs_string.c263 int bracketed, struct cfs_range_expr **expr) cfs_range_expr_parse()
317 *expr = re; cfs_range_expr_parse()
333 cfs_range_expr_print(char *buffer, int count, struct cfs_range_expr *expr, cfs_range_expr_print() argument
343 if (expr->re_lo == expr->re_hi) cfs_range_expr_print()
344 i = scnprintf(buffer, count, "%u", expr->re_lo); cfs_range_expr_print()
345 else if (expr->re_stride == 1) cfs_range_expr_print()
347 s, expr->re_lo, expr->re_hi, e); cfs_range_expr_print()
350 s, expr->re_lo, expr->re_hi, cfs_range_expr_print()
351 expr->re_stride, e); cfs_range_expr_print()
365 struct cfs_range_expr *expr; cfs_expr_list_print() local
372 list_for_each_entry(expr, &expr_list->el_exprs, re_link) cfs_expr_list_print()
378 list_for_each_entry(expr, &expr_list->el_exprs, re_link) { cfs_expr_list_print()
381 i += cfs_range_expr_print(buffer + i, count - i, expr, cfs_expr_list_print()
401 struct cfs_range_expr *expr; cfs_expr_list_match() local
403 list_for_each_entry(expr, &expr_list->el_exprs, re_link) { cfs_expr_list_match()
404 if (value >= expr->re_lo && value <= expr->re_hi && cfs_expr_list_match()
405 ((value - expr->re_lo) % expr->re_stride) == 0) cfs_expr_list_match()
423 struct cfs_range_expr *expr; cfs_expr_list_values() local
428 list_for_each_entry(expr, &expr_list->el_exprs, re_link) { cfs_expr_list_values()
429 for (i = expr->re_lo; i <= expr->re_hi; i++) { cfs_expr_list_values()
430 if (((i - expr->re_lo) % expr->re_stride) == 0) cfs_expr_list_values()
449 list_for_each_entry(expr, &expr_list->el_exprs, re_link) { cfs_expr_list_values()
450 for (i = expr->re_lo; i <= expr->re_hi; i++) { cfs_expr_list_values()
451 if (((i - expr->re_lo) % expr->re_stride) == 0) cfs_expr_list_values()
470 struct cfs_range_expr *expr; cfs_expr_list_free() local
472 expr = list_entry(expr_list->el_exprs.next, cfs_expr_list_free()
474 list_del(&expr->re_link); cfs_expr_list_free()
475 LIBCFS_FREE(expr, sizeof(*expr)); cfs_expr_list_free()
493 struct cfs_range_expr *expr; cfs_expr_list_parse() local
520 rc = cfs_range_expr_parse(&tok, min, max, 1, &expr); cfs_expr_list_parse()
524 list_add_tail(&expr->re_link, cfs_expr_list_parse()
528 rc = cfs_range_expr_parse(&src, min, max, 0, &expr); cfs_expr_list_parse()
530 list_add_tail(&expr->re_link, cfs_expr_list_parse()
262 cfs_range_expr_parse(struct cfs_lstr *src, unsigned min, unsigned max, int bracketed, struct cfs_range_expr **expr) cfs_range_expr_parse() argument
/linux-4.4.14/security/selinux/ss/
H A Dconstraint.h23 #define CEXPR_NOT 1 /* not expr */
24 #define CEXPR_AND 2 /* expr and expr */
25 #define CEXPR_OR 3 /* expr or expr */
58 struct constraint_expr *expr; /* constraint on permissions */ member in struct:constraint_node
H A Dconditional.c21 * cond_evaluate_expr evaluates a conditional expr
26 static int cond_evaluate_expr(struct policydb *p, struct cond_expr *expr) cond_evaluate_expr() argument
33 for (cur = expr; cur; cur = cur->next) { cond_evaluate_expr()
95 new_state = cond_evaluate_expr(p, node->expr); evaluate_cond_node()
147 for (cur_expr = node->expr; cur_expr; cur_expr = next_expr) { cond_node_destroy()
385 static int expr_isvalid(struct policydb *p, struct cond_expr *expr) expr_isvalid() argument
387 if (expr->expr_type <= 0 || expr->expr_type > COND_LAST) { expr_isvalid()
392 if (expr->bool > p->p_bools.nprim) { expr_isvalid()
404 struct cond_expr *expr = NULL, *last = NULL; cond_read_node() local
412 /* expr */ cond_read_node()
421 expr = kzalloc(sizeof(struct cond_expr), GFP_KERNEL); cond_read_node()
422 if (!expr) cond_read_node()
425 expr->expr_type = le32_to_cpu(buf[0]); cond_read_node()
426 expr->bool = le32_to_cpu(buf[1]); cond_read_node()
428 if (!expr_isvalid(p, expr)) { cond_read_node()
430 kfree(expr); cond_read_node()
435 node->expr = expr; cond_read_node()
437 last->next = expr; cond_read_node()
438 last = expr; cond_read_node()
567 for (cur_expr = node->expr; cur_expr != NULL; cur_expr = cur_expr->next) cond_write_node()
575 for (cur_expr = node->expr; cur_expr != NULL; cur_expr = cur_expr->next) { cond_write_node()
H A Dconditional.h57 struct cond_expr *expr; member in struct:cond_node
H A Dpolicydb.c630 static void constraint_expr_destroy(struct constraint_expr *expr) constraint_expr_destroy() argument
632 if (expr) { constraint_expr_destroy()
633 ebitmap_destroy(&expr->names); constraint_expr_destroy()
634 if (expr->type_names) { constraint_expr_destroy()
635 ebitmap_destroy(&expr->type_names->types); constraint_expr_destroy()
636 ebitmap_destroy(&expr->type_names->negset); constraint_expr_destroy()
637 kfree(expr->type_names); constraint_expr_destroy()
639 kfree(expr); constraint_expr_destroy()
656 e = constraint->expr; cls_destroy()
669 e = constraint->expr; cls_destroy()
1252 c->expr = e; read_cons_helper()
2801 for (e = c->expr; e; e = e->next) write_cons_helper()
2808 for (e = c->expr; e; e = e->next) { write_cons_helper()
H A Dservices.c721 constraint->expr)) {
834 constraint->expr)) { security_validate_transition()
/linux-4.4.14/net/ipv4/netfilter/
H A Dnft_dup_ipv4.c23 static void nft_dup_ipv4_eval(const struct nft_expr *expr, nft_dup_ipv4_eval() argument
27 struct nft_dup_ipv4 *priv = nft_expr_priv(expr); nft_dup_ipv4_eval()
37 const struct nft_expr *expr, nft_dup_ipv4_init()
40 struct nft_dup_ipv4 *priv = nft_expr_priv(expr); nft_dup_ipv4_init()
58 static int nft_dup_ipv4_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_dup_ipv4_dump() argument
60 struct nft_dup_ipv4 *priv = nft_expr_priv(expr); nft_dup_ipv4_dump()
36 nft_dup_ipv4_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_dup_ipv4_init() argument
H A Dnft_masq_ipv4.c19 static void nft_masq_ipv4_eval(const struct nft_expr *expr, nft_masq_ipv4_eval() argument
23 struct nft_masq *priv = nft_expr_priv(expr); nft_masq_ipv4_eval()
H A Dnft_redir_ipv4.c20 static void nft_redir_ipv4_eval(const struct nft_expr *expr, nft_redir_ipv4_eval() argument
24 struct nft_redir *priv = nft_expr_priv(expr); nft_redir_ipv4_eval()
H A Dnft_reject_ipv4.c22 static void nft_reject_ipv4_eval(const struct nft_expr *expr, nft_reject_ipv4_eval() argument
26 struct nft_reject *priv = nft_expr_priv(expr); nft_reject_ipv4_eval()
/linux-4.4.14/net/ipv6/netfilter/
H A Dnft_dup_ipv6.c23 static void nft_dup_ipv6_eval(const struct nft_expr *expr, nft_dup_ipv6_eval() argument
27 struct nft_dup_ipv6 *priv = nft_expr_priv(expr); nft_dup_ipv6_eval()
35 const struct nft_expr *expr, nft_dup_ipv6_init()
38 struct nft_dup_ipv6 *priv = nft_expr_priv(expr); nft_dup_ipv6_init()
56 static int nft_dup_ipv6_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_dup_ipv6_dump() argument
58 struct nft_dup_ipv6 *priv = nft_expr_priv(expr); nft_dup_ipv6_dump()
34 nft_dup_ipv6_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_dup_ipv6_init() argument
H A Dnft_masq_ipv6.c20 static void nft_masq_ipv6_eval(const struct nft_expr *expr, nft_masq_ipv6_eval() argument
24 struct nft_masq *priv = nft_expr_priv(expr); nft_masq_ipv6_eval()
H A Dnft_redir_ipv6.c20 static void nft_redir_ipv6_eval(const struct nft_expr *expr, nft_redir_ipv6_eval() argument
24 struct nft_redir *priv = nft_expr_priv(expr); nft_redir_ipv6_eval()
H A Dnft_reject_ipv6.c22 static void nft_reject_ipv6_eval(const struct nft_expr *expr, nft_reject_ipv6_eval() argument
26 struct nft_reject *priv = nft_expr_priv(expr); nft_reject_ipv6_eval()
/linux-4.4.14/net/bridge/netfilter/
H A Dnft_meta_bridge.c21 static void nft_meta_bridge_get_eval(const struct nft_expr *expr, nft_meta_bridge_get_eval() argument
25 const struct nft_meta *priv = nft_expr_priv(expr); nft_meta_bridge_get_eval()
46 return nft_meta_get_eval(expr, regs, pkt); nft_meta_bridge_get_eval()
52 const struct nft_expr *expr, nft_meta_bridge_get_init()
55 struct nft_meta *priv = nft_expr_priv(expr); nft_meta_bridge_get_init()
65 return nft_meta_get_init(ctx, expr, tb); nft_meta_bridge_get_init()
51 nft_meta_bridge_get_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_meta_bridge_get_init() argument
H A Dnft_reject_bridge.c259 static void nft_reject_bridge_eval(const struct nft_expr *expr, nft_reject_bridge_eval() argument
263 struct nft_reject *priv = nft_expr_priv(expr); nft_reject_bridge_eval()
316 const struct nft_expr *expr, nft_reject_bridge_validate()
324 const struct nft_expr *expr, nft_reject_bridge_init()
327 struct nft_reject *priv = nft_expr_priv(expr); nft_reject_bridge_init()
330 err = nft_reject_bridge_validate(ctx, expr, NULL); nft_reject_bridge_init()
360 const struct nft_expr *expr) nft_reject_bridge_dump()
362 const struct nft_reject *priv = nft_expr_priv(expr); nft_reject_bridge_dump()
315 nft_reject_bridge_validate(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nft_data **data) nft_reject_bridge_validate() argument
323 nft_reject_bridge_init(const struct nft_ctx *ctx, const struct nft_expr *expr, const struct nlattr * const tb[]) nft_reject_bridge_init() argument
359 nft_reject_bridge_dump(struct sk_buff *skb, const struct nft_expr *expr) nft_reject_bridge_dump() argument
/linux-4.4.14/scripts/
H A Ddecode_stacktrace.sh40 local expr=${symbol%/*}
44 expr=${expr/$name/0x$base_addr}
47 expr=$((expr))
48 local address=$(printf "%x\n" "$expr")
H A Ddecodecode42 width=`expr index "$code" ' '`
65 marker=`expr index "$code" "\<"`
67 marker=`expr index "$code" "\("`
H A Dlink-vmlinux.sh178 expr 0$(cat .old_version) + 1 >.version;
H A Dunifdef.c821 * viz. !expr (expr) number defined(symbol) symbol
900 debug("eval%d bad expr", ops - eval_ops); eval_unary()
H A Dcheckpatch.pl4907 my $expr = '\s*\(\s*' . $tested . '\s*\)\s*;';
4908 if ($line =~ /\b(kfree|usb_free_urb|debugfs_remove(?:_recursive)?|(?:kmem_cache|mempool|dma_pool)_destroy)$expr/) {
/linux-4.4.14/fs/xfs/
H A Dxfs_message.c101 asswarn(char *expr, char *file, int line) asswarn() argument
104 expr, file, line); asswarn()
109 assfail(char *expr, char *file, int line) assfail() argument
112 expr, file, line); assfail()
H A Dxfs_message.h59 extern void assfail(char *expr, char *f, int l);
60 extern void asswarn(char *expr, char *f, int l);
H A Dxfs_error.h126 #define XFS_TEST_ERROR(expr, mp, tag, rf) \
127 ((expr) || (xfs_error_test_active && \
128 xfs_error_test((tag), (mp)->m_fixedfsid, "expr", __LINE__, __FILE__, \
134 #define XFS_TEST_ERROR(expr, mp, tag, rf) (expr)
H A Dxfs_linux.h338 #define ASSERT_ALWAYS(expr) \
339 (unlikely(expr) ? (void)0 : assfail(#expr, __FILE__, __LINE__))
342 #define ASSERT(expr) \
343 (unlikely(expr) ? (void)0 : assfail(#expr, __FILE__, __LINE__))
353 #define ASSERT(expr) \
354 (unlikely(expr) ? (void)0 : asswarn(#expr, __FILE__, __LINE__))
362 #define ASSERT(expr) ((void)0)
/linux-4.4.14/include/net/irda/
H A Dirda.h58 #define IRDA_ASSERT(expr, func) \
59 do { if(!(expr)) { \
61 __FILE__,__func__,__LINE__,(#expr) ); \
65 #define IRDA_ASSERT(expr, func) do { (void)(expr); } while (0)
/linux-4.4.14/drivers/staging/rtl8188eu/include/
H A Dodm_debug.h90 #define ASSERT(expr)
100 #define ODM_RT_ASSERT(pDM_Odm, expr, fmt) \
101 if (!(expr)) { \
102 pr_info("Assertion failed! %s at ......\n", #expr); \
/linux-4.4.14/drivers/staging/rtl8723au/include/
H A Dodm_debug.h97 #define ASSERT(expr)
107 #define ODM_RT_ASSERT(pDM_Odm, expr, fmt) \
108 if(!(expr)) { \
109 printk("Assertion failed! %s at ......\n", #expr); \
/linux-4.4.14/arch/x86/crypto/sha-mb/
H A Dsha_mb_ctx.h103 #define assert(expr) \
105 if (unlikely(!(expr))) { \
107 #expr, __FILE__, __func__, __LINE__); \
111 #define assert(expr) do {} while (0)
/linux-4.4.14/Documentation/trace/
H A Dfunction-graph-fold.vim42 setlocal foldmethod=expr
/linux-4.4.14/tools/perf/util/
H A Dstring.c371 char *expr = malloc(size); asprintf_expr_inout_ints() local
373 if (expr) { asprintf_expr_inout_ints()
375 char *e = expr; asprintf_expr_inout_ints()
393 return expr; asprintf_expr_inout_ints()
396 free(expr); asprintf_expr_inout_ints()
H A Ddwarf-aux.c322 Dwarf_Op *expr; die_get_data_member_location() local
331 ret = dwarf_getlocation(&attr, &expr, &nexpr); die_get_data_member_location()
335 if (expr[0].atom != DW_OP_plus_uconst || nexpr != 1) { die_get_data_member_location()
337 expr[0].atom, nexpr); die_get_data_member_location()
340 *offs = (Dwarf_Word)expr[0].number; die_get_data_member_location()
H A Dprobe-finder.c548 /* *expr will be cached in libdw. Don't free it. */ convert_variable()
/linux-4.4.14/tools/testing/selftests/powerpc/pmu/ebb/
H A Debb_handler.S72 #define LOAD_REG_IMMEDIATE(reg,expr) \
73 lis reg,(expr)@highest; \
74 ori reg,reg,(expr)@higher; \
76 oris reg,reg,(expr)@h; \
77 ori reg,reg,(expr)@l;
/linux-4.4.14/arch/powerpc/include/asm/
H A Dppc_asm.h290 * LOAD_REG_IMMEDIATE(rn, expr)
291 * Loads the value of the constant expression 'expr' into register 'rn'
294 * valid) and when 'expr' is a constant or absolute address.
332 #define LOAD_REG_IMMEDIATE(reg,expr) \
333 lis reg,(expr)@highest; \
334 ori reg,reg,(expr)@higher; \
336 oris reg,reg,(expr)@__AS_ATHIGH; \
337 ori reg,reg,(expr)@l;
350 #define LOAD_REG_IMMEDIATE(reg,expr) \
351 lis reg,(expr)@ha; \
352 addi reg,reg,(expr)@l;
/linux-4.4.14/arch/mips/math-emu/
H A Dieee754dp.h27 #define assert(expr) ((void)0)
H A Dieee754sp.h27 #define assert(expr) ((void)0)
/linux-4.4.14/arch/blackfin/kernel/
H A Dgptimers.c19 # define tassert(expr)
21 # define tassert(expr) \
22 if (!(expr)) \
23 printk(KERN_DEBUG "%s:%s:%i: Assertion failed: " #expr "\n", __FILE__, __func__, __LINE__);
/linux-4.4.14/include/linux/
H A Djbd2.h385 #define J_ASSERT_BH(bh, expr) J_ASSERT(expr)
386 #define J_ASSERT_JH(jh, expr) J_ASSERT(expr)
389 #define J_EXPECT(expr, why...) J_ASSERT(expr)
390 #define J_EXPECT_BH(bh, expr, why...) J_ASSERT_BH(bh, expr)
391 #define J_EXPECT_JH(jh, expr, why...) J_ASSERT_JH(jh, expr)
393 #define __journal_expect(expr, why...) \
395 int val = (expr); \
399 __func__, #expr); \
404 #define J_EXPECT(expr, why...) __journal_expect(expr, ## why)
405 #define J_EXPECT_BH(bh, expr, why...) __journal_expect(expr, ## why)
406 #define J_EXPECT_JH(jh, expr, why...) __journal_expect(expr, ## why)
H A Dtrace_events.h397 #define __TRACE_EVENT_PERF_PERM(name, expr...) \
401 return ({ expr; }); \
H A Dtracepoint.h375 #define TRACE_EVENT_PERF_PERM(event, expr...)
509 #define TRACE_EVENT_PERF_PERM(event, expr...)
/linux-4.4.14/drivers/mtd/ubi/
H A Ddebug.h30 #define ubi_assert(expr) do { \
31 if (unlikely(!(expr))) { \
/linux-4.4.14/arch/m68k/fpsp040/
H A Dstwotox.S35 | Go to expr to compute that expression.
51 | Go to expr to compute that expression.
53 | expr
270 bra expr
381 expr: label
/linux-4.4.14/drivers/infiniband/hw/nes/
H A Dnes.h149 #define assert(expr) \
151 if (!(expr)) { \
153 #expr, __FILE__, __func__, __LINE__); \
160 #define assert(expr) do {} while (0)
/linux-4.4.14/Documentation/mic/mpssd/
H A Dmpss96 count=`expr $count - 1`
/linux-4.4.14/scripts/genksyms/
H A Dparse.y488 struct string_list *expr = copy_list_range(*$3, *$2);
489 add_symbol(name, SYM_ENUM_CONST, expr, 0);
H A Dgenksyms.c217 struct string_list *expr; __add_symbol() local
222 expr = copy_list_range(last_enum_expr, NULL); __add_symbol()
224 expr, __add_symbol()
/linux-4.4.14/drivers/net/wireless/b43legacy/
H A Db43legacy.h335 # define B43legacy_BUG_ON(expr) \
337 if (unlikely((expr))) { \
339 #expr); \
340 BUG_ON(expr); \
/linux-4.4.14/drivers/net/ethernet/hisilicon/hns/
H A Dhnae.h47 #define assert(expr) \
49 if (!(expr)) { \
51 #expr, __FILE__, __func__, __LINE__); \
59 #define assert(expr)
/linux-4.4.14/scripts/mod/
H A Dmodpost.h97 void *do_nofail(void *ptr, const char *expr);
H A Dmodpost.c109 void *do_nofail(void *ptr, const char *expr) do_nofail() argument
112 fatal("modpost: Memory allocation failure: %s.\n", expr); do_nofail()
/linux-4.4.14/arch/um/include/shared/
H A Dos.h16 #define CATCH_EINTR(expr) while ((errno = 0, ((expr) < 0)) && (errno == EINTR))
/linux-4.4.14/fs/ubifs/
H A Ddebug.h151 #define ubifs_assert(expr) do { \
152 if (unlikely(!(expr))) { \
/linux-4.4.14/arch/x86/kernel/
H A Duprobes.c602 #define COND(op_y, op_n, expr) \
603 case 0x ## op_y: DO((expr) != 0) \
604 case 0x ## op_n: DO((expr) == 0)
611 #define DO(expr) \ is_cond_jmp_opcode()
626 #define DO(expr) \ check_jmp_cond()
627 return expr; check_jmp_cond()
/linux-4.4.14/include/trace/
H A Dtrace_events.h131 #define TRACE_EVENT_PERF_PERM(name, expr...) \
132 __TRACE_EVENT_PERF_PERM(name, expr)
196 #define TRACE_EVENT_PERF_PERM(event, expr...)
/linux-4.4.14/drivers/staging/lustre/lustre/include/
H A Dlclient.h361 # define CLOBINVRNT(env, clob, expr) \
362 ((void)sizeof(env), (void)sizeof(clob), (void)sizeof(!!(expr)))
H A Dcl_object.h1841 #define CL_LOCK_ASSERT(expr, env, lock) do { \
1842 if (likely(expr)) \
1845 CL_LOCK_DEBUG(D_ERROR, env, lock, "failed at %s.\n", #expr); \
/linux-4.4.14/arch/mips/
H A DMakefile250 ifeq ($(shell expr $(load-y) \< 0xffffffff80000000), 0)
302 ifeq ($(shell expr $(load-y) \< 0xffffffff80000000 2> /dev/null), 0)
/linux-4.4.14/drivers/staging/rtl8192u/
H A Dr8192U.h98 #define RTL8192U_ASSERT(expr) \
100 if (!(expr)) { \
102 #expr, __FILE__, __func__, __LINE__); \
125 #define RTL8192U_ASSERT(expr) do {} while (0)
/linux-4.4.14/drivers/video/fbdev/nvidia/
H A Dnvidia.c43 #define assert(expr) \
44 if (!(expr)) { \
46 #expr,__FILE__,__func__,__LINE__); \
50 #define assert(expr)
/linux-4.4.14/tools/lib/traceevent/
H A DMakefile197 expr $(VERSION) \* 256 + $(PATCHLEVEL)); \
/linux-4.4.14/tools/testing/selftests/rcutorture/bin/
H A Dfunctions.sh239 echo $2 -smp cores=`expr \( $3 + $nt - 1 \) / $nt`,threads=$nt
/linux-4.4.14/drivers/block/
H A Dsx8.c94 #define assert(expr)
96 #define assert(expr) \
97 if(unlikely(!(expr))) { \
99 #expr, __FILE__, __func__, __LINE__); \
H A Drbd.c514 #define rbd_assert(expr) \
515 if (unlikely(!(expr))) { \
519 __func__, __LINE__, #expr); \
523 # define rbd_assert(expr) ((void) 0)
H A Dskd_main.c68 #define SKD_ASSERT(expr) \
70 if (unlikely(!(expr))) { \
72 # expr, __FILE__, __func__, __LINE__); \
/linux-4.4.14/arch/ia64/hp/common/
H A Dsba_iommu.c145 #define ASSERT(expr) \
146 if(!(expr)) { \
147 printk( "\n" __FILE__ ":%d: Assertion " #expr " failed!\n",__LINE__); \
148 panic(#expr); \
151 #define ASSERT(expr)
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/
H A Dcl_page.c54 # define PASSERT(env, page, expr) \
56 if (unlikely(!(expr))) { \
57 CL_PAGE_DEBUG(D_ERROR, (env), (page), #expr "\n"); \
/linux-4.4.14/drivers/video/fbdev/riva/
H A Dfbdev.c70 #define assert(expr) \
71 if(!(expr)) { \
73 #expr,__FILE__,__func__,__LINE__); \
77 #define assert(expr)
/linux-4.4.14/mm/
H A Dbacking-dev.c162 #define BDI_SHOW(name, expr) \
168 return snprintf(page, PAGE_SIZE-1, "%lld\n", (long long)expr); \
/linux-4.4.14/drivers/staging/lustre/lustre/osc/
H A Dosc_cache.c130 #define EASSERTF(expr, ext, fmt, args...) do { \
131 if (!(expr)) { \
134 LASSERT(expr); \
139 #define EASSERT(expr, ext) EASSERTF(expr, ext, "\n")
/linux-4.4.14/drivers/video/fbdev/
H A Dcirrusfb.c71 #define assert(expr) \
72 if (!(expr)) { \
74 #expr, __FILE__, __func__, __LINE__); \
77 #define assert(expr)
/linux-4.4.14/drivers/net/ethernet/realtek/
H A D8139too.c134 # define assert(expr) do {} while (0)
136 # define assert(expr) \
137 if (unlikely(!(expr))) { \
139 #expr, __FILE__, __func__, __LINE__); \
H A Dr8169.c61 #define assert(expr) \
62 if (!(expr)) { \
64 #expr,__FILE__,__func__,__LINE__); \
69 #define assert(expr) do {} while (0)
/linux-4.4.14/drivers/atm/
H A Dfore200e.c98 #define ASSERT(expr) if (!(expr)) { \
100 __func__, __LINE__, #expr); \
104 #define ASSERT(expr) do {} while (0)
/linux-4.4.14/fs/btrfs/
H A Dctree.h4200 static inline void assfail(char *expr, char *file, int line) assfail() argument
4203 expr, file, line); assfail()
4207 #define ASSERT(expr) \
4208 (likely(expr) ? (void)0 : assfail(#expr, __FILE__, __LINE__))
4210 #define ASSERT(expr) ((void)0)
/linux-4.4.14/tools/perf/
H A Dbuiltin-trace.c3057 OPT_STRING('e', "expr", &ev_qualifier_str, "expr", "list of syscalls to trace"), cmd_trace()
/linux-4.4.14/drivers/net/wireless/mwifiex/
H A Dfw.h1927 u8 expr[0]; member in struct:mwifiex_fw_mef_entry
H A Dsta_cmd.c1428 cpu_to_le16(pos - mef_entry->expr); mwifiex_cmd_mef_cfg()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
H A Dsdio.c3080 char expr[80] = "<???>"; brcmf_sdio_assert_info() local
3099 sh->assert_exp_addr, (u8 *)expr, 80); brcmf_sdio_assert_info()
3106 file, sh->assert_line, expr); brcmf_sdio_assert_info()
/linux-4.4.14/
H A DMakefile1009 expr $(VERSION) \* 65536 + 0$(PATCHLEVEL) \* 256 + 0$(SUBLEVEL)); \
/linux-4.4.14/arch/m68k/ifpsp060/src/
H A Dfplsp.S8841 # Go to expr to compute that expression. #
8857 # Go to expr to compute that expression. #
8859 # expr #
9044 bra.w expr
9147 expr: label
H A Dfpsp.S8947 # Go to expr to compute that expression. #
8963 # Go to expr to compute that expression. #
8965 # expr #
9150 bra.w expr
9253 expr: label
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_link.c11307 /* set val [expr $val & [bits clear 6 12 13]] */ bnx2x_54618se_config_loopback()
11308 /* set val [expr $val | [bits set 6 8]] */ bnx2x_54618se_config_loopback()
11318 /* mii write 0x18 [expr $val | [bits set 10 15]] */ bnx2x_54618se_config_loopback()
/linux-4.4.14/drivers/gpu/drm/i915/
H A Di915_gem.c41 #define RQ_BUG_ON(expr)
/linux-4.4.14/fs/ext4/
H A Dinode.c4649 * inode->i_size = expr;

Completed in 3546 milliseconds