Lines Matching refs:alg

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