Lines Matching refs:rrng
75 struct crypto_report_rng rrng; in crypto_rng_report() local
77 memset(&rrng, 0, sizeof(rrng)); in crypto_rng_report()
79 strscpy(rrng.type, "rng", sizeof(rrng.type)); in crypto_rng_report()
81 rrng.seedsize = seedsize(alg); in crypto_rng_report()
83 return nla_put(skb, CRYPTOCFGA_REPORT_RNG, sizeof(rrng), &rrng); in crypto_rng_report()
99 struct crypto_stat_rng rrng; in crypto_rng_report_stat() local
103 memset(&rrng, 0, sizeof(rrng)); in crypto_rng_report_stat()
105 strscpy(rrng.type, "rng", sizeof(rrng.type)); in crypto_rng_report_stat()
107 rrng.stat_generate_cnt = atomic64_read(&istat->generate_cnt); in crypto_rng_report_stat()
108 rrng.stat_generate_tlen = atomic64_read(&istat->generate_tlen); in crypto_rng_report_stat()
109 rrng.stat_seed_cnt = atomic64_read(&istat->seed_cnt); in crypto_rng_report_stat()
110 rrng.stat_err_cnt = atomic64_read(&istat->err_cnt); in crypto_rng_report_stat()
112 return nla_put(skb, CRYPTOCFGA_STAT_RNG, sizeof(rrng), &rrng); in crypto_rng_report_stat()