1 /* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) */
2 /* Copyright(c) 2022 Intel Corporation */
3 #ifndef QAT_ALGS_SEND_H
4 #define QAT_ALGS_SEND_H
6 #include <linux/list.h>
7 #include "adf_transport_internal.h"
9 struct qat_instance_backlog {
10 struct list_head list;
11 spinlock_t lock; /* protects backlog list */
16 struct adf_etr_ring_data *tx_ring;
17 struct crypto_async_request *base;
18 struct list_head list;
19 struct qat_instance_backlog *backlog;
22 int qat_alg_send_message(struct qat_alg_req *req);
23 void qat_alg_send_backlog(struct qat_instance_backlog *backlog);