#include <linux/crypto.h>
#include <crypto/acompress.h>
#include <crypto/internal/acompress.h>
#include <crypto/scatterwalk.h>
#include <linux/dma-mapping.h>
#include <linux/workqueue.h>
#include "adf_accel_devices.h"
#include "adf_common_drv.h"
#include "qat_bl.h"
#include "qat_comp_req.h"
#include "qat_compression.h"
#include "qat_algs_send.h"
static DEFINE_MUTEX(algs_lock);
static unsigned int active_devs;
enum direction { … };
struct qat_compression_req;
struct qat_compression_ctx { … };
struct qat_dst { … };
struct qat_compression_req { … };
static int qat_alg_send_dc_message(struct qat_compression_req *qat_req,
struct qat_compression_instance *inst,
struct crypto_async_request *base)
{ … }
static void qat_comp_resubmit(struct work_struct *work)
{ … }
static void qat_comp_generic_callback(struct qat_compression_req *qat_req,
void *resp)
{ … }
void qat_comp_alg_callback(void *resp)
{ … }
static int qat_comp_alg_init_tfm(struct crypto_acomp *acomp_tfm)
{ … }
static void qat_comp_alg_exit_tfm(struct crypto_acomp *acomp_tfm)
{ … }
static int qat_comp_alg_compress_decompress(struct acomp_req *areq, enum direction dir,
unsigned int shdr, unsigned int sftr,
unsigned int dhdr, unsigned int dftr)
{ … }
static int qat_comp_alg_compress(struct acomp_req *req)
{ … }
static int qat_comp_alg_decompress(struct acomp_req *req)
{ … }
static struct acomp_alg qat_acomp[] = …;
int qat_comp_algs_register(void)
{ … }
void qat_comp_algs_unregister(void)
{ … }