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()
97 struct crypto_alg *alg) in __crypto_acomp_report_stat() argument
99 struct comp_alg_common *calg = __crypto_comp_alg_common(alg); in __crypto_acomp_report_stat()
116 int crypto_acomp_report_stat(struct sk_buff *skb, struct crypto_alg *alg) in crypto_acomp_report_stat() argument
118 return __crypto_acomp_report_stat(skb, alg); in crypto_acomp_report_stat()
185 void comp_prepare_alg(struct comp_alg_common *alg) in comp_prepare_alg() argument
187 struct crypto_istat_compress *istat = comp_get_stat(alg); in comp_prepare_alg()
188 struct crypto_alg *base = &alg->base; in comp_prepare_alg()
196 int crypto_register_acomp(struct acomp_alg *alg) in crypto_register_acomp() argument
198 struct crypto_alg *base = &alg->calg.base; in crypto_register_acomp()
200 comp_prepare_alg(&alg->calg); in crypto_register_acomp()
209 void crypto_unregister_acomp(struct acomp_alg *alg) in crypto_unregister_acomp() argument
211 crypto_unregister_alg(&alg->base); in crypto_unregister_acomp()