提交 9f93a8a0 编写于 作者: B Baolin Wang 提交者: Herbert Xu

crypto: api - Introduce crypto_queue_len() helper function

This patch introduces crypto_queue_len() helper function to help to get the
queue length in the crypto queue list now.
Signed-off-by: NBaolin Wang <baolin.wang@linaro.org>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 cc831d32
...@@ -184,6 +184,10 @@ int crypto_enqueue_request(struct crypto_queue *queue, ...@@ -184,6 +184,10 @@ int crypto_enqueue_request(struct crypto_queue *queue,
struct crypto_async_request *request); struct crypto_async_request *request);
struct crypto_async_request *crypto_dequeue_request(struct crypto_queue *queue); struct crypto_async_request *crypto_dequeue_request(struct crypto_queue *queue);
int crypto_tfm_in_queue(struct crypto_queue *queue, struct crypto_tfm *tfm); int crypto_tfm_in_queue(struct crypto_queue *queue, struct crypto_tfm *tfm);
static inline unsigned int crypto_queue_len(struct crypto_queue *queue)
{
return queue->qlen;
}
/* These functions require the input/output to be aligned as u32. */ /* These functions require the input/output to be aligned as u32. */
void crypto_inc(u8 *a, unsigned int size); void crypto_inc(u8 *a, unsigned int size);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册