Searched refs:rng_lock (Results 1 – 4 of 4) sorted by relevance
78 struct mutex rng_lock; member191 mutex_init(&dev->rng_lock); in chaoskey_probe()429 result = mutex_lock_interruptible(&dev->rng_lock); in chaoskey_read()432 mutex_unlock(&dev->rng_lock); in chaoskey_read()495 mutex_lock(&dev->rng_lock); in chaoskey_rng_read()499 mutex_unlock(&dev->rng_lock); in chaoskey_rng_read()
390 DEFINE_SPINLOCK(rng_lock);396 spin_lock(&rng_lock); in prandom_u32_below()398 spin_unlock(&rng_lock); in prandom_u32_below()
115 struct mutex rng_lock; member
1174 mutex_lock(&dev->core_dev->rng_lock); in crypto4xx_prng_generate()1176 mutex_unlock(&dev->core_dev->rng_lock); in crypto4xx_prng_generate()1405 mutex_init(&core_dev->rng_lock); in crypto4xx_probe()1483 mutex_destroy(&core_dev->rng_lock); in crypto4xx_remove()