Lines Matching refs:cpu_queue

46 	struct cryptd_cpu_queue __percpu *cpu_queue;  member
104 struct cryptd_cpu_queue *cpu_queue; in cryptd_init_queue() local
106 queue->cpu_queue = alloc_percpu(struct cryptd_cpu_queue); in cryptd_init_queue()
107 if (!queue->cpu_queue) in cryptd_init_queue()
110 cpu_queue = per_cpu_ptr(queue->cpu_queue, cpu); in cryptd_init_queue()
111 crypto_init_queue(&cpu_queue->queue, max_cpu_qlen); in cryptd_init_queue()
112 INIT_WORK(&cpu_queue->work, cryptd_queue_worker); in cryptd_init_queue()
121 struct cryptd_cpu_queue *cpu_queue; in cryptd_fini_queue() local
124 cpu_queue = per_cpu_ptr(queue->cpu_queue, cpu); in cryptd_fini_queue()
125 BUG_ON(cpu_queue->queue.qlen); in cryptd_fini_queue()
127 free_percpu(queue->cpu_queue); in cryptd_fini_queue()
134 struct cryptd_cpu_queue *cpu_queue; in cryptd_enqueue_request() local
138 cpu_queue = this_cpu_ptr(queue->cpu_queue); in cryptd_enqueue_request()
139 err = crypto_enqueue_request(&cpu_queue->queue, request); in cryptd_enqueue_request()
146 queue_work_on(smp_processor_id(), cryptd_wq, &cpu_queue->work); in cryptd_enqueue_request()
164 struct cryptd_cpu_queue *cpu_queue; in cryptd_queue_worker() local
167 cpu_queue = container_of(work, struct cryptd_cpu_queue, work); in cryptd_queue_worker()
172 backlog = crypto_get_backlog(&cpu_queue->queue); in cryptd_queue_worker()
173 req = crypto_dequeue_request(&cpu_queue->queue); in cryptd_queue_worker()
183 if (cpu_queue->queue.qlen) in cryptd_queue_worker()
184 queue_work(cryptd_wq, &cpu_queue->work); in cryptd_queue_worker()