/drivers/rapidio/devices/ |
D | tsi721_dma.c | 49 return container_of(chan, struct tsi721_bdma_chan, dchan); in to_tsi721_chan() 66 struct device *dev = bdma_chan->dchan.device->dev; in tsi721_bdma_ch_init() 72 struct tsi721_device *priv = to_tsi721(bdma_chan->dchan.device); in tsi721_bdma_ch_init() 75 tsi_debug(DMA, &bdma_chan->dchan.dev->device, "DMAC%d", bdma_chan->id); in tsi721_bdma_ch_init() 91 tsi_debug(DMA, &bdma_chan->dchan.dev->device, in tsi721_bdma_ch_init() 115 tsi_debug(DMA, &bdma_chan->dchan.dev->device, in tsi721_bdma_ch_init() 156 tsi_debug(DMA, &bdma_chan->dchan.dev->device, in tsi721_bdma_ch_init() 168 tsi_debug(DMA, &bdma_chan->dchan.dev->device, in tsi721_bdma_ch_init() 210 struct tsi721_device *priv = to_tsi721(bdma_chan->dchan.device); in tsi721_bdma_ch_free() 234 dma_free_coherent(bdma_chan->dchan.device->dev, in tsi721_bdma_ch_free() [all …]
|
D | tsi721.h | 701 struct dma_chan dchan; member
|
/drivers/dma/ |
D | nbpfaxi.c | 602 static void nbpf_issue_pending(struct dma_chan *dchan) in nbpf_issue_pending() argument 604 struct nbpf_channel *chan = nbpf_to_chan(dchan); in nbpf_issue_pending() 607 dev_dbg(dchan->device->dev, "Entry %s()\n", __func__); in nbpf_issue_pending() 626 static enum dma_status nbpf_tx_status(struct dma_chan *dchan, in nbpf_tx_status() argument 629 struct nbpf_channel *chan = nbpf_to_chan(dchan); in nbpf_tx_status() 630 enum dma_status status = dma_cookie_status(dchan, cookie, state); in nbpf_tx_status() 641 dev_dbg(dchan->device->dev, "%s(): residue %u\n", __func__, in nbpf_tx_status() 692 struct dma_chan *dchan = &chan->dma_chan; in nbpf_desc_page_alloc() local 700 struct device *dev = dchan->device->dev; in nbpf_desc_page_alloc() 713 ldesc->hwdesc_dma_addr = dma_map_single(dchan->device->dev, in nbpf_desc_page_alloc() [all …]
|
D | mmp_pdma.c | 135 #define to_mmp_pdma_chan(dchan) \ argument 136 container_of(dchan, struct mmp_pdma_chan, chan) 140 static int mmp_pdma_config_write(struct dma_chan *dchan, 391 static int mmp_pdma_alloc_chan_resources(struct dma_chan *dchan) in mmp_pdma_alloc_chan_resources() argument 393 struct mmp_pdma_chan *chan = to_mmp_pdma_chan(dchan); in mmp_pdma_alloc_chan_resources() 398 chan->desc_pool = dma_pool_create(dev_name(&dchan->dev->device), in mmp_pdma_alloc_chan_resources() 425 static void mmp_pdma_free_chan_resources(struct dma_chan *dchan) in mmp_pdma_free_chan_resources() argument 427 struct mmp_pdma_chan *chan = to_mmp_pdma_chan(dchan); in mmp_pdma_free_chan_resources() 444 mmp_pdma_prep_memcpy(struct dma_chan *dchan, in mmp_pdma_prep_memcpy() argument 452 if (!dchan) in mmp_pdma_prep_memcpy() [all …]
|
D | fsldma.c | 368 int fsl_dma_external_start(struct dma_chan *dchan, int enable) in fsl_dma_external_start() argument 372 if (!dchan) in fsl_dma_external_start() 375 chan = to_fsl_chan(dchan); in fsl_dma_external_start() 689 static int fsl_dma_alloc_chan_resources(struct dma_chan *dchan) in fsl_dma_alloc_chan_resources() argument 691 struct fsldma_chan *chan = to_fsl_chan(dchan); in fsl_dma_alloc_chan_resources() 742 static void fsl_dma_free_chan_resources(struct dma_chan *dchan) in fsl_dma_free_chan_resources() argument 744 struct fsldma_chan *chan = to_fsl_chan(dchan); in fsl_dma_free_chan_resources() 759 fsl_dma_prep_memcpy(struct dma_chan *dchan, in fsl_dma_prep_memcpy() argument 767 if (!dchan) in fsl_dma_prep_memcpy() 773 chan = to_fsl_chan(dchan); in fsl_dma_prep_memcpy() [all …]
|
D | pxa_dma.c | 138 #define to_pxad_chan(dchan) \ argument 139 container_of(dchan, struct pxad_chan, vc.chan) 684 static int pxad_alloc_chan_resources(struct dma_chan *dchan) in pxad_alloc_chan_resources() argument 686 struct pxad_chan *chan = to_pxad_chan(dchan); in pxad_alloc_chan_resources() 692 chan->desc_pool = dma_pool_create(dma_chan_name(dchan), in pxad_alloc_chan_resources() 707 static void pxad_free_chan_resources(struct dma_chan *dchan) in pxad_free_chan_resources() argument 709 struct pxad_chan *chan = to_pxad_chan(dchan); in pxad_free_chan_resources() 824 static void pxad_issue_pending(struct dma_chan *dchan) in pxad_issue_pending() argument 826 struct pxad_chan *chan = to_pxad_chan(dchan); in pxad_issue_pending() 915 pxad_prep_memcpy(struct dma_chan *dchan, in pxad_prep_memcpy() argument [all …]
|
D | altera-msgdma.c | 332 msgdma_prep_memcpy(struct dma_chan *dchan, dma_addr_t dma_dst, in msgdma_prep_memcpy() argument 335 struct msgdma_device *mdev = to_mdev(dchan); in msgdma_prep_memcpy() 388 msgdma_prep_slave_sg(struct dma_chan *dchan, struct scatterlist *sgl, in msgdma_prep_slave_sg() argument 393 struct msgdma_device *mdev = to_mdev(dchan); in msgdma_prep_slave_sg() 461 static int msgdma_dma_config(struct dma_chan *dchan, in msgdma_dma_config() argument 464 struct msgdma_device *mdev = to_mdev(dchan); in msgdma_dma_config() 638 static void msgdma_free_chan_resources(struct dma_chan *dchan) in msgdma_free_chan_resources() argument 640 struct msgdma_device *mdev = to_mdev(dchan); in msgdma_free_chan_resources() 655 static int msgdma_alloc_chan_resources(struct dma_chan *dchan) in msgdma_alloc_chan_resources() argument 657 struct msgdma_device *mdev = to_mdev(dchan); in msgdma_alloc_chan_resources()
|
D | xgene-dma.c | 190 #define to_dma_chan(dchan) \ argument 191 container_of(dchan, struct xgene_dma_chan, dma_chan) 774 static int xgene_dma_alloc_chan_resources(struct dma_chan *dchan) in xgene_dma_alloc_chan_resources() argument 776 struct xgene_dma_chan *chan = to_dma_chan(dchan); in xgene_dma_alloc_chan_resources() 811 static void xgene_dma_free_chan_resources(struct dma_chan *dchan) in xgene_dma_free_chan_resources() argument 813 struct xgene_dma_chan *chan = to_dma_chan(dchan); in xgene_dma_free_chan_resources() 838 struct dma_chan *dchan, dma_addr_t dst, dma_addr_t *src, in xgene_dma_prep_xor() argument 846 if (unlikely(!dchan || !len)) in xgene_dma_prep_xor() 849 chan = to_dma_chan(dchan); in xgene_dma_prep_xor() 886 struct dma_chan *dchan, dma_addr_t *dst, dma_addr_t *src, in xgene_dma_prep_pq() argument [all …]
|
D | bcm-sba-raid.c | 95 #define to_sba_device(dchan) \ argument 96 container_of(dchan, struct sba_device, dma_chan) 494 static void sba_free_chan_resources(struct dma_chan *dchan) in sba_free_chan_resources() argument 501 sba_cleanup_nonpending_requests(to_sba_device(dchan)); in sba_free_chan_resources() 504 static int sba_device_terminate_all(struct dma_chan *dchan) in sba_device_terminate_all() argument 507 sba_cleanup_pending_requests(to_sba_device(dchan)); in sba_device_terminate_all() 512 static void sba_issue_pending(struct dma_chan *dchan) in sba_issue_pending() argument 515 struct sba_device *sba = to_sba_device(dchan); in sba_issue_pending() 547 static enum dma_status sba_tx_status(struct dma_chan *dchan, in sba_tx_status() argument 552 struct sba_device *sba = to_sba_device(dchan); in sba_tx_status() [all …]
|
D | at_hdmac_regs.h | 296 static inline struct at_dma_chan *to_at_dma_chan(struct dma_chan *dchan) in to_at_dma_chan() argument 298 return container_of(dchan, struct at_dma_chan, chan_common); in to_at_dma_chan()
|
D | mmp_tdma.c | 137 #define to_mmp_tdma_chan(dchan) container_of(dchan, struct mmp_tdma_chan, chan) argument
|
D | at_xdmac.c | 319 static inline struct at_xdmac_chan *to_at_xdmac_chan(struct dma_chan *dchan) in to_at_xdmac_chan() argument 321 return container_of(dchan, struct at_xdmac_chan, chan); in to_at_xdmac_chan()
|
D | ste_dma40.c | 2208 d40_prep_sg(struct dma_chan *dchan, struct scatterlist *sg_src, in d40_prep_sg() argument 2212 struct d40_chan *chan = container_of(dchan, struct d40_chan, chan); in d40_prep_sg() 2224 d40_set_runtime_config_write(dchan, &chan->slave_config, direction); in d40_prep_sg()
|
/drivers/dma/dw-edma/ |
D | dw-edma-core.c | 26 struct device *dchan2dev(struct dma_chan *dchan) in dchan2dev() argument 28 return &dchan->dev->device; in dchan2dev() 203 static int dw_edma_device_config(struct dma_chan *dchan, in dw_edma_device_config() argument 206 struct dw_edma_chan *chan = dchan2dw_edma_chan(dchan); in dw_edma_device_config() 214 static int dw_edma_device_pause(struct dma_chan *dchan) in dw_edma_device_pause() argument 216 struct dw_edma_chan *chan = dchan2dw_edma_chan(dchan); in dw_edma_device_pause() 231 static int dw_edma_device_resume(struct dma_chan *dchan) in dw_edma_device_resume() argument 233 struct dw_edma_chan *chan = dchan2dw_edma_chan(dchan); in dw_edma_device_resume() 250 static int dw_edma_device_terminate_all(struct dma_chan *dchan) in dw_edma_device_terminate_all() argument 252 struct dw_edma_chan *chan = dchan2dw_edma_chan(dchan); in dw_edma_device_terminate_all() [all …]
|
D | dw-edma-core.h | 157 struct dma_chan *dchan; member 175 struct dw_edma_chan *dchan2dw_edma_chan(struct dma_chan *dchan) in dchan2dw_edma_chan() argument 177 return vc2dw_edma_chan(to_virt_chan(dchan)); in dchan2dw_edma_chan()
|
/drivers/dma/sf-pdma/ |
D | sf-pdma.c | 42 static inline struct sf_pdma_chan *to_sf_pdma_chan(struct dma_chan *dchan) in to_sf_pdma_chan() argument 44 return container_of(dchan, struct sf_pdma_chan, vchan.chan); in to_sf_pdma_chan() 82 sf_pdma_prep_dma_memcpy(struct dma_chan *dchan, dma_addr_t dest, dma_addr_t src, in sf_pdma_prep_dma_memcpy() argument 85 struct sf_pdma_chan *chan = to_sf_pdma_chan(dchan); in sf_pdma_prep_dma_memcpy() 109 static int sf_pdma_slave_config(struct dma_chan *dchan, in sf_pdma_slave_config() argument 112 struct sf_pdma_chan *chan = to_sf_pdma_chan(dchan); in sf_pdma_slave_config() 119 static int sf_pdma_alloc_chan_resources(struct dma_chan *dchan) in sf_pdma_alloc_chan_resources() argument 121 struct sf_pdma_chan *chan = to_sf_pdma_chan(dchan); in sf_pdma_alloc_chan_resources() 124 dma_cookie_init(dchan); in sf_pdma_alloc_chan_resources() 137 static void sf_pdma_free_chan_resources(struct dma_chan *dchan) in sf_pdma_free_chan_resources() argument [all …]
|
/drivers/dma/dw-axi-dmac/ |
D | dw-axi-dmac-platform.c | 265 dma_chan_tx_status(struct dma_chan *dchan, dma_cookie_t cookie, in dma_chan_tx_status() argument 268 struct axi_dma_chan *chan = dchan_to_axi_dma_chan(dchan); in dma_chan_tx_status() 278 status = dma_cookie_status(dchan, cookie, txstate); in dma_chan_tx_status() 407 static void dma_chan_issue_pending(struct dma_chan *dchan) in dma_chan_issue_pending() argument 409 struct axi_dma_chan *chan = dchan_to_axi_dma_chan(dchan); in dma_chan_issue_pending() 418 static void dw_axi_dma_synchronize(struct dma_chan *dchan) in dw_axi_dma_synchronize() argument 420 struct axi_dma_chan *chan = dchan_to_axi_dma_chan(dchan); in dw_axi_dma_synchronize() 425 static int dma_chan_alloc_chan_resources(struct dma_chan *dchan) in dma_chan_alloc_chan_resources() argument 427 struct axi_dma_chan *chan = dchan_to_axi_dma_chan(dchan); in dma_chan_alloc_chan_resources() 445 dev_vdbg(dchan2dev(dchan), "%s: allocating\n", axi_chan_name(chan)); in dma_chan_alloc_chan_resources() [all …]
|
D | dw-axi-dmac.h | 106 static inline struct device *dchan2dev(struct dma_chan *dchan) in dchan2dev() argument 108 return &dchan->dev->device; in dchan2dev() 126 static inline struct axi_dma_chan *dchan_to_axi_dma_chan(struct dma_chan *dchan) in dchan_to_axi_dma_chan() argument 128 return vc_to_axi_dma_chan(to_virt_chan(dchan)); in dchan_to_axi_dma_chan()
|
/drivers/dma/xilinx/ |
D | xilinx_dpdma.c | 1192 xilinx_dpdma_prep_interleaved_dma(struct dma_chan *dchan, in xilinx_dpdma_prep_interleaved_dma() argument 1196 struct xilinx_dpdma_chan *chan = to_xilinx_chan(dchan); in xilinx_dpdma_prep_interleaved_dma() 1225 static int xilinx_dpdma_alloc_chan_resources(struct dma_chan *dchan) in xilinx_dpdma_alloc_chan_resources() argument 1227 struct xilinx_dpdma_chan *chan = to_xilinx_chan(dchan); in xilinx_dpdma_alloc_chan_resources() 1251 static void xilinx_dpdma_free_chan_resources(struct dma_chan *dchan) in xilinx_dpdma_free_chan_resources() argument 1253 struct xilinx_dpdma_chan *chan = to_xilinx_chan(dchan); in xilinx_dpdma_free_chan_resources() 1261 static void xilinx_dpdma_issue_pending(struct dma_chan *dchan) in xilinx_dpdma_issue_pending() argument 1263 struct xilinx_dpdma_chan *chan = to_xilinx_chan(dchan); in xilinx_dpdma_issue_pending() 1272 static int xilinx_dpdma_config(struct dma_chan *dchan, in xilinx_dpdma_config() argument 1275 struct xilinx_dpdma_chan *chan = to_xilinx_chan(dchan); in xilinx_dpdma_config() [all …]
|
D | zynqmp_dma.c | 464 static int zynqmp_dma_alloc_chan_resources(struct dma_chan *dchan) in zynqmp_dma_alloc_chan_resources() argument 466 struct zynqmp_dma_chan *chan = to_chan(dchan); in zynqmp_dma_alloc_chan_resources() 563 static int zynqmp_dma_device_config(struct dma_chan *dchan, in zynqmp_dma_device_config() argument 566 struct zynqmp_dma_chan *chan = to_chan(dchan); in zynqmp_dma_device_config() 646 static void zynqmp_dma_issue_pending(struct dma_chan *dchan) in zynqmp_dma_issue_pending() argument 648 struct zynqmp_dma_chan *chan = to_chan(dchan); in zynqmp_dma_issue_pending() 671 static void zynqmp_dma_free_chan_resources(struct dma_chan *dchan) in zynqmp_dma_free_chan_resources() argument 673 struct zynqmp_dma_chan *chan = to_chan(dchan); in zynqmp_dma_free_chan_resources() 782 static int zynqmp_dma_device_terminate_all(struct dma_chan *dchan) in zynqmp_dma_device_terminate_all() argument 784 struct zynqmp_dma_chan *chan = to_chan(dchan); in zynqmp_dma_device_terminate_all() [all …]
|
D | xilinx_dma.c | 898 static void xilinx_dma_free_chan_resources(struct dma_chan *dchan) in xilinx_dma_free_chan_resources() argument 900 struct xilinx_dma_chan *chan = to_xilinx_chan(dchan); in xilinx_dma_free_chan_resources() 1083 static int xilinx_dma_alloc_chan_resources(struct dma_chan *dchan) in xilinx_dma_alloc_chan_resources() argument 1085 struct xilinx_dma_chan *chan = to_xilinx_chan(dchan); in xilinx_dma_alloc_chan_resources() 1186 dma_cookie_init(dchan); in xilinx_dma_alloc_chan_resources() 1239 static enum dma_status xilinx_dma_tx_status(struct dma_chan *dchan, in xilinx_dma_tx_status() argument 1243 struct xilinx_dma_chan *chan = to_xilinx_chan(dchan); in xilinx_dma_tx_status() 1249 ret = dma_cookie_status(dchan, cookie, txstate); in xilinx_dma_tx_status() 1650 static void xilinx_dma_issue_pending(struct dma_chan *dchan) in xilinx_dma_issue_pending() argument 1652 struct xilinx_dma_chan *chan = to_xilinx_chan(dchan); in xilinx_dma_issue_pending() [all …]
|
/drivers/rapidio/ |
D | rio.c | 1794 void rio_release_dma(struct dma_chan *dchan) in rio_release_dma() argument 1796 dma_release_channel(dchan); in rio_release_dma() 1816 struct dma_async_tx_descriptor *rio_dma_prep_xfer(struct dma_chan *dchan, in rio_dma_prep_xfer() argument 1822 if (!dchan->device->device_prep_slave_sg) { in rio_dma_prep_xfer() 1832 return dmaengine_prep_rio_sg(dchan, data->sg, data->sg_len, in rio_dma_prep_xfer() 1854 struct dma_chan *dchan, struct rio_dma_data *data, in rio_dma_prep_slave_sg() argument 1857 return rio_dma_prep_xfer(dchan, rdev->destid, data, direction, flags); in rio_dma_prep_slave_sg()
|