Lines Matching defs:hctx_wr

131 	memset(&reqctx->hctx_wr, 0, sizeof(struct chcr_hctx_per_wr));
1581 req_ctx->hctx_wr.imm = (transhdr_len + param->bfr_len +
1583 nents = sg_nents_xlen(req_ctx->hctx_wr.srcsg, param->sg_len,
1584 CHCR_SRC_SG_SIZE, req_ctx->hctx_wr.src_ofst);
1586 transhdr_len += req_ctx->hctx_wr.imm ? roundup(param->bfr_len +
1629 req_ctx->hctx_wr.dma_addr =
1633 req_ctx->hctx_wr. dma_addr)) {
1637 req_ctx->hctx_wr.dma_len = param->bfr_len;
1639 req_ctx->hctx_wr.dma_addr = 0;
1643 temp = param->kctx_len + DUMMY_BYTES + (req_ctx->hctx_wr.imm ?
1646 create_wreq(h_ctx(tfm), chcr_req, &req->base, req_ctx->hctx_wr.imm,
1649 req_ctx->hctx_wr.skb = skb;
1718 req_ctx->hctx_wr.srcsg = req->src;
1728 req_ctx->hctx_wr.processed += params.sg_len;
1786 req_ctx->hctx_wr.isfinal = 1;
1796 req_ctx->hctx_wr.result = 1;
1799 req_ctx->hctx_wr.srcsg = req->src;
1896 req_ctx->hctx_wr.result = 1;
1897 req_ctx->hctx_wr.srcsg = req->src;
1911 req_ctx->hctx_wr.processed += params.sg_len;
1990 req_ctx->hctx_wr.result = 1;
1991 req_ctx->hctx_wr.srcsg = req->src;
2005 req_ctx->hctx_wr.processed += params.sg_len;
2020 struct chcr_hctx_per_wr *hctx_wr = &reqctx->hctx_wr;
2044 params.sg_len = chcr_hash_ent_in_wr(hctx_wr->srcsg, 0,
2046 hctx_wr->src_ofst);
2047 if ((params.sg_len + hctx_wr->processed) > req->nbytes)
2048 params.sg_len = req->nbytes - hctx_wr->processed;
2049 if (!hctx_wr->result ||
2050 ((params.sg_len + hctx_wr->processed) < req->nbytes)) {
2073 hctx_wr->processed += params.sg_len;
2087 struct chcr_hctx_per_wr *hctx_wr = &reqctx->hctx_wr;
2102 if (hctx_wr->dma_addr) {
2103 dma_unmap_single(&u_ctx->lldi.pdev->dev, hctx_wr->dma_addr,
2104 hctx_wr->dma_len, DMA_TO_DEVICE);
2105 hctx_wr->dma_addr = 0;
2107 if (hctx_wr->isfinal || ((hctx_wr->processed + reqctx->reqlen) ==
2109 if (hctx_wr->result == 1) {
2110 hctx_wr->result = 0;
2129 if (hctx_wr->is_sg_map)
2777 if (reqctx->hctx_wr.imm) {
2785 sg_pcopy_to_buffer(reqctx->hctx_wr.srcsg,
2786 sg_nents(reqctx->hctx_wr.srcsg), buf,
2792 reqctx->hctx_wr.dma_addr);
2793 ulptx_walk_add_sg(&ulp_walk, reqctx->hctx_wr.srcsg,
2794 param->sg_len, reqctx->hctx_wr.src_ofst);
2795 reqctx->hctx_wr.srcsg = ulp_walk.last_sg;
2796 reqctx->hctx_wr.src_ofst = ulp_walk.last_sg_len;
2813 req_ctx->hctx_wr.is_sg_map = 1;
2827 req_ctx->hctx_wr.is_sg_map = 0;