Home
last modified time | relevance | path

Searched refs:queue (Results 1 – 4 of 4) sorted by relevance

/crypto/
Dcryptd.c37 struct crypto_queue queue; member
47 struct cryptd_queue *queue; member
52 struct cryptd_queue *queue; member
57 struct cryptd_queue *queue; member
87 static int cryptd_init_queue(struct cryptd_queue *queue, in cryptd_init_queue() argument
93 queue->cpu_queue = alloc_percpu(struct cryptd_cpu_queue); in cryptd_init_queue()
94 if (!queue->cpu_queue) in cryptd_init_queue()
97 cpu_queue = per_cpu_ptr(queue->cpu_queue, cpu); in cryptd_init_queue()
98 crypto_init_queue(&cpu_queue->queue, max_cpu_qlen); in cryptd_init_queue()
104 static void cryptd_fini_queue(struct cryptd_queue *queue) in cryptd_fini_queue() argument
[all …]
Dmcryptd.c45 struct mcryptd_queue *queue; member
68 static int mcryptd_init_queue(struct mcryptd_queue *queue, in mcryptd_init_queue() argument
74 queue->cpu_queue = alloc_percpu(struct mcryptd_cpu_queue); in mcryptd_init_queue()
75 pr_debug("mqueue:%p mcryptd_cpu_queue %p\n", queue, queue->cpu_queue); in mcryptd_init_queue()
76 if (!queue->cpu_queue) in mcryptd_init_queue()
79 cpu_queue = per_cpu_ptr(queue->cpu_queue, cpu); in mcryptd_init_queue()
80 pr_debug("cpu_queue #%d %p\n", cpu, queue->cpu_queue); in mcryptd_init_queue()
81 crypto_init_queue(&cpu_queue->queue, max_cpu_qlen); in mcryptd_init_queue()
88 static void mcryptd_fini_queue(struct mcryptd_queue *queue) in mcryptd_fini_queue() argument
94 cpu_queue = per_cpu_ptr(queue->cpu_queue, cpu); in mcryptd_fini_queue()
[all …]
Dalgapi.c866 void crypto_init_queue(struct crypto_queue *queue, unsigned int max_qlen) in crypto_init_queue() argument
868 INIT_LIST_HEAD(&queue->list); in crypto_init_queue()
869 queue->backlog = &queue->list; in crypto_init_queue()
870 queue->qlen = 0; in crypto_init_queue()
871 queue->max_qlen = max_qlen; in crypto_init_queue()
875 int crypto_enqueue_request(struct crypto_queue *queue, in crypto_enqueue_request() argument
880 if (unlikely(queue->qlen >= queue->max_qlen)) { in crypto_enqueue_request()
884 if (queue->backlog == &queue->list) in crypto_enqueue_request()
885 queue->backlog = &request->list; in crypto_enqueue_request()
888 queue->qlen++; in crypto_enqueue_request()
[all …]
Dchainiv.c42 struct crypto_queue queue; member
128 if (!ctx->queue.qlen) { in async_chainiv_schedule_work()
132 if (!ctx->queue.qlen || in async_chainiv_schedule_work()
151 err = skcipher_enqueue_givcrypt(&ctx->queue, req); in async_chainiv_postpone_request()
197 if (ctx->queue.qlen) { in async_chainiv_givencrypt()
246 req = skcipher_dequeue_givcrypt(&ctx->queue); in async_chainiv_do_postponed()
270 crypto_init_queue(&ctx->queue, 100); in async_chainiv_init()
280 BUG_ON(test_bit(CHAINIV_STATE_INUSE, &ctx->state) || ctx->queue.qlen); in async_chainiv_exit()