H A D | meson-rng.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 26 int (*read)(struct hwrng *rng, void *buf, size_t max, bool wait); 31 struct hwrng rng; member 35 static int meson_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) in meson_rng_read() argument 38 container_of(rng, struct meson_rng_data, rng); in meson_rng_read() 40 *(u32 *)buf = readl_relaxed(data->base + RNG_DATA); in meson_rng_read() 54 return -EBUSY; in meson_rng_wait_status() 59 static int meson_s4_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) in meson_s4_rng_read() argument 62 container_of(rng, struct meson_rng_data, rng); in meson_s4_rng_read() 64 void __iomem *cfg_addr = data->base + RNG_S4_CFG; in meson_s4_rng_read() [all …]
|