Skip to content

Commit 6c62186

Browse files
committed
crypto: qat - Use request_complete helpers
Use the request_complete helpers instead of calling the completion function directly. Signed-off-by: Herbert Xu <[email protected]> Reviewed-by: Giovanni Cabiddu <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 25c9d2c commit 6c62186

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

drivers/crypto/qat/qat_common/qat_algs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ static void qat_aead_alg_callback(struct icp_qat_fw_la_resp *qat_resp,
676676
qat_bl_free_bufl(inst->accel_dev, &qat_req->buf);
677677
if (unlikely(qat_res != ICP_QAT_FW_COMN_STATUS_FLAG_OK))
678678
res = -EBADMSG;
679-
areq->base.complete(&areq->base, res);
679+
aead_request_complete(areq, res);
680680
}
681681

682682
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,
752752

753753
memcpy(sreq->iv, qat_req->iv, AES_BLOCK_SIZE);
754754

755-
sreq->base.complete(&sreq->base, res);
755+
skcipher_request_complete(sreq, res);
756756
}
757757

758758
void qat_alg_callback(void *resp)

drivers/crypto/qat/qat_common/qat_algs_send.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only)
22
/* Copyright(c) 2022 Intel Corporation */
3+
#include <crypto/algapi.h>
34
#include "adf_transport.h"
45
#include "qat_algs_send.h"
56
#include "qat_crypto.h"
@@ -34,7 +35,7 @@ void qat_alg_send_backlog(struct qat_instance_backlog *backlog)
3435
break;
3536
}
3637
list_del(&req->list);
37-
req->base->complete(req->base, -EINPROGRESS);
38+
crypto_request_complete(req->base, -EINPROGRESS);
3839
}
3940
spin_unlock_bh(&backlog->lock);
4041
}

drivers/crypto/qat/qat_common/qat_comp_algs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static void qat_comp_resubmit(struct work_struct *work)
106106

107107
err:
108108
qat_bl_free_bufl(accel_dev, qat_bufs);
109-
areq->base.complete(&areq->base, ret);
109+
acomp_request_complete(areq, ret);
110110
}
111111

112112
static int parse_zlib_header(u16 zlib_h)
@@ -247,7 +247,7 @@ static void qat_comp_generic_callback(struct qat_compression_req *qat_req,
247247

248248
end:
249249
qat_bl_free_bufl(accel_dev, &qat_req->buf);
250-
areq->base.complete(&areq->base, res);
250+
acomp_request_complete(areq, res);
251251
}
252252

253253
void qat_comp_alg_callback(void *resp)

0 commit comments

Comments
 (0)