crypto: qat - Use request_complete helpers
Use the request_complete helpers instead of calling the completion function directly. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
25c9d2c358
commit
6c62186455
|
@ -676,7 +676,7 @@ static void qat_aead_alg_callback(struct icp_qat_fw_la_resp *qat_resp,
|
|||
qat_bl_free_bufl(inst->accel_dev, &qat_req->buf);
|
||||
if (unlikely(qat_res != ICP_QAT_FW_COMN_STATUS_FLAG_OK))
|
||||
res = -EBADMSG;
|
||||
areq->base.complete(&areq->base, res);
|
||||
aead_request_complete(areq, res);
|
||||
}
|
||||
|
||||
static void qat_alg_update_iv_ctr_mode(struct qat_crypto_request *qat_req)
|
||||
|
@ -752,7 +752,7 @@ static void qat_skcipher_alg_callback(struct icp_qat_fw_la_resp *qat_resp,
|
|||
|
||||
memcpy(sreq->iv, qat_req->iv, AES_BLOCK_SIZE);
|
||||
|
||||
sreq->base.complete(&sreq->base, res);
|
||||
skcipher_request_complete(sreq, res);
|
||||
}
|
||||
|
||||
void qat_alg_callback(void *resp)
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
// SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only)
|
||||
/* Copyright(c) 2022 Intel Corporation */
|
||||
#include <crypto/algapi.h>
|
||||
#include "adf_transport.h"
|
||||
#include "qat_algs_send.h"
|
||||
#include "qat_crypto.h"
|
||||
|
@ -34,7 +35,7 @@ void qat_alg_send_backlog(struct qat_instance_backlog *backlog)
|
|||
break;
|
||||
}
|
||||
list_del(&req->list);
|
||||
req->base->complete(req->base, -EINPROGRESS);
|
||||
crypto_request_complete(req->base, -EINPROGRESS);
|
||||
}
|
||||
spin_unlock_bh(&backlog->lock);
|
||||
}
|
||||
|
|
|
@ -106,7 +106,7 @@ static void qat_comp_resubmit(struct work_struct *work)
|
|||
|
||||
err:
|
||||
qat_bl_free_bufl(accel_dev, qat_bufs);
|
||||
areq->base.complete(&areq->base, ret);
|
||||
acomp_request_complete(areq, ret);
|
||||
}
|
||||
|
||||
static int parse_zlib_header(u16 zlib_h)
|
||||
|
@ -247,7 +247,7 @@ static void qat_comp_generic_callback(struct qat_compression_req *qat_req,
|
|||
|
||||
end:
|
||||
qat_bl_free_bufl(accel_dev, &qat_req->buf);
|
||||
areq->base.complete(&areq->base, res);
|
||||
acomp_request_complete(areq, res);
|
||||
}
|
||||
|
||||
void qat_comp_alg_callback(void *resp)
|
||||
|
|
Loading…
Reference in New Issue