Home
last modified time | relevance | path

Searched refs:chan_tx (Results 1 – 14 of 14) sorted by relevance

/linux/drivers/i2c/busses/
H A Di2c-stm32.c26 dma->chan_tx = dma_request_chan(dev, "tx"); in stm32_i2c_dma_request()
27 if (IS_ERR(dma->chan_tx)) { in stm32_i2c_dma_request()
28 ret = PTR_ERR(dma->chan_tx); in stm32_i2c_dma_request()
40 ret = dmaengine_slave_config(dma->chan_tx, &dma_sconfig); in stm32_i2c_dma_request()
70 dma_chan_name(dma->chan_tx), dma_chan_name(dma->chan_rx)); in stm32_i2c_dma_request()
77 dma_release_channel(dma->chan_tx); in stm32_i2c_dma_request()
89 dma_release_channel(dma->chan_tx); in stm32_i2c_dma_free()
90 dma->chan_tx = NULL; in stm32_i2c_dma_free()
111 dma->chan_using = dma->chan_tx; in stm32_i2c_prep_dma_xfer()
H A Di2c-at91-master.c143 dmaengine_terminate_sync(dma->chan_tx); in at91_twi_dma_cleanup()
199 struct dma_chan *chan_tx = dma->chan_tx; in at91_twi_write_data_dma() local
251 txdesc = dmaengine_prep_slave_sg(chan_tx, dma->sg, sg_len, in at91_twi_write_data_dma()
264 dma_async_issue_pending(chan_tx); in at91_twi_write_data_dma()
779 dma->chan_tx = dma_request_chan(dev->dev, "tx"); in at91_twi_configure_dma()
780 if (IS_ERR(dma->chan_tx)) { in at91_twi_configure_dma()
781 ret = PTR_ERR(dma->chan_tx); in at91_twi_configure_dma()
782 dma->chan_tx = NULL; in at91_twi_configure_dma()
794 if (dmaengine_slave_config(dma->chan_tx, &slave_config)) { in at91_twi_configure_dma()
813 dma_chan_name(dma->chan_tx), dma_chan_name(dma->chan_rx)); in at91_twi_configure_dma()
[all …]
H A Di2c-imx-lpi2c.c173 struct dma_chan *chan_tx; member
776 ? dma->chan_rx : dma->chan_tx; in lpi2c_dma_unmap()
786 dmaengine_terminate_sync(dma->chan_tx); in lpi2c_cleanup_rx_cmd_dma()
787 dma_unmap_single(dma->chan_tx->device->dev, dma->dma_tx_addr, in lpi2c_cleanup_rx_cmd_dma()
796 dmaengine_terminate_sync(dma->chan_tx); in lpi2c_cleanup_dma()
812 struct dma_chan *txchan = dma->chan_tx; in lpi2c_dma_rx_cmd_submit()
865 chan = dma->chan_tx; in lpi2c_dma_submit()
962 ret = dmaengine_slave_config(dma->chan_tx, &tx); in lpi2c_dma_config()
978 ret = dmaengine_slave_config(dma->chan_tx, &tx); in lpi2c_dma_config()
1083 dma_unmap_single(dma->chan_tx->device->dev, dma->dma_tx_addr, in lpi2c_imx_dma_xfer()
[all …]
H A Di2c-imx.c217 struct dma_chan *chan_tx; member
412 dma->chan_tx = dma_request_chan(dev, "tx"); in i2c_imx_dma_request()
413 if (IS_ERR(dma->chan_tx)) { in i2c_imx_dma_request()
414 ret = PTR_ERR(dma->chan_tx); in i2c_imx_dma_request()
425 ret = dmaengine_slave_config(dma->chan_tx, &dma_sconfig); in i2c_imx_dma_request()
453 dma_chan_name(dma->chan_tx), dma_chan_name(dma->chan_rx)); in i2c_imx_dma_request()
460 dma_release_channel(dma->chan_tx); in i2c_imx_dma_request()
527 dma_release_channel(dma->chan_tx); in i2c_imx_dma_free()
528 dma->chan_tx = NULL; in i2c_imx_dma_free()
1165 dma->chan_using = dma->chan_tx; in i2c_imx_dma_write()
H A Di2c-stm32.h37 struct dma_chan *chan_tx; member
H A Di2c-at91.h129 struct dma_chan *chan_tx; member
/linux/drivers/spi/
H A Dspi-fsl-dspi.c324 struct dma_chan *chan_tx; member
574 dma->tx_desc = dmaengine_prep_slave_single(dma->chan_tx, in dspi_next_xfer_dma_submit()
614 dma_async_issue_pending(dma->chan_tx); in dspi_next_xfer_dma_submit()
626 dmaengine_terminate_all(dma->chan_tx); in dspi_next_xfer_dma_submit()
635 dmaengine_terminate_all(dma->chan_tx); in dspi_next_xfer_dma_submit()
685 dma->chan_tx = dma_request_chan(dev, "tx"); in dspi_request_dma()
686 if (IS_ERR(dma->chan_tx)) { in dspi_request_dma()
687 ret = dev_err_probe(dev, PTR_ERR(dma->chan_tx), "tx dma channel not available\n"); in dspi_request_dma()
698 dma_get_max_seg_size(dma->chan_tx->device->dev)) * in dspi_request_dma()
704 dma->tx_dma_buf = dma_alloc_noncoherent(dma->chan_tx->device->dev, in dspi_request_dma()
[all …]
H A Dspi-topcliff-pch.c111 struct dma_chan *chan_tx; member
853 dma->chan_tx = chan; in pch_spi_request_dma()
865 dma_release_channel(dma->chan_tx); in pch_spi_request_dma()
866 dma->chan_tx = NULL; in pch_spi_request_dma()
883 if (dma->chan_tx) { in pch_spi_release_dma()
884 dma_release_channel(dma->chan_tx); in pch_spi_release_dma()
885 dma->chan_tx = NULL; in pch_spi_release_dma()
1077 desc_tx = dmaengine_prep_slave_sg(dma->chan_tx, in pch_spi_handle_dma()
/linux/drivers/mmc/host/
H A Dusdhi6rol0.c199 struct dma_chan *chan_tx; member
520 if (host->chan_tx) { in usdhi6_dma_release()
521 struct dma_chan *chan = host->chan_tx; in usdhi6_dma_release()
522 host->chan_tx = NULL; in usdhi6_dma_release()
546 dma_unmap_sg(host->chan_tx->device->dev, data->sg, in usdhi6_dma_stop_unmap()
617 if (!host->chan_rx || !host->chan_tx) in usdhi6_dma_start()
623 return usdhi6_dma_setup(host, host->chan_tx, DMA_MEM_TO_DEV); in usdhi6_dma_start()
636 dmaengine_terminate_sync(host->chan_tx); in usdhi6_dma_kill()
670 dma_async_issue_pending(host->chan_tx); in usdhi6_dma_kick()
681 host->chan_tx = dma_request_chan(mmc_dev(host->mmc), "tx"); in usdhi6_dma_request()
[all …]
H A Duniphier-sd.c200 host->chan_tx = chan; in uniphier_sd_external_dma_request()
318 host->chan_tx = (void *)0xdeadbeaf; in uniphier_sd_internal_dma_request()
327 host->chan_tx = NULL; in uniphier_sd_internal_dma_release()
/linux/drivers/tty/serial/
H A Dpch_uart.c228 struct dma_chan *chan_tx; member
635 if (priv->chan_tx) { in pch_free_dma()
636 dma_release_channel(priv->chan_tx); in pch_free_dma()
637 priv->chan_tx = NULL; in pch_free_dma()
695 priv->chan_tx = chan; in pch_request_dma()
707 dma_release_channel(priv->chan_tx); in pch_request_dma()
708 priv->chan_tx = NULL; in pch_request_dma()
949 desc = dmaengine_prep_slave_sg(priv->chan_tx, in dma_handle_tx()
964 dma_async_issue_pending(priv->chan_tx); in dma_handle_tx()
H A Dsh-sci.c764 if (s->chan_tx) in sci_start_tx()
772 if (s->chan_tx && !kfifo_is_empty(&port->state->port.xmit_fifo) && in sci_start_tx()
783 if (!s->chan_tx || s->regtype == SCIx_RZ_SCIFA_REGTYPE || in sci_start_tx()
816 if (s->chan_tx && in sci_stop_tx()
818 dmaengine_terminate_async(s->chan_tx); in sci_stop_tx()
1590 s->chan_tx_saved = s->chan_tx = NULL; in sci_dma_tx_release()
1645 struct dma_chan *chan = s->chan_tx; in sci_dma_tx_work_fn()
1699 s->chan_tx = NULL; in sci_dma_tx_work_fn()
1848 s->chan_tx_saved = s->chan_tx = chan; in sci_request_dma()
1911 if (s->chan_tx) { in sci_flush_buffer()
[all …]
H A Datmel_serial.c131 struct dma_chan *chan_tx; member
863 struct dma_chan *chan = atmel_port->chan_tx; in atmel_complete_tx_dma()
904 struct dma_chan *chan = atmel_port->chan_tx; in atmel_release_tx_dma()
914 atmel_port->chan_tx = NULL; in atmel_release_tx_dma()
925 struct dma_chan *chan = atmel_port->chan_tx; in atmel_tx_dma()
1027 atmel_port->chan_tx = NULL; in atmel_prepare_tx_dma()
1030 atmel_port->chan_tx = chan; in atmel_prepare_tx_dma()
1032 dma_chan_name(atmel_port->chan_tx)); in atmel_prepare_tx_dma()
1058 ret = dmaengine_slave_config(atmel_port->chan_tx, in atmel_prepare_tx_dma()
1070 if (atmel_port->chan_tx) in atmel_prepare_tx_dma()
/linux/drivers/firmware/
H A Dti_sci.c117 struct mbox_chan *chan_tx; member
409 ret = mbox_send_message(info->chan_tx, &xfer->tx_message); in ti_sci_do_xfer()
441 mbox_client_txdone(info->chan_tx, ret); in ti_sci_do_xfer()
4000 info->chan_tx = mbox_request_channel_byname(cl, "tx"); in ti_sci_probe()
4001 if (IS_ERR(info->chan_tx)) { in ti_sci_probe()
4002 ret = PTR_ERR(info->chan_tx); in ti_sci_probe()
4058 if (!IS_ERR(info->chan_tx)) in ti_sci_probe()
4059 mbox_free_channel(info->chan_tx); in ti_sci_probe()