Lines Matching full:rng

22 /* enable rng */
31 struct hwrng rng; member
37 static inline struct bcm2835_rng_priv *to_rng_priv(struct hwrng *rng) in to_rng_priv() argument
39 return container_of(rng, struct bcm2835_rng_priv, rng); in to_rng_priv()
62 static int bcm2835_rng_read(struct hwrng *rng, void *buf, size_t max, in bcm2835_rng_read() argument
65 struct bcm2835_rng_priv *priv = to_rng_priv(rng); in bcm2835_rng_read()
85 static int bcm2835_rng_init(struct hwrng *rng) in bcm2835_rng_init() argument
87 struct bcm2835_rng_priv *priv = to_rng_priv(rng); in bcm2835_rng_init()
111 static void bcm2835_rng_cleanup(struct hwrng *rng) in bcm2835_rng_cleanup() argument
113 struct bcm2835_rng_priv *priv = to_rng_priv(rng); in bcm2835_rng_cleanup()
115 /* disable rng hardware */ in bcm2835_rng_cleanup()
131 { .compatible = "brcm,bcm2835-rng"},
132 { .compatible = "brcm,bcm-nsp-rng", .data = &nsp_rng_of_data },
133 { .compatible = "brcm,bcm5301x-rng", .data = &nsp_rng_of_data },
134 { .compatible = "brcm,bcm6368-rng"},
162 priv->rng.name = pdev->name; in bcm2835_rng_probe()
163 priv->rng.init = bcm2835_rng_init; in bcm2835_rng_probe()
164 priv->rng.read = bcm2835_rng_read; in bcm2835_rng_probe()
165 priv->rng.cleanup = bcm2835_rng_cleanup; in bcm2835_rng_probe()
172 /* Check for rng init function, execute it */ in bcm2835_rng_probe()
179 err = devm_hwrng_register(dev, &priv->rng); in bcm2835_rng_probe()
191 { .name = "bcm2835-rng" },
192 { .name = "bcm63xx-rng" },
199 .name = "bcm2835-rng",
208 MODULE_DESCRIPTION("BCM2835 Random Number Generator (RNG) driver");