Lines Matching refs:dst_nents
1842 int dst_nents; member
1862 int dst_nents; member
1872 int dst_nents, in caam_unmap() argument
1878 dma_unmap_sg(dev, dst, dst_nents ? : 1, DMA_FROM_DEVICE); in caam_unmap()
1895 edesc->src_nents, edesc->dst_nents, 0, 0, in aead_unmap()
1907 edesc->src_nents, edesc->dst_nents, in ablkcipher_unmap()
1986 edesc->dst_nents > 1 ? 100 : req->nbytes, 1); in ablkcipher_encrypt_done()
2018 edesc->dst_nents > 1 ? 100 : req->nbytes, 1); in ablkcipher_decrypt_done()
2066 if (!edesc->dst_nents) { in init_aead_job()
2203 if (!edesc->dst_nents) { in init_ablkcipher_job()
2274 int src_nents, dst_nents = 0; in aead_edesc_alloc() local
2283 dst_nents = sg_count(req->dst, in aead_edesc_alloc()
2299 sec4_sg_len += dst_nents; in aead_edesc_alloc()
2328 sgc = dma_map_sg(jrdev, req->dst, dst_nents ? : 1, in aead_edesc_alloc()
2340 edesc->dst_nents = dst_nents; in aead_edesc_alloc()
2351 if (dst_nents) { in aead_edesc_alloc()
2352 sg_to_sec4_sg_last(req->dst, dst_nents, in aead_edesc_alloc()
2564 int src_nents, dst_nents = 0, sec4_sg_bytes; in ablkcipher_edesc_alloc() local
2575 dst_nents = sg_count(req->dst, req->nbytes); in ablkcipher_edesc_alloc()
2583 sgc = dma_map_sg(jrdev, req->dst, dst_nents ? : 1, in ablkcipher_edesc_alloc()
2601 sec4_sg_bytes = ((iv_contig ? 0 : 1) + src_nents + dst_nents) * in ablkcipher_edesc_alloc()
2613 edesc->dst_nents = dst_nents; in ablkcipher_edesc_alloc()
2626 if (dst_nents) { in ablkcipher_edesc_alloc()
2627 sg_to_sec4_sg_last(req->dst, dst_nents, in ablkcipher_edesc_alloc()
2740 int src_nents, dst_nents = 0, sec4_sg_bytes; in ablkcipher_giv_edesc_alloc() local
2751 dst_nents = sg_count(req->dst, req->nbytes); in ablkcipher_giv_edesc_alloc()
2759 sgc = dma_map_sg(jrdev, req->dst, dst_nents ? : 1, in ablkcipher_giv_edesc_alloc()
2773 if (!dst_nents && iv_dma + ivsize == sg_dma_address(req->dst)) in ablkcipher_giv_edesc_alloc()
2776 dst_nents = dst_nents ? : 1; in ablkcipher_giv_edesc_alloc()
2777 sec4_sg_bytes = ((iv_contig ? 0 : 1) + src_nents + dst_nents) * in ablkcipher_giv_edesc_alloc()
2789 edesc->dst_nents = dst_nents; in ablkcipher_giv_edesc_alloc()
2804 sg_to_sec4_sg_last(req->dst, dst_nents, in ablkcipher_giv_edesc_alloc()