Lines Matching refs:ipcd
40 struct ipcomp_data *ipcd = x->data; in ipcomp_decompress() local
46 struct crypto_comp *tfm = *per_cpu_ptr(ipcd->tfms, cpu); in ipcomp_decompress()
136 struct ipcomp_data *ipcd = x->data; in ipcomp_compress() local
146 tfm = *this_cpu_ptr(ipcd->tfms); in ipcomp_compress()
171 struct ipcomp_data *ipcd = x->data; in ipcomp_output() local
173 if (skb->len < ipcd->threshold) { in ipcomp_output()
317 static void ipcomp_free_data(struct ipcomp_data *ipcd) in ipcomp_free_data() argument
319 if (ipcd->tfms) in ipcomp_free_data()
320 ipcomp_free_tfms(ipcd->tfms); in ipcomp_free_data()
326 struct ipcomp_data *ipcd = x->data; in ipcomp_destroy() local
327 if (!ipcd) in ipcomp_destroy()
331 ipcomp_free_data(ipcd); in ipcomp_destroy()
333 kfree(ipcd); in ipcomp_destroy()
340 struct ipcomp_data *ipcd; in ipcomp_init_state() local
351 ipcd = kzalloc(sizeof(*ipcd), GFP_KERNEL); in ipcomp_init_state()
352 if (!ipcd) in ipcomp_init_state()
359 ipcd->tfms = ipcomp_alloc_tfms(x->calg->alg_name); in ipcomp_init_state()
360 if (!ipcd->tfms) in ipcomp_init_state()
366 ipcd->threshold = calg_desc->uinfo.comp.threshold; in ipcomp_init_state()
367 x->data = ipcd; in ipcomp_init_state()
373 ipcomp_free_data(ipcd); in ipcomp_init_state()
375 kfree(ipcd); in ipcomp_init_state()