Home
last modified time | relevance | path

Searched refs:dchan (Results 1 – 25 of 27) sorted by relevance

12

/linux-6.12.1/drivers/dma/
Dloongson1-apb-dma.c86 #define to_ls1x_dma_chan(dchan) \ argument
87 container_of(dchan, struct ls1x_dma_chan, vc.chan)
100 struct dma_chan *dchan = &chan->vc.chan; in ls1x_dma_query() local
105 val |= dchan->chan_id; in ls1x_dma_query()
110 dev_err(chan2dev(dchan), "failed to query DMA\n"); in ls1x_dma_query()
118 struct dma_chan *dchan = &chan->vc.chan; in ls1x_dma_start() local
119 struct device *dev = chan2dev(dchan); in ls1x_dma_start()
124 val |= dchan->chan_id; in ls1x_dma_start()
143 static void ls1x_dma_free_chan_resources(struct dma_chan *dchan) in ls1x_dma_free_chan_resources() argument
145 struct ls1x_dma_chan *chan = to_ls1x_dma_chan(dchan); in ls1x_dma_free_chan_resources()
[all …]
Dnbpfaxi.c601 static void nbpf_issue_pending(struct dma_chan *dchan) in nbpf_issue_pending() argument
603 struct nbpf_channel *chan = nbpf_to_chan(dchan); in nbpf_issue_pending()
606 dev_dbg(dchan->device->dev, "Entry %s()\n", __func__); in nbpf_issue_pending()
625 static enum dma_status nbpf_tx_status(struct dma_chan *dchan, in nbpf_tx_status() argument
628 struct nbpf_channel *chan = nbpf_to_chan(dchan); in nbpf_tx_status()
629 enum dma_status status = dma_cookie_status(dchan, cookie, state); in nbpf_tx_status()
640 dev_dbg(dchan->device->dev, "%s(): residue %u\n", __func__, in nbpf_tx_status()
691 struct dma_chan *dchan = &chan->dma_chan; in nbpf_desc_page_alloc() local
699 struct device *dev = dchan->device->dev; in nbpf_desc_page_alloc()
712 ldesc->hwdesc_dma_addr = dma_map_single(dchan->device->dev, in nbpf_desc_page_alloc()
[all …]
Dmmp_pdma.c134 #define to_mmp_pdma_chan(dchan) \ argument
135 container_of(dchan, struct mmp_pdma_chan, chan)
139 static int mmp_pdma_config_write(struct dma_chan *dchan,
390 static int mmp_pdma_alloc_chan_resources(struct dma_chan *dchan) in mmp_pdma_alloc_chan_resources() argument
392 struct mmp_pdma_chan *chan = to_mmp_pdma_chan(dchan); in mmp_pdma_alloc_chan_resources()
397 chan->desc_pool = dma_pool_create(dev_name(&dchan->dev->device), in mmp_pdma_alloc_chan_resources()
424 static void mmp_pdma_free_chan_resources(struct dma_chan *dchan) in mmp_pdma_free_chan_resources() argument
426 struct mmp_pdma_chan *chan = to_mmp_pdma_chan(dchan); in mmp_pdma_free_chan_resources()
443 mmp_pdma_prep_memcpy(struct dma_chan *dchan, in mmp_pdma_prep_memcpy() argument
451 if (!dchan) in mmp_pdma_prep_memcpy()
[all …]
Dfsldma.c369 int fsl_dma_external_start(struct dma_chan *dchan, int enable) in fsl_dma_external_start() argument
373 if (!dchan) in fsl_dma_external_start()
376 chan = to_fsl_chan(dchan); in fsl_dma_external_start()
690 static int fsl_dma_alloc_chan_resources(struct dma_chan *dchan) in fsl_dma_alloc_chan_resources() argument
692 struct fsldma_chan *chan = to_fsl_chan(dchan); in fsl_dma_alloc_chan_resources()
743 static void fsl_dma_free_chan_resources(struct dma_chan *dchan) in fsl_dma_free_chan_resources() argument
745 struct fsldma_chan *chan = to_fsl_chan(dchan); in fsl_dma_free_chan_resources()
760 fsl_dma_prep_memcpy(struct dma_chan *dchan, in fsl_dma_prep_memcpy() argument
768 if (!dchan) in fsl_dma_prep_memcpy()
774 chan = to_fsl_chan(dchan); in fsl_dma_prep_memcpy()
[all …]
Dpxa_dma.c138 #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()
825 static void pxad_issue_pending(struct dma_chan *dchan) in pxad_issue_pending() argument
827 struct pxad_chan *chan = to_pxad_chan(dchan); in pxad_issue_pending()
916 pxad_prep_memcpy(struct dma_chan *dchan, in pxad_prep_memcpy() argument
[all …]
Daltera-msgdma.c332 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()
639 static void msgdma_free_chan_resources(struct dma_chan *dchan) in msgdma_free_chan_resources() argument
641 struct msgdma_device *mdev = to_mdev(dchan); in msgdma_free_chan_resources()
656 static int msgdma_alloc_chan_resources(struct dma_chan *dchan) in msgdma_alloc_chan_resources() argument
658 struct msgdma_device *mdev = to_mdev(dchan); in msgdma_alloc_chan_resources()
Dxgene-dma.c191 #define to_dma_chan(dchan) \ argument
192 container_of(dchan, struct xgene_dma_chan, dma_chan)
775 static int xgene_dma_alloc_chan_resources(struct dma_chan *dchan) in xgene_dma_alloc_chan_resources() argument
777 struct xgene_dma_chan *chan = to_dma_chan(dchan); in xgene_dma_alloc_chan_resources()
812 static void xgene_dma_free_chan_resources(struct dma_chan *dchan) in xgene_dma_free_chan_resources() argument
814 struct xgene_dma_chan *chan = to_dma_chan(dchan); in xgene_dma_free_chan_resources()
839 struct dma_chan *dchan, dma_addr_t dst, dma_addr_t *src, in xgene_dma_prep_xor() argument
847 if (unlikely(!dchan || !len)) in xgene_dma_prep_xor()
850 chan = to_dma_chan(dchan); in xgene_dma_prep_xor()
887 struct dma_chan *dchan, dma_addr_t *dst, dma_addr_t *src, in xgene_dma_prep_pq() argument
[all …]
Dbcm-sba-raid.c87 #define to_sba_device(dchan) \ argument
88 container_of(dchan, struct sba_device, dma_chan)
486 static void sba_free_chan_resources(struct dma_chan *dchan) in sba_free_chan_resources() argument
493 sba_cleanup_nonpending_requests(to_sba_device(dchan)); in sba_free_chan_resources()
496 static int sba_device_terminate_all(struct dma_chan *dchan) in sba_device_terminate_all() argument
499 sba_cleanup_pending_requests(to_sba_device(dchan)); in sba_device_terminate_all()
504 static void sba_issue_pending(struct dma_chan *dchan) in sba_issue_pending() argument
507 struct sba_device *sba = to_sba_device(dchan); in sba_issue_pending()
539 static enum dma_status sba_tx_status(struct dma_chan *dchan, in sba_tx_status() argument
544 struct sba_device *sba = to_sba_device(dchan); in sba_tx_status()
[all …]
Dmmp_tdma.c137 #define to_mmp_tdma_chan(dchan) container_of(dchan, struct mmp_tdma_chan, chan) argument
/linux-6.12.1/drivers/rapidio/devices/
Dtsi721_dma.c49 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 …]
Dtsi721.h701 struct dma_chan dchan; member
/linux-6.12.1/drivers/dma/dw-edma/
Ddw-edma-core.c26 struct device *dchan2dev(struct dma_chan *dchan) in dchan2dev() argument
28 return &dchan->dev->device; in dchan2dev()
215 static void dw_edma_device_caps(struct dma_chan *dchan, in dw_edma_device_caps() argument
218 struct dw_edma_chan *chan = dchan2dw_edma_chan(dchan); in dw_edma_device_caps()
233 static int dw_edma_device_config(struct dma_chan *dchan, in dw_edma_device_config() argument
236 struct dw_edma_chan *chan = dchan2dw_edma_chan(dchan); in dw_edma_device_config()
244 static int dw_edma_device_pause(struct dma_chan *dchan) in dw_edma_device_pause() argument
246 struct dw_edma_chan *chan = dchan2dw_edma_chan(dchan); in dw_edma_device_pause()
261 static int dw_edma_device_resume(struct dma_chan *dchan) in dw_edma_device_resume() argument
263 struct dw_edma_chan *chan = dchan2dw_edma_chan(dchan); in dw_edma_device_resume()
[all …]
Ddw-edma-core.h143 struct dma_chan *dchan; member
161 struct dw_edma_chan *dchan2dw_edma_chan(struct dma_chan *dchan) in dchan2dw_edma_chan() argument
163 return vc2dw_edma_chan(to_virt_chan(dchan)); in dchan2dw_edma_chan()
/linux-6.12.1/drivers/dma/sf-pdma/
Dsf-pdma.c45 static inline struct sf_pdma_chan *to_sf_pdma_chan(struct dma_chan *dchan) in to_sf_pdma_chan() argument
47 return container_of(dchan, struct sf_pdma_chan, vchan.chan); in to_sf_pdma_chan()
85 sf_pdma_prep_dma_memcpy(struct dma_chan *dchan, dma_addr_t dest, dma_addr_t src, in sf_pdma_prep_dma_memcpy() argument
88 struct sf_pdma_chan *chan = to_sf_pdma_chan(dchan); in sf_pdma_prep_dma_memcpy()
112 static int sf_pdma_slave_config(struct dma_chan *dchan, in sf_pdma_slave_config() argument
115 struct sf_pdma_chan *chan = to_sf_pdma_chan(dchan); in sf_pdma_slave_config()
122 static int sf_pdma_alloc_chan_resources(struct dma_chan *dchan) in sf_pdma_alloc_chan_resources() argument
124 struct sf_pdma_chan *chan = to_sf_pdma_chan(dchan); in sf_pdma_alloc_chan_resources()
127 dma_cookie_init(dchan); in sf_pdma_alloc_chan_resources()
140 static void sf_pdma_free_chan_resources(struct dma_chan *dchan) in sf_pdma_free_chan_resources() argument
[all …]
/linux-6.12.1/drivers/dma/dw-axi-dmac/
Ddw-axi-dmac-platform.c355 dma_chan_tx_status(struct dma_chan *dchan, dma_cookie_t cookie, in dma_chan_tx_status() argument
358 struct axi_dma_chan *chan = dchan_to_axi_dma_chan(dchan); in dma_chan_tx_status()
368 status = dma_cookie_status(dchan, cookie, txstate); in dma_chan_tx_status()
498 static void dma_chan_issue_pending(struct dma_chan *dchan) in dma_chan_issue_pending() argument
500 struct axi_dma_chan *chan = dchan_to_axi_dma_chan(dchan); in dma_chan_issue_pending()
509 static void dw_axi_dma_synchronize(struct dma_chan *dchan) in dw_axi_dma_synchronize() argument
511 struct axi_dma_chan *chan = dchan_to_axi_dma_chan(dchan); in dw_axi_dma_synchronize()
516 static int dma_chan_alloc_chan_resources(struct dma_chan *dchan) in dma_chan_alloc_chan_resources() argument
518 struct axi_dma_chan *chan = dchan_to_axi_dma_chan(dchan); in dma_chan_alloc_chan_resources()
536 dev_vdbg(dchan2dev(dchan), "%s: allocating\n", axi_chan_name(chan)); in dma_chan_alloc_chan_resources()
[all …]
Ddw-axi-dmac.h121 static inline struct device *dchan2dev(struct dma_chan *dchan) in dchan2dev() argument
123 return &dchan->dev->device; in dchan2dev()
141 static inline struct axi_dma_chan *dchan_to_axi_dma_chan(struct dma_chan *dchan) in dchan_to_axi_dma_chan() argument
143 return vc_to_axi_dma_chan(to_virt_chan(dchan)); in dchan_to_axi_dma_chan()
/linux-6.12.1/drivers/dma/xilinx/
Dxilinx_dpdma.c1271 xilinx_dpdma_prep_dma_cyclic(struct dma_chan *dchan, dma_addr_t buf_addr, in xilinx_dpdma_prep_dma_cyclic() argument
1276 struct xilinx_dpdma_chan *chan = to_xilinx_chan(dchan); in xilinx_dpdma_prep_dma_cyclic()
1289 xilinx_dpdma_prep_interleaved_dma(struct dma_chan *dchan, in xilinx_dpdma_prep_interleaved_dma() argument
1293 struct xilinx_dpdma_chan *chan = to_xilinx_chan(dchan); in xilinx_dpdma_prep_interleaved_dma()
1322 static int xilinx_dpdma_alloc_chan_resources(struct dma_chan *dchan) in xilinx_dpdma_alloc_chan_resources() argument
1324 struct xilinx_dpdma_chan *chan = to_xilinx_chan(dchan); in xilinx_dpdma_alloc_chan_resources()
1348 static void xilinx_dpdma_free_chan_resources(struct dma_chan *dchan) in xilinx_dpdma_free_chan_resources() argument
1350 struct xilinx_dpdma_chan *chan = to_xilinx_chan(dchan); in xilinx_dpdma_free_chan_resources()
1358 static void xilinx_dpdma_issue_pending(struct dma_chan *dchan) in xilinx_dpdma_issue_pending() argument
1360 struct xilinx_dpdma_chan *chan = to_xilinx_chan(dchan); in xilinx_dpdma_issue_pending()
[all …]
Dzynqmp_dma.c475 static int zynqmp_dma_alloc_chan_resources(struct dma_chan *dchan) in zynqmp_dma_alloc_chan_resources() argument
477 struct zynqmp_dma_chan *chan = to_chan(dchan); in zynqmp_dma_alloc_chan_resources()
574 static int zynqmp_dma_device_config(struct dma_chan *dchan, in zynqmp_dma_device_config() argument
577 struct zynqmp_dma_chan *chan = to_chan(dchan); in zynqmp_dma_device_config()
660 static void zynqmp_dma_issue_pending(struct dma_chan *dchan) in zynqmp_dma_issue_pending() argument
662 struct zynqmp_dma_chan *chan = to_chan(dchan); in zynqmp_dma_issue_pending()
689 static void zynqmp_dma_free_chan_resources(struct dma_chan *dchan) in zynqmp_dma_free_chan_resources() argument
691 struct zynqmp_dma_chan *chan = to_chan(dchan); in zynqmp_dma_free_chan_resources()
802 static int zynqmp_dma_device_terminate_all(struct dma_chan *dchan) in zynqmp_dma_device_terminate_all() argument
804 struct zynqmp_dma_chan *chan = to_chan(dchan); in zynqmp_dma_device_terminate_all()
[all …]
Dxilinx_dma.c930 static void xilinx_dma_free_chan_resources(struct dma_chan *dchan) in xilinx_dma_free_chan_resources() argument
932 struct xilinx_dma_chan *chan = to_xilinx_chan(dchan); in xilinx_dma_free_chan_resources()
1113 static int xilinx_dma_alloc_chan_resources(struct dma_chan *dchan) in xilinx_dma_alloc_chan_resources() argument
1115 struct xilinx_dma_chan *chan = to_xilinx_chan(dchan); in xilinx_dma_alloc_chan_resources()
1216 dma_cookie_init(dchan); in xilinx_dma_alloc_chan_resources()
1269 static enum dma_status xilinx_dma_tx_status(struct dma_chan *dchan, in xilinx_dma_tx_status() argument
1273 struct xilinx_dma_chan *chan = to_xilinx_chan(dchan); in xilinx_dma_tx_status()
1279 ret = dma_cookie_status(dchan, cookie, txstate); in xilinx_dma_tx_status()
1683 static void xilinx_dma_issue_pending(struct dma_chan *dchan) in xilinx_dma_issue_pending() argument
1685 struct xilinx_dma_chan *chan = to_xilinx_chan(dchan); in xilinx_dma_issue_pending()
[all …]
/linux-6.12.1/include/linux/
Dfsldma.h8 int fsl_dma_external_start(struct dma_chan *dchan, int enable);
Drio_drv.h396 extern void rio_release_dma(struct dma_chan *dchan);
398 struct rio_dev *rdev, struct dma_chan *dchan,
402 struct dma_chan *dchan, u16 destid,
/linux-6.12.1/include/linux/dma/
Dxilinx_dma.h42 int xilinx_vdma_channel_set_config(struct dma_chan *dchan,
/linux-6.12.1/arch/mips/alchemy/common/
Dirq.c581 void au1300_set_dbdma_gpio(int dchan, unsigned int gpio) in au1300_set_dbdma_gpio() argument
585 if ((dchan >= 0) && (dchan <= 1)) { in au1300_set_dbdma_gpio()
587 r &= ~(0xff << (8 * dchan)); in au1300_set_dbdma_gpio()
588 r |= (gpio & 0x7f) << (8 * dchan); in au1300_set_dbdma_gpio()
/linux-6.12.1/drivers/rapidio/
Drio.c1794 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()
/linux-6.12.1/arch/mips/include/asm/mach-au1x00/
Dau1000.h882 extern void au1300_set_dbdma_gpio(int dchan, unsigned int gpio);

12