Lines Matching refs:dst_nents
892 int dst_nents; member
910 unsigned int dst_nents = edesc->dst_nents ? : 1; in talitos_sg_unmap() local
916 dma_unmap_sg(dev, dst, dst_nents, DMA_FROM_DEVICE); in talitos_sg_unmap()
959 edesc->dst_nents + 2]; in ipsec_esp_encrypt_done()
960 sg = sg_last(areq->dst, edesc->dst_nents); in ipsec_esp_encrypt_done()
987 sg = sg_last(req->dst, edesc->dst_nents ? : 1); in ipsec_esp_decrypt_swauth_done()
992 edesc->dst_nents + 2]; in ipsec_esp_decrypt_swauth_done()
1170 sg_count = dma_map_sg(dev, areq->dst, edesc->dst_nents ? : 1, in ipsec_esp()
1196 (edesc->src_nents + edesc->dst_nents + in ipsec_esp()
1236 int src_nents, dst_nents, alloc_len, dma_len; in talitos_edesc_alloc() local
1256 dst_nents = dst ? src_nents : 0; in talitos_edesc_alloc()
1261 dst_nents = sg_nents_for_len(dst, assoclen + cryptlen + in talitos_edesc_alloc()
1263 dst_nents = (dst_nents == 1) ? 0 : dst_nents; in talitos_edesc_alloc()
1272 if (src_nents || dst_nents) { in talitos_edesc_alloc()
1275 (dst_nents ? cryptlen : 0); in talitos_edesc_alloc()
1277 dma_len = (src_nents + dst_nents + 2) * in talitos_edesc_alloc()
1295 edesc->dst_nents = dst_nents; in talitos_edesc_alloc()
1355 ((!edesc->src_nents && !edesc->dst_nents) || in aead_decrypt()
1375 edesc->dst_nents + 2]; in aead_decrypt()
1410 if (dst && edesc->dst_nents) { in unmap_sg_talitos_ptr()
1414 sg_copy_from_buffer(dst, edesc->dst_nents ? : 1, in unmap_sg_talitos_ptr()
1513 sg_count = dma_map_sg(dev, dst, edesc->dst_nents ? : 1, dir); in map_sg_out_talitos_ptr()