Lines Matching full:rng
3 * PIC32 RNG driver
30 struct hwrng rng; member
40 static int pic32_rng_init(struct hwrng *rng) in pic32_rng_init() argument
42 struct pic32_rng *priv = container_of(rng, struct pic32_rng, rng); in pic32_rng_init()
49 static int pic32_rng_read(struct hwrng *rng, void *buf, size_t max, in pic32_rng_read() argument
52 struct pic32_rng *priv = container_of(rng, struct pic32_rng, rng); in pic32_rng_read()
70 static void pic32_rng_cleanup(struct hwrng *rng) in pic32_rng_cleanup() argument
72 struct pic32_rng *priv = container_of(rng, struct pic32_rng, rng); in pic32_rng_cleanup()
94 priv->rng.name = pdev->name; in pic32_rng_probe()
95 priv->rng.init = pic32_rng_init; in pic32_rng_probe()
96 priv->rng.read = pic32_rng_read; in pic32_rng_probe()
97 priv->rng.cleanup = pic32_rng_cleanup; in pic32_rng_probe()
99 return devm_hwrng_register(&pdev->dev, &priv->rng); in pic32_rng_probe()
103 { .compatible = "microchip,pic32mzda-rng", },
111 .name = "pic32-rng",
120 MODULE_DESCRIPTION("Microchip PIC32 RNG Driver");