Searched refs:rng_ops (Results 1 – 3 of 3) sorted by relevance
71 struct ath_softc *sc = container_of(rng, struct ath_softc, rng_ops); in ath9k_rng_read()100 if (sc->rng_ops.read) in ath9k_rng_start()108 sc->rng_ops.name = sc->rng_name; in ath9k_rng_start()109 sc->rng_ops.read = ath9k_rng_read; in ath9k_rng_start()110 sc->rng_ops.quality = 320; in ath9k_rng_start()112 if (devm_hwrng_register(sc->dev, &sc->rng_ops)) in ath9k_rng_start()113 sc->rng_ops.read = NULL; in ath9k_rng_start()118 if (sc->rng_ops.read) { in ath9k_rng_stop()119 devm_hwrng_unregister(sc->dev, &sc->rng_ops); in ath9k_rng_stop()120 sc->rng_ops.read = NULL; in ath9k_rng_stop()
1075 struct hwrng rng_ops; member
41 struct hwrng rng_ops; member48 container_of(hwrng, struct timeriomem_rng_private, rng_ops); in timeriomem_rng_read()147 priv->rng_ops.quality = i; in timeriomem_rng_probe()150 priv->rng_ops.quality = pdata->quality; in timeriomem_rng_probe()158 priv->rng_ops.name = dev_name(&pdev->dev); in timeriomem_rng_probe()159 priv->rng_ops.read = timeriomem_rng_read; in timeriomem_rng_probe()165 err = devm_hwrng_register(&pdev->dev, &priv->rng_ops); in timeriomem_rng_probe()