Lines Matching refs:req
69 struct acomp_req *req;
340 struct hisi_zip_req *req)
345 clear_bit(req->req_id, req_q->req_bitmap);
346 memset(req, 0, sizeof(struct hisi_zip_req));
356 struct hisi_zip_req *req = req_q->q + sqe->tag;
357 struct acomp_req *acomp_req = req->req;
373 hisi_acc_sg_buf_unmap(dev, acomp_req->src, req->hw_src);
374 hisi_acc_sg_buf_unmap(dev, acomp_req->dst, req->hw_dst);
382 hisi_zip_remove_req(qp_ctx, req);
486 static struct hisi_zip_req *hisi_zip_create_req(struct acomp_req *req,
500 dev_dbg(&qp_ctx->qp->qm->pdev->dev, "req cache is full!\n");
507 req_cache->req = req;
522 static int hisi_zip_do_work(struct hisi_zip_req *req,
525 struct acomp_req *a_req = req->req;
537 req->hw_src = hisi_acc_sg_buf_map_to_hw_sgl(dev, a_req->src, pool,
538 req->req_id << 1, &input);
539 if (IS_ERR(req->hw_src)) {
541 PTR_ERR(req->hw_src));
542 return PTR_ERR(req->hw_src);
544 req->dma_src = input;
546 req->hw_dst = hisi_acc_sg_buf_map_to_hw_sgl(dev, a_req->dst, pool,
547 (req->req_id << 1) + 1,
549 if (IS_ERR(req->hw_dst)) {
550 ret = PTR_ERR(req->hw_dst);
555 req->dma_dst = output;
558 a_req->dlen, req->sskip, req->dskip);
560 hisi_zip_config_tag(&zip_sqe, req->req_id);
575 hisi_acc_sg_buf_unmap(dev, a_req->dst, req->hw_dst);
577 hisi_acc_sg_buf_unmap(dev, a_req->src, req->hw_src);
586 struct hisi_zip_req *req;
598 req = hisi_zip_create_req(acomp_req, qp_ctx, head_size, true);
599 if (IS_ERR(req))
600 return PTR_ERR(req);
602 ret = hisi_zip_do_work(req, qp_ctx);
605 hisi_zip_remove_req(qp_ctx, req);
616 struct hisi_zip_req *req;
626 req = hisi_zip_create_req(acomp_req, qp_ctx, head_size, false);
627 if (IS_ERR(req))
628 return PTR_ERR(req);
630 ret = hisi_zip_do_work(req, qp_ctx);
634 hisi_zip_remove_req(qp_ctx, req);