Lines Matching refs:ipcd
40 struct ipcomp_data *ipcd = x->data; in ipcomp_decompress() local
45 struct crypto_comp *tfm = *this_cpu_ptr(ipcd->tfms); in ipcomp_decompress()
127 struct ipcomp_data *ipcd = x->data; in ipcomp_compress() local
137 tfm = *this_cpu_ptr(ipcd->tfms); in ipcomp_compress()
162 struct ipcomp_data *ipcd = x->data; in ipcomp_output() local
164 if (skb->len < ipcd->threshold) { in ipcomp_output()
309 static void ipcomp_free_data(struct ipcomp_data *ipcd) in ipcomp_free_data() argument
311 if (ipcd->tfms) in ipcomp_free_data()
312 ipcomp_free_tfms(ipcd->tfms); in ipcomp_free_data()
318 struct ipcomp_data *ipcd = x->data; in ipcomp_destroy() local
319 if (!ipcd) in ipcomp_destroy()
323 ipcomp_free_data(ipcd); in ipcomp_destroy()
325 kfree(ipcd); in ipcomp_destroy()
332 struct ipcomp_data *ipcd; in ipcomp_init_state() local
347 ipcd = kzalloc(sizeof(*ipcd), GFP_KERNEL); in ipcomp_init_state()
348 if (!ipcd) in ipcomp_init_state()
355 ipcd->tfms = ipcomp_alloc_tfms(x->calg->alg_name); in ipcomp_init_state()
356 if (!ipcd->tfms) in ipcomp_init_state()
362 ipcd->threshold = calg_desc->uinfo.comp.threshold; in ipcomp_init_state()
363 x->data = ipcd; in ipcomp_init_state()
369 ipcomp_free_data(ipcd); in ipcomp_init_state()
371 kfree(ipcd); in ipcomp_init_state()