Lines Matching full:rng
3 * Generic PowerPC 44x RNG driver
28 static int ppc4xx_trng_data_present(struct hwrng *rng, int wait) in ppc4xx_trng_data_present() argument
30 struct crypto4xx_device *dev = (void *)rng->priv; in ppc4xx_trng_data_present()
45 static int ppc4xx_trng_data_read(struct hwrng *rng, u32 *data) in ppc4xx_trng_data_read() argument
47 struct crypto4xx_device *dev = (void *)rng->priv; in ppc4xx_trng_data_read()
65 { .compatible = "ppc4xx-rng", },
66 { .compatible = "amcc,ppc460ex-rng", },
67 { .compatible = "amcc,ppc440epx-rng", },
75 struct hwrng *rng = NULL; in ppc4xx_trng_probe() local
90 rng = kzalloc(sizeof(*rng), GFP_KERNEL); in ppc4xx_trng_probe()
91 if (!rng) in ppc4xx_trng_probe()
94 rng->name = KBUILD_MODNAME; in ppc4xx_trng_probe()
95 rng->data_present = ppc4xx_trng_data_present; in ppc4xx_trng_probe()
96 rng->data_read = ppc4xx_trng_data_read; in ppc4xx_trng_probe()
97 rng->priv = (unsigned long) dev; in ppc4xx_trng_probe()
98 core_dev->trng = rng; in ppc4xx_trng_probe()
112 kfree(rng); in ppc4xx_trng_probe()