Home
last modified time | relevance | path

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

1234567891011

/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()
341 dma_async_tx_descriptor_init(&desc->tx_desc, &chan->dma_chan); in ccp_alloc_dma_desc()
353 static struct ccp_dma_desc *ccp_create_desc(struct dma_chan *dma_chan, in ccp_create_desc() argument
360 struct ccp_dma_chan *chan = container_of(dma_chan, struct ccp_dma_chan, in ccp_create_desc()
361 dma_chan); in ccp_create_desc()
[all …]
/drivers/dma/
Diop-adma.c417 static int iop_adma_alloc_chan_resources(struct dma_chan *chan) in iop_adma_alloc_chan_resources()
484 iop_adma_prep_dma_interrupt(struct dma_chan *chan, unsigned long flags) in iop_adma_prep_dma_interrupt()
506 iop_adma_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dma_dest, in iop_adma_prep_dma_memcpy()
537 iop_adma_prep_dma_xor(struct dma_chan *chan, dma_addr_t dma_dest, in iop_adma_prep_dma_xor()
572 iop_adma_prep_dma_xor_val(struct dma_chan *chan, dma_addr_t *dma_src, in iop_adma_prep_dma_xor_val()
607 iop_adma_prep_dma_pq(struct dma_chan *chan, dma_addr_t *dst, dma_addr_t *src, in iop_adma_prep_dma_pq()
671 iop_adma_prep_dma_pq_val(struct dma_chan *chan, dma_addr_t *pq, dma_addr_t *src, in iop_adma_prep_dma_pq_val()
714 static void iop_adma_free_chan_resources(struct dma_chan *chan) in iop_adma_free_chan_resources()
752 static enum dma_status iop_adma_status(struct dma_chan *chan, in iop_adma_status()
816 static void iop_adma_issue_pending(struct dma_chan *chan) in iop_adma_issue_pending()
[all …]
Ddmaengine.c69 static struct dma_chan *dev_to_dma_chan(struct device *dev) in dev_to_dma_chan()
80 struct dma_chan *chan; in memcpy_count_show()
102 struct dma_chan *chan; in bytes_transferred_show()
124 struct dma_chan *chan; in in_use_show()
180 static struct module *dma_chan_to_owner(struct dma_chan *chan) in dma_chan_to_owner()
191 static void balance_ref_count(struct dma_chan *chan) in balance_ref_count()
207 static int dma_chan_get(struct dma_chan *chan) in dma_chan_get()
246 static void dma_chan_put(struct dma_chan *chan) in dma_chan_put()
270 enum dma_status dma_sync_wait(struct dma_chan *chan, dma_cookie_t cookie) in dma_sync_wait()
301 struct dma_chan *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 …]
Dfsl-edma-common.h213 static inline struct fsl_edma_chan *to_fsl_edma_chan(struct dma_chan *chan) in to_fsl_edma_chan()
227 int fsl_edma_terminate_all(struct dma_chan *chan);
228 int fsl_edma_pause(struct dma_chan *chan);
229 int fsl_edma_resume(struct dma_chan *chan);
230 int fsl_edma_slave_config(struct dma_chan *chan,
232 enum dma_status fsl_edma_tx_status(struct dma_chan *chan,
235 struct dma_chan *chan, dma_addr_t dma_addr, size_t buf_len,
239 struct dma_chan *chan, struct scatterlist *sgl,
243 void fsl_edma_issue_pending(struct dma_chan *chan);
244 int fsl_edma_alloc_chan_resources(struct dma_chan *chan);
[all …]
Dof-dma.c53 static struct dma_chan *of_dma_router_xlate(struct of_phandle_args *dma_spec, in of_dma_router_xlate()
56 struct dma_chan *chan; in of_dma_router_xlate()
102 struct dma_chan *(*of_dma_xlate) in of_dma_controller_register()
234 struct dma_chan *of_dma_request_slave_channel(struct device_node *np, in of_dma_request_slave_channel()
239 struct dma_chan *chan; in of_dma_request_slave_channel()
304 struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, in of_dma_simple_xlate()
334 struct dma_chan *of_dma_xlate_by_chan_id(struct of_phandle_args *dma_spec, in of_dma_xlate_by_chan_id()
338 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()
379 static int mmp_tdma_alloc_chan_resources(struct dma_chan *chan) in mmp_tdma_alloc_chan_resources()
396 static void mmp_tdma_free_chan_resources(struct dma_chan *chan) in mmp_tdma_free_chan_resources()
421 struct dma_chan *chan, dma_addr_t dma_addr, size_t buf_len, in mmp_tdma_prep_dma_cyclic()
485 static int mmp_tdma_terminate_all(struct dma_chan *chan) in mmp_tdma_terminate_all()
[all …]
Dnbpfaxi.c196 struct dma_chan dma_chan; member
284 #define nbpf_to_chan(d) container_of(d, struct nbpf_channel, dma_chan)
302 dev_dbg(chan->dma_chan.device->dev, "%s(0x%p + 0x%x) = 0x%x\n", in nbpf_chan_read()
311 dev_dbg(chan->dma_chan.device->dev, "%s(0x%p + 0x%x) = 0x%x\n", in nbpf_chan_write()
375 dev_err(chan->dma_chan.device->dev, in nbpf_error_clear()
506 struct device *dev = chan->dma_chan.device->dev; in nbpf_prep_one()
595 static void nbpf_issue_pending(struct dma_chan *dchan) in nbpf_issue_pending()
619 static enum dma_status nbpf_tx_status(struct dma_chan *dchan, in nbpf_tx_status()
678 dev_dbg(chan->dma_chan.device->dev, "Entry %s(%d)\n", __func__, cookie); in nbpf_tx_submit()
685 struct dma_chan *dchan = &chan->dma_chan; in nbpf_desc_page_alloc()
[all …]
Dmxs-dma.c111 struct dma_chan chan;
198 static struct mxs_dma_chan *to_mxs_dma_chan(struct dma_chan *chan) in to_mxs_dma_chan()
203 static void mxs_dma_reset_chan(struct dma_chan *chan) in mxs_dma_reset_chan()
252 static void mxs_dma_enable_chan(struct dma_chan *chan) in mxs_dma_enable_chan()
275 static void mxs_dma_disable_chan(struct dma_chan *chan) in mxs_dma_disable_chan()
282 static int mxs_dma_pause_chan(struct dma_chan *chan) in mxs_dma_pause_chan()
300 static int mxs_dma_resume_chan(struct dma_chan *chan) in mxs_dma_resume_chan()
415 static int mxs_dma_alloc_chan_resources(struct dma_chan *chan) in mxs_dma_alloc_chan_resources()
457 static void mxs_dma_free_chan_resources(struct dma_chan *chan) in mxs_dma_free_chan_resources()
495 struct dma_chan *chan, struct scatterlist *sgl, in mxs_dma_prep_slave_sg()
[all …]
Dmoxart-dma.c165 static struct device *chan2dev(struct dma_chan *chan) in chan2dev()
170 static inline struct moxart_chan *to_moxart_dma_chan(struct dma_chan *c) in to_moxart_dma_chan()
186 static int moxart_terminate_all(struct dma_chan *chan) in moxart_terminate_all()
213 static int moxart_slave_config(struct dma_chan *chan, in moxart_slave_config()
270 struct dma_chan *chan, struct scatterlist *sgl, in moxart_prep_slave_sg()
332 static struct dma_chan *moxart_of_xlate(struct of_phandle_args *dma_spec, in moxart_of_xlate()
336 struct dma_chan *chan; in moxart_of_xlate()
349 static int moxart_alloc_chan_resources(struct dma_chan *chan) in moxart_alloc_chan_resources()
360 static void moxart_free_chan_resources(struct dma_chan *chan) in moxart_free_chan_resources()
419 static void moxart_dma_start_desc(struct dma_chan *chan) in moxart_dma_start_desc()
[all …]
/drivers/dma/ioat/
Ddma.h90 struct dma_chan dma_chan; member
139 ssize_t (*show)(struct dma_chan *, char *);
140 ssize_t (*store)(struct dma_chan *, const char *, size_t);
202 static inline struct ioatdma_chan *to_ioat_chan(struct dma_chan *c) in to_ioat_chan()
204 return container_of(c, struct ioatdma_chan, dma_chan); in to_ioat_chan()
358 ioat_dma_prep_memcpy_lock(struct dma_chan *c, dma_addr_t dma_dest,
361 ioat_prep_interrupt_lock(struct dma_chan *c, unsigned long flags);
363 ioat_prep_xor(struct dma_chan *chan, dma_addr_t dest, dma_addr_t *src,
366 ioat_prep_xor_val(struct dma_chan *chan, dma_addr_t *src,
370 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()
Dinit.c307 struct dma_chan *dma_chan; in ioat_dma_self_test() local
330 dma_chan = container_of(dma->channels.next, struct dma_chan, in ioat_dma_self_test()
332 if (dma->device_alloc_chan_resources(dma_chan) < 1) { in ioat_dma_self_test()
351 tx = ioat_dma->dma_dev.device_prep_dma_memcpy(dma_chan, dma_dest, in ioat_dma_self_test()
370 dma->device_issue_pending(dma_chan); in ioat_dma_self_test()
375 dma->device_tx_status(dma_chan, cookie, NULL) in ioat_dma_self_test()
392 dma->device_free_chan_resources(dma_chan); in ioat_dma_self_test()
611 static void ioat_free_chan_resources(struct dma_chan *c) in ioat_free_chan_resources()
678 static int ioat_alloc_chan_resources(struct dma_chan *c) in ioat_alloc_chan_resources()
770 struct dma_chan *c = &ioat_chan->dma_chan; in ioat_init_channel()
[all …]
/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 …]
/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()
84 dma_async_issue_pending(pd->dma_chan); in pxa_bmdma_start()
95 status = dmaengine_tx_status(pd->dma_chan, pd->dma_cookie, NULL); in pxa_bmdma_stop()
100 dmaengine_terminate_all(pd->dma_chan); in pxa_bmdma_stop()
114 status = dmaengine_tx_status(pd->dma_chan, pd->dma_cookie, &state); in pxa_bmdma_status()
275 data->dma_chan = in pxa_ata_probe()
277 if (!data->dma_chan) in pxa_ata_probe()
279 ret = dmaengine_slave_config(data->dma_chan, &config); in pxa_ata_probe()
[all …]
/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 …]
/drivers/spi/
Dspi-sprd.c145 struct dma_chan *dma_chan[SPRD_SPI_MAX]; member
488 static int sprd_spi_dma_submit(struct dma_chan *dma_chan, in sprd_spi_dma_submit() argument
498 ret = dmaengine_slave_config(dma_chan, c); in sprd_spi_dma_submit()
504 desc = dmaengine_prep_slave_sg(dma_chan, sg->sgl, sg->nents, dir, flags); in sprd_spi_dma_submit()
512 dma_async_issue_pending(dma_chan); in sprd_spi_dma_submit()
519 struct dma_chan *dma_chan = ss->dma.dma_chan[SPRD_SPI_RX]; in sprd_spi_dma_rx_config() local
528 ret = sprd_spi_dma_submit(dma_chan, &config, &t->rx_sg, DMA_DEV_TO_MEM); in sprd_spi_dma_rx_config()
537 struct dma_chan *dma_chan = ss->dma.dma_chan[SPRD_SPI_TX]; in sprd_spi_dma_tx_config() local
546 ret = sprd_spi_dma_submit(dma_chan, &config, &t->tx_sg, DMA_MEM_TO_DEV); in sprd_spi_dma_tx_config()
555 ss->dma.dma_chan[SPRD_SPI_RX] = dma_request_chan(ss->dev, "rx_chn"); in sprd_spi_dma_request()
[all …]
/drivers/staging/comedi/drivers/
Dcomedi_isadma.c41 unsigned int comedi_isadma_disable(unsigned int dma_chan) in comedi_isadma_disable() argument
47 disable_dma(dma_chan); in comedi_isadma_disable()
48 residue = get_dma_residue(dma_chan); in comedi_isadma_disable()
62 unsigned int comedi_isadma_disable_on_sample(unsigned int dma_chan, in comedi_isadma_disable_on_sample() argument
70 residue = comedi_isadma_disable(dma_chan); in comedi_isadma_disable_on_sample()
74 enable_dma(dma_chan); in comedi_isadma_disable_on_sample()
78 new_residue = comedi_isadma_disable(dma_chan); in comedi_isadma_disable_on_sample()
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
Dni_labpc_isadma.c144 void labpc_init_dma_chan(struct comedi_device *dev, unsigned int dma_chan) in labpc_init_dma_chan() argument
149 if (dma_chan != 1 && dma_chan != 3) in labpc_init_dma_chan()
153 devpriv->dma = comedi_isadma_alloc(dev, 1, dma_chan, dma_chan, in labpc_init_dma_chan()
/drivers/iio/adc/
Dat91-sama5d2_adc.c358 struct dma_chan *dma_chan; member
738 if (!st->dma_st.dma_chan) { in at91_adc_configure_trigger()
744 if (!st->dma_st.dma_chan) { in at91_adc_configure_trigger()
762 if (st->dma_st.dma_chan) in at91_adc_reenable_trigger()
784 status = dmaengine_tx_status(st->dma_st.dma_chan, in at91_adc_dma_size_done()
785 st->dma_st.dma_chan->cookie, in at91_adc_dma_size_done()
816 if (!st->dma_st.dma_chan) in at91_adc_dma_start()
841 desc = dmaengine_prep_dma_cyclic(st->dma_st.dma_chan, in at91_adc_dma_start()
859 dmaengine_terminate_async(st->dma_st.dma_chan); in at91_adc_dma_start()
866 dma_async_issue_pending(st->dma_st.dma_chan); in at91_adc_dma_start()
[all …]
/drivers/dma/ipu/
Dipu_idmac.c605 enum ipu_channel channel = ichan->dma_chan.chan_id; in ipu_enable_channel()
657 enum ipu_channel channel = ichan->dma_chan.chan_id; in ipu_init_channel_buffer()
658 struct idmac *idmac = to_idmac(ichan->dma_chan.device); in ipu_init_channel_buffer()
732 enum ipu_channel channel = ichan->dma_chan.chan_id; in ipu_update_channel_buffer()
776 unsigned int chan_id = ichan->dma_chan.chan_id; in ipu_submit_buffer()
777 struct device *dev = &ichan->dma_chan.dev->device; in ipu_submit_buffer()
825 struct device *dev = &ichan->dma_chan.dev->device; in idmac_tx_submit()
898 ichan->dma_chan.cookie = cookie; in idmac_tx_submit()
912 struct idmac *idmac = to_idmac(ichan->dma_chan.device); in idmac_desc_alloc()
929 dma_async_tx_descriptor_init(txd, &ichan->dma_chan); in idmac_desc_alloc()
[all …]
/drivers/mtd/nand/onenand/
Domap2.c42 struct dma_chan *dma_chan; member
331 tx = dmaengine_prep_dma_memcpy(c->dma_chan, dst, src, count, in omap2_onenand_dma_transfer()
349 dma_async_issue_pending(c->dma_chan); in omap2_onenand_dma_transfer()
353 dmaengine_terminate_sync(c->dma_chan); in omap2_onenand_dma_transfer()
517 c->dma_chan = dma_request_channel(mask, NULL, NULL); in omap2_onenand_probe()
518 if (c->dma_chan) { in omap2_onenand_probe()
530 c->dma_chan ? "DMA" : "PIO"); in omap2_onenand_probe()
580 if (c->dma_chan) in omap2_onenand_probe()
581 dma_release_channel(c->dma_chan); in omap2_onenand_probe()
591 if (c->dma_chan) in omap2_onenand_remove()
[all …]
/drivers/dma/mediatek/
Dmtk-uart-apdma.c110 static inline struct mtk_chan *to_mtk_uart_apdma_chan(struct dma_chan *c) in to_mtk_uart_apdma_chan()
134 struct dma_chan *chan = vd->tx.chan; in mtk_uart_apdma_desc_free()
255 struct dma_chan *chan = (struct dma_chan *)dev_id; in mtk_uart_apdma_irq_handler()
269 static int mtk_uart_apdma_alloc_chan_resources(struct dma_chan *chan) in mtk_uart_apdma_alloc_chan_resources()
305 static void mtk_uart_apdma_free_chan_resources(struct dma_chan *chan) in mtk_uart_apdma_free_chan_resources()
319 static enum dma_status mtk_uart_apdma_tx_status(struct dma_chan *chan, in mtk_uart_apdma_tx_status()
340 (struct dma_chan *chan, struct scatterlist *sgl, in mtk_uart_apdma_prep_slave_sg()
362 static void mtk_uart_apdma_issue_pending(struct dma_chan *chan) in mtk_uart_apdma_issue_pending()
382 static int mtk_uart_apdma_slave_config(struct dma_chan *chan, in mtk_uart_apdma_slave_config()
392 static int mtk_uart_apdma_terminate_all(struct dma_chan *chan) in mtk_uart_apdma_terminate_all()
[all …]
/drivers/i2c/busses/
Di2c-stm32.h37 struct dma_chan *chan_tx;
38 struct dma_chan *chan_rx;
39 struct dma_chan *chan_using;

1234567891011