Searched refs:current_rng (Results 1 - 1 of 1) sorted by relevance

/linux-master/drivers/char/hw_random/
H A Dcore.c33 static struct hwrng *current_rng; variable in typeref:struct:hwrng
39 /* Protects rng_list and current_rng */
101 current_rng = rng;
118 if (!current_rng)
122 kref_put(&current_rng->ref, cleanup_rng);
123 current_rng = NULL;
129 if (current_rng)
130 kref_get(&current_rng->ref);
132 return current_rng;
331 ret = ((new_rng == current_rng)
[all...]

Completed in 142 milliseconds