Lines Matching defs:f
105 int inet_frags_init(struct inet_frags *f)
107 f->frags_cachep = kmem_cache_create(f->frags_cache_name, f->qsize, 0, 0,
109 if (!f->frags_cachep)
112 refcount_set(&f->refcnt, 1);
113 init_completion(&f->completion);
118 void inet_frags_fini(struct inet_frags *f)
120 if (refcount_dec_and_test(&f->refcnt))
121 complete(&f->completion);
123 wait_for_completion(&f->completion);
125 kmem_cache_destroy(f->frags_cachep);
126 f->frags_cachep = NULL;
157 struct inet_frags *f;
169 f = fqdir->f;
170 if (refcount_dec_and_test(&f->refcnt))
171 complete(&f->completion);
189 int fqdir_init(struct fqdir **fqdirp, struct inet_frags *f, struct net *net)
196 fqdir->f = f;
198 res = rhashtable_init(&fqdir->rhashtable, &fqdir->f->rhash_params);
203 refcount_inc(&f->refcnt);
245 fqdir->f->rhash_params);
259 struct inet_frags *f = q->fqdir->f;
261 if (f->destructor)
262 f->destructor(q);
263 kmem_cache_free(f->frags_cachep, q);
293 struct inet_frags *f;
304 f = fqdir->f;
306 sum = sum_truesize + f->qsize;
315 struct inet_frags *f,
320 q = kmem_cache_zalloc(f->frags_cachep, GFP_ATOMIC);
325 f->constructor(q, arg);
326 add_frag_mem_limit(fqdir, f->qsize);
328 timer_setup(&q->timer, f->frag_expire, 0);
340 struct inet_frags *f = fqdir->f;
343 q = inet_frag_alloc(fqdir, f, arg);
351 &q->node, f->rhash_params);
376 prev = rhashtable_lookup(&fqdir->rhashtable, key, fqdir->f->rhash_params);