Lines Matching defs:rng
83 #define to_trng(p) container_of(p, struct starfive_trng, rng)
101 struct hwrng rng;
173 static int starfive_trng_init(struct hwrng *rng)
175 struct starfive_trng *trng = to_trng(rng);
234 static void starfive_trng_cleanup(struct hwrng *rng)
236 struct starfive_trng *trng = to_trng(rng);
245 static int starfive_trng_read(struct hwrng *rng, void *buf, size_t max, bool wait)
247 struct starfive_trng *trng = to_trng(rng);
325 trng->rng.name = dev_driver_string(&pdev->dev);
326 trng->rng.init = starfive_trng_init;
327 trng->rng.cleanup = starfive_trng_cleanup;
328 trng->rng.read = starfive_trng_read;
338 ret = devm_hwrng_register(&pdev->dev, &trng->rng);