Lines Matching defs:hctx_wr
135 memset(&reqctx->hctx_wr, 0, sizeof(struct chcr_hctx_per_wr));
1587 req_ctx->hctx_wr.imm = (transhdr_len + param->bfr_len +
1589 nents = sg_nents_xlen(req_ctx->hctx_wr.srcsg, param->sg_len,
1590 CHCR_SRC_SG_SIZE, req_ctx->hctx_wr.src_ofst);
1592 transhdr_len += req_ctx->hctx_wr.imm ? roundup(param->bfr_len +
1635 req_ctx->hctx_wr.dma_addr =
1639 req_ctx->hctx_wr. dma_addr)) {
1643 req_ctx->hctx_wr.dma_len = param->bfr_len;
1645 req_ctx->hctx_wr.dma_addr = 0;
1649 temp = param->kctx_len + DUMMY_BYTES + (req_ctx->hctx_wr.imm ?
1652 create_wreq(h_ctx(tfm), chcr_req, &req->base, req_ctx->hctx_wr.imm,
1655 req_ctx->hctx_wr.skb = skb;
1724 req_ctx->hctx_wr.srcsg = req->src;
1734 req_ctx->hctx_wr.processed += params.sg_len;
1792 req_ctx->hctx_wr.isfinal = 1;
1802 req_ctx->hctx_wr.result = 1;
1805 req_ctx->hctx_wr.srcsg = req->src;
1902 req_ctx->hctx_wr.result = 1;
1903 req_ctx->hctx_wr.srcsg = req->src;
1917 req_ctx->hctx_wr.processed += params.sg_len;
1996 req_ctx->hctx_wr.result = 1;
1997 req_ctx->hctx_wr.srcsg = req->src;
2011 req_ctx->hctx_wr.processed += params.sg_len;
2026 struct chcr_hctx_per_wr *hctx_wr = &reqctx->hctx_wr;
2050 params.sg_len = chcr_hash_ent_in_wr(hctx_wr->srcsg, 0,
2052 hctx_wr->src_ofst);
2053 if ((params.sg_len + hctx_wr->processed) > req->nbytes)
2054 params.sg_len = req->nbytes - hctx_wr->processed;
2055 if (!hctx_wr->result ||
2056 ((params.sg_len + hctx_wr->processed) < req->nbytes)) {
2079 hctx_wr->processed += params.sg_len;
2093 struct chcr_hctx_per_wr *hctx_wr = &reqctx->hctx_wr;
2108 if (hctx_wr->dma_addr) {
2109 dma_unmap_single(&u_ctx->lldi.pdev->dev, hctx_wr->dma_addr,
2110 hctx_wr->dma_len, DMA_TO_DEVICE);
2111 hctx_wr->dma_addr = 0;
2113 if (hctx_wr->isfinal || ((hctx_wr->processed + reqctx->reqlen) ==
2115 if (hctx_wr->result == 1) {
2116 hctx_wr->result = 0;
2135 if (hctx_wr->is_sg_map)
2782 if (reqctx->hctx_wr.imm) {
2790 sg_pcopy_to_buffer(reqctx->hctx_wr.srcsg,
2791 sg_nents(reqctx->hctx_wr.srcsg), buf,
2797 reqctx->hctx_wr.dma_addr);
2798 ulptx_walk_add_sg(&ulp_walk, reqctx->hctx_wr.srcsg,
2799 param->sg_len, reqctx->hctx_wr.src_ofst);
2800 reqctx->hctx_wr.srcsg = ulp_walk.last_sg;
2801 reqctx->hctx_wr.src_ofst = ulp_walk.last_sg_len;
2818 req_ctx->hctx_wr.is_sg_map = 1;
2832 req_ctx->hctx_wr.is_sg_map = 0;