mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
crypto: hisilicon/zip - add comments for 'hisi_zip_sqe'
Some fields of 'hisi_zip_sqe' are unused, and some fields have misc utilities. So add comments for used fields and make others unnamed. Signed-off-by: Yang Shen <shenyang39@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
@@ -253,7 +253,7 @@ static void hisi_zip_config_buf_type(struct hisi_zip_sqe *sqe, u8 buf_type)
|
||||
|
||||
static void hisi_zip_config_tag(struct hisi_zip_sqe *sqe, u32 tag)
|
||||
{
|
||||
sqe->tag = tag;
|
||||
sqe->dw13 = tag;
|
||||
}
|
||||
|
||||
static void hisi_zip_fill_sqe(struct hisi_zip_sqe *sqe, u8 req_type,
|
||||
@@ -339,7 +339,7 @@ static void hisi_zip_acomp_cb(struct hisi_qp *qp, void *data)
|
||||
struct hisi_zip_req_q *req_q = &qp_ctx->req_q;
|
||||
struct device *dev = &qp->qm->pdev->dev;
|
||||
struct hisi_zip_sqe *sqe = data;
|
||||
struct hisi_zip_req *req = req_q->q + sqe->tag;
|
||||
struct hisi_zip_req *req = req_q->q + sqe->dw13;
|
||||
struct acomp_req *acomp_req = req->req;
|
||||
u32 status, dlen, head_size;
|
||||
int err = 0;
|
||||
|
||||
Reference in New Issue
Block a user