Home
last modified time | relevance | path

Searched refs:dma_chan (Results 1 – 25 of 361) sorted by relevance

12345678910>>...15

/linux-6.6.21/drivers/crypto/ccp/
Dccp-dmaengine.c87 static void ccp_free_chan_resources(struct dma_chan *dma_chan) in ccp_free_chan_resources() argument
89 struct ccp_dma_chan *chan = container_of(dma_chan, struct ccp_dma_chan, in ccp_free_chan_resources()
90 dma_chan); in ccp_free_chan_resources()
130 dma_chan_name(&chan->dma_chan)); in ccp_do_cleanup()
271 dma_chan); in ccp_cmd_callback()
305 chan = container_of(tx_desc->chan, struct ccp_dma_chan, dma_chan); in ccp_tx_submit()
340 dma_async_tx_descriptor_init(&desc->tx_desc, &chan->dma_chan); in ccp_alloc_dma_desc()
352 static struct ccp_dma_desc *ccp_create_desc(struct dma_chan *dma_chan, in ccp_create_desc() argument
359 struct ccp_dma_chan *chan = container_of(dma_chan, struct ccp_dma_chan, in ccp_create_desc()
360 dma_chan); in ccp_create_desc()
[all …]
/linux-6.6.21/drivers/dma/ptdma/
Dptdma-dmaengine.c16 static inline struct pt_dma_chan *to_pt_chan(struct dma_chan *dma_chan) in to_pt_chan() argument
18 return container_of(dma_chan, struct pt_dma_chan, vc.chan); in to_pt_chan()
26 static void pt_free_chan_resources(struct dma_chan *dma_chan) in pt_free_chan_resources() argument
28 struct pt_dma_chan *chan = to_pt_chan(dma_chan); in pt_free_chan_resources()
33 static void pt_synchronize(struct dma_chan *dma_chan) in pt_synchronize() argument
35 struct pt_dma_chan *chan = to_pt_chan(dma_chan); in pt_synchronize()
133 struct dma_chan *dma_chan; in pt_cmd_callback() local
140 dma_chan = desc->vd.tx.chan; in pt_cmd_callback()
141 chan = to_pt_chan(dma_chan); in pt_cmd_callback()
181 static struct pt_dma_desc *pt_create_desc(struct dma_chan *dma_chan, in pt_create_desc() argument
[all …]
/linux-6.6.21/include/linux/
Ddmaengine.h328 struct dma_chan { struct
363 struct dma_chan *chan; argument
515 static inline const char *dma_chan_name(struct dma_chan *chan) in dma_chan_name()
533 typedef bool (*dma_filter_fn)(struct dma_chan *chan, void *filter_param);
606 struct dma_chan *chan;
885 int (*device_alloc_chan_resources)(struct dma_chan *chan);
886 int (*device_router_config)(struct dma_chan *chan);
887 void (*device_free_chan_resources)(struct dma_chan *chan);
890 struct dma_chan *chan, dma_addr_t dst, dma_addr_t src,
893 struct dma_chan *chan, dma_addr_t dst, dma_addr_t *src,
[all …]
Dacpi_dma.h44 struct dma_chan *(*acpi_dma_xlate)
60 struct dma_chan *(*acpi_dma_xlate)
65 struct dma_chan *(*acpi_dma_xlate)
70 struct dma_chan *acpi_dma_request_slave_chan_by_index(struct device *dev,
72 struct dma_chan *acpi_dma_request_slave_chan_by_name(struct device *dev,
75 struct dma_chan *acpi_dma_simple_xlate(struct acpi_dma_spec *dma_spec,
80 struct dma_chan *(*acpi_dma_xlate) in acpi_dma_controller_register()
91 struct dma_chan *(*acpi_dma_xlate) in devm_acpi_dma_controller_register()
101 static inline struct dma_chan *acpi_dma_request_slave_chan_by_index( in acpi_dma_request_slave_chan_by_index()
106 static inline struct dma_chan *acpi_dma_request_slave_chan_by_name( in acpi_dma_request_slave_chan_by_name()
Dof_dma.h21 struct dma_chan *(*of_dma_xlate)
36 struct dma_chan *(*of_dma_xlate)
47 extern struct dma_chan *of_dma_request_slave_channel(struct device_node *np,
49 extern struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec,
51 extern struct dma_chan *of_dma_xlate_by_chan_id(struct of_phandle_args *dma_spec,
56 struct dma_chan *(*of_dma_xlate) in of_dma_controller_register()
77 static inline struct dma_chan *of_dma_request_slave_channel(struct device_node *np, in of_dma_request_slave_channel()
83 static inline struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, in of_dma_simple_xlate()
/linux-6.6.21/arch/mips/include/asm/mach-au1x00/
Dau1000_dma.h106 struct dma_chan { struct
118 extern struct dma_chan au1000_dma_table[]; argument
130 static inline struct dma_chan *get_dma_chan(unsigned int dmanr) in get_dma_chan()
156 struct dma_chan *chan = get_dma_chan(dmanr); in enable_dma_buffer0()
165 struct dma_chan *chan = get_dma_chan(dmanr); in enable_dma_buffer1()
173 struct dma_chan *chan = get_dma_chan(dmanr); in enable_dma_buffers()
182 struct dma_chan *chan = get_dma_chan(dmanr); in start_dma()
193 struct dma_chan *chan = get_dma_chan(dmanr); in halt_dma()
210 struct dma_chan *chan = get_dma_chan(dmanr); in disable_dma()
223 struct dma_chan *chan = get_dma_chan(dmanr); in dma_halted()
[all …]
/linux-6.6.21/arch/arm/mach-omap1/
Domap-dma.c80 static struct omap_dma_lch *dma_chan; variable
328 p->dma_write(dma_chan[lch].enabled_irqs, CICR, lch); in omap_enable_channel_irq()
333 dma_chan[lch].enabled_irqs &= ~bits; in omap_disable_dma_irq()
346 if (dma_chan[lch].next_lch != -1) in enable_lnk()
347 l = dma_chan[lch].next_lch | (1 << 15); in enable_lnk()
365 dma_chan[lch].flags &= ~OMAP_DMA_ACTIVE; in disable_lnk()
381 if (free_ch == -1 && dma_chan[ch].dev_id == -1) { in omap_request_dma()
391 chan = dma_chan + free_ch; in omap_request_dma()
433 if (dma_chan[lch].dev_id == -1) { in omap_free_dma()
446 dma_chan[lch].dev_id = -1; in omap_free_dma()
[all …]
/linux-6.6.21/sound/core/
Dpcm_dmaengine.c23 struct dma_chan *dma_chan; member
35 struct dma_chan *snd_dmaengine_pcm_get_chan(struct snd_pcm_substream *substream) in snd_dmaengine_pcm_get_chan()
39 return prtd->dma_chan; in snd_dmaengine_pcm_get_chan()
151 struct dma_chan *chan = prtd->dma_chan; in dmaengine_pcm_prepare_and_submit()
198 dma_async_issue_pending(prtd->dma_chan); in snd_dmaengine_pcm_trigger()
202 dmaengine_resume(prtd->dma_chan); in snd_dmaengine_pcm_trigger()
206 dmaengine_pause(prtd->dma_chan); in snd_dmaengine_pcm_trigger()
208 dmaengine_terminate_async(prtd->dma_chan); in snd_dmaengine_pcm_trigger()
211 dmaengine_pause(prtd->dma_chan); in snd_dmaengine_pcm_trigger()
214 dmaengine_terminate_async(prtd->dma_chan); in snd_dmaengine_pcm_trigger()
[all …]
/linux-6.6.21/sound/soc/fsl/
Dfsl_asrc_dma.c32 static bool filter(struct dma_chan *chan, void *param) in filter()
70 pair->dma_chan[!dir], runtime->dma_addr, in fsl_asrc_dma_prepare_and_submit()
86 pair->dma_chan[dir], 0xffff, 64, 64, DMA_DEV_TO_DEV, 0); in fsl_asrc_dma_prepare_and_submit()
111 dma_async_issue_pending(pair->dma_chan[IN]); in fsl_asrc_dma_trigger()
112 dma_async_issue_pending(pair->dma_chan[OUT]); in fsl_asrc_dma_trigger()
117 dmaengine_terminate_async(pair->dma_chan[OUT]); in fsl_asrc_dma_trigger()
118 dmaengine_terminate_async(pair->dma_chan[IN]); in fsl_asrc_dma_trigger()
139 struct dma_chan *tmp_chan = NULL, *be_chan = NULL; in fsl_asrc_dma_hw_params()
180 pair->dma_chan[!dir] = asrc->get_dma_channel(pair, !dir); in fsl_asrc_dma_hw_params()
181 if (!pair->dma_chan[!dir]) { in fsl_asrc_dma_hw_params()
[all …]
/linux-6.6.21/drivers/dma/ioat/
Ddma.h96 struct dma_chan dma_chan; member
143 ssize_t (*show)(struct dma_chan *, char *);
144 ssize_t (*store)(struct dma_chan *, const char *, size_t);
204 static inline struct ioatdma_chan *to_ioat_chan(struct dma_chan *c) in to_ioat_chan()
206 return container_of(c, struct ioatdma_chan, dma_chan); in to_ioat_chan()
357 ioat_dma_prep_memcpy_lock(struct dma_chan *c, dma_addr_t dma_dest,
360 ioat_prep_interrupt_lock(struct dma_chan *c, unsigned long flags);
362 ioat_prep_xor(struct dma_chan *chan, dma_addr_t dest, dma_addr_t *src,
365 ioat_prep_xor_val(struct dma_chan *chan, dma_addr_t *src,
369 ioat_prep_pq(struct dma_chan *chan, dma_addr_t *dst, dma_addr_t *src,
[all …]
Dsysfs.c17 static ssize_t cap_show(struct dma_chan *c, char *page) in cap_show()
31 static ssize_t version_show(struct dma_chan *c, char *page) in version_show()
52 return entry->show(&ioat_chan->dma_chan, page); in ioat_attr_show()
67 return entry->store(&ioat_chan->dma_chan, page, count); in ioat_attr_store()
78 struct dma_chan *c; in ioat_kobject_add()
99 struct dma_chan *c; in ioat_kobject_del()
111 static ssize_t ring_size_show(struct dma_chan *c, char *page) in ring_size_show()
119 static ssize_t ring_active_show(struct dma_chan *c, char *page) in ring_active_show()
128 static ssize_t intr_coalesce_show(struct dma_chan *c, char *page) in intr_coalesce_show()
135 static ssize_t intr_coalesce_store(struct dma_chan *c, const char *page, in intr_coalesce_store()
/linux-6.6.21/drivers/dma/
Ddmaengine.c86 struct dma_chan *chan; in dmaengine_dbg_summary_show()
154 static struct dma_chan *dev_to_dma_chan(struct device *dev) in dev_to_dma_chan()
165 struct dma_chan *chan; in memcpy_count_show()
187 struct dma_chan *chan; in bytes_transferred_show()
209 struct dma_chan *chan; in in_use_show()
256 struct dma_chan *chan;
302 static bool dma_chan_is_local(struct dma_chan *chan, int cpu) in dma_chan_is_local()
320 static struct dma_chan *min_chan(enum dma_transaction_type cap, int cpu) in min_chan()
323 struct dma_chan *chan; in min_chan()
324 struct dma_chan *min = NULL; in min_chan()
[all …]
Dmv_xor.c37 static void mv_xor_issue_pending(struct dma_chan *chan);
434 static int mv_xor_alloc_chan_resources(struct dma_chan *chan) in mv_xor_alloc_chan_resources()
555 mv_xor_prep_dma_xor(struct dma_chan *chan, dma_addr_t dest, dma_addr_t *src, in mv_xor_prep_dma_xor()
599 mv_xor_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dest, dma_addr_t src, in mv_xor_prep_dma_memcpy()
610 mv_xor_prep_dma_interrupt(struct dma_chan *chan, unsigned long flags) in mv_xor_prep_dma_interrupt()
627 static void mv_xor_free_chan_resources(struct dma_chan *chan) in mv_xor_free_chan_resources()
674 static enum dma_status mv_xor_status(struct dma_chan *chan, in mv_xor_status()
747 static void mv_xor_issue_pending(struct dma_chan *chan) in mv_xor_issue_pending()
766 struct dma_chan *dma_chan; in mv_chan_memcpy_self_test() local
786 dma_chan = &mv_chan->dmachan; in mv_chan_memcpy_self_test()
[all …]
Ddmaengine.h16 static inline void dma_cookie_init(struct dma_chan *chan) in dma_cookie_init()
31 struct dma_chan *chan = tx->chan; in dma_cookie_assign()
68 static inline enum dma_status dma_cookie_status(struct dma_chan *chan, in dma_cookie_status()
182 struct dma_chan *dma_get_slave_channel(struct dma_chan *chan);
183 struct dma_chan *dma_get_any_slave_channel(struct dma_device *device);
Dfsl-edma-common.h300 static inline struct fsl_edma_chan *to_fsl_edma_chan(struct dma_chan *chan) in to_fsl_edma_chan()
326 int fsl_edma_terminate_all(struct dma_chan *chan);
327 int fsl_edma_pause(struct dma_chan *chan);
328 int fsl_edma_resume(struct dma_chan *chan);
329 int fsl_edma_slave_config(struct dma_chan *chan,
331 enum dma_status fsl_edma_tx_status(struct dma_chan *chan,
334 struct dma_chan *chan, dma_addr_t dma_addr, size_t buf_len,
338 struct dma_chan *chan, struct scatterlist *sgl,
342 struct dma_chan *chan, dma_addr_t dma_dst, dma_addr_t dma_src,
345 void fsl_edma_issue_pending(struct dma_chan *chan);
[all …]
Dof-dma.c55 static struct dma_chan *of_dma_router_xlate(struct of_phandle_args *dma_spec, in of_dma_router_xlate()
58 struct dma_chan *chan; in of_dma_router_xlate()
119 struct dma_chan *(*of_dma_xlate) in of_dma_controller_register()
251 struct dma_chan *of_dma_request_slave_channel(struct device_node *np, in of_dma_request_slave_channel()
256 struct dma_chan *chan; in of_dma_request_slave_channel()
321 struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, in of_dma_simple_xlate()
351 struct dma_chan *of_dma_xlate_by_chan_id(struct of_phandle_args *dma_spec, in of_dma_xlate_by_chan_id()
355 struct dma_chan *chan, *candidate = NULL; in of_dma_xlate_by_chan_id()
Dmmp_tdma.c103 struct dma_chan chan;
139 static int mmp_tdma_config_write(struct dma_chan *chan,
166 static int mmp_tdma_disable_chan(struct dma_chan *chan) in mmp_tdma_disable_chan()
181 static int mmp_tdma_resume_chan(struct dma_chan *chan) in mmp_tdma_resume_chan()
192 static int mmp_tdma_pause_chan(struct dma_chan *chan) in mmp_tdma_pause_chan()
203 static int mmp_tdma_config_chan(struct dma_chan *chan) in mmp_tdma_config_chan()
381 static int mmp_tdma_alloc_chan_resources(struct dma_chan *chan) in mmp_tdma_alloc_chan_resources()
398 static void mmp_tdma_free_chan_resources(struct dma_chan *chan) in mmp_tdma_free_chan_resources()
423 struct dma_chan *chan, dma_addr_t dma_addr, size_t buf_len, in mmp_tdma_prep_dma_cyclic()
495 static int mmp_tdma_terminate_all(struct dma_chan *chan) in mmp_tdma_terminate_all()
[all …]
/linux-6.6.21/drivers/usb/musb/
Dux500_dma.c34 struct dma_chan *dma_chan; member
76 struct dma_chan *dma_chan = ux500_channel->dma_chan; in ux500_configure_channel() local
112 dmaengine_slave_config(dma_chan, &slave_conf); in ux500_configure_channel()
114 dma_desc = dmaengine_prep_slave_sg(dma_chan, &sg, 1, direction, in ux500_configure_channel()
123 dma_async_issue_pending(dma_chan); in ux500_configure_channel()
233 dmaengine_terminate_all(ux500_channel->dma_chan); in ux500_dma_channel_abort()
251 if (ux500_channel->dma_chan) in ux500_dma_controller_stop()
252 dma_release_channel(ux500_channel->dma_chan); in ux500_dma_controller_stop()
261 if (ux500_channel->dma_chan) in ux500_dma_controller_stop()
262 dma_release_channel(ux500_channel->dma_chan); in ux500_dma_controller_stop()
[all …]
/linux-6.6.21/drivers/ata/
Dpata_pxa.c26 struct dma_chan *dma_chan; member
39 status = dmaengine_tx_status(pd->dma_chan, pd->dma_cookie, NULL); in pxa_ata_dma_irq()
57 tx = dmaengine_prep_slave_sg(pd->dma_chan, qc->sg, qc->n_elem, dir, in pxa_qc_prep()
86 dma_async_issue_pending(pd->dma_chan); in pxa_bmdma_start()
97 status = dmaengine_tx_status(pd->dma_chan, pd->dma_cookie, NULL); in pxa_bmdma_stop()
102 dmaengine_terminate_all(pd->dma_chan); in pxa_bmdma_stop()
116 status = dmaengine_tx_status(pd->dma_chan, pd->dma_cookie, &state); in pxa_bmdma_status()
277 data->dma_chan = in pxa_ata_probe()
279 if (!data->dma_chan) in pxa_ata_probe()
281 ret = dmaengine_slave_config(data->dma_chan, &config); in pxa_ata_probe()
[all …]
/linux-6.6.21/drivers/dma/sh/
Dshdma-base.c36 #define to_shdma_chan(c) container_of(c, struct shdma_chan, dma_chan)
54 struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device); in shdma_chan_xfer_ld_queue()
128 to_shdma_dev(schan->dma_chan.device); in shdma_tx_submit()
173 struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device); in shdma_setup_slave()
203 static int shdma_alloc_chan_resources(struct dma_chan *chan) in shdma_alloc_chan_resources()
206 struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device); in shdma_alloc_chan_resources()
238 &schan->dma_chan); in shdma_alloc_chan_resources()
274 bool shdma_chan_filter(struct dma_chan *chan, void *arg) in shdma_chan_filter()
357 if (schan->dma_chan.completed_cookie != desc->cookie - 1) in __ld_cleanup()
361 schan->dma_chan.completed_cookie + 1); in __ld_cleanup()
[all …]
/linux-6.6.21/include/sound/
Ddmaengine_pcm.h37 struct dma_chan *chan);
44 struct dma_chan *snd_dmaengine_pcm_request_channel(dma_filter_fn filter_fn,
46 struct dma_chan *snd_dmaengine_pcm_get_chan(struct snd_pcm_substream *substream);
95 struct dma_chan *chan);
140 struct dma_chan *(*compat_request_channel)(
170 struct dma_chan *chan[SNDRV_PCM_STREAM_LAST + 1];
/linux-6.6.21/drivers/dma/idxd/
Ddma.c15 static inline struct idxd_wq *to_idxd_wq(struct dma_chan *c) in to_idxd_wq()
86 idxd_dma_prep_interrupt(struct dma_chan *c, unsigned long flags) in idxd_dma_prep_interrupt()
107 idxd_dma_submit_memcpy(struct dma_chan *c, dma_addr_t dma_dest, in idxd_dma_submit_memcpy()
135 static int idxd_dma_alloc_chan_resources(struct dma_chan *chan) in idxd_dma_alloc_chan_resources()
146 static void idxd_dma_free_chan_resources(struct dma_chan *chan) in idxd_dma_free_chan_resources()
156 static enum dma_status idxd_dma_tx_status(struct dma_chan *dma_chan, in idxd_dma_tx_status() argument
167 static void idxd_dma_issue_pending(struct dma_chan *dma_chan) in idxd_dma_issue_pending() argument
173 struct dma_chan *c = tx->chan; in idxd_dma_tx_submit()
254 struct dma_chan *chan; in idxd_register_dma_channel()
288 struct dma_chan *chan = &idxd_chan->chan; in idxd_unregister_dma_channel()
/linux-6.6.21/include/linux/comedi/
Dcomedi_isadma.h61 unsigned int comedi_isadma_disable(unsigned int dma_chan);
62 unsigned int comedi_isadma_disable_on_sample(unsigned int dma_chan,
79 static inline unsigned int comedi_isadma_disable(unsigned int dma_chan) in comedi_isadma_disable() argument
85 comedi_isadma_disable_on_sample(unsigned int dma_chan, unsigned int size) in comedi_isadma_disable_on_sample() argument
/linux-6.6.21/drivers/comedi/drivers/
Dcomedi_isadma.c39 unsigned int comedi_isadma_disable(unsigned int dma_chan) in comedi_isadma_disable() argument
45 disable_dma(dma_chan); in comedi_isadma_disable()
46 residue = get_dma_residue(dma_chan); in comedi_isadma_disable()
60 unsigned int comedi_isadma_disable_on_sample(unsigned int dma_chan, in comedi_isadma_disable_on_sample() argument
68 residue = comedi_isadma_disable(dma_chan); in comedi_isadma_disable_on_sample()
72 enable_dma(dma_chan); in comedi_isadma_disable_on_sample()
76 new_residue = comedi_isadma_disable(dma_chan); in comedi_isadma_disable_on_sample()
/linux-6.6.21/drivers/spi/
Dspi-sprd.c144 struct dma_chan *dma_chan[SPRD_SPI_MAX]; member
487 static int sprd_spi_dma_submit(struct dma_chan *dma_chan, in sprd_spi_dma_submit() argument
497 ret = dmaengine_slave_config(dma_chan, c); in sprd_spi_dma_submit()
503 desc = dmaengine_prep_slave_sg(dma_chan, sg->sgl, sg->nents, dir, flags); in sprd_spi_dma_submit()
511 dma_async_issue_pending(dma_chan); in sprd_spi_dma_submit()
518 struct dma_chan *dma_chan = ss->dma.dma_chan[SPRD_SPI_RX]; in sprd_spi_dma_rx_config() local
527 ret = sprd_spi_dma_submit(dma_chan, &config, &t->rx_sg, DMA_DEV_TO_MEM); in sprd_spi_dma_rx_config()
536 struct dma_chan *dma_chan = ss->dma.dma_chan[SPRD_SPI_TX]; in sprd_spi_dma_tx_config() local
545 ret = sprd_spi_dma_submit(dma_chan, &config, &t->tx_sg, DMA_MEM_TO_DEV); in sprd_spi_dma_tx_config()
554 ss->dma.dma_chan[SPRD_SPI_RX] = dma_request_chan(ss->dev, "rx_chn"); in sprd_spi_dma_request()
[all …]

12345678910>>...15