Lines Matching refs:batched_entropy
2145 struct batched_entropy { struct
2162 static DEFINE_PER_CPU(struct batched_entropy, batched_entropy_u64) = { argument
2170 struct batched_entropy *batch; in get_random_u64()
2187 static DEFINE_PER_CPU(struct batched_entropy, batched_entropy_u32) = {
2194 struct batched_entropy *batch; in get_random_u32()
2221 struct batched_entropy *batched_entropy; in invalidate_batched_entropy() local
2223 batched_entropy = per_cpu_ptr(&batched_entropy_u32, cpu); in invalidate_batched_entropy()
2224 spin_lock_irqsave(&batched_entropy->batch_lock, flags); in invalidate_batched_entropy()
2225 batched_entropy->position = 0; in invalidate_batched_entropy()
2226 spin_unlock(&batched_entropy->batch_lock); in invalidate_batched_entropy()
2228 batched_entropy = per_cpu_ptr(&batched_entropy_u64, cpu); in invalidate_batched_entropy()
2229 spin_lock(&batched_entropy->batch_lock); in invalidate_batched_entropy()
2230 batched_entropy->position = 0; in invalidate_batched_entropy()
2231 spin_unlock_irqrestore(&batched_entropy->batch_lock, flags); in invalidate_batched_entropy()