Home
last modified time | relevance | path

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

/drivers/char/hw_random/
Dtx4939-rng.c67 struct tx4939_rng *rngdev = container_of(rng, struct tx4939_rng, rng); in tx4939_rng_data_present() local
70 if (rngdev->data_avail) in tx4939_rng_data_present()
71 return rngdev->data_avail; in tx4939_rng_data_present()
74 if (!(read_rng(rngdev->base, TX4939_RNG_RCSR) in tx4939_rng_data_present()
76 rngdev->databuf[0] = in tx4939_rng_data_present()
77 read_rng(rngdev->base, TX4939_RNG_ROR(0)); in tx4939_rng_data_present()
78 rngdev->databuf[1] = in tx4939_rng_data_present()
79 read_rng(rngdev->base, TX4939_RNG_ROR(1)); in tx4939_rng_data_present()
80 rngdev->databuf[2] = in tx4939_rng_data_present()
81 read_rng(rngdev->base, TX4939_RNG_ROR(2)); in tx4939_rng_data_present()
[all …]