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