Lines Matching refs:hctx_wr

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