Home
last modified time | relevance | path

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

1234567

/drivers/staging/comedi/drivers/
Dni_labpc_isadma.c67 disable_dma(devpriv->dma_chan); in labpc_setup_dma()
70 clear_dma_ff(devpriv->dma_chan); in labpc_setup_dma()
71 set_dma_addr(devpriv->dma_chan, devpriv->dma_addr); in labpc_setup_dma()
77 set_dma_count(devpriv->dma_chan, devpriv->dma_transfer_size); in labpc_setup_dma()
78 enable_dma(devpriv->dma_chan); in labpc_setup_dma()
99 disable_dma(devpriv->dma_chan); in labpc_drain_dma()
102 clear_dma_ff(devpriv->dma_chan); in labpc_drain_dma()
110 residue = get_dma_residue(devpriv->dma_chan) / sample_size; in labpc_drain_dma()
133 set_dma_addr(devpriv->dma_chan, devpriv->dma_addr); in labpc_drain_dma()
134 set_dma_count(devpriv->dma_chan, leftover * sample_size); in labpc_drain_dma()
[all …]
Ddas16.c459 unsigned int dma_chan; member
516 disable_dma(devpriv->dma_chan); in disable_dma_on_even()
517 residue = get_dma_residue(devpriv->dma_chan); in disable_dma_on_even()
519 enable_dma(devpriv->dma_chan); in disable_dma_on_even()
522 new_residue = get_dma_residue(devpriv->dma_chan); in disable_dma_on_even()
526 disable_dma(devpriv->dma_chan); in disable_dma_on_even()
527 residue = get_dma_residue(devpriv->dma_chan); in disable_dma_on_even()
554 clear_dma_ff(devpriv->dma_chan); in das16_interrupt()
577 set_dma_addr(devpriv->dma_chan, in das16_interrupt()
579 set_dma_count(devpriv->dma_chan, devpriv->dma_transfer_size); in das16_interrupt()
[all …]
Dni_labpc_isadma.h16 return (bool)devpriv->dma_chan; in labpc_have_dma_chan()
19 int labpc_init_dma_chan(struct comedi_device *dev, unsigned int dma_chan);
33 unsigned int dma_chan) in labpc_init_dma_chan() argument
/drivers/dma/
Diop-adma.c433 static int iop_adma_alloc_chan_resources(struct dma_chan *chan) in iop_adma_alloc_chan_resources()
500 iop_adma_prep_dma_interrupt(struct dma_chan *chan, unsigned long flags) in iop_adma_prep_dma_interrupt()
522 iop_adma_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dma_dest, in iop_adma_prep_dma_memcpy()
553 iop_adma_prep_dma_xor(struct dma_chan *chan, dma_addr_t dma_dest, in iop_adma_prep_dma_xor()
588 iop_adma_prep_dma_xor_val(struct dma_chan *chan, dma_addr_t *dma_src, in iop_adma_prep_dma_xor_val()
623 iop_adma_prep_dma_pq(struct dma_chan *chan, dma_addr_t *dst, dma_addr_t *src, in iop_adma_prep_dma_pq()
687 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()
730 static void iop_adma_free_chan_resources(struct dma_chan *chan) in iop_adma_free_chan_resources()
768 static enum dma_status iop_adma_status(struct dma_chan *chan, in iop_adma_status()
832 static void iop_adma_issue_pending(struct dma_chan *chan) in iop_adma_issue_pending()
[all …]
Ddmaengine.c83 static struct dma_chan *dev_to_dma_chan(struct device *dev) in dev_to_dma_chan()
94 struct dma_chan *chan; in memcpy_count_show()
116 struct dma_chan *chan; in bytes_transferred_show()
138 struct dma_chan *chan; in in_use_show()
196 static struct module *dma_chan_to_owner(struct dma_chan *chan) in dma_chan_to_owner()
207 static void balance_ref_count(struct dma_chan *chan) in balance_ref_count()
223 static int dma_chan_get(struct dma_chan *chan) in dma_chan_get()
258 static void dma_chan_put(struct dma_chan *chan) in dma_chan_put()
268 enum dma_status dma_sync_wait(struct dma_chan *chan, dma_cookie_t cookie) in dma_sync_wait()
299 struct dma_chan *chan;
[all …]
Dmv_xor.c37 static void mv_xor_issue_pending(struct dma_chan *chan);
466 static int mv_xor_alloc_chan_resources(struct dma_chan *chan) in mv_xor_alloc_chan_resources()
515 mv_xor_prep_dma_xor(struct dma_chan *chan, dma_addr_t dest, dma_addr_t *src, in mv_xor_prep_dma_xor()
547 mv_xor_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dest, dma_addr_t src, in mv_xor_prep_dma_memcpy()
558 mv_xor_prep_dma_interrupt(struct dma_chan *chan, unsigned long flags) in mv_xor_prep_dma_interrupt()
575 static void mv_xor_free_chan_resources(struct dma_chan *chan) in mv_xor_free_chan_resources()
618 static enum dma_status mv_xor_status(struct dma_chan *chan, in mv_xor_status()
691 static void mv_xor_issue_pending(struct dma_chan *chan) in mv_xor_issue_pending()
710 struct dma_chan *dma_chan; in mv_xor_memcpy_self_test() local
730 dma_chan = &mv_chan->dmachan; in mv_xor_memcpy_self_test()
[all …]
Dof-dma.c61 struct dma_chan *(*of_dma_xlate) in of_dma_controller_register()
148 struct dma_chan *of_dma_request_slave_channel(struct device_node *np, in of_dma_request_slave_channel()
153 struct dma_chan *chan; in of_dma_request_slave_channel()
205 struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, in of_dma_simple_xlate()
235 struct dma_chan *of_dma_xlate_by_chan_id(struct of_phandle_args *dma_spec, in of_dma_xlate_by_chan_id()
239 struct dma_chan *chan, *candidate = NULL; in of_dma_xlate_by_chan_id()
Dmoxart-dma.c164 static struct device *chan2dev(struct dma_chan *chan) in chan2dev()
169 static inline struct moxart_chan *to_moxart_dma_chan(struct dma_chan *c) in to_moxart_dma_chan()
185 static int moxart_terminate_all(struct dma_chan *chan) in moxart_terminate_all()
210 static int moxart_slave_config(struct dma_chan *chan, in moxart_slave_config()
266 static int moxart_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd, in moxart_control()
289 struct dma_chan *chan, struct scatterlist *sgl, in moxart_prep_slave_sg()
351 static struct dma_chan *moxart_of_xlate(struct of_phandle_args *dma_spec, in moxart_of_xlate()
355 struct dma_chan *chan; in moxart_of_xlate()
368 static int moxart_alloc_chan_resources(struct dma_chan *chan) in moxart_alloc_chan_resources()
379 static void moxart_free_chan_resources(struct dma_chan *chan) in moxart_free_chan_resources()
[all …]
Dnbpfaxi.c199 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()
482 struct device *dev = chan->dma_chan.device->dev; in nbpf_prep_one()
578 static void nbpf_issue_pending(struct dma_chan *dchan) in nbpf_issue_pending()
602 static enum dma_status nbpf_tx_status(struct dma_chan *dchan, in nbpf_tx_status()
661 dev_dbg(chan->dma_chan.device->dev, "Entry %s(%d)\n", __func__, cookie); in nbpf_tx_submit()
668 struct dma_chan *dchan = &chan->dma_chan; in nbpf_desc_page_alloc()
[all …]
Dacpi-dma.c152 struct dma_chan *(*acpi_dma_xlate) in acpi_dma_controller_register()
238 struct dma_chan *(*acpi_dma_xlate) in devm_acpi_dma_controller_register()
349 struct dma_chan *acpi_dma_request_slave_chan_by_index(struct device *dev, in acpi_dma_request_slave_chan_by_index()
357 struct dma_chan *chan = NULL; in acpi_dma_request_slave_chan_by_index()
419 struct dma_chan *acpi_dma_request_slave_chan_by_name(struct device *dev, in acpi_dma_request_slave_chan_by_name()
446 struct dma_chan *acpi_dma_simple_xlate(struct acpi_dma_spec *dma_spec, in acpi_dma_simple_xlate()
Dpch_dma.c103 struct dma_chan chan;
155 static inline struct pch_dma_chan *to_pd_chan(struct dma_chan *chan) in to_pd_chan()
165 static inline struct device *chan2dev(struct dma_chan *chan) in chan2dev()
170 static inline struct device *chan2parent(struct dma_chan *chan) in chan2parent()
189 static void pdc_enable_irq(struct dma_chan *chan, int enable) in pdc_enable_irq()
213 static void pdc_set_dir(struct dma_chan *chan) in pdc_set_dir()
261 static void pdc_set_mode(struct dma_chan *chan, u32 mode) in pdc_set_mode()
441 static struct pch_dma_desc *pdc_alloc_desc(struct dma_chan *chan, gfp_t flags) in pdc_alloc_desc()
505 static int pd_alloc_chan_resources(struct dma_chan *chan) in pd_alloc_chan_resources()
543 static void pd_free_chan_resources(struct dma_chan *chan) in pd_free_chan_resources()
[all …]
Ddmaengine.h15 static inline void dma_cookie_init(struct dma_chan *chan) in dma_cookie_init()
30 struct dma_chan *chan = tx->chan; in dma_cookie_assign()
67 static inline enum dma_status dma_cookie_status(struct dma_chan *chan, in dma_cookie_status()
Ddma-jz4740.c145 static struct jz4740_dmaengine_chan *to_jz4740_dma_chan(struct dma_chan *c) in to_jz4740_dma_chan()
212 static int jz4740_dma_slave_config(struct dma_chan *c, in jz4740_dma_slave_config()
274 static int jz4740_dma_terminate_all(struct dma_chan *c) in jz4740_dma_terminate_all()
293 static int jz4740_dma_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd, in jz4740_dma_control()
397 static void jz4740_dma_issue_pending(struct dma_chan *c) in jz4740_dma_issue_pending()
409 struct dma_chan *c, struct scatterlist *sgl, in jz4740_dma_prep_slave_sg()
435 struct dma_chan *c, dma_addr_t buf_addr, size_t buf_len, in jz4740_dma_prep_dma_cyclic()
486 static enum dma_status jz4740_dma_tx_status(struct dma_chan *c, in jz4740_dma_tx_status()
514 static int jz4740_dma_alloc_chan_resources(struct dma_chan *c) in jz4740_dma_alloc_chan_resources()
519 static void jz4740_dma_free_chan_resources(struct dma_chan *c) in jz4740_dma_free_chan_resources()
Dat_hdmac.c58 static void atc_issue_pending(struct dma_chan *chan);
85 static struct at_desc *atc_alloc_descriptor(struct dma_chan *chan, in atc_alloc_descriptor()
268 static int atc_get_bytes_left(struct dma_chan *chan) in atc_get_bytes_left()
595 atc_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dest, dma_addr_t src, in atc_prep_dma_memcpy()
683 atc_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl, in atc_prep_slave_sg()
844 atc_dma_cyclic_fill_desc(struct dma_chan *chan, struct at_desc *desc, in atc_dma_cyclic_fill_desc()
900 atc_prep_dma_cyclic(struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len, in atc_prep_dma_cyclic()
975 static int set_runtime_config(struct dma_chan *chan, in set_runtime_config()
993 static int atc_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd, in atc_control()
1072 atc_tx_status(struct dma_chan *chan, in atc_tx_status()
[all …]
/drivers/usb/musb/
Dux500_dma.c46 struct dma_chan *dma_chan; member
88 struct dma_chan *dma_chan = ux500_channel->dma_chan; in ux500_configure_channel() local
124 dma_chan->device->device_control(dma_chan, DMA_SLAVE_CONFIG, in ux500_configure_channel()
127 dma_desc = dmaengine_prep_slave_sg(dma_chan, &sg, 1, direction, in ux500_configure_channel()
136 dma_async_issue_pending(dma_chan); in ux500_configure_channel()
249 ux500_channel->dma_chan->device-> in ux500_dma_channel_abort()
250 device_control(ux500_channel->dma_chan, in ux500_dma_channel_abort()
269 if (ux500_channel->dma_chan) in ux500_dma_controller_stop()
270 dma_release_channel(ux500_channel->dma_chan); in ux500_dma_controller_stop()
279 if (ux500_channel->dma_chan) in ux500_dma_controller_stop()
[all …]
/drivers/dma/sh/
Dshdma-base.c39 #define to_shdma_chan(c) container_of(c, struct shdma_chan, dma_chan)
57 struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device); in shdma_chan_xfer_ld_queue()
131 to_shdma_dev(schan->dma_chan.device); in shdma_tx_submit()
177 struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device); in shdma_setup_slave()
209 static int shdma_alloc_chan_resources(struct dma_chan *chan) in shdma_alloc_chan_resources()
212 struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device); in shdma_alloc_chan_resources()
242 &schan->dma_chan); in shdma_alloc_chan_resources()
275 bool shdma_chan_filter(struct dma_chan *chan, void *arg) in shdma_chan_filter()
295 sdev = to_shdma_dev(schan->dma_chan.device); in shdma_chan_filter()
337 if (schan->dma_chan.completed_cookie != desc->cookie - 1) in __ld_cleanup()
[all …]
Dshdma-of.c20 #define to_shdma_chan(c) container_of(c, struct shdma_chan, dma_chan)
22 static struct dma_chan *shdma_of_xlate(struct of_phandle_args *dma_spec, in shdma_of_xlate()
27 struct dma_chan *chan; in shdma_of_xlate()
/drivers/mmc/host/
Dmmci.h190 struct dma_chan;
194 struct dma_chan *dma_chan; member
236 struct dma_chan *dma_current;
237 struct dma_chan *dma_rx_channel;
238 struct dma_chan *dma_tx_channel;
/drivers/scsi/
DNCR53c406a.c197 static int dma_chan; variable
292 if (dma_chan <= 3) { in NCR53c406a_dma_setup()
310 disable_dma(dma_chan); in NCR53c406a_dma_setup()
311 clear_dma_ff(dma_chan); in NCR53c406a_dma_setup()
312 set_dma_addr(dma_chan, (long) ptr); in NCR53c406a_dma_setup()
313 set_dma_count(dma_chan, count); in NCR53c406a_dma_setup()
314 set_dma_mode(dma_chan, mode); in NCR53c406a_dma_setup()
315 enable_dma(dma_chan); in NCR53c406a_dma_setup()
337 clear_dma_ff(dma_chan); in NCR53c406a_dma_residual()
338 tmp = get_dma_residue(dma_chan); in NCR53c406a_dma_residual()
[all …]
/drivers/dma/ipu/
Dipu_idmac.c608 enum ipu_channel channel = ichan->dma_chan.chan_id; in ipu_enable_channel()
660 enum ipu_channel channel = ichan->dma_chan.chan_id; in ipu_init_channel_buffer()
661 struct idmac *idmac = to_idmac(ichan->dma_chan.device); in ipu_init_channel_buffer()
735 enum ipu_channel channel = ichan->dma_chan.chan_id; in ipu_update_channel_buffer()
779 unsigned int chan_id = ichan->dma_chan.chan_id; in ipu_submit_buffer()
780 struct device *dev = &ichan->dma_chan.dev->device; in ipu_submit_buffer()
828 struct device *dev = &ichan->dma_chan.dev->device; in idmac_tx_submit()
901 ichan->dma_chan.cookie = cookie; in idmac_tx_submit()
914 struct idmac *idmac = to_idmac(ichan->dma_chan.device); in idmac_desc_alloc()
931 dma_async_tx_descriptor_init(txd, &ichan->dma_chan); in idmac_desc_alloc()
[all …]
/drivers/dma/ioat/
Ddma_v2.h70 static inline struct ioat2_dma_chan *to_ioat2_chan(struct dma_chan *c) in to_ioat2_chan()
165 ioat2_dma_prep_memcpy_lock(struct dma_chan *c, dma_addr_t dma_dest,
167 void ioat2_issue_pending(struct dma_chan *chan);
168 int ioat2_alloc_chan_resources(struct dma_chan *c);
169 void ioat2_free_chan_resources(struct dma_chan *c);
Ddma.c107 struct dma_chan *c = &chan->common; in ioat_init_channel()
184 static void ioat1_dma_memcpy_issue_pending(struct dma_chan *chan) in ioat1_dma_memcpy_issue_pending()
232 struct dma_chan *c = tx->chan; in ioat1_tx_submit()
311 static int ioat1_dma_alloc_chan_resources(struct dma_chan *c) in ioat1_dma_alloc_chan_resources()
405 static void ioat1_dma_free_chan_resources(struct dma_chan *c) in ioat1_dma_free_chan_resources()
494 ioat1_dma_prep_memcpy(struct dma_chan *c, dma_addr_t dma_dest, in ioat1_dma_prep_memcpy()
751 ioat_dma_tx_status(struct dma_chan *c, dma_cookie_t cookie, in ioat_dma_tx_status()
826 struct dma_chan *dma_chan; in ioat_dma_self_test() local
849 dma_chan = container_of(dma->channels.next, struct dma_chan, in ioat_dma_self_test()
851 if (dma->device_alloc_chan_resources(dma_chan) < 1) { in ioat_dma_self_test()
[all …]
Ddma_v3.c630 ioat3_tx_status(struct dma_chan *c, dma_cookie_t cookie, in ioat3_tx_status()
646 __ioat3_prep_xor_lock(struct dma_chan *c, enum sum_check_flags *result, in __ioat3_prep_xor_lock()
737 ioat3_prep_xor(struct dma_chan *chan, dma_addr_t dest, dma_addr_t *src, in ioat3_prep_xor()
744 ioat3_prep_xor_val(struct dma_chan *chan, dma_addr_t *src, in ioat3_prep_xor_val()
820 __ioat3_prep_pq_lock(struct dma_chan *c, enum sum_check_flags *result, in __ioat3_prep_pq_lock()
944 __ioat3_prep_pq16_lock(struct dma_chan *c, enum sum_check_flags *result, in __ioat3_prep_pq16_lock()
1055 ioat3_prep_pq(struct dma_chan *chan, dma_addr_t *dst, dma_addr_t *src, in ioat3_prep_pq()
1095 ioat3_prep_pq_val(struct dma_chan *chan, dma_addr_t *pq, dma_addr_t *src, in ioat3_prep_pq_val()
1118 ioat3_prep_pqxor(struct dma_chan *chan, dma_addr_t dst, dma_addr_t *src, in ioat3_prep_pqxor()
1137 ioat3_prep_pqxor_val(struct dma_chan *chan, dma_addr_t *src, in ioat3_prep_pqxor_val()
[all …]
/drivers/mtd/nand/
Dlpc32xx_mlc.c195 struct dma_chan *dma_chan; member
400 res = dma_map_sg(host->dma_chan->device->dev, &host->sgl, 1, in lpc32xx_xmit_dma()
406 desc = dmaengine_prep_slave_sg(host->dma_chan, &host->sgl, 1, dir, in lpc32xx_xmit_dma()
418 dma_async_issue_pending(host->dma_chan); in lpc32xx_xmit_dma()
422 dma_unmap_sg(host->dma_chan->device->dev, &host->sgl, 1, in lpc32xx_xmit_dma()
426 dma_unmap_sg(host->dma_chan->device->dev, &host->sgl, 1, in lpc32xx_xmit_dma()
578 host->dma_chan = dma_request_channel(mask, host->pdata->dma_filter, in lpc32xx_dma_setup()
580 if (!host->dma_chan) { in lpc32xx_dma_setup()
599 if (dmaengine_slave_config(host->dma_chan, &host->dma_slave_config)) { in lpc32xx_dma_setup()
606 dma_release_channel(host->dma_chan); in lpc32xx_dma_setup()
[all …]
/drivers/misc/mic/host/
Dmic_device.h132 struct dma_chan *dma_ch;
169 bool (*dma_filter)(struct dma_chan *chan, void *param);
198 static inline struct dma_chan *mic_request_dma_chan(struct mic_device *mdev) in mic_request_dma_chan()
201 struct dma_chan *chan; in mic_request_dma_chan()

1234567