Lines Matching refs:dst_nents
51 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_aead_done()
125 rctx->dst_nents = sg_nents_for_len(req->dst, totallen); in qce_aead_prepare_dst_buf()
126 if (rctx->dst_nents < 0) { in qce_aead_prepare_dst_buf()
131 rctx->dst_nents += 2; in qce_aead_prepare_dst_buf()
133 rctx->dst_nents += 1; in qce_aead_prepare_dst_buf()
137 ret = sg_alloc_table(&rctx->dst_tbl, rctx->dst_nents, gfp); in qce_aead_prepare_dst_buf()
175 rctx->dst_nents = sg_nents_for_len(rctx->dst_sg, totallen) + 1; in qce_aead_prepare_dst_buf()
289 rctx->dst_nents = rctx->src_nents + 1; in qce_aead_ccm_prepare_buf_assoclen()
291 rctx->dst_nents = rctx->src_nents; in qce_aead_ccm_prepare_buf_assoclen()
323 rctx->src_nents = rctx->dst_nents - 1; in qce_aead_prepare_buf()
354 rctx->dst_nents = rctx->src_nents; in qce_aead_ccm_prepare_buf()
418 int dst_nents, src_nents, ret; in qce_aead_async_req_handle() local
452 dst_nents = dma_map_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_aead_async_req_handle()
453 if (!dst_nents) { in qce_aead_async_req_handle()
466 src_nents = dst_nents; in qce_aead_async_req_handle()
468 src_nents = dst_nents - 1; in qce_aead_async_req_handle()
471 ret = qce_dma_prep_sgs(&qce->dma, rctx->src_sg, src_nents, rctx->dst_sg, dst_nents, in qce_aead_async_req_handle()
490 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_aead_async_req_handle()