Lines Matching refs:alg
26 static inline struct acomp_alg *__crypto_acomp_alg(struct crypto_alg *alg)
28 return container_of(alg, struct acomp_alg, calg.base);
37 struct sk_buff *skb, struct crypto_alg *alg)
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)
59 struct acomp_alg *alg = crypto_acomp_alg(acomp);
61 alg->exit(acomp);
67 struct acomp_alg *alg = crypto_acomp_alg(acomp);
72 acomp->compress = alg->compress;
73 acomp->decompress = alg->decompress;
74 acomp->dst_free = alg->dst_free;
75 acomp->reqsize = alg->reqsize;
77 if (alg->exit)
80 if (alg->init)
81 return alg->init(acomp);
86 static unsigned int crypto_acomp_extsize(struct crypto_alg *alg)
88 int extsize = crypto_alg_extsize(alg);
90 if (alg->cra_type != &crypto_acomp_type)
97 struct crypto_alg *alg)
99 struct comp_alg_common *calg = __crypto_comp_alg_common(alg);
116 int crypto_acomp_report_stat(struct sk_buff *skb, struct crypto_alg *alg)
118 return __crypto_acomp_report_stat(skb, alg);
185 void comp_prepare_alg(struct comp_alg_common *alg)
187 struct crypto_istat_compress *istat = comp_get_stat(alg);
188 struct crypto_alg *base = &alg->base;
196 int crypto_register_acomp(struct acomp_alg *alg)
198 struct crypto_alg *base = &alg->calg.base;
200 comp_prepare_alg(&alg->calg);
209 void crypto_unregister_acomp(struct acomp_alg *alg)
211 crypto_unregister_alg(&alg->base);