Lines Matching full:rng
3 * RNG driver for Freescale RNGA
11 * This driver is based on other RNG drivers.
56 struct hwrng rng; member
61 static int mxc_rnga_data_present(struct hwrng *rng, int wait) in mxc_rnga_data_present() argument
64 struct mxc_rng *mxc_rng = container_of(rng, struct mxc_rng, rng); in mxc_rnga_data_present()
77 static int mxc_rnga_data_read(struct hwrng *rng, u32 * data) in mxc_rnga_data_read() argument
81 struct mxc_rng *mxc_rng = container_of(rng, struct mxc_rng, rng); in mxc_rnga_data_read()
100 static int mxc_rnga_init(struct hwrng *rng) in mxc_rnga_init() argument
103 struct mxc_rng *mxc_rng = container_of(rng, struct mxc_rng, rng); in mxc_rnga_init()
123 static void mxc_rnga_cleanup(struct hwrng *rng) in mxc_rnga_cleanup() argument
126 struct mxc_rng *mxc_rng = container_of(rng, struct mxc_rng, rng); in mxc_rnga_cleanup()
144 mxc_rng->rng.name = "mxc-rnga"; in mxc_rnga_probe()
145 mxc_rng->rng.init = mxc_rnga_init; in mxc_rnga_probe()
146 mxc_rng->rng.cleanup = mxc_rnga_cleanup; in mxc_rnga_probe()
147 mxc_rng->rng.data_present = mxc_rnga_data_present; in mxc_rnga_probe()
148 mxc_rng->rng.data_read = mxc_rnga_data_read; in mxc_rnga_probe()
166 err = hwrng_register(&mxc_rng->rng); in mxc_rnga_probe()
183 hwrng_unregister(&mxc_rng->rng); in mxc_rnga_remove()