/drivers/crypto/ccp/ |
D | ccp-dmaengine.c | 53 static void ccp_free_chan_resources(struct dma_chan *dma_chan) in ccp_free_chan_resources() argument 55 struct ccp_dma_chan *chan = container_of(dma_chan, struct ccp_dma_chan, in ccp_free_chan_resources() 56 dma_chan); in ccp_free_chan_resources() 96 dma_chan_name(&chan->dma_chan)); in ccp_do_cleanup() 238 dma_chan); in ccp_cmd_callback() 272 chan = container_of(tx_desc->chan, struct ccp_dma_chan, dma_chan); in ccp_tx_submit() 308 dma_async_tx_descriptor_init(&desc->tx_desc, &chan->dma_chan); in ccp_alloc_dma_desc() 319 static struct ccp_dma_desc *ccp_create_desc(struct dma_chan *dma_chan, in ccp_create_desc() argument 326 struct ccp_dma_chan *chan = container_of(dma_chan, struct ccp_dma_chan, in ccp_create_desc() 327 dma_chan); in ccp_create_desc() [all …]
|
/drivers/dma/ |
D | iop-adma.c | 428 static int iop_adma_alloc_chan_resources(struct dma_chan *chan) in iop_adma_alloc_chan_resources() 495 iop_adma_prep_dma_interrupt(struct dma_chan *chan, unsigned long flags) in iop_adma_prep_dma_interrupt() 517 iop_adma_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dma_dest, in iop_adma_prep_dma_memcpy() 548 iop_adma_prep_dma_xor(struct dma_chan *chan, dma_addr_t dma_dest, in iop_adma_prep_dma_xor() 583 iop_adma_prep_dma_xor_val(struct dma_chan *chan, dma_addr_t *dma_src, in iop_adma_prep_dma_xor_val() 618 iop_adma_prep_dma_pq(struct dma_chan *chan, dma_addr_t *dst, dma_addr_t *src, in iop_adma_prep_dma_pq() 682 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() 725 static void iop_adma_free_chan_resources(struct dma_chan *chan) in iop_adma_free_chan_resources() 763 static enum dma_status iop_adma_status(struct dma_chan *chan, in iop_adma_status() 827 static void iop_adma_issue_pending(struct dma_chan *chan) in iop_adma_issue_pending() [all …]
|
D | dmaengine.c | 80 static struct dma_chan *dev_to_dma_chan(struct device *dev) in dev_to_dma_chan() 91 struct dma_chan *chan; in memcpy_count_show() 113 struct dma_chan *chan; in bytes_transferred_show() 135 struct dma_chan *chan; in in_use_show() 193 static struct module *dma_chan_to_owner(struct dma_chan *chan) in dma_chan_to_owner() 204 static void balance_ref_count(struct dma_chan *chan) in balance_ref_count() 220 static int dma_chan_get(struct dma_chan *chan) in dma_chan_get() 259 static void dma_chan_put(struct dma_chan *chan) in dma_chan_put() 283 enum dma_status dma_sync_wait(struct dma_chan *chan, dma_cookie_t cookie) in dma_sync_wait() 314 struct dma_chan *chan; [all …]
|
D | mv_xor.c | 45 static void mv_xor_issue_pending(struct dma_chan *chan); 428 static int mv_xor_alloc_chan_resources(struct dma_chan *chan) in mv_xor_alloc_chan_resources() 548 mv_xor_prep_dma_xor(struct dma_chan *chan, dma_addr_t dest, dma_addr_t *src, in mv_xor_prep_dma_xor() 592 mv_xor_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dest, dma_addr_t src, in mv_xor_prep_dma_memcpy() 603 mv_xor_prep_dma_interrupt(struct dma_chan *chan, unsigned long flags) in mv_xor_prep_dma_interrupt() 620 static void mv_xor_free_chan_resources(struct dma_chan *chan) in mv_xor_free_chan_resources() 667 static enum dma_status mv_xor_status(struct dma_chan *chan, in mv_xor_status() 740 static void mv_xor_issue_pending(struct dma_chan *chan) in mv_xor_issue_pending() 759 struct dma_chan *dma_chan; in mv_chan_memcpy_self_test() local 779 dma_chan = &mv_chan->dmachan; in mv_chan_memcpy_self_test() [all …]
|
D | of-dma.c | 56 static struct dma_chan *of_dma_router_xlate(struct of_phandle_args *dma_spec, in of_dma_router_xlate() 59 struct dma_chan *chan; in of_dma_router_xlate() 105 struct dma_chan *(*of_dma_xlate) in of_dma_controller_register() 237 struct dma_chan *of_dma_request_slave_channel(struct device_node *np, in of_dma_request_slave_channel() 242 struct dma_chan *chan; in of_dma_request_slave_channel() 307 struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, in of_dma_simple_xlate() 337 struct dma_chan *of_dma_xlate_by_chan_id(struct of_phandle_args *dma_spec, in of_dma_xlate_by_chan_id() 341 struct dma_chan *chan, *candidate = NULL; in of_dma_xlate_by_chan_id()
|
D | mmp_tdma.c | 107 struct dma_chan chan; 165 static int mmp_tdma_disable_chan(struct dma_chan *chan) in mmp_tdma_disable_chan() 180 static int mmp_tdma_resume_chan(struct dma_chan *chan) in mmp_tdma_resume_chan() 191 static int mmp_tdma_pause_chan(struct dma_chan *chan) in mmp_tdma_pause_chan() 202 static int mmp_tdma_config_chan(struct dma_chan *chan) in mmp_tdma_config_chan() 378 static int mmp_tdma_alloc_chan_resources(struct dma_chan *chan) in mmp_tdma_alloc_chan_resources() 395 static void mmp_tdma_free_chan_resources(struct dma_chan *chan) in mmp_tdma_free_chan_resources() 420 struct dma_chan *chan, dma_addr_t dma_addr, size_t buf_len, in mmp_tdma_prep_dma_cyclic() 482 static int mmp_tdma_terminate_all(struct dma_chan *chan) in mmp_tdma_terminate_all() 493 static int mmp_tdma_config(struct dma_chan *chan, in mmp_tdma_config() [all …]
|
D | nbpfaxi.c | 199 struct dma_chan dma_chan; member 285 #define nbpf_to_chan(d) container_of(d, struct nbpf_channel, dma_chan) 303 dev_dbg(chan->dma_chan.device->dev, "%s(0x%p + 0x%x) = 0x%x\n", in nbpf_chan_read() 312 dev_dbg(chan->dma_chan.device->dev, "%s(0x%p + 0x%x) = 0x%x\n", in nbpf_chan_write() 376 dev_err(chan->dma_chan.device->dev, in nbpf_error_clear() 483 struct device *dev = chan->dma_chan.device->dev; in nbpf_prep_one() 572 static void nbpf_issue_pending(struct dma_chan *dchan) in nbpf_issue_pending() 596 static enum dma_status nbpf_tx_status(struct dma_chan *dchan, in nbpf_tx_status() 655 dev_dbg(chan->dma_chan.device->dev, "Entry %s(%d)\n", __func__, cookie); in nbpf_tx_submit() 662 struct dma_chan *dchan = &chan->dma_chan; in nbpf_desc_page_alloc() [all …]
|
D | mxs-dma.c | 113 struct dma_chan chan; 200 static struct mxs_dma_chan *to_mxs_dma_chan(struct dma_chan *chan) in to_mxs_dma_chan() 205 static void mxs_dma_reset_chan(struct dma_chan *chan) in mxs_dma_reset_chan() 254 static void mxs_dma_enable_chan(struct dma_chan *chan) in mxs_dma_enable_chan() 277 static void mxs_dma_disable_chan(struct dma_chan *chan) in mxs_dma_disable_chan() 284 static int mxs_dma_pause_chan(struct dma_chan *chan) in mxs_dma_pause_chan() 302 static int mxs_dma_resume_chan(struct dma_chan *chan) in mxs_dma_resume_chan() 417 static int mxs_dma_alloc_chan_resources(struct dma_chan *chan) in mxs_dma_alloc_chan_resources() 459 static void mxs_dma_free_chan_resources(struct dma_chan *chan) in mxs_dma_free_chan_resources() 497 struct dma_chan *chan, struct scatterlist *sgl, in mxs_dma_prep_slave_sg() [all …]
|
D | moxart-dma.c | 165 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 …]
|
D | at_xdmac.c | 195 struct dma_chan chan; 270 static inline struct at_xdmac_chan *to_at_xdmac_chan(struct dma_chan *dchan) in to_at_xdmac_chan() 275 static struct device *chan2dev(struct dma_chan *chan) in chan2dev() 440 static struct at_xdmac_desc *at_xdmac_alloc_desc(struct dma_chan *chan, in at_xdmac_alloc_desc() 485 static void at_xdmac_queue_desc(struct dma_chan *chan, in at_xdmac_queue_desc() 499 static inline void at_xdmac_increment_block_count(struct dma_chan *chan, in at_xdmac_increment_block_count() 512 static struct dma_chan *at_xdmac_xlate(struct of_phandle_args *dma_spec, in at_xdmac_xlate() 517 struct dma_chan *chan; in at_xdmac_xlate() 541 static int at_xdmac_compute_chan_conf(struct dma_chan *chan, in at_xdmac_compute_chan_conf() 618 static int at_xdmac_set_slave_config(struct dma_chan *chan, in at_xdmac_set_slave_config() [all …]
|
D | acpi-dma.c | 156 struct dma_chan *(*acpi_dma_xlate) in acpi_dma_controller_register() 240 struct dma_chan *(*acpi_dma_xlate) in devm_acpi_dma_controller_register() 351 struct dma_chan *acpi_dma_request_slave_chan_by_index(struct device *dev, in acpi_dma_request_slave_chan_by_index() 359 struct dma_chan *chan = NULL; in acpi_dma_request_slave_chan_by_index() 426 struct dma_chan *acpi_dma_request_slave_chan_by_name(struct device *dev, in acpi_dma_request_slave_chan_by_name() 457 struct dma_chan *acpi_dma_simple_xlate(struct acpi_dma_spec *dma_spec, in acpi_dma_simple_xlate()
|
/drivers/dma/ioat/ |
D | dma.h | 102 struct dma_chan dma_chan; member 149 ssize_t (*show)(struct dma_chan *, char *); 211 static inline struct ioatdma_chan *to_ioat_chan(struct dma_chan *c) in to_ioat_chan() 213 return container_of(c, struct ioatdma_chan, dma_chan); in to_ioat_chan() 367 ioat_dma_prep_memcpy_lock(struct dma_chan *c, dma_addr_t dma_dest, 370 ioat_prep_interrupt_lock(struct dma_chan *c, unsigned long flags); 372 ioat_prep_xor(struct dma_chan *chan, dma_addr_t dest, dma_addr_t *src, 375 ioat_prep_xor_val(struct dma_chan *chan, dma_addr_t *src, 379 ioat_prep_pq(struct dma_chan *chan, dma_addr_t *dst, dma_addr_t *src, 383 ioat_prep_pq_val(struct dma_chan *chan, dma_addr_t *pq, dma_addr_t *src, [all …]
|
D | sysfs.c | 29 static ssize_t cap_show(struct dma_chan *c, char *page) in cap_show() 43 static ssize_t version_show(struct dma_chan *c, char *page) in version_show() 64 return entry->show(&ioat_chan->dma_chan, page); in ioat_attr_show() 74 struct dma_chan *c; in ioat_kobject_add() 95 struct dma_chan *c; in ioat_kobject_del() 107 static ssize_t ring_size_show(struct dma_chan *c, char *page) in ring_size_show() 115 static ssize_t ring_active_show(struct dma_chan *c, char *page) in ring_active_show()
|
D | init.c | 316 struct dma_chan *dma_chan; in ioat_dma_self_test() local 339 dma_chan = container_of(dma->channels.next, struct dma_chan, in ioat_dma_self_test() 341 if (dma->device_alloc_chan_resources(dma_chan) < 1) { in ioat_dma_self_test() 358 tx = ioat_dma->dma_dev.device_prep_dma_memcpy(dma_chan, dma_dest, in ioat_dma_self_test() 377 dma->device_issue_pending(dma_chan); in ioat_dma_self_test() 382 dma->device_tx_status(dma_chan, cookie, NULL) in ioat_dma_self_test() 399 dma->device_free_chan_resources(dma_chan); in ioat_dma_self_test() 619 static void ioat_free_chan_resources(struct dma_chan *c) in ioat_free_chan_resources() 681 static int ioat_alloc_chan_resources(struct dma_chan *c) in ioat_alloc_chan_resources() 751 struct dma_chan *c = &ioat_chan->dma_chan; in ioat_init_channel() [all …]
|
/drivers/usb/musb/ |
D | ux500_dma.c | 46 struct dma_chan *dma_chan; member 88 struct dma_chan *dma_chan = ux500_channel->dma_chan; in ux500_configure_channel() local 124 dmaengine_slave_config(dma_chan, &slave_conf); in ux500_configure_channel() 126 dma_desc = dmaengine_prep_slave_sg(dma_chan, &sg, 1, direction, in ux500_configure_channel() 135 dma_async_issue_pending(dma_chan); in ux500_configure_channel() 245 dmaengine_terminate_all(ux500_channel->dma_chan); in ux500_dma_channel_abort() 263 if (ux500_channel->dma_chan) in ux500_dma_controller_stop() 264 dma_release_channel(ux500_channel->dma_chan); in ux500_dma_controller_stop() 273 if (ux500_channel->dma_chan) in ux500_dma_controller_stop() 274 dma_release_channel(ux500_channel->dma_chan); in ux500_dma_controller_stop() [all …]
|
/drivers/ata/ |
D | pata_pxa.c | 41 struct dma_chan *dma_chan; member 54 status = dmaengine_tx_status(pd->dma_chan, pd->dma_cookie, NULL); in pxa_ata_dma_irq() 72 tx = dmaengine_prep_slave_sg(pd->dma_chan, qc->sg, qc->n_elem, dir, in pxa_qc_prep() 99 dma_async_issue_pending(pd->dma_chan); in pxa_bmdma_start() 110 status = dmaengine_tx_status(pd->dma_chan, pd->dma_cookie, NULL); in pxa_bmdma_stop() 115 dmaengine_terminate_all(pd->dma_chan); in pxa_bmdma_stop() 129 status = dmaengine_tx_status(pd->dma_chan, pd->dma_cookie, &state); in pxa_bmdma_status() 296 data->dma_chan = in pxa_ata_probe() 299 if (!data->dma_chan) in pxa_ata_probe() 301 ret = dmaengine_slave_config(data->dma_chan, &config); in pxa_ata_probe() [all …]
|
/drivers/dma/sh/ |
D | shdma-base.c | 39 #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() 176 struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device); in shdma_setup_slave() 206 static int shdma_alloc_chan_resources(struct dma_chan *chan) in shdma_alloc_chan_resources() 209 struct shdma_dev *sdev = to_shdma_dev(schan->dma_chan.device); in shdma_alloc_chan_resources() 241 &schan->dma_chan); in shdma_alloc_chan_resources() 277 bool shdma_chan_filter(struct dma_chan *chan, void *arg) in shdma_chan_filter() 360 if (schan->dma_chan.completed_cookie != desc->cookie - 1) in __ld_cleanup() 364 schan->dma_chan.completed_cookie + 1); in __ld_cleanup() [all …]
|
/drivers/staging/comedi/drivers/ |
D | comedi_isadma.c | 50 unsigned int comedi_isadma_disable(unsigned int dma_chan) in comedi_isadma_disable() argument 56 disable_dma(dma_chan); in comedi_isadma_disable() 57 residue = get_dma_residue(dma_chan); in comedi_isadma_disable() 71 unsigned int comedi_isadma_disable_on_sample(unsigned int dma_chan, in comedi_isadma_disable_on_sample() argument 79 residue = comedi_isadma_disable(dma_chan); in comedi_isadma_disable_on_sample() 83 enable_dma(dma_chan); in comedi_isadma_disable_on_sample() 87 new_residue = comedi_isadma_disable(dma_chan); in comedi_isadma_disable_on_sample()
|
D | comedi_isadma.h | 67 unsigned int comedi_isadma_disable(unsigned int dma_chan); 68 unsigned int comedi_isadma_disable_on_sample(unsigned int dma_chan, 85 static inline unsigned int comedi_isadma_disable(unsigned int dma_chan) in comedi_isadma_disable() argument 91 comedi_isadma_disable_on_sample(unsigned int dma_chan, unsigned int size) in comedi_isadma_disable_on_sample() argument
|
D | ni_labpc_isadma.c | 153 void labpc_init_dma_chan(struct comedi_device *dev, unsigned int dma_chan) in labpc_init_dma_chan() argument 158 if (dma_chan != 1 && dma_chan != 3) in labpc_init_dma_chan() 162 devpriv->dma = comedi_isadma_alloc(dev, 1, dma_chan, dma_chan, in labpc_init_dma_chan()
|
/drivers/mmc/host/ |
D | mmci.h | 190 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/ |
D | NCR53c406a.c | 197 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/ntb/test/ |
D | ntb_perf.c | 121 struct dma_chan *dma_chan; member 201 struct dma_chan *chan = pctx->dma_chan; in perf_copy() 345 static bool perf_dma_filter_fn(struct dma_chan *chan, void *node) in perf_dma_filter_fn() 360 struct dma_chan *dma_chan = NULL; in ntb_perf_thread() local 366 if (use_dma && !pctx->dma_chan) { in ntb_perf_thread() 371 dma_chan = dma_request_channel(dma_mask, perf_dma_filter_fn, in ntb_perf_thread() 373 if (!dma_chan) { in ntb_perf_thread() 378 pctx->dma_chan = dma_chan; in ntb_perf_thread() 431 if (dma_chan) { in ntb_perf_thread() 432 dma_release_channel(dma_chan); in ntb_perf_thread() [all …]
|
/drivers/dma/ipu/ |
D | ipu_idmac.c | 608 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/mtd/nand/ |
D | lpc32xx_mlc.c | 208 struct dma_chan *dma_chan; member 413 res = dma_map_sg(host->dma_chan->device->dev, &host->sgl, 1, in lpc32xx_xmit_dma() 419 desc = dmaengine_prep_slave_sg(host->dma_chan, &host->sgl, 1, dir, in lpc32xx_xmit_dma() 431 dma_async_issue_pending(host->dma_chan); in lpc32xx_xmit_dma() 435 dma_unmap_sg(host->dma_chan->device->dev, &host->sgl, 1, in lpc32xx_xmit_dma() 439 dma_unmap_sg(host->dma_chan->device->dev, &host->sgl, 1, in lpc32xx_xmit_dma() 592 host->dma_chan = dma_request_channel(mask, host->pdata->dma_filter, in lpc32xx_dma_setup() 594 if (!host->dma_chan) { in lpc32xx_dma_setup() 613 if (dmaengine_slave_config(host->dma_chan, &host->dma_slave_config)) { in lpc32xx_dma_setup() 620 dma_release_channel(host->dma_chan); in lpc32xx_dma_setup() [all …]
|