Home
last modified time | relevance | path

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

/crypto/
Dcryptd.c37 struct crypto_queue queue; member
51 struct cryptd_queue *queue; member
56 struct cryptd_queue *queue; member
61 struct cryptd_queue *queue; member
66 struct cryptd_queue *queue; member
100 static int cryptd_init_queue(struct cryptd_queue *queue, in cryptd_init_queue() argument
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()
[all …]
Dalgapi.c907 void crypto_init_queue(struct crypto_queue *queue, unsigned int max_qlen) in crypto_init_queue() argument
909 INIT_LIST_HEAD(&queue->list); in crypto_init_queue()
910 queue->backlog = &queue->list; in crypto_init_queue()
911 queue->qlen = 0; in crypto_init_queue()
912 queue->max_qlen = max_qlen; in crypto_init_queue()
916 int crypto_enqueue_request(struct crypto_queue *queue, in crypto_enqueue_request() argument
921 if (unlikely(queue->qlen >= queue->max_qlen)) { in crypto_enqueue_request()
927 if (queue->backlog == &queue->list) in crypto_enqueue_request()
928 queue->backlog = &request->list; in crypto_enqueue_request()
931 queue->qlen++; in crypto_enqueue_request()
[all …]
Dcrypto_engine.c92 if (!crypto_queue_len(&engine->queue) || !engine->running) { in crypto_pump_requests()
118 backlog = crypto_get_backlog(&engine->queue); in crypto_pump_requests()
119 async_req = crypto_dequeue_request(&engine->queue); in crypto_pump_requests()
200 crypto_enqueue_request_head(&engine->queue, async_req); in crypto_pump_requests()
270 ret = crypto_enqueue_request(&engine->queue, req); in crypto_transfer_request()
443 while ((crypto_queue_len(&engine->queue) || engine->busy) && limit--) { in crypto_engine_stop()
449 if (crypto_queue_len(&engine->queue) || engine->busy) in crypto_engine_stop()
511 crypto_init_queue(&engine->queue, qlen); in crypto_engine_alloc_init_and_set()