Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/char/hw_random/
Dcore.c31 static struct hwrng *current_rng; variable
97 current_rng = rng; in set_current_rng()
114 if (!current_rng) in drop_current_rng()
118 kref_put(&current_rng->ref, cleanup_rng); in drop_current_rng()
119 current_rng = NULL; in drop_current_rng()
125 if (current_rng) in get_current_rng_nolock()
126 kref_get(&current_rng->ref); in get_current_rng_nolock()
128 return current_rng; in get_current_rng_nolock()
325 ret = ((new_rng == current_rng) ? 0 : set_current_rng(new_rng)); in enable_best_rng()
343 old_rng = current_rng; in rng_current_store()
[all …]