Searched refs:current_rng (Results 1 – 1 of 1) sorted by relevance
33 static struct hwrng *current_rng; variable101 current_rng = rng; in set_current_rng()118 if (!current_rng) in drop_current_rng()122 kref_put(¤t_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(¤t_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 …]