Home
last modified time | relevance | path

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

/linux-4.4.14/lib/
Drandom32.c50 static DEFINE_PER_CPU(struct rnd_state, net_rand_state);
59 u32 prandom_u32_state(struct rnd_state *state) in prandom_u32_state()
80 struct rnd_state *state = &get_cpu_var(net_rand_state); in prandom_u32()
100 void prandom_bytes_state(struct rnd_state *state, void *buf, size_t bytes) in prandom_bytes_state()
128 struct rnd_state *state = &get_cpu_var(net_rand_state); in prandom_bytes()
135 static void prandom_warmup(struct rnd_state *state) in prandom_warmup()
160 static void prandom_seed_early(struct rnd_state *state, u32 seed, in prandom_seed_early()
185 struct rnd_state *state = &per_cpu(net_rand_state, i); in prandom_seed()
204 struct rnd_state *state = &per_cpu(net_rand_state, i); in prandom_init()
241 void prandom_seed_full_state(struct rnd_state __percpu *pcpu_state) in prandom_seed_full_state()
[all …]
Dinterval_tree_test.c15 static struct rnd_state rnd;
Drbtree_test.c22 static struct rnd_state rnd;
Dtest_bpf.c134 struct rnd_state rnd; in bpf_fill_maxinsns3()
/linux-4.4.14/drivers/mtd/tests/
Dpagetest.c51 static struct rnd_state rnd_state; variable
57 prandom_bytes_state(&rnd_state, writebuf, mtd->erasesize); in write_eraseblock()
77 prandom_bytes_state(&rnd_state, writebuf, mtd->erasesize); in verify_eraseblock()
98 struct rnd_state old_state = rnd_state; in verify_eraseblock()
112 prandom_bytes_state(&rnd_state, boundary + pgsize, pgsize); in verify_eraseblock()
118 rnd_state = old_state; in verify_eraseblock()
226 prandom_bytes_state(&rnd_state, writebuf, pgsize); in erasecrosstest()
251 prandom_bytes_state(&rnd_state, writebuf, pgsize); in erasecrosstest()
300 prandom_bytes_state(&rnd_state, writebuf, pgsize); in erasetest()
400 prandom_seed_state(&rnd_state, 1); in mtd_pagetest_init()
[all …]
Dsubpagetest.c49 static struct rnd_state rnd_state; variable
62 prandom_bytes_state(&rnd_state, writebuf, subpgsize); in write_eraseblock()
76 prandom_bytes_state(&rnd_state, writebuf, subpgsize); in write_eraseblock()
100 prandom_bytes_state(&rnd_state, writebuf, subpgsize * k); in write_eraseblock2()
136 prandom_bytes_state(&rnd_state, writebuf, subpgsize); in verify_eraseblock()
163 prandom_bytes_state(&rnd_state, writebuf, subpgsize); in verify_eraseblock()
200 prandom_bytes_state(&rnd_state, writebuf, subpgsize * k); in verify_eraseblock2()
343 prandom_seed_state(&rnd_state, 1); in mtd_subpagetest_init()
359 prandom_seed_state(&rnd_state, 1); in mtd_subpagetest_init()
385 prandom_seed_state(&rnd_state, 3); in mtd_subpagetest_init()
[all …]
Doobtest.c55 static struct rnd_state rnd_state; variable
75 prandom_bytes_state(&rnd_state, writebuf, use_len_max * pgcnt); in write_eraseblock()
185 prandom_bytes_state(&rnd_state, writebuf, use_len_max * pgcnt); in verify_eraseblock()
277 prandom_bytes_state(&rnd_state, writebuf, len); in verify_eraseblock_in_one_go()
408 prandom_seed_state(&rnd_state, 1); in mtd_oobtest_init()
413 prandom_seed_state(&rnd_state, 1); in mtd_oobtest_init()
428 prandom_seed_state(&rnd_state, 3); in mtd_oobtest_init()
434 prandom_seed_state(&rnd_state, 3); in mtd_oobtest_init()
466 prandom_seed_state(&rnd_state, 5); in mtd_oobtest_init()
477 prandom_seed_state(&rnd_state, 5); in mtd_oobtest_init()
[all …]
/linux-4.4.14/include/linux/
Drandom.h44 struct rnd_state { struct
48 u32 prandom_u32_state(struct rnd_state *state); argument
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) in prandom_seed_state()
/linux-4.4.14/include/scsi/
Dlibfcoe.h143 struct rnd_state rnd_state; member
/linux-4.4.14/kernel/bpf/
Dcore.c736 static DEFINE_PER_CPU(struct rnd_state, bpf_user_rnd_state);
751 struct rnd_state *state; in bpf_user_rnd_u32()
/linux-4.4.14/drivers/scsi/fcoe/
Dfcoe_ctlr.c2196 port_id = prandom_u32_state(&fip->rnd_state) & 0xffff; in fcoe_ctlr_vn_restart()
2221 prandom_seed_state(&fip->rnd_state, fip->lp->wwpn); in fcoe_ctlr_vn_start()