Searched refs:chan_tx (Results 1 - 12 of 12) sorted by relevance

/linux-4.1.27/drivers/mmc/host/
H A Dtmio_mmc_dma.c28 if (!host->chan_tx || !host->chan_rx) tmio_mmc_enable_dma()
41 if (host->chan_tx) tmio_mmc_abort_dma()
42 dmaengine_terminate_all(host->chan_tx); tmio_mmc_abort_dma()
110 chan = host->chan_tx; tmio_mmc_start_dma_rx()
112 host->chan_tx = NULL; tmio_mmc_start_dma_rx()
127 struct dma_chan *chan = host->chan_tx; tmio_mmc_start_dma_tx()
187 host->chan_tx = NULL; tmio_mmc_start_dma_tx()
210 if (host->chan_tx) tmio_mmc_start_dma()
226 chan = host->chan_tx; tmio_mmc_issue_tasklet_fn()
251 dma_unmap_sg(host->chan_tx->device->dev, tmio_mmc_tasklet_fn()
267 if (!host->chan_tx && !host->chan_rx) { tmio_mmc_request_dma()
280 host->chan_tx = dma_request_slave_channel_compat(mask, tmio_mmc_request_dma()
284 host->chan_tx); tmio_mmc_request_dma()
286 if (!host->chan_tx) tmio_mmc_request_dma()
295 ret = dmaengine_slave_config(host->chan_tx, &cfg); tmio_mmc_request_dma()
336 dma_release_channel(host->chan_tx); tmio_mmc_request_dma()
337 host->chan_tx = NULL; tmio_mmc_request_dma()
342 if (host->chan_tx) { tmio_mmc_release_dma()
343 struct dma_chan *chan = host->chan_tx; tmio_mmc_release_dma()
344 host->chan_tx = NULL; tmio_mmc_release_dma()
H A Dsh_mmcif.c255 struct dma_chan *chan_tx; member in struct:sh_mmcif_host
321 chan = host->chan_tx; sh_mmcif_start_dma_rx()
323 host->chan_tx = NULL; sh_mmcif_start_dma_rx()
340 struct dma_chan *chan = host->chan_tx; sh_mmcif_start_dma_tx()
366 host->chan_tx = NULL; sh_mmcif_start_dma_tx()
448 host->chan_tx = sh_mmcif_request_dma_one(host, pdata, DMA_MEM_TO_DEV); sh_mmcif_request_dma()
449 if (!host->chan_tx) sh_mmcif_request_dma()
454 dma_release_channel(host->chan_tx); sh_mmcif_request_dma()
455 host->chan_tx = NULL; sh_mmcif_request_dma()
463 if (host->chan_tx) { sh_mmcif_release_dma()
464 struct dma_chan *chan = host->chan_tx; sh_mmcif_release_dma()
465 host->chan_tx = NULL; sh_mmcif_release_dma()
1118 if (host->chan_tx) sh_mmcif_end_cmd()
1136 dma_unmap_sg(host->chan_tx->device->dev, sh_mmcif_end_cmd()
1163 dmaengine_terminate_all(host->chan_tx); sh_mmcif_end_cmd()
H A Dusdhi6rol0.c199 struct dma_chan *chan_tx; member in struct:usdhi6_host
516 if (host->chan_tx) { usdhi6_dma_release()
517 struct dma_chan *chan = host->chan_tx; usdhi6_dma_release()
518 host->chan_tx = NULL; usdhi6_dma_release()
542 dma_unmap_sg(host->chan_tx->device->dev, data->sg, usdhi6_dma_stop_unmap()
613 if (!host->chan_rx || !host->chan_tx) usdhi6_dma_start()
619 return usdhi6_dma_setup(host, host->chan_tx, DMA_MEM_TO_DEV); usdhi6_dma_start()
632 dmaengine_terminate_all(host->chan_tx); usdhi6_dma_kill()
666 dma_async_issue_pending(host->chan_tx); usdhi6_dma_kick()
677 host->chan_tx = dma_request_slave_channel(mmc_dev(host->mmc), "tx"); usdhi6_dma_request()
679 host->chan_tx); usdhi6_dma_request()
681 if (!host->chan_tx) usdhi6_dma_request()
688 ret = dmaengine_slave_config(host->chan_tx, &cfg); usdhi6_dma_request()
713 dma_release_channel(host->chan_tx); usdhi6_dma_request()
714 host->chan_tx = NULL; usdhi6_dma_request()
H A Dtmio_mmc.h76 struct dma_chan *chan_tx; member in struct:tmio_mmc_host
151 host->chan_tx = NULL; tmio_mmc_request_dma()
H A Dtmio_mmc_pio.c426 if ((host->chan_tx || host->chan_rx) && !host->force_pio) { tmio_mmc_pio_irq()
527 if (host->chan_tx && (data->flags & MMC_DATA_WRITE) && !host->force_pio) { tmio_mmc_data_irq()
610 if (host->force_pio || !host->chan_tx) tmio_mmc_cmd_irq()
1162 if (!_host->chan_tx) tmio_mmc_host_probe()
/linux-4.1.27/drivers/i2c/busses/
H A Di2c-at91.c86 struct dma_chan *chan_tx; member in struct:at91_twi_dma
185 dmaengine_terminate_all(dma->chan_tx); at91_twi_dma_cleanup()
236 struct dma_chan *chan_tx = dma->chan_tx; at91_twi_write_data_dma() local
255 txdesc = dmaengine_prep_slave_sg(chan_tx, &dma->sg, 1, DMA_MEM_TO_DEV, at91_twi_write_data_dma()
267 dma_async_issue_pending(chan_tx); at91_twi_write_data_dma()
679 dma->chan_tx = dma_request_slave_channel_reason(dev->dev, "tx"); at91_twi_configure_dma()
680 if (IS_ERR(dma->chan_tx)) { at91_twi_configure_dma()
681 ret = PTR_ERR(dma->chan_tx); at91_twi_configure_dma()
682 dma->chan_tx = NULL; at91_twi_configure_dma()
694 if (dmaengine_slave_config(dma->chan_tx, &slave_config)) { at91_twi_configure_dma()
713 dma_chan_name(dma->chan_tx), dma_chan_name(dma->chan_rx)); at91_twi_configure_dma()
722 if (dma->chan_tx) at91_twi_configure_dma()
723 dma_release_channel(dma->chan_tx); at91_twi_configure_dma()
H A Di2c-imx.c188 struct dma_chan *chan_tx; member in struct:imx_i2c_dma
295 dma->chan_tx = dma_request_slave_channel(dev, "tx"); i2c_imx_dma_request()
296 if (!dma->chan_tx) { i2c_imx_dma_request()
306 ret = dmaengine_slave_config(dma->chan_tx, &dma_sconfig); i2c_imx_dma_request()
332 dma_chan_name(dma->chan_tx), dma_chan_name(dma->chan_rx)); i2c_imx_dma_request()
339 dma_release_channel(dma->chan_tx); i2c_imx_dma_request()
403 dma_release_channel(dma->chan_tx); i2c_imx_dma_free()
404 dma->chan_tx = NULL; i2c_imx_dma_free()
610 dma->chan_using = dma->chan_tx; i2c_imx_dma_write()
/linux-4.1.27/drivers/spi/
H A Dspi-atmel.c205 struct dma_chan *chan_tx; member in struct:atmel_spi_dma
410 if (dmaengine_slave_config(as->dma.chan_tx, slave_config)) { atmel_spi_dma_slave_config()
436 as->dma.chan_tx = dma_request_slave_channel_reason(dev, "tx"); atmel_spi_configure_dma()
437 if (IS_ERR(as->dma.chan_tx)) { atmel_spi_configure_dma()
438 err = PTR_ERR(as->dma.chan_tx); atmel_spi_configure_dma()
468 dma_chan_name(as->dma.chan_tx), atmel_spi_configure_dma()
474 if (!IS_ERR(as->dma.chan_tx)) atmel_spi_configure_dma()
475 dma_release_channel(as->dma.chan_tx); atmel_spi_configure_dma()
483 if (as->dma.chan_tx) atmel_spi_stop_dma()
484 dmaengine_terminate_all(as->dma.chan_tx); atmel_spi_stop_dma()
491 if (as->dma.chan_tx) atmel_spi_release_dma()
492 dma_release_channel(as->dma.chan_tx); atmel_spi_release_dma()
549 struct dma_chan *txchan = as->dma.chan_tx; atmel_spi_next_xfer_dma_submit()
H A Dspi-topcliff-pch.c119 struct dma_chan *chan_tx; member in struct:pch_spi_dma_ctrl
889 dma->chan_tx = chan; pch_spi_request_dma()
901 dma_release_channel(dma->chan_tx); pch_spi_request_dma()
902 dma->chan_tx = NULL; pch_spi_request_dma()
914 if (dma->chan_tx) { pch_spi_release_dma()
915 dma_release_channel(dma->chan_tx); pch_spi_release_dma()
916 dma->chan_tx = NULL; pch_spi_release_dma()
1101 desc_tx = dmaengine_prep_slave_sg(dma->chan_tx, pch_spi_handle_dma()
/linux-4.1.27/drivers/tty/serial/
H A Dpch_uart.c250 struct dma_chan *chan_tx; member in struct:eg20t_port
696 if (priv->chan_tx) { pch_free_dma()
697 dma_release_channel(priv->chan_tx); pch_free_dma()
698 priv->chan_tx = NULL; pch_free_dma()
755 priv->chan_tx = chan; pch_request_dma()
767 dma_release_channel(priv->chan_tx); pch_request_dma()
768 priv->chan_tx = NULL; pch_request_dma()
1047 desc = dmaengine_prep_slave_sg(priv->chan_tx, dma_handle_tx()
1062 dma_async_issue_pending(priv->chan_tx); dma_handle_tx()
H A Datmel_serial.c157 struct dma_chan *chan_tx; member in struct:atmel_uart_port
725 struct dma_chan *chan = atmel_port->chan_tx; atmel_complete_tx_dma()
760 struct dma_chan *chan = atmel_port->chan_tx; atmel_release_tx_dma()
770 atmel_port->chan_tx = NULL; atmel_release_tx_dma()
781 struct dma_chan *chan = atmel_port->chan_tx; atmel_tx_dma()
847 atmel_port->chan_tx = dma_request_slave_channel(port->dev, "tx"); atmel_prepare_tx_dma()
848 if (atmel_port->chan_tx == NULL) atmel_prepare_tx_dma()
851 dma_chan_name(atmel_port->chan_tx)); atmel_prepare_tx_dma()
883 ret = dmaengine_slave_config(atmel_port->chan_tx, atmel_prepare_tx_dma()
895 if (atmel_port->chan_tx) atmel_prepare_tx_dma()
H A Dsh-sci.c101 struct dma_chan *chan_tx; member in struct:sci_port
1039 !s->chan_tx) sci_mpxed_interrupt()
1364 struct dma_chan *chan = s->chan_tx; sci_tx_dma_release()
1367 s->chan_tx = NULL; sci_tx_dma_release()
1475 struct dma_chan *chan = s->chan_tx; work_fn_tx()
1536 if (s->chan_tx) sci_start_tx()
1544 if (s->chan_tx && !uart_circ_empty(&s->port.state->xmit) && sci_start_tx()
1551 if (!s->chan_tx || port->type == PORT_SCIFA || port->type == PORT_SCIFB) { sci_start_tx()
1681 s->chan_tx = chan; sci_request_dma()
1750 if (s->chan_tx) sci_free_dma()

Completed in 345 milliseconds