Lines Matching refs:state
283 * the resultant ChaCha state to the user, along with the second
287 * The returned ChaCha state contains within it a copy of the old
288 * key value, at index 4, so the state should always be zeroed out
290 * If the state cannot be erased in a timely manner, then it is
313 * This function returns a ChaCha state that you may use for generating
367 * some random data and a ChaCha state for the caller. All other
482 * block from the detached ChaCha state. We can increase \
787 * entropy pool. Note that high-speed solid state drives with very low
914 * the entropy pool having similar initial state across largely
1017 * four-word SipHash state, while v represents a two-word input.
1127 static void add_timer_randomness(struct timer_rand_state *state, unsigned int num)
1154 delta = now - READ_ONCE(state->last_time);
1155 WRITE_ONCE(state->last_time, now);
1157 delta2 = delta - READ_ONCE(state->last_delta);
1158 WRITE_ONCE(state->last_delta, delta);
1160 delta3 = delta2 - READ_ONCE(state->last_delta2);
1161 WRITE_ONCE(state->last_delta2, delta2);
1220 struct timer_rand_state *state;
1226 state = kzalloc(sizeof(struct timer_rand_state), GFP_KERNEL);
1227 if (state) {
1228 state->last_time = INITIAL_JIFFIES;
1229 disk->random = state;
1254 struct entropy_timer_state *state = container_of(timer, struct entropy_timer_state, timer);
1258 if (atomic_inc_return(&state->samples) % state->samples_per_bit == 0)