Lines Matching full:trng
3 * sun8i-ce-trng.c - hardware cryptographic offloader for
8 * This file handle the TRNG
17 * Note that according to the algorithm ID, 2 versions of the TRNG exists,
35 ce = container_of(rng, struct sun8i_ce_dev, trng);
68 common = ce->variant->trng | CE_COMM_INT;
84 err = sun8i_ce_run_task(ce, 3, "TRNG");
105 if (ce->variant->trng == CE_ID_NOTSUPP) {
106 dev_info(ce->dev, "TRNG not supported\n");
109 ce->trng.name = "sun8i Crypto Engine TRNG";
110 ce->trng.read = sun8i_ce_trng_read;
112 ret = hwrng_register(&ce->trng);
114 dev_err(ce->dev, "Fail to register the TRNG\n");
120 if (ce->variant->trng == CE_ID_NOTSUPP)
122 hwrng_unregister(&ce->trng);