Searched refs:rnd_state (Results 1 - 11 of 11) sorted by relevance

/linux-4.4.14/lib/
H A Drandom32.c50 static DEFINE_PER_CPU(struct rnd_state, net_rand_state);
59 u32 prandom_u32_state(struct rnd_state *state) prandom_u32_state()
80 struct rnd_state *state = &get_cpu_var(net_rand_state); prandom_u32()
100 void prandom_bytes_state(struct rnd_state *state, void *buf, size_t bytes) prandom_bytes_state()
128 struct rnd_state *state = &get_cpu_var(net_rand_state); prandom_bytes()
135 static void prandom_warmup(struct rnd_state *state) prandom_warmup()
160 static void prandom_seed_early(struct rnd_state *state, u32 seed, prandom_seed_early()
185 struct rnd_state *state = &per_cpu(net_rand_state, i); for_each_possible_cpu()
204 struct rnd_state *state = &per_cpu(net_rand_state, i); for_each_possible_cpu()
241 void prandom_seed_full_state(struct rnd_state __percpu *pcpu_state) prandom_seed_full_state()
246 struct rnd_state *state = per_cpu_ptr(pcpu_state, i); for_each_possible_cpu()
429 struct rnd_state state; prandom_state_selftest()
444 struct rnd_state state; prandom_state_selftest()
H A Dinterval_tree_test.c15 static struct rnd_state rnd;
H A Drbtree_test.c22 static struct rnd_state rnd;
H A Dtest_bpf.c134 struct rnd_state rnd; bpf_fill_maxinsns3()
/linux-4.4.14/include/linux/
H A Drandom.h44 struct rnd_state { struct
48 u32 prandom_u32_state(struct rnd_state *state);
49 void prandom_bytes_state(struct rnd_state *state, void *buf, size_t nbytes);
50 void prandom_seed_full_state(struct rnd_state __percpu *pcpu_state);
85 static inline void prandom_seed_state(struct rnd_state *state, u64 seed) prandom_seed_state()
/linux-4.4.14/drivers/mtd/tests/
H A Dpagetest.c51 static struct rnd_state rnd_state; variable in typeref:struct:rnd_state
57 prandom_bytes_state(&rnd_state, writebuf, mtd->erasesize); write_eraseblock()
77 prandom_bytes_state(&rnd_state, writebuf, mtd->erasesize); verify_eraseblock()
98 struct rnd_state old_state = rnd_state; verify_eraseblock()
112 prandom_bytes_state(&rnd_state, boundary + pgsize, pgsize); verify_eraseblock()
118 rnd_state = old_state; verify_eraseblock()
226 prandom_bytes_state(&rnd_state, writebuf, pgsize); erasecrosstest()
251 prandom_bytes_state(&rnd_state, writebuf, pgsize); erasecrosstest()
300 prandom_bytes_state(&rnd_state, writebuf, pgsize); erasetest()
400 prandom_seed_state(&rnd_state, 1); mtd_pagetest_init()
418 prandom_seed_state(&rnd_state, 1); mtd_pagetest_init()
H A Dsubpagetest.c49 static struct rnd_state rnd_state; variable in typeref:struct:rnd_state
62 prandom_bytes_state(&rnd_state, writebuf, subpgsize); write_eraseblock()
76 prandom_bytes_state(&rnd_state, writebuf, subpgsize); write_eraseblock()
100 prandom_bytes_state(&rnd_state, writebuf, subpgsize * k); write_eraseblock2()
136 prandom_bytes_state(&rnd_state, writebuf, subpgsize); verify_eraseblock()
163 prandom_bytes_state(&rnd_state, writebuf, subpgsize); verify_eraseblock()
200 prandom_bytes_state(&rnd_state, writebuf, subpgsize * k); verify_eraseblock2()
343 prandom_seed_state(&rnd_state, 1); mtd_subpagetest_init()
359 prandom_seed_state(&rnd_state, 1); mtd_subpagetest_init()
385 prandom_seed_state(&rnd_state, 3); mtd_subpagetest_init()
403 prandom_seed_state(&rnd_state, 3); mtd_subpagetest_init()
H A Doobtest.c55 static struct rnd_state rnd_state; variable in typeref:struct:rnd_state
75 prandom_bytes_state(&rnd_state, writebuf, use_len_max * pgcnt); write_eraseblock()
185 prandom_bytes_state(&rnd_state, writebuf, use_len_max * pgcnt); verify_eraseblock()
277 prandom_bytes_state(&rnd_state, writebuf, len); verify_eraseblock_in_one_go()
408 prandom_seed_state(&rnd_state, 1); mtd_oobtest_init()
413 prandom_seed_state(&rnd_state, 1); mtd_oobtest_init()
428 prandom_seed_state(&rnd_state, 3); mtd_oobtest_init()
434 prandom_seed_state(&rnd_state, 3); mtd_oobtest_init()
466 prandom_seed_state(&rnd_state, 5); mtd_oobtest_init()
477 prandom_seed_state(&rnd_state, 5); mtd_oobtest_init()
636 prandom_seed_state(&rnd_state, 11); mtd_oobtest_init()
645 prandom_bytes_state(&rnd_state, writebuf, sz * cnt); mtd_oobtest_init()
671 prandom_seed_state(&rnd_state, 11); mtd_oobtest_init()
676 prandom_bytes_state(&rnd_state, writebuf, mtd_oobtest_init()
/linux-4.4.14/include/scsi/
H A Dlibfcoe.h104 * @rnd_state: state for pseudo-random number generator.
143 struct rnd_state rnd_state; member in struct:fcoe_ctlr
/linux-4.4.14/kernel/bpf/
H A Dcore.c736 static DEFINE_PER_CPU(struct rnd_state, bpf_user_rnd_state);
751 struct rnd_state *state; bpf_user_rnd_u32()
/linux-4.4.14/drivers/scsi/fcoe/
H A Dfcoe_ctlr.c2196 port_id = prandom_u32_state(&fip->rnd_state) & 0xffff; fcoe_ctlr_vn_restart()
2221 prandom_seed_state(&fip->rnd_state, fip->lp->wwpn); fcoe_ctlr_vn_start()

Completed in 416 milliseconds