Home
last modified time | relevance | path

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

/linux/arch/powerpc/platforms/powernv/
H A Drng.c24 struct pnv_rng { struct
30 static DEFINE_PER_CPU(struct pnv_rng *, pnv_rng); argument
32 static unsigned long rng_whiten(struct pnv_rng *rng, unsigned long val) in rng_whiten()
86 struct pnv_rng *rng; in pnv_get_random_long()
89 rng = get_cpu_var(pnv_rng); in pnv_get_random_long()
93 rng = raw_cpu_read(pnv_rng); in pnv_get_random_long()
100 static __init void rng_init_per_cpu(struct pnv_rng *rng, in rng_init_per_cpu()
110 if (per_cpu(pnv_rng, cpu) == NULL || in rng_init_per_cpu()
112 per_cpu(pnv_rng, cpu) = rng; in rng_init_per_cpu()
119 struct pnv_rng *rng; in rng_create()