Lines Matching defs:cmp
20 static inline int cmp_needs_transformation(struct tcf_em_cmp *cmp)
22 return unlikely(cmp->flags & TCF_EM_CMP_TRANS);
28 struct tcf_em_cmp *cmp = (struct tcf_em_cmp *) em->data;
29 unsigned char *ptr = tcf_get_base_ptr(skb, cmp->layer) + cmp->off;
32 if (!tcf_valid_offset(skb, ptr, cmp->align))
35 switch (cmp->align) {
43 if (cmp_needs_transformation(cmp))
52 if (cmp_needs_transformation(cmp))
60 if (cmp->mask)
61 val &= cmp->mask;
63 switch (cmp->opnd) {
65 return val == cmp->val;
67 return val < cmp->val;
69 return val > cmp->val;