Lines Matching defs:cmp
16 static inline int cmp_needs_transformation(struct tcf_em_cmp *cmp)
18 return unlikely(cmp->flags & TCF_EM_CMP_TRANS);
24 struct tcf_em_cmp *cmp = (struct tcf_em_cmp *) em->data;
25 unsigned char *ptr = tcf_get_base_ptr(skb, cmp->layer) + cmp->off;
28 if (!tcf_valid_offset(skb, ptr, cmp->align))
31 switch (cmp->align) {
39 if (cmp_needs_transformation(cmp))
49 if (cmp_needs_transformation(cmp))
57 if (cmp->mask)
58 val &= cmp->mask;
60 switch (cmp->opnd) {
62 return val == cmp->val;
64 return val < cmp->val;
66 return val > cmp->val;