Lines Matching refs:queue
665 void crypto_init_queue(struct crypto_queue *queue, unsigned int max_qlen) in crypto_init_queue() argument
667 INIT_LIST_HEAD(&queue->list); in crypto_init_queue()
668 queue->backlog = &queue->list; in crypto_init_queue()
669 queue->qlen = 0; in crypto_init_queue()
670 queue->max_qlen = max_qlen; in crypto_init_queue()
674 int crypto_enqueue_request(struct crypto_queue *queue, in crypto_enqueue_request() argument
679 if (unlikely(queue->qlen >= queue->max_qlen)) { in crypto_enqueue_request()
683 if (queue->backlog == &queue->list) in crypto_enqueue_request()
684 queue->backlog = &request->list; in crypto_enqueue_request()
687 queue->qlen++; in crypto_enqueue_request()
688 list_add_tail(&request->list, &queue->list); in crypto_enqueue_request()
695 struct crypto_async_request *crypto_dequeue_request(struct crypto_queue *queue) in crypto_dequeue_request() argument
699 if (unlikely(!queue->qlen)) in crypto_dequeue_request()
702 queue->qlen--; in crypto_dequeue_request()
704 if (queue->backlog != &queue->list) in crypto_dequeue_request()
705 queue->backlog = queue->backlog->next; in crypto_dequeue_request()
707 request = queue->list.next; in crypto_dequeue_request()
714 int crypto_tfm_in_queue(struct crypto_queue *queue, struct crypto_tfm *tfm) in crypto_tfm_in_queue() argument
718 list_for_each_entry(req, &queue->list, list) { in crypto_tfm_in_queue()