Lines Matching refs:alg
32 static int crypto_acomp_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_acomp_report() argument
47 static int crypto_acomp_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_acomp_report() argument
53 static void crypto_acomp_show(struct seq_file *m, struct crypto_alg *alg)
56 static void crypto_acomp_show(struct seq_file *m, struct crypto_alg *alg) in crypto_acomp_show() argument
64 struct acomp_alg *alg = crypto_acomp_alg(acomp); in crypto_acomp_exit_tfm() local
66 alg->exit(acomp); in crypto_acomp_exit_tfm()
72 struct acomp_alg *alg = crypto_acomp_alg(acomp); in crypto_acomp_init_tfm() local
77 acomp->compress = alg->compress; in crypto_acomp_init_tfm()
78 acomp->decompress = alg->decompress; in crypto_acomp_init_tfm()
79 acomp->dst_free = alg->dst_free; in crypto_acomp_init_tfm()
80 acomp->reqsize = alg->reqsize; in crypto_acomp_init_tfm()
82 if (alg->exit) in crypto_acomp_init_tfm()
85 if (alg->init) in crypto_acomp_init_tfm()
86 return alg->init(acomp); in crypto_acomp_init_tfm()
91 static unsigned int crypto_acomp_extsize(struct crypto_alg *alg) in crypto_acomp_extsize() argument
93 int extsize = crypto_alg_extsize(alg); in crypto_acomp_extsize()
95 if (alg->cra_type != &crypto_acomp_type) in crypto_acomp_extsize()
151 int crypto_register_acomp(struct acomp_alg *alg) in crypto_register_acomp() argument
153 struct crypto_alg *base = &alg->base; in crypto_register_acomp()
163 int crypto_unregister_acomp(struct acomp_alg *alg) in crypto_unregister_acomp() argument
165 return crypto_unregister_alg(&alg->base); in crypto_unregister_acomp()