/drivers/crypto/ccp/ |
D | ccp-dmaengine.c | 87 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/ |
D | iop-adma.c | 417 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 …]
|
D | dmaengine.c | 86 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 …]
|
D | mv_xor.c | 37 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 …]
|
D | fsl-edma-common.h | 214 static inline struct fsl_edma_chan *to_fsl_edma_chan(struct dma_chan *chan) in to_fsl_edma_chan() 228 int fsl_edma_terminate_all(struct dma_chan *chan); 229 int fsl_edma_pause(struct dma_chan *chan); 230 int fsl_edma_resume(struct dma_chan *chan); 231 int fsl_edma_slave_config(struct dma_chan *chan, 233 enum dma_status fsl_edma_tx_status(struct dma_chan *chan, 236 struct dma_chan *chan, dma_addr_t dma_addr, size_t buf_len, 240 struct dma_chan *chan, struct scatterlist *sgl, 244 void fsl_edma_issue_pending(struct dma_chan *chan); 245 int fsl_edma_alloc_chan_resources(struct dma_chan *chan); [all …]
|
D | dmaengine.h | 16 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);
|
D | of-dma.c | 55 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() 109 struct dma_chan *(*of_dma_xlate) in of_dma_controller_register() 241 struct dma_chan *of_dma_request_slave_channel(struct device_node *np, in of_dma_request_slave_channel() 246 struct dma_chan *chan; in of_dma_request_slave_channel() 311 struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, in of_dma_simple_xlate() 341 struct dma_chan *of_dma_xlate_by_chan_id(struct of_phandle_args *dma_spec, in of_dma_xlate_by_chan_id() 345 struct dma_chan *chan, *candidate = NULL; in of_dma_xlate_by_chan_id()
|
D | mmp_tdma.c | 103 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 …]
|
D | nbpfaxi.c | 203 struct dma_chan dma_chan; member 291 #define nbpf_to_chan(d) container_of(d, struct nbpf_channel, dma_chan) 309 dev_dbg(chan->dma_chan.device->dev, "%s(0x%p + 0x%x) = 0x%x\n", in nbpf_chan_read() 318 dev_dbg(chan->dma_chan.device->dev, "%s(0x%p + 0x%x) = 0x%x\n", in nbpf_chan_write() 382 dev_err(chan->dma_chan.device->dev, in nbpf_error_clear() 513 struct device *dev = chan->dma_chan.device->dev; in nbpf_prep_one() 602 static void nbpf_issue_pending(struct dma_chan *dchan) in nbpf_issue_pending() 626 static enum dma_status nbpf_tx_status(struct dma_chan *dchan, in nbpf_tx_status() 685 dev_dbg(chan->dma_chan.device->dev, "Entry %s(%d)\n", __func__, cookie); in nbpf_tx_submit() 692 struct dma_chan *dchan = &chan->dma_chan; in nbpf_desc_page_alloc() [all …]
|
D | milbeaut-hdmac.c | 207 static void milbeaut_hdmac_free_chan_resources(struct dma_chan *chan) in milbeaut_hdmac_free_chan_resources() 213 milbeaut_hdmac_chan_config(struct dma_chan *chan, struct dma_slave_config *cfg) in milbeaut_hdmac_chan_config() 225 static int milbeaut_hdmac_chan_pause(struct dma_chan *chan) in milbeaut_hdmac_chan_pause() 240 static int milbeaut_hdmac_chan_resume(struct dma_chan *chan) in milbeaut_hdmac_chan_resume() 256 milbeaut_hdmac_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl, in milbeaut_hdmac_prep_slave_sg() 287 static int milbeaut_hdmac_terminate_all(struct dma_chan *chan) in milbeaut_hdmac_terminate_all() 316 static void milbeaut_hdmac_synchronize(struct dma_chan *chan) in milbeaut_hdmac_synchronize() 321 static enum dma_status milbeaut_hdmac_tx_status(struct dma_chan *chan, in milbeaut_hdmac_tx_status() 380 static void milbeaut_hdmac_issue_pending(struct dma_chan *chan) in milbeaut_hdmac_issue_pending() 402 static struct dma_chan * [all …]
|
D | plx_dma.c | 105 struct dma_chan dma_chan; member 119 static struct plx_dma_dev *chan_to_plx_dma_dev(struct dma_chan *c) in chan_to_plx_dma_dev() 121 return container_of(c, struct plx_dma_dev, dma_chan); in chan_to_plx_dma_dev() 251 static struct dma_async_tx_descriptor *plx_dma_prep_memcpy(struct dma_chan *c, in plx_dma_prep_memcpy() 322 static enum dma_status plx_dma_tx_status(struct dma_chan *chan, in plx_dma_tx_status() 337 static void plx_dma_issue_pending(struct dma_chan *chan) in plx_dma_issue_pending() 391 dma_async_tx_descriptor_init(&desc->txd, &plxdev->dma_chan); in plx_dma_alloc_desc() 407 static int plx_dma_alloc_chan_resources(struct dma_chan *chan) in plx_dma_alloc_chan_resources() 452 static void plx_dma_free_chan_resources(struct dma_chan *chan) in plx_dma_free_chan_resources() 501 struct dma_chan *chan; in plx_dma_create() [all …]
|
D | mxs-dma.c | 111 struct dma_chan chan; 179 static struct mxs_dma_chan *to_mxs_dma_chan(struct dma_chan *chan) in to_mxs_dma_chan() 184 static void mxs_dma_reset_chan(struct dma_chan *chan) in mxs_dma_reset_chan() 233 static void mxs_dma_enable_chan(struct dma_chan *chan) in mxs_dma_enable_chan() 256 static void mxs_dma_disable_chan(struct dma_chan *chan) in mxs_dma_disable_chan() 263 static int mxs_dma_pause_chan(struct dma_chan *chan) in mxs_dma_pause_chan() 281 static int mxs_dma_resume_chan(struct dma_chan *chan) in mxs_dma_resume_chan() 396 static int mxs_dma_alloc_chan_resources(struct dma_chan *chan) in mxs_dma_alloc_chan_resources() 438 static void mxs_dma_free_chan_resources(struct dma_chan *chan) in mxs_dma_free_chan_resources() 476 struct dma_chan *chan, struct scatterlist *sgl, in mxs_dma_prep_slave_sg() [all …]
|
/drivers/dma/ioat/ |
D | dma.h | 95 struct dma_chan dma_chan; member 142 ssize_t (*show)(struct dma_chan *, char *); 143 ssize_t (*store)(struct dma_chan *, const char *, size_t); 205 static inline struct ioatdma_chan *to_ioat_chan(struct dma_chan *c) in to_ioat_chan() 207 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 …]
|
D | sysfs.c | 17 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()
|
D | init.c | 307 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() 607 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() 774 ioat_chan->dma_chan.device = dma; in ioat_init_channel() [all …]
|
/drivers/usb/musb/ |
D | ux500_dma.c | 34 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/ |
D | pata_pxa.c | 26 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 …]
|
/drivers/dma/sh/ |
D | shdma-base.c | 36 #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/dma/idxd/ |
D | dma.c | 15 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()
|
/drivers/spi/ |
D | spi-sprd.c | 145 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/ |
D | comedi_isadma.c | 41 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()
|
D | comedi_isadma.h | 61 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
|
/drivers/iio/adc/ |
D | at91-sama5d2_adc.c | 361 struct dma_chan *dma_chan; member 752 if (st->dma_st.dma_chan) in at91_adc_reenable_trigger() 775 status = dmaengine_tx_status(st->dma_st.dma_chan, in at91_adc_dma_size_done() 776 st->dma_st.dma_chan->cookie, in at91_adc_dma_size_done() 807 if (!st->dma_st.dma_chan) in at91_adc_dma_start() 832 desc = dmaengine_prep_dma_cyclic(st->dma_st.dma_chan, in at91_adc_dma_start() 850 dmaengine_terminate_async(st->dma_st.dma_chan); in at91_adc_dma_start() 857 dma_async_issue_pending(st->dma_st.dma_chan); in at91_adc_dma_start() 871 if (st->dma_st.dma_chan) in at91_adc_buffer_check_use_irq() 975 if (st->dma_st.dma_chan) in at91_adc_buffer_postdisable() [all …]
|
/drivers/dma/ipu/ |
D | ipu_idmac.c | 605 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/ |
D | onenand_omap2.c | 42 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() 514 c->dma_chan = dma_request_channel(mask, NULL, NULL); in omap2_onenand_probe() 515 if (c->dma_chan) { in omap2_onenand_probe() 527 c->dma_chan ? "DMA" : "PIO"); in omap2_onenand_probe() 578 if (c->dma_chan) in omap2_onenand_probe() 579 dma_release_channel(c->dma_chan); in omap2_onenand_probe() 589 if (c->dma_chan) in omap2_onenand_remove() [all …]
|