Home
last modified time | relevance | path

Searched refs:rng_ops (Results 1 – 3 of 3) sorted by relevance

/linux-5.19.10/drivers/net/wireless/ath/ath9k/
Drng.c71 struct ath_softc *sc = container_of(rng, struct ath_softc, rng_ops); in ath9k_rng_read()
99 if (sc->rng_ops.read) in ath9k_rng_start()
107 sc->rng_ops.name = sc->rng_name; in ath9k_rng_start()
108 sc->rng_ops.read = ath9k_rng_read; in ath9k_rng_start()
109 sc->rng_ops.quality = 320; in ath9k_rng_start()
111 if (devm_hwrng_register(sc->dev, &sc->rng_ops)) in ath9k_rng_start()
112 sc->rng_ops.read = NULL; in ath9k_rng_start()
117 if (sc->rng_ops.read) { in ath9k_rng_stop()
118 devm_hwrng_unregister(sc->dev, &sc->rng_ops); in ath9k_rng_stop()
119 sc->rng_ops.read = NULL; in ath9k_rng_stop()
Dath9k.h1074 struct hwrng rng_ops; member
/linux-5.19.10/drivers/char/hw_random/
Dtimeriomem-rng.c41 struct hwrng rng_ops; member
48 container_of(hwrng, struct timeriomem_rng_private, rng_ops); in timeriomem_rng_read()
147 priv->rng_ops.quality = i; in timeriomem_rng_probe()
149 priv->rng_ops.quality = 0; in timeriomem_rng_probe()
152 priv->rng_ops.quality = pdata->quality; in timeriomem_rng_probe()
160 priv->rng_ops.name = dev_name(&pdev->dev); in timeriomem_rng_probe()
161 priv->rng_ops.read = timeriomem_rng_read; in timeriomem_rng_probe()
172 err = devm_hwrng_register(&pdev->dev, &priv->rng_ops); in timeriomem_rng_probe()