Lines Matching defs:expr

73 static void nft_target_eval_xt(const struct nft_expr *expr,
77 void *info = nft_expr_priv(expr);
78 struct xt_target *target = expr->ops->data;
100 static void nft_target_eval_bridge(const struct nft_expr *expr,
104 void *info = nft_expr_priv(expr);
105 struct xt_target *target = expr->ops->data;
243 nft_target_init(const struct nft_ctx *ctx, const struct nft_expr *expr,
246 void *info = nft_expr_priv(expr);
247 struct xt_target *target = expr->ops->data;
292 static void __nft_mt_tg_destroy(struct module *me, const struct nft_expr *expr)
295 kfree(expr->ops);
299 nft_target_destroy(const struct nft_ctx *ctx, const struct nft_expr *expr)
301 struct xt_target *target = expr->ops->data;
302 void *info = nft_expr_priv(expr);
313 __nft_mt_tg_destroy(me, expr);
335 const struct nft_expr *expr, bool reset)
337 const struct xt_target *target = expr->ops->data;
338 void *info = nft_expr_priv(expr);
353 const struct nft_expr *expr,
356 struct xt_target *target = expr->ops->data;
392 static void __nft_match_eval(const struct nft_expr *expr,
397 struct xt_match *match = expr->ops->data;
421 static void nft_match_large_eval(const struct nft_expr *expr,
425 struct nft_xt_match_priv *priv = nft_expr_priv(expr);
427 __nft_match_eval(expr, regs, pkt, priv->info);
430 static void nft_match_eval(const struct nft_expr *expr,
434 __nft_match_eval(expr, regs, pkt, nft_expr_priv(expr));
497 __nft_match_init(const struct nft_ctx *ctx, const struct nft_expr *expr,
501 struct xt_match *match = expr->ops->data;
525 nft_match_init(const struct nft_ctx *ctx, const struct nft_expr *expr,
528 return __nft_match_init(ctx, expr, tb, nft_expr_priv(expr));
532 nft_match_large_init(const struct nft_ctx *ctx, const struct nft_expr *expr,
535 struct nft_xt_match_priv *priv = nft_expr_priv(expr);
536 struct xt_match *m = expr->ops->data;
543 ret = __nft_match_init(ctx, expr, tb, priv->info);
550 __nft_match_destroy(const struct nft_ctx *ctx, const struct nft_expr *expr,
553 struct xt_match *match = expr->ops->data;
564 __nft_mt_tg_destroy(me, expr);
568 nft_match_destroy(const struct nft_ctx *ctx, const struct nft_expr *expr)
570 __nft_match_destroy(ctx, expr, nft_expr_priv(expr));
574 nft_match_large_destroy(const struct nft_ctx *ctx, const struct nft_expr *expr)
576 struct nft_xt_match_priv *priv = nft_expr_priv(expr);
578 __nft_match_destroy(ctx, expr, priv->info);
582 static int __nft_match_dump(struct sk_buff *skb, const struct nft_expr *expr,
585 struct xt_match *match = expr->ops->data;
600 const struct nft_expr *expr, bool reset)
602 return __nft_match_dump(skb, expr, nft_expr_priv(expr));
614 const struct nft_expr *expr,
617 struct xt_match *match = expr->ops->data;
777 const struct nft_expr *expr)
779 const struct xt_match *match = expr->ops->data;