/drivers/i2c/busses/ |
D | i2c-mxs.c | 126 struct dma_chan *dmach; member 190 desc = dmaengine_prep_slave_sg(i2c->dmach, in mxs_i2c_dma_setup_xfer() 202 desc = dmaengine_prep_slave_sg(i2c->dmach, &i2c->sg_io[0], 1, in mxs_i2c_dma_setup_xfer() 219 desc = dmaengine_prep_slave_sg(i2c->dmach, in mxs_i2c_dma_setup_xfer() 231 desc = dmaengine_prep_slave_sg(i2c->dmach, &i2c->sg_io[1], 1, in mxs_i2c_dma_setup_xfer() 250 desc = dmaengine_prep_slave_sg(i2c->dmach, in mxs_i2c_dma_setup_xfer() 264 desc = dmaengine_prep_slave_sg(i2c->dmach, i2c->sg_io, 2, in mxs_i2c_dma_setup_xfer() 284 dma_async_issue_pending(i2c->dmach); in mxs_i2c_dma_setup_xfer() 293 dmaengine_terminate_all(i2c->dmach); in mxs_i2c_dma_setup_xfer() 300 dmaengine_terminate_all(i2c->dmach); in mxs_i2c_dma_setup_xfer() [all …]
|
/drivers/dma/qcom/ |
D | hidma.c | 88 static inline struct hidma_chan *to_hidma_chan(struct dma_chan *dmach) in to_hidma_chan() argument 90 return container_of(dmach, struct hidma_chan, chan); in to_hidma_chan() 235 static void hidma_issue_pending(struct dma_chan *dmach) in hidma_issue_pending() argument 237 struct hidma_chan *mchan = to_hidma_chan(dmach); in hidma_issue_pending() 278 static enum dma_status hidma_tx_status(struct dma_chan *dmach, in hidma_tx_status() argument 282 struct hidma_chan *mchan = to_hidma_chan(dmach); in hidma_tx_status() 285 ret = dma_cookie_status(dmach, cookie, txstate); in hidma_tx_status() 290 dmach->cookie); in hidma_tx_status() 348 static int hidma_alloc_chan_resources(struct dma_chan *dmach) in hidma_alloc_chan_resources() argument 350 struct hidma_chan *mchan = to_hidma_chan(dmach); in hidma_alloc_chan_resources() [all …]
|
/drivers/mmc/host/ |
D | mxs-mmc.c | 235 desc = dmaengine_prep_slave_sg(ssp->dmach, in mxs_mmc_prep_dma() 275 dma_async_issue_pending(ssp->dmach); in mxs_mmc_bc() 320 dma_async_issue_pending(ssp->dmach); in mxs_mmc_ac() 450 dma_async_issue_pending(ssp->dmach); in mxs_mmc_adtc() 636 ssp->dmach = dma_request_chan(&pdev->dev, "rx-tx"); in mxs_mmc_probe() 637 if (IS_ERR(ssp->dmach)) { in mxs_mmc_probe() 640 ret = PTR_ERR(ssp->dmach); in mxs_mmc_probe() 664 mmc->max_seg_size = dma_get_max_seg_size(ssp->dmach->device->dev); in mxs_mmc_probe() 684 dma_release_channel(ssp->dmach); in mxs_mmc_probe() 700 if (ssp->dmach) in mxs_mmc_remove() [all …]
|
/drivers/spi/ |
D | spi-mxs.c | 240 desc = dmaengine_prep_slave_sg(ssp->dmach, in mxs_spi_txrx_dma() 252 desc = dmaengine_prep_slave_sg(ssp->dmach, in mxs_spi_txrx_dma() 274 dma_async_issue_pending(ssp->dmach); in mxs_spi_txrx_dma() 280 dmaengine_terminate_all(ssp->dmach); in mxs_spi_txrx_dma() 592 ssp->dmach = dma_request_chan(&pdev->dev, "rx-tx"); in mxs_spi_probe() 593 if (IS_ERR(ssp->dmach)) { in mxs_spi_probe() 595 ret = PTR_ERR(ssp->dmach); in mxs_spi_probe() 636 dma_release_channel(ssp->dmach); in mxs_spi_probe() 656 dma_release_channel(ssp->dmach); in mxs_spi_remove()
|
/drivers/scsi/arm/ |
D | cumana_2.c | 159 int dmach = info->info.scsi.dma; in cumanascsi_2_dma_setup() local 163 if (dmach != NO_DMA && in cumanascsi_2_dma_setup() 181 disable_dma(dmach); in cumanascsi_2_dma_setup() 182 set_dma_sg(dmach, info->sg, bufs); in cumanascsi_2_dma_setup() 184 set_dma_mode(dmach, dma_dir); in cumanascsi_2_dma_setup() 185 enable_dma(dmach); in cumanascsi_2_dma_setup()
|
D | powertec.c | 133 int dmach = info->info.scsi.dma; in powertecscsi_dma_setup() local 151 disable_dma(dmach); in powertecscsi_dma_setup() 152 set_dma_sg(dmach, info->sg, bufs); in powertecscsi_dma_setup() 153 set_dma_mode(dmach, dma_dir); in powertecscsi_dma_setup() 154 enable_dma(dmach); in powertecscsi_dma_setup()
|
D | eesox.c | 160 int dmach = info->info.scsi.dma; in eesoxscsi_dma_setup() local 162 if (dmach != NO_DMA && in eesoxscsi_dma_setup() 178 disable_dma(dmach); in eesoxscsi_dma_setup() 179 set_dma_sg(dmach, info->sg, bufs); in eesoxscsi_dma_setup() 180 set_dma_mode(dmach, dma_dir); in eesoxscsi_dma_setup() 181 enable_dma(dmach); in eesoxscsi_dma_setup()
|
/drivers/media/platform/ |
D | rcar_drif.c | 202 struct dma_chan *dmach; /* Reserved DMA channel */ member 261 if (sdr->ch[i]->dmach) { in rcar_drif_release_dmachannels() 262 dma_release_channel(sdr->ch[i]->dmach); in rcar_drif_release_dmachannels() 263 sdr->ch[i]->dmach = NULL; in rcar_drif_release_dmachannels() 277 ch->dmach = dma_request_chan(&ch->pdev->dev, "rx"); in rcar_drif_alloc_dmachannels() 278 if (IS_ERR(ch->dmach)) { in rcar_drif_alloc_dmachannels() 279 ret = PTR_ERR(ch->dmach); in rcar_drif_alloc_dmachannels() 283 i, ch->dmach); in rcar_drif_alloc_dmachannels() 284 ch->dmach = NULL; in rcar_drif_alloc_dmachannels() 292 ret = dmaengine_slave_config(ch->dmach, &dma_cfg); in rcar_drif_alloc_dmachannels() [all …]
|
/drivers/rapidio/devices/ |
D | rio_mport_cdev.c | 209 struct dma_chan *dmach; member 544 struct dma_chan *dmach; member 566 rmcd_debug(EXIT, "DMA_%d", priv->dmach->chan_id); in mport_release_dma() 576 dma_unmap_sg(req->dmach->device->dev, in dma_req_free() 600 req->status = dma_async_is_tx_complete(priv->dmach, req->cookie, in dma_xfer_callback() 654 if (!priv->dmach) { in get_dma_channel() 655 priv->dmach = rio_request_mport_dma(priv->md->mport); in get_dma_channel() 656 if (!priv->dmach) { in get_dma_channel() 659 priv->dmach = priv->md->dma_chan; in get_dma_channel() 668 priv->md->dma_chan = priv->dmach; in get_dma_channel() [all …]
|