Lines Matching refs:acomp_req

70 	struct acomp_req *req;
193 static int get_comp_head_size(struct acomp_req *acomp_req, u8 req_type) in get_comp_head_size() argument
195 if (!acomp_req->src || !acomp_req->slen) in get_comp_head_size()
199 acomp_req->slen < GZIP_HEAD_FEXTRA_SHIFT) in get_comp_head_size()
213 static struct hisi_zip_req *hisi_zip_create_req(struct acomp_req *req, in hisi_zip_create_req()
270 struct acomp_req *a_req = req->req; in hisi_zip_fill_buf_size()
335 struct acomp_req *a_req = req->req; in hisi_zip_do_work()
413 struct acomp_req *acomp_req = req->req; in hisi_zip_acomp_cb() local
429 hisi_acc_sg_buf_unmap(dev, acomp_req->src, req->hw_src); in hisi_zip_acomp_cb()
430 hisi_acc_sg_buf_unmap(dev, acomp_req->dst, req->hw_dst); in hisi_zip_acomp_cb()
433 acomp_req->dlen = dlen + head_size; in hisi_zip_acomp_cb()
435 if (acomp_req->base.complete) in hisi_zip_acomp_cb()
436 acomp_request_complete(acomp_req, err); in hisi_zip_acomp_cb()
441 static int hisi_zip_acompress(struct acomp_req *acomp_req) in hisi_zip_acompress() argument
443 struct hisi_zip_ctx *ctx = crypto_tfm_ctx(acomp_req->base.tfm); in hisi_zip_acompress()
451 head_size = add_comp_head(acomp_req->dst, qp_ctx->qp->req_type); in hisi_zip_acompress()
458 req = hisi_zip_create_req(acomp_req, qp_ctx, head_size, true); in hisi_zip_acompress()
471 static int hisi_zip_adecompress(struct acomp_req *acomp_req) in hisi_zip_adecompress() argument
473 struct hisi_zip_ctx *ctx = crypto_tfm_ctx(acomp_req->base.tfm); in hisi_zip_adecompress()
479 head_size = get_comp_head_size(acomp_req, qp_ctx->qp->req_type); in hisi_zip_adecompress()
486 req = hisi_zip_create_req(acomp_req, qp_ctx, head_size, false); in hisi_zip_adecompress()