Lines Matching refs:dst_nents
50 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_skcipher_done()
74 int dst_nents, src_nents, ret; in qce_skcipher_async_req_handle() local
86 rctx->dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in qce_skcipher_async_req_handle()
88 rctx->dst_nents = rctx->src_nents; in qce_skcipher_async_req_handle()
93 if (rctx->dst_nents < 0) { in qce_skcipher_async_req_handle()
95 return -rctx->dst_nents; in qce_skcipher_async_req_handle()
98 rctx->dst_nents += 1; in qce_skcipher_async_req_handle()
103 ret = sg_alloc_table(&rctx->dst_tbl, rctx->dst_nents, gfp); in qce_skcipher_async_req_handle()
125 dst_nents = dma_map_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_skcipher_async_req_handle()
126 if (dst_nents < 0) { in qce_skcipher_async_req_handle()
127 ret = dst_nents; in qce_skcipher_async_req_handle()
140 src_nents = dst_nents - 1; in qce_skcipher_async_req_handle()
144 rctx->dst_sg, dst_nents, in qce_skcipher_async_req_handle()
163 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_skcipher_async_req_handle()