Home
last modified time | relevance | path

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

/linux-2.4.37.9/drivers/char/
Damd768_rng.c78 static struct semaphore rng_open_sem; /* Semaphore for serializing rng_open/release */ variable
105 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()
Di810_rng.c92 static struct semaphore rng_open_sem; /* Semaphore for serializing rng_open/release */ variable
191 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()