• Home
  • Raw
  • Download

Lines Matching refs:state

51 u32 prandom_u32_state(struct rnd_state *state)  in prandom_u32_state()  argument
55 state->s1 = TAUSWORTHE(state->s1, 13, 19, 4294967294UL, 12); in prandom_u32_state()
56 state->s2 = TAUSWORTHE(state->s2, 2, 25, 4294967288UL, 4); in prandom_u32_state()
57 state->s3 = TAUSWORTHE(state->s3, 3, 11, 4294967280UL, 17); in prandom_u32_state()
59 return (state->s1 ^ state->s2 ^ state->s3); in prandom_u32_state()
73 struct rnd_state *state = &get_cpu_var(net_rand_state); in prandom_u32() local
74 r = prandom_u32_state(state); in prandom_u32()
75 put_cpu_var(state); in prandom_u32()
90 void prandom_bytes_state(struct rnd_state *state, void *buf, int bytes) in prandom_bytes_state() argument
96 u32 random = prandom_u32_state(state); in prandom_bytes_state()
105 u32 random = prandom_u32_state(state); in prandom_bytes_state()
122 struct rnd_state *state = &get_cpu_var(net_rand_state); in prandom_bytes() local
124 prandom_bytes_state(state, buf, bytes); in prandom_bytes()
125 put_cpu_var(state); in prandom_bytes()
143 struct rnd_state *state = &per_cpu(net_rand_state, i); in prandom_seed() local
144 state->s1 = __seed(state->s1 ^ entropy, 1); in prandom_seed()
158 struct rnd_state *state = &per_cpu(net_rand_state,i); in prandom_init() local
161 state->s1 = __seed(LCG(i + jiffies), 1); in prandom_init()
162 state->s2 = __seed(LCG(state->s1), 7); in prandom_init()
163 state->s3 = __seed(LCG(state->s2), 15); in prandom_init()
166 prandom_u32_state(state); in prandom_init()
167 prandom_u32_state(state); in prandom_init()
168 prandom_u32_state(state); in prandom_init()
169 prandom_u32_state(state); in prandom_init()
170 prandom_u32_state(state); in prandom_init()
171 prandom_u32_state(state); in prandom_init()
186 struct rnd_state *state = &per_cpu(net_rand_state,i); in prandom_reseed() local
190 state->s1 = __seed(seeds[0], 1); in prandom_reseed()
191 state->s2 = __seed(seeds[1], 7); in prandom_reseed()
192 state->s3 = __seed(seeds[2], 15); in prandom_reseed()
195 prandom_u32_state(state); in prandom_reseed()