Lines Matching refs:a
17 #define to_gact(a) ((struct tcf_gact *)a) argument
19 static inline bool __is_tcf_gact_act(const struct tc_action *a, int act, in __is_tcf_gact_act() argument
25 if (a->ops && a->ops->type != TCA_ACT_GACT) in __is_tcf_gact_act()
28 gact = to_gact(a); in __is_tcf_gact_act()
37 static inline bool is_tcf_gact_ok(const struct tc_action *a) in is_tcf_gact_ok() argument
39 return __is_tcf_gact_act(a, TC_ACT_OK, false); in is_tcf_gact_ok()
42 static inline bool is_tcf_gact_shot(const struct tc_action *a) in is_tcf_gact_shot() argument
44 return __is_tcf_gact_act(a, TC_ACT_SHOT, false); in is_tcf_gact_shot()
47 static inline bool is_tcf_gact_trap(const struct tc_action *a) in is_tcf_gact_trap() argument
49 return __is_tcf_gact_act(a, TC_ACT_TRAP, false); in is_tcf_gact_trap()
52 static inline bool is_tcf_gact_goto_chain(const struct tc_action *a) in is_tcf_gact_goto_chain() argument
54 return __is_tcf_gact_act(a, TC_ACT_GOTO_CHAIN, true); in is_tcf_gact_goto_chain()
57 static inline u32 tcf_gact_goto_chain_index(const struct tc_action *a) in tcf_gact_goto_chain_index() argument
59 return READ_ONCE(a->tcfa_action) & TC_ACT_EXT_VAL_MASK; in tcf_gact_goto_chain_index()