Lines Matching refs:queue

65  * crypto_pump_requests - dequeue one request from engine queue to process
69 * This function checks if there is any request in the engine queue that
95 /* Check if the engine queue is idle */
96 if (!crypto_queue_len(&engine->queue) || !engine->running) {
121 /* Get the fist request from the engine queue to handle */
122 backlog = crypto_get_backlog(&engine->queue);
123 async_req = crypto_dequeue_request(&engine->queue);
166 * If hardware queue is full (-ENOSPC), requeue request
173 "Failed to do one request from queue: %d\n",
180 * back in front of crypto-engine queue, to keep the order
183 crypto_enqueue_request_head(&engine->queue, async_req);
231 * crypto_transfer_request - transfer the new request into the engine queue
233 * @req: the request need to be listed into the engine queue
234 * @need_pump: indicates whether queue the pump of request to kthread_work
250 ret = crypto_enqueue_request(&engine->queue, req);
261 * into the engine queue
263 * @req: the request need to be listed into the engine queue
273 * to list into the engine queue
275 * @req: the request need to be listed into the engine queue
286 * to list into the engine queue
288 * @req: the request need to be listed into the engine queue
299 * to list into the engine queue
301 * @req: the request need to be listed into the engine queue
312 * into the engine queue
314 * @req: the request need to be listed into the engine queue
325 * to list into the engine queue
327 * @req: the request need to be listed into the engine queue
446 * If the engine queue is not empty or the engine is on busy state,
447 * we need to wait for a while to pump the requests of engine queue.
449 while ((crypto_queue_len(&engine->queue) || engine->busy) && limit--) {
455 if (crypto_queue_len(&engine->queue) || engine->busy)
472 * crypto-engine queue.
481 * @rt: whether this queue is set to run as a realtime task
482 * @qlen: maximum size of the crypto-engine queue
517 crypto_init_queue(&engine->queue, qlen);
540 * @rt: whether this queue is set to run as a realtime task