/linux-4.4.14/lib/ |
H A D | random32.c | 50 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 D | interval_tree_test.c | 15 static struct rnd_state rnd;
|
H A D | rbtree_test.c | 22 static struct rnd_state rnd;
|
H A D | test_bpf.c | 134 struct rnd_state rnd; bpf_fill_maxinsns3()
|
/linux-4.4.14/include/linux/ |
H A D | random.h | 44 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 D | pagetest.c | 51 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 D | subpagetest.c | 49 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 D | oobtest.c | 55 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 D | libfcoe.h | 104 * @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 D | core.c | 736 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 D | fcoe_ctlr.c | 2196 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()
|