diff options
Diffstat (limited to 'drivers/crypto/ccp/ccp-dmaengine.c')
-rw-r--r-- | drivers/crypto/ccp/ccp-dmaengine.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/crypto/ccp/ccp-dmaengine.c b/drivers/crypto/ccp/ccp-dmaengine.c index 901343dd513e..d608043c0280 100644 --- a/drivers/crypto/ccp/ccp-dmaengine.c +++ b/drivers/crypto/ccp/ccp-dmaengine.c | |||
@@ -502,27 +502,6 @@ static struct dma_async_tx_descriptor *ccp_prep_dma_memcpy( | |||
502 | return &desc->tx_desc; | 502 | return &desc->tx_desc; |
503 | } | 503 | } |
504 | 504 | ||
505 | static struct dma_async_tx_descriptor *ccp_prep_dma_sg( | ||
506 | struct dma_chan *dma_chan, struct scatterlist *dst_sg, | ||
507 | unsigned int dst_nents, struct scatterlist *src_sg, | ||
508 | unsigned int src_nents, unsigned long flags) | ||
509 | { | ||
510 | struct ccp_dma_chan *chan = container_of(dma_chan, struct ccp_dma_chan, | ||
511 | dma_chan); | ||
512 | struct ccp_dma_desc *desc; | ||
513 | |||
514 | dev_dbg(chan->ccp->dev, | ||
515 | "%s - src=%p, src_nents=%u dst=%p, dst_nents=%u, flags=%#lx\n", | ||
516 | __func__, src_sg, src_nents, dst_sg, dst_nents, flags); | ||
517 | |||
518 | desc = ccp_create_desc(dma_chan, dst_sg, dst_nents, src_sg, src_nents, | ||
519 | flags); | ||
520 | if (!desc) | ||
521 | return NULL; | ||
522 | |||
523 | return &desc->tx_desc; | ||
524 | } | ||
525 | |||
526 | static struct dma_async_tx_descriptor *ccp_prep_dma_interrupt( | 505 | static struct dma_async_tx_descriptor *ccp_prep_dma_interrupt( |
527 | struct dma_chan *dma_chan, unsigned long flags) | 506 | struct dma_chan *dma_chan, unsigned long flags) |
528 | { | 507 | { |
@@ -704,7 +683,6 @@ int ccp_dmaengine_register(struct ccp_device *ccp) | |||
704 | dma_dev->directions = DMA_MEM_TO_MEM; | 683 | dma_dev->directions = DMA_MEM_TO_MEM; |
705 | dma_dev->residue_granularity = DMA_RESIDUE_GRANULARITY_DESCRIPTOR; | 684 | dma_dev->residue_granularity = DMA_RESIDUE_GRANULARITY_DESCRIPTOR; |
706 | dma_cap_set(DMA_MEMCPY, dma_dev->cap_mask); | 685 | dma_cap_set(DMA_MEMCPY, dma_dev->cap_mask); |
707 | dma_cap_set(DMA_SG, dma_dev->cap_mask); | ||
708 | dma_cap_set(DMA_INTERRUPT, dma_dev->cap_mask); | 686 | dma_cap_set(DMA_INTERRUPT, dma_dev->cap_mask); |
709 | 687 | ||
710 | /* The DMA channels for this device can be set to public or private, | 688 | /* The DMA channels for this device can be set to public or private, |
@@ -740,7 +718,6 @@ int ccp_dmaengine_register(struct ccp_device *ccp) | |||
740 | 718 | ||
741 | dma_dev->device_free_chan_resources = ccp_free_chan_resources; | 719 | dma_dev->device_free_chan_resources = ccp_free_chan_resources; |
742 | dma_dev->device_prep_dma_memcpy = ccp_prep_dma_memcpy; | 720 | dma_dev->device_prep_dma_memcpy = ccp_prep_dma_memcpy; |
743 | dma_dev->device_prep_dma_sg = ccp_prep_dma_sg; | ||
744 | dma_dev->device_prep_dma_interrupt = ccp_prep_dma_interrupt; | 721 | dma_dev->device_prep_dma_interrupt = ccp_prep_dma_interrupt; |
745 | dma_dev->device_issue_pending = ccp_issue_pending; | 722 | dma_dev->device_issue_pending = ccp_issue_pending; |
746 | dma_dev->device_tx_status = ccp_tx_status; | 723 | dma_dev->device_tx_status = ccp_tx_status; |