Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/char/hw_random/ !
Dcore.c33 static struct hwrng *current_rng; variable
101 current_rng = rng; in set_current_rng()
118 if (!current_rng) in drop_current_rng()
122 kref_put(&current_rng->ref, cleanup_rng); in drop_current_rng()
123 current_rng = NULL; in drop_current_rng()
129 if (current_rng) in get_current_rng_nolock()
130 kref_get(&current_rng->ref); in get_current_rng_nolock()
132 return current_rng; in get_current_rng_nolock()
331 ret = ((new_rng == current_rng) ? 0 : set_current_rng(new_rng)); in enable_best_rng()
349 old_rng = current_rng; in rng_current_store()
[all …]