Lines Matching refs:dst_nents
1892 int dst_nents; member
1912 int dst_nents; member
1922 int dst_nents, in caam_unmap() argument
1928 dma_unmap_sg(dev, dst, dst_nents ? : 1, DMA_FROM_DEVICE); in caam_unmap()
1945 edesc->src_nents, edesc->dst_nents, 0, 0, in aead_unmap()
1957 edesc->src_nents, edesc->dst_nents, in ablkcipher_unmap()
2036 edesc->dst_nents > 1 ? 100 : req->nbytes, 1, true); in ablkcipher_encrypt_done()
2076 edesc->dst_nents > 1 ? 100 : req->nbytes, 1, true); in ablkcipher_decrypt_done()
2132 if (!edesc->dst_nents) { in init_aead_job()
2272 if (!edesc->dst_nents) { in init_ablkcipher_job()
2345 int src_nents, dst_nents = 0; in aead_edesc_alloc() local
2354 dst_nents = sg_count(req->dst, in aead_edesc_alloc()
2370 sec4_sg_len += dst_nents; in aead_edesc_alloc()
2399 sgc = dma_map_sg(jrdev, req->dst, dst_nents ? : 1, in aead_edesc_alloc()
2411 edesc->dst_nents = dst_nents; in aead_edesc_alloc()
2422 if (dst_nents) { in aead_edesc_alloc()
2423 sg_to_sec4_sg_last(req->dst, dst_nents, in aead_edesc_alloc()
2622 int src_nents, dst_nents = 0, sec4_sg_bytes; in ablkcipher_edesc_alloc() local
2633 dst_nents = sg_count(req->dst, req->nbytes); in ablkcipher_edesc_alloc()
2641 sgc = dma_map_sg(jrdev, req->dst, dst_nents ? : 1, in ablkcipher_edesc_alloc()
2659 sec4_sg_bytes = ((iv_contig ? 0 : 1) + src_nents + dst_nents) * in ablkcipher_edesc_alloc()
2671 edesc->dst_nents = dst_nents; in ablkcipher_edesc_alloc()
2684 if (dst_nents) { in ablkcipher_edesc_alloc()
2685 sg_to_sec4_sg_last(req->dst, dst_nents, in ablkcipher_edesc_alloc()
2798 int src_nents, dst_nents = 0, sec4_sg_bytes; in ablkcipher_giv_edesc_alloc() local
2809 dst_nents = sg_count(req->dst, req->nbytes); in ablkcipher_giv_edesc_alloc()
2817 sgc = dma_map_sg(jrdev, req->dst, dst_nents ? : 1, in ablkcipher_giv_edesc_alloc()
2831 if (!dst_nents && iv_dma + ivsize == sg_dma_address(req->dst)) in ablkcipher_giv_edesc_alloc()
2834 dst_nents = dst_nents ? : 1; in ablkcipher_giv_edesc_alloc()
2835 sec4_sg_bytes = ((iv_contig ? 0 : 1) + src_nents + dst_nents) * in ablkcipher_giv_edesc_alloc()
2847 edesc->dst_nents = dst_nents; in ablkcipher_giv_edesc_alloc()
2862 sg_to_sec4_sg_last(req->dst, dst_nents, in ablkcipher_giv_edesc_alloc()