Lines Matching refs:alg
26 static inline struct acomp_alg *__crypto_acomp_alg(struct crypto_alg *alg) in __crypto_acomp_alg() argument
28 return container_of(alg, struct acomp_alg, calg.base); in __crypto_acomp_alg()
37 struct sk_buff *skb, struct crypto_alg *alg) in crypto_acomp_report() argument
48 static void crypto_acomp_show(struct seq_file *m, struct crypto_alg *alg)
51 static void crypto_acomp_show(struct seq_file *m, struct crypto_alg *alg) in crypto_acomp_show() argument
59 struct acomp_alg *alg = crypto_acomp_alg(acomp); in crypto_acomp_exit_tfm() local
61 alg->exit(acomp); in crypto_acomp_exit_tfm()
67 struct acomp_alg *alg = crypto_acomp_alg(acomp); in crypto_acomp_init_tfm() local
72 acomp->compress = alg->compress; in crypto_acomp_init_tfm()
73 acomp->decompress = alg->decompress; in crypto_acomp_init_tfm()
74 acomp->dst_free = alg->dst_free; in crypto_acomp_init_tfm()
75 acomp->reqsize = alg->reqsize; in crypto_acomp_init_tfm()
77 if (alg->exit) in crypto_acomp_init_tfm()
80 if (alg->init) in crypto_acomp_init_tfm()
81 return alg->init(acomp); in crypto_acomp_init_tfm()
86 static unsigned int crypto_acomp_extsize(struct crypto_alg *alg) in crypto_acomp_extsize() argument
88 int extsize = crypto_alg_extsize(alg); in crypto_acomp_extsize()
90 if (alg->cra_type != &crypto_acomp_type) in crypto_acomp_extsize()
156 void comp_prepare_alg(struct comp_alg_common *alg) in comp_prepare_alg() argument
158 struct crypto_alg *base = &alg->base; in comp_prepare_alg()
163 int crypto_register_acomp(struct acomp_alg *alg) in crypto_register_acomp() argument
165 struct crypto_alg *base = &alg->calg.base; in crypto_register_acomp()
167 comp_prepare_alg(&alg->calg); in crypto_register_acomp()
176 void crypto_unregister_acomp(struct acomp_alg *alg) in crypto_unregister_acomp() argument
178 crypto_unregister_alg(&alg->base); in crypto_unregister_acomp()