#ifndef QAT_BL_H
#define QAT_BL_H
#include <linux/crypto.h>
#include <linux/scatterlist.h>
#include <linux/types.h>
#define QAT_MAX_BUFF_DESC …
struct qat_alg_buf { … } __packed;
struct qat_alg_buf_list { … } __packed;
struct qat_alg_fixed_buf_list { … } __packed __aligned(…);
struct qat_request_buffs { … };
struct qat_sgl_to_bufl_params { … };
void qat_bl_free_bufl(struct adf_accel_dev *accel_dev,
struct qat_request_buffs *buf);
int qat_bl_sgl_to_bufl(struct adf_accel_dev *accel_dev,
struct scatterlist *sgl,
struct scatterlist *sglout,
struct qat_request_buffs *buf,
struct qat_sgl_to_bufl_params *params,
gfp_t flags);
static inline gfp_t qat_algs_alloc_flags(struct crypto_async_request *req)
{ … }
int qat_bl_realloc_map_new_dst(struct adf_accel_dev *accel_dev,
struct scatterlist **newd,
unsigned int dlen,
struct qat_request_buffs *qat_bufs,
gfp_t gfp);
#endif