Lines Matching refs:scomp_scratch
28 struct scomp_scratch { struct
36 static DEFINE_PER_CPU(struct scomp_scratch, scomp_scratch) = { argument
37 .lock = __SPIN_LOCK_UNLOCKED(scomp_scratch.lock),
71 struct scomp_scratch *scratch; in crypto_scomp_free_scratches()
75 scratch = per_cpu_ptr(&scomp_scratch, i); in crypto_scomp_free_scratches()
82 static int scomp_alloc_scratch(struct scomp_scratch *scratch, int cpu) in scomp_alloc_scratch()
101 struct scomp_scratch *scratch; in scomp_scratch_workfn()
103 scratch = per_cpu_ptr(&scomp_scratch, cpu); in scomp_scratch_workfn()
116 struct scomp_scratch *scratch; in crypto_scomp_alloc_scratches()
118 scratch = per_cpu_ptr(&scomp_scratch, i); in crypto_scomp_alloc_scratches()
142 static struct scomp_scratch *scomp_lock_scratch(void) __acquires(scratch) in scomp_lock_scratch()
145 struct scomp_scratch *scratch; in scomp_lock_scratch()
147 scratch = per_cpu_ptr(&scomp_scratch, cpu); in scomp_lock_scratch()
156 scratch = per_cpu_ptr(&scomp_scratch, cpumask_first(cpu_possible_mask)); in scomp_lock_scratch()
161 static inline void scomp_unlock_scratch(struct scomp_scratch *scratch) in scomp_unlock_scratch()
175 struct scomp_scratch *scratch; in scomp_acomp_comp_decomp()