Lines Matching refs:alg
27 static int crypto_acomp_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_acomp_report() argument
38 static int crypto_acomp_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_acomp_report() argument
44 static void crypto_acomp_show(struct seq_file *m, struct crypto_alg *alg)
47 static void crypto_acomp_show(struct seq_file *m, struct crypto_alg *alg) in crypto_acomp_show() argument
55 struct acomp_alg *alg = crypto_acomp_alg(acomp); in crypto_acomp_exit_tfm() local
57 alg->exit(acomp); in crypto_acomp_exit_tfm()
63 struct acomp_alg *alg = crypto_acomp_alg(acomp); in crypto_acomp_init_tfm() local
68 acomp->compress = alg->compress; in crypto_acomp_init_tfm()
69 acomp->decompress = alg->decompress; in crypto_acomp_init_tfm()
70 acomp->dst_free = alg->dst_free; in crypto_acomp_init_tfm()
71 acomp->reqsize = alg->reqsize; in crypto_acomp_init_tfm()
73 if (alg->exit) in crypto_acomp_init_tfm()
76 if (alg->init) in crypto_acomp_init_tfm()
77 return alg->init(acomp); in crypto_acomp_init_tfm()
82 static unsigned int crypto_acomp_extsize(struct crypto_alg *alg) in crypto_acomp_extsize() argument
84 int extsize = crypto_alg_extsize(alg); in crypto_acomp_extsize()
86 if (alg->cra_type != &crypto_acomp_type) in crypto_acomp_extsize()
150 int crypto_register_acomp(struct acomp_alg *alg) in crypto_register_acomp() argument
152 struct crypto_alg *base = &alg->base; in crypto_register_acomp()
162 void crypto_unregister_acomp(struct acomp_alg *alg) in crypto_unregister_acomp() argument
164 crypto_unregister_alg(&alg->base); in crypto_unregister_acomp()