Lines Matching refs:alg
27 static int crypto_report_cipher(struct sk_buff *skb, struct crypto_alg *alg)
38 static int crypto_report_comp(struct sk_buff *skb, struct crypto_alg *alg)
49 static int crypto_reportstat_one(struct crypto_alg *alg,
55 strscpy(ualg->cru_name, alg->cra_name, sizeof(ualg->cru_name));
56 strscpy(ualg->cru_driver_name, alg->cra_driver_name,
58 strscpy(ualg->cru_module_name, module_name(alg->cra_module),
63 ualg->cru_flags = alg->cra_flags;
64 ualg->cru_refcnt = refcount_read(&alg->cra_refcnt);
66 if (nla_put_u32(skb, CRYPTOCFGA_PRIORITY_VAL, alg->cra_priority))
68 if (alg->cra_flags & CRYPTO_ALG_LARVAL) {
78 if (alg->cra_type && alg->cra_type->report_stat) {
79 if (alg->cra_type->report_stat(skb, alg))
84 switch (alg->cra_flags & (CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_LARVAL)) {
86 if (crypto_report_cipher(skb, alg))
90 if (crypto_report_comp(skb, alg))
94 pr_err("ERROR: Unhandled alg %d in %s\n",
95 alg->cra_flags & (CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_LARVAL),
106 static int crypto_reportstat_alg(struct crypto_alg *alg,
124 err = crypto_reportstat_one(alg, ualg, skb);
141 struct crypto_alg *alg;
149 alg = crypto_alg_match(p, 0);
150 if (!alg)
163 err = crypto_reportstat_alg(alg, &info);
166 crypto_mod_put(alg);