Lines Matching defs:state
46 * @state: pointer to state structure holding seeded state.
51 u32 prandom32(struct rnd_state *state)
55 state->s1 = TAUSWORTHE(state->s1, 13, 19, 4294967294UL, 12);
56 state->s2 = TAUSWORTHE(state->s2, 2, 25, 4294967288UL, 4);
57 state->s3 = TAUSWORTHE(state->s3, 3, 11, 4294967280UL, 17);
59 return (state->s1 ^ state->s2 ^ state->s3);
73 struct rnd_state *state = &get_cpu_var(net_rand_state);
74 r = prandom32(state);
75 put_cpu_var(state);
94 struct rnd_state *state = &per_cpu(net_rand_state, i);
95 state->s1 = __seed(state->s1 ^ entropy, 1);
109 struct rnd_state *state = &per_cpu(net_rand_state,i);
112 state->s1 = __seed(LCG(i + jiffies), 1);
113 state->s2 = __seed(LCG(state->s1), 7);
114 state->s3 = __seed(LCG(state->s2), 15);
117 prandom32(state);
118 prandom32(state);
119 prandom32(state);
120 prandom32(state);
121 prandom32(state);
122 prandom32(state);
137 struct rnd_state *state = &per_cpu(net_rand_state,i);
141 state->s1 = __seed(seeds[0], 1);
142 state->s2 = __seed(seeds[1], 7);
143 state->s3 = __seed(seeds[2], 15);
146 prandom32(state);