Lines Matching refs:core_dev
71 void ppc4xx_trng_probe(struct crypto4xx_core_device *core_dev) in ppc4xx_trng_probe() argument
73 struct crypto4xx_device *dev = core_dev->dev; in ppc4xx_trng_probe()
98 core_dev->trng = rng; in ppc4xx_trng_probe()
101 err = devm_hwrng_register(core_dev->device, core_dev->trng); in ppc4xx_trng_probe()
104 dev_err(core_dev->device, "failed to register hwrng (%d).\n", in ppc4xx_trng_probe()
114 core_dev->trng = NULL; in ppc4xx_trng_probe()
117 void ppc4xx_trng_remove(struct crypto4xx_core_device *core_dev) in ppc4xx_trng_remove() argument
119 if (core_dev && core_dev->trng) { in ppc4xx_trng_remove()
120 struct crypto4xx_device *dev = core_dev->dev; in ppc4xx_trng_remove()
122 devm_hwrng_unregister(core_dev->device, core_dev->trng); in ppc4xx_trng_remove()
125 kfree(core_dev->trng); in ppc4xx_trng_remove()