Lines Matching full:rng
43 struct hwrng rng; member
47 #define to_rng_priv(rng) container_of(rng, struct iproc_rng200_dev, rng) argument
71 /* Reset RNG and RBG */ in iproc_rng200_restart()
91 static int iproc_rng200_read(struct hwrng *rng, void *buf, size_t max, in iproc_rng200_read() argument
94 struct iproc_rng200_dev *priv = to_rng_priv(rng); in iproc_rng200_read()
106 /* Is RNG sane? If not, reset it. */ in iproc_rng200_read()
152 static int iproc_rng200_init(struct hwrng *rng) in iproc_rng200_init() argument
154 struct iproc_rng200_dev *priv = to_rng_priv(rng); in iproc_rng200_init()
161 static void iproc_rng200_cleanup(struct hwrng *rng) in iproc_rng200_cleanup() argument
163 struct iproc_rng200_dev *priv = to_rng_priv(rng); in iproc_rng200_cleanup()
181 dev_err(dev, "failed to remap rng regs\n"); in iproc_rng200_probe()
185 priv->rng.name = "iproc-rng200"; in iproc_rng200_probe()
186 priv->rng.read = iproc_rng200_read; in iproc_rng200_probe()
187 priv->rng.init = iproc_rng200_init; in iproc_rng200_probe()
188 priv->rng.cleanup = iproc_rng200_cleanup; in iproc_rng200_probe()
191 ret = devm_hwrng_register(dev, &priv->rng); in iproc_rng200_probe()