Lines Matching defs:sel
66 struct tc_u32_sel sel;
91 static __inline__ unsigned u32_hash_fold(u32 key, struct tc_u32_sel *sel)
93 unsigned h = key & sel->hmask;
112 int sel = 0;
121 n = ht->ht[sel];
125 struct tc_u32_key *key = n->sel.keys;
127 for (i = n->sel.nkeys; i>0; i--, key++) {
135 if (n->sel.flags&TC_U32_TERMINAL) {
158 sel = 0;
160 sel = ht->divisor&u32_hash_fold(*(u32*)(ptr+n->sel.hoff), &n->sel);
162 if (!(n->sel.flags&(TC_U32_VAROFFSET|TC_U32_OFFSET|TC_U32_EAT)))
165 if (n->sel.flags&(TC_U32_OFFSET|TC_U32_VAROFFSET)) {
166 off2 = n->sel.off + 3;
167 if (n->sel.flags&TC_U32_VAROFFSET)
168 off2 += ntohs(n->sel.offmask & *(u16*)(ptr+n->sel.offoff)) >>n->sel.offshift;
171 if (n->sel.flags&TC_U32_EAT) {
210 unsigned sel;
213 sel = TC_U32_HASH(handle);
214 if (sel > ht->divisor)
217 for (n = ht->ht[sel]; n; n = n->next)
583 memcpy(&n->sel, s, sizeof(*s) + s->nkeys*sizeof(struct tc_u32_key));
659 sizeof(n->sel) + n->sel.nkeys*sizeof(struct tc_u32_key),
660 &n->sel);