Searched refs:rng_open_sem (Results 1 – 2 of 2) sorted by relevance
78 static struct semaphore rng_open_sem; /* Semaphore for serializing rng_open/release */ variable105 if (down_trylock (&rng_open_sem)) in rng_dev_open()108 if (down_interruptible (&rng_open_sem)) in rng_dev_open()117 up(&rng_open_sem); in rng_dev_release()263 init_MUTEX (&rng_open_sem); in rng_init()
92 static struct semaphore rng_open_sem; /* Semaphore for serializing rng_open/release */ variable191 if (down_trylock (&rng_open_sem)) in rng_dev_open()194 if (down_interruptible (&rng_open_sem)) in rng_dev_open()200 up (&rng_open_sem); in rng_dev_open()211 up (&rng_open_sem); in rng_dev_release()366 init_MUTEX (&rng_open_sem); in rng_init()