Lines Matching full:trng
26 /* TRNG Registers Offsets */
64 struct mutex lock; /* Protect access to TRNG device */
65 struct hwrng trng; member
118 /* TRNG core generate data in 16 bytes. Read twice to complete 32 bytes read */ in xtrng_readblock32()
282 .cra_driver_name = "xilinx-trng",
296 rng = container_of(hwrng, struct xilinx_rng, trng); in xtrng_hwrng_trng_read()
316 static int xtrng_hwrng_register(struct hwrng *trng) in xtrng_hwrng_register() argument
320 trng->name = "Xilinx Versal Crypto Engine TRNG"; in xtrng_hwrng_register()
321 trng->read = xtrng_hwrng_trng_read; in xtrng_hwrng_register()
323 ret = hwrng_register(trng); in xtrng_hwrng_register()
325 pr_err("Fail to register the TRNG\n"); in xtrng_hwrng_register()
330 static void xtrng_hwrng_unregister(struct hwrng *trng) in xtrng_hwrng_unregister() argument
332 hwrng_unregister(trng); in xtrng_hwrng_unregister()
366 dev_err(&pdev->dev, "TRNG Seed fail\n"); in xtrng_probe()
378 ret = xtrng_hwrng_register(&rng->trng); in xtrng_probe()
400 xtrng_hwrng_unregister(&rng->trng); in xtrng_remove()
411 { .compatible = "xlnx,versal-trng", },
419 .name = "xlnx,versal-trng",