Lines Matching full:rng
3 * PIC32 RNG driver
38 struct hwrng rng; member
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()
96 priv->rng.name = pdev->name; in pic32_rng_probe()
97 priv->rng.read = pic32_rng_read; in pic32_rng_probe()
99 ret = hwrng_register(&priv->rng); in pic32_rng_probe()
114 struct pic32_rng *rng = platform_get_drvdata(pdev); in pic32_rng_remove() local
116 hwrng_unregister(&rng->rng); in pic32_rng_remove()
117 writel(0, rng->base + RNGCON); in pic32_rng_remove()
118 clk_disable_unprepare(rng->clk); in pic32_rng_remove()
123 { .compatible = "microchip,pic32mzda-rng", },
132 .name = "pic32-rng",
141 MODULE_DESCRIPTION("Microchip PIC32 RNG Driver");