Home
last modified time | relevance | path

Searched refs:edesc (Results 1 – 7 of 7) sorted by relevance

/drivers/crypto/caam/
Dcaampkc.c22 static void rsa_io_unmap(struct device *dev, struct rsa_edesc *edesc, in rsa_io_unmap() argument
25 dma_unmap_sg(dev, req->dst, edesc->dst_nents, DMA_FROM_DEVICE); in rsa_io_unmap()
26 dma_unmap_sg(dev, req->src, edesc->src_nents, DMA_TO_DEVICE); in rsa_io_unmap()
28 if (edesc->sec4_sg_bytes) in rsa_io_unmap()
29 dma_unmap_single(dev, edesc->sec4_sg_dma, edesc->sec4_sg_bytes, in rsa_io_unmap()
33 static void rsa_pub_unmap(struct device *dev, struct rsa_edesc *edesc, in rsa_pub_unmap() argument
39 struct rsa_pub_pdb *pdb = &edesc->pdb.pub; in rsa_pub_unmap()
45 static void rsa_priv_f1_unmap(struct device *dev, struct rsa_edesc *edesc, in rsa_priv_f1_unmap() argument
51 struct rsa_priv_f1_pdb *pdb = &edesc->pdb.priv_f1; in rsa_priv_f1_unmap()
61 struct rsa_edesc *edesc; in rsa_pub_done() local
[all …]
Dcaamhash.c604 struct ahash_edesc *edesc, in ahash_unmap() argument
607 if (edesc->src_nents) in ahash_unmap()
608 dma_unmap_sg(dev, req->src, edesc->src_nents, DMA_TO_DEVICE); in ahash_unmap()
609 if (edesc->dst_dma) in ahash_unmap()
610 dma_unmap_single(dev, edesc->dst_dma, dst_len, DMA_FROM_DEVICE); in ahash_unmap()
612 if (edesc->sec4_sg_bytes) in ahash_unmap()
613 dma_unmap_single(dev, edesc->sec4_sg_dma, in ahash_unmap()
614 edesc->sec4_sg_bytes, DMA_TO_DEVICE); in ahash_unmap()
618 struct ahash_edesc *edesc, in ahash_unmap_ctx() argument
629 ahash_unmap(dev, edesc, req, dst_len); in ahash_unmap_ctx()
[all …]
Dcaamalg.c1941 struct aead_edesc *edesc, in aead_unmap() argument
1945 edesc->src_nents, edesc->dst_nents, 0, 0, in aead_unmap()
1946 edesc->sec4_sg_dma, edesc->sec4_sg_bytes); in aead_unmap()
1950 struct ablkcipher_edesc *edesc, in ablkcipher_unmap() argument
1957 edesc->src_nents, edesc->dst_nents, in ablkcipher_unmap()
1958 edesc->iv_dma, ivsize, in ablkcipher_unmap()
1959 edesc->sec4_sg_dma, edesc->sec4_sg_bytes); in ablkcipher_unmap()
1966 struct aead_edesc *edesc; in aead_encrypt_done() local
1972 edesc = container_of(desc, struct aead_edesc, hw_desc[0]); in aead_encrypt_done()
1977 aead_unmap(jrdev, edesc, req); in aead_encrypt_done()
[all …]
/drivers/dma/
Dedma.c215 struct edma_desc *edesc; member
756 struct edma_desc *edesc; in edma_execute() local
760 if (!echan->edesc) { in edma_execute()
766 echan->edesc = to_edma_desc(&vdesc->tx); in edma_execute()
769 edesc = echan->edesc; in edma_execute()
772 left = edesc->pset_nr - edesc->processed; in edma_execute()
774 edesc->sg_len = 0; in edma_execute()
778 j = i + edesc->processed; in edma_execute()
779 edma_write_slot(ecc, echan->slot[i], &edesc->pset[j].param); in edma_execute()
780 edesc->sg_len += edesc->pset[j].len; in edma_execute()
[all …]
Dfsl-edma.c158 struct fsl_edma_desc *edesc; member
307 fsl_chan->edesc = NULL; in fsl_edma_terminate_all()
321 if (fsl_chan->edesc) { in fsl_edma_pause()
336 if (fsl_chan->edesc) { in fsl_edma_resume()
370 struct fsl_edma_desc *edesc = fsl_chan->edesc; in fsl_edma_desc_residue() local
379 for (len = i = 0; i < fsl_chan->edesc->n_tcds; i++) in fsl_edma_desc_residue()
380 len += le32_to_cpu(edesc->tcd[i].vtcd->nbytes) in fsl_edma_desc_residue()
381 * le16_to_cpu(edesc->tcd[i].vtcd->biter); in fsl_edma_desc_residue()
392 for (i = 0; i < fsl_chan->edesc->n_tcds; i++) { in fsl_edma_desc_residue()
393 size = le32_to_cpu(edesc->tcd[i].vtcd->nbytes) in fsl_edma_desc_residue()
[all …]
/drivers/crypto/
Dtalitos.c917 struct talitos_edesc *edesc, in talitos_sg_unmap() argument
924 unsigned int src_nents = edesc->src_nents ? : 1; in talitos_sg_unmap()
925 unsigned int dst_nents = edesc->dst_nents ? : 1; in talitos_sg_unmap()
928 dma_sync_single_for_device(dev, edesc->dma_link_tbl + offset, in talitos_sg_unmap()
930 sg_pcopy_from_buffer(dst, dst_nents, edesc->buf + offset, len, in talitos_sg_unmap()
945 struct talitos_edesc *edesc, in ipsec_esp_unmap() argument
952 if (edesc->desc.hdr & DESC_HDR_TYPE_IPSEC_ESP) in ipsec_esp_unmap()
953 unmap_single_talitos_ptr(dev, &edesc->desc.ptr[6], in ipsec_esp_unmap()
955 unmap_single_talitos_ptr(dev, &edesc->desc.ptr[3], DMA_TO_DEVICE); in ipsec_esp_unmap()
956 unmap_single_talitos_ptr(dev, &edesc->desc.ptr[2], DMA_TO_DEVICE); in ipsec_esp_unmap()
[all …]
/drivers/net/ethernet/tile/
Dtilegx.c2015 gxio_mpipe_edesc_t edesc = { { 0 } }; in tile_net_tx() local
2025 edesc.stack_idx = md->first_buffer_stack; in tile_net_tx()
2029 edesc.xfer_size = frags[i].length; in tile_net_tx()
2030 edesc.va = va_to_tile_io_addr(frags[i].buf); in tile_net_tx()
2031 edescs[i] = edesc; in tile_net_tx()