Lines Matching refs:qat_req
635 struct qat_crypto_request *qat_req) in qat_alg_free_bufl() argument
638 struct qat_alg_buf_list *bl = qat_req->buf.bl; in qat_alg_free_bufl()
639 struct qat_alg_buf_list *blout = qat_req->buf.blout; in qat_alg_free_bufl()
640 dma_addr_t blp = qat_req->buf.blp; in qat_alg_free_bufl()
641 dma_addr_t blpout = qat_req->buf.bloutp; in qat_alg_free_bufl()
642 size_t sz = qat_req->buf.sz; in qat_alg_free_bufl()
643 size_t sz_out = qat_req->buf.sz_out; in qat_alg_free_bufl()
669 struct qat_crypto_request *qat_req) in qat_alg_sgl_to_bufl() argument
709 qat_req->buf.bl = bufl; in qat_alg_sgl_to_bufl()
710 qat_req->buf.blp = blp; in qat_alg_sgl_to_bufl()
711 qat_req->buf.sz = sz; in qat_alg_sgl_to_bufl()
744 qat_req->buf.blout = buflout; in qat_alg_sgl_to_bufl()
745 qat_req->buf.bloutp = bloutp; in qat_alg_sgl_to_bufl()
746 qat_req->buf.sz_out = sz_out; in qat_alg_sgl_to_bufl()
749 qat_req->buf.bloutp = qat_req->buf.blp; in qat_alg_sgl_to_bufl()
750 qat_req->buf.sz_out = 0; in qat_alg_sgl_to_bufl()
782 struct qat_crypto_request *qat_req) in qat_aead_alg_callback() argument
784 struct qat_alg_aead_ctx *ctx = qat_req->aead_ctx; in qat_aead_alg_callback()
786 struct aead_request *areq = qat_req->aead_req; in qat_aead_alg_callback()
790 qat_alg_free_bufl(inst, qat_req); in qat_aead_alg_callback()
797 struct qat_crypto_request *qat_req) in qat_ablkcipher_alg_callback() argument
799 struct qat_alg_ablkcipher_ctx *ctx = qat_req->ablkcipher_ctx; in qat_ablkcipher_alg_callback()
801 struct ablkcipher_request *areq = qat_req->ablkcipher_req; in qat_ablkcipher_alg_callback()
805 qat_alg_free_bufl(inst, qat_req); in qat_ablkcipher_alg_callback()
814 struct qat_crypto_request *qat_req = in qat_alg_callback() local
817 qat_req->cb(qat_resp, qat_req); in qat_alg_callback()
825 struct qat_crypto_request *qat_req = aead_request_ctx(areq); in qat_alg_aead_dec() local
832 ret = qat_alg_sgl_to_bufl(ctx->inst, areq->src, areq->dst, qat_req); in qat_alg_aead_dec()
836 msg = &qat_req->req; in qat_alg_aead_dec()
838 qat_req->aead_ctx = ctx; in qat_alg_aead_dec()
839 qat_req->aead_req = areq; in qat_alg_aead_dec()
840 qat_req->cb = qat_aead_alg_callback; in qat_alg_aead_dec()
841 qat_req->req.comn_mid.opaque_data = (uint64_t)(__force long)qat_req; in qat_alg_aead_dec()
842 qat_req->req.comn_mid.src_data_addr = qat_req->buf.blp; in qat_alg_aead_dec()
843 qat_req->req.comn_mid.dest_data_addr = qat_req->buf.bloutp; in qat_alg_aead_dec()
844 cipher_param = (void *)&qat_req->req.serv_specif_rqpars; in qat_alg_aead_dec()
856 qat_alg_free_bufl(ctx->inst, qat_req); in qat_alg_aead_dec()
867 struct qat_crypto_request *qat_req = aead_request_ctx(areq); in qat_alg_aead_enc() local
874 ret = qat_alg_sgl_to_bufl(ctx->inst, areq->src, areq->dst, qat_req); in qat_alg_aead_enc()
878 msg = &qat_req->req; in qat_alg_aead_enc()
880 qat_req->aead_ctx = ctx; in qat_alg_aead_enc()
881 qat_req->aead_req = areq; in qat_alg_aead_enc()
882 qat_req->cb = qat_aead_alg_callback; in qat_alg_aead_enc()
883 qat_req->req.comn_mid.opaque_data = (uint64_t)(__force long)qat_req; in qat_alg_aead_enc()
884 qat_req->req.comn_mid.src_data_addr = qat_req->buf.blp; in qat_alg_aead_enc()
885 qat_req->req.comn_mid.dest_data_addr = qat_req->buf.bloutp; in qat_alg_aead_enc()
886 cipher_param = (void *)&qat_req->req.serv_specif_rqpars; in qat_alg_aead_enc()
901 qat_alg_free_bufl(ctx->inst, qat_req); in qat_alg_aead_enc()
994 struct qat_crypto_request *qat_req = ablkcipher_request_ctx(req); in qat_alg_ablkcipher_encrypt() local
999 ret = qat_alg_sgl_to_bufl(ctx->inst, req->src, req->dst, qat_req); in qat_alg_ablkcipher_encrypt()
1003 msg = &qat_req->req; in qat_alg_ablkcipher_encrypt()
1005 qat_req->ablkcipher_ctx = ctx; in qat_alg_ablkcipher_encrypt()
1006 qat_req->ablkcipher_req = req; in qat_alg_ablkcipher_encrypt()
1007 qat_req->cb = qat_ablkcipher_alg_callback; in qat_alg_ablkcipher_encrypt()
1008 qat_req->req.comn_mid.opaque_data = (uint64_t)(__force long)qat_req; in qat_alg_ablkcipher_encrypt()
1009 qat_req->req.comn_mid.src_data_addr = qat_req->buf.blp; in qat_alg_ablkcipher_encrypt()
1010 qat_req->req.comn_mid.dest_data_addr = qat_req->buf.bloutp; in qat_alg_ablkcipher_encrypt()
1011 cipher_param = (void *)&qat_req->req.serv_specif_rqpars; in qat_alg_ablkcipher_encrypt()
1020 qat_alg_free_bufl(ctx->inst, qat_req); in qat_alg_ablkcipher_encrypt()
1031 struct qat_crypto_request *qat_req = ablkcipher_request_ctx(req); in qat_alg_ablkcipher_decrypt() local
1036 ret = qat_alg_sgl_to_bufl(ctx->inst, req->src, req->dst, qat_req); in qat_alg_ablkcipher_decrypt()
1040 msg = &qat_req->req; in qat_alg_ablkcipher_decrypt()
1042 qat_req->ablkcipher_ctx = ctx; in qat_alg_ablkcipher_decrypt()
1043 qat_req->ablkcipher_req = req; in qat_alg_ablkcipher_decrypt()
1044 qat_req->cb = qat_ablkcipher_alg_callback; in qat_alg_ablkcipher_decrypt()
1045 qat_req->req.comn_mid.opaque_data = (uint64_t)(__force long)qat_req; in qat_alg_ablkcipher_decrypt()
1046 qat_req->req.comn_mid.src_data_addr = qat_req->buf.blp; in qat_alg_ablkcipher_decrypt()
1047 qat_req->req.comn_mid.dest_data_addr = qat_req->buf.bloutp; in qat_alg_ablkcipher_decrypt()
1048 cipher_param = (void *)&qat_req->req.serv_specif_rqpars; in qat_alg_ablkcipher_decrypt()
1057 qat_alg_free_bufl(ctx->inst, qat_req); in qat_alg_ablkcipher_decrypt()