Lines Matching refs:src_nents
804 int src_nents; member
842 unsigned int src_nents = edesc->src_nents ? : 1; in talitos_sg_unmap() local
849 dma_unmap_sg(dev, src, src_nents, DMA_TO_DEVICE); in talitos_sg_unmap()
863 dma_unmap_sg(dev, src, src_nents, DMA_BIDIRECTIONAL); in talitos_sg_unmap()
904 icvdata = &edesc->link_tbl[edesc->src_nents + in ipsec_esp_encrypt_done()
934 icvdata = &edesc->link_tbl[edesc->src_nents + in ipsec_esp_decrypt_swauth_done()
1049 sg_count = talitos_map_sg(dev, areq->src, edesc->src_nents ? : 1, in ipsec_esp()
1091 &edesc->link_tbl[edesc->src_nents + 1]; in ipsec_esp()
1094 (edesc->src_nents + 1) * in ipsec_esp()
1109 (edesc->src_nents + edesc->dst_nents + 2) * in ipsec_esp()
1219 int src_nents, dst_nents, alloc_len, dma_len; in talitos_edesc_alloc() local
1229 src_nents = sg_count(src, cryptlen + authsize, &src_chained); in talitos_edesc_alloc()
1230 src_nents = (src_nents == 1) ? 0 : src_nents; in talitos_edesc_alloc()
1236 dst_nents = src_nents; in talitos_edesc_alloc()
1250 if (src_nents || dst_nents) { in talitos_edesc_alloc()
1251 dma_len = (src_nents + dst_nents + 2) * in talitos_edesc_alloc()
1265 edesc->src_nents = src_nents; in talitos_edesc_alloc()
1324 ((!edesc->src_nents && !edesc->dst_nents) || in aead_decrypt()
1345 icvdata = &edesc->link_tbl[edesc->src_nents + in aead_decrypt()
1350 sg = sg_last(req->src, edesc->src_nents ? : 1); in aead_decrypt()
1469 sg_count = talitos_map_sg(dev, areq->src, edesc->src_nents ? : 1, in common_nonsnoop()
1506 &edesc->link_tbl[edesc->src_nents + 1]; in common_nonsnoop()
1509 (edesc->src_nents + 1) * in common_nonsnoop()
1667 edesc->src_nents ? : 1, in common_nonsnoop_hash()