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