Lines Matching refs:f

76 	struct tcindex_filter *f;  in lookup()  local
82 for (f = p->h[key % p->hash]; f; f = f->next) { in lookup()
83 if (f->key == key) in lookup()
84 return &f->result; in lookup()
94 struct tcindex_filter_result *f; in tcindex_classify() local
98 f = lookup(p,(skb->tc_index & p->mask) >> p->shift); in tcindex_classify()
99 if (!f) { in tcindex_classify()
108 *res = f->res; in tcindex_classify()
111 if (f->police) { in tcindex_classify()
114 result = tcf_police(skb,f->police); in tcindex_classify()
136 static void tcindex_put(struct tcf_proto *tp, unsigned long f) in tcindex_put() argument
138 DPRINTK("tcindex_put(tp %p,f 0x%lx)\n",tp,f); in tcindex_put()
169 struct tcindex_filter *f = NULL; in __tcindex_delete() local
172 DPRINTK("tcindex_delete(tp %p,arg 0x%lx),p %p,f %p\n",tp,arg,p,f); in __tcindex_delete()
187 f = *walk; in __tcindex_delete()
190 *walk = f->next; in __tcindex_delete()
200 if (f) in __tcindex_delete()
201 kfree(f); in __tcindex_delete()
225 struct tcindex_filter *f; in tcindex_change() local
350 f = kmalloc(sizeof(struct tcindex_filter),GFP_KERNEL); in tcindex_change()
351 if (!f) in tcindex_change()
353 f->key = handle; in tcindex_change()
354 f->result = new_filter_result; in tcindex_change()
355 f->next = NULL; in tcindex_change()
359 *walk = f; in tcindex_change()
367 struct tcindex_filter *f,*next; in tcindex_walk() local
389 for (f = p->h[i]; f; f = next) { in tcindex_walk()
390 next = f->next; in tcindex_walk()
392 if (walker->fn(tp,(unsigned long) &f->result, in tcindex_walk()
455 struct tcindex_filter *f; in tcindex_dump() local
460 for (f = p->h[i]; !t->tcm_handle && f; in tcindex_dump()
461 f = f->next) { in tcindex_dump()
462 if (&f->result == r) in tcindex_dump()
463 t->tcm_handle = f->key; in tcindex_dump()