Lines Matching refs:rx_chan
106 struct dma_chan *rx_chan; member
526 dma_sync_single_for_cpu(dma->rx_chan->device->dev, dma->rx_addr, in s3c24xx_uart_copy_rx_to_tty()
568 if (dma && dma->rx_chan) { in s3c24xx_serial_stop_rx()
570 dma_status = dmaengine_tx_status(dma->rx_chan, in s3c24xx_serial_stop_rx()
575 dmaengine_terminate_all(dma->rx_chan); in s3c24xx_serial_stop_rx()
624 dmaengine_tx_status(dma->rx_chan, dma->rx_cookie, &state); in s3c24xx_serial_rx_dma_complete()
647 dma_sync_single_for_device(dma->rx_chan->device->dev, dma->rx_addr, in s3c64xx_start_rx_dma()
650 dma->rx_desc = dmaengine_prep_slave_single(dma->rx_chan, in s3c64xx_start_rx_dma()
663 dma_async_issue_pending(dma->rx_chan); in s3c64xx_start_rx_dma()
741 dmaengine_pause(dma->rx_chan); in s3c24xx_serial_rx_chars_dma()
742 dmaengine_tx_status(dma->rx_chan, dma->rx_cookie, &state); in s3c24xx_serial_rx_chars_dma()
743 dmaengine_terminate_all(dma->rx_chan); in s3c24xx_serial_rx_chars_dma()
868 if (ourport->dma && ourport->dma->rx_chan) in s3c24xx_serial_rx_irq()
1074 dma->rx_chan = dma_request_chan(p->port.dev, "rx"); in s3c24xx_serial_request_dma()
1076 if (IS_ERR(dma->rx_chan)) { in s3c24xx_serial_request_dma()
1078 ret = PTR_ERR(dma->rx_chan); in s3c24xx_serial_request_dma()
1082 ret = dma_get_slave_caps(dma->rx_chan, &dma_caps); in s3c24xx_serial_request_dma()
1090 dmaengine_slave_config(dma->rx_chan, &dma->rx_conf); in s3c24xx_serial_request_dma()
1118 dma->rx_addr = dma_map_single(dma->rx_chan->device->dev, dma->rx_buf, in s3c24xx_serial_request_dma()
1120 if (dma_mapping_error(dma->rx_chan->device->dev, dma->rx_addr)) { in s3c24xx_serial_request_dma()
1139 dma_unmap_single(dma->rx_chan->device->dev, dma->rx_addr, in s3c24xx_serial_request_dma()
1146 dma_release_channel(dma->rx_chan); in s3c24xx_serial_request_dma()
1157 if (dma->rx_chan) { in s3c24xx_serial_release_dma()
1158 dmaengine_terminate_all(dma->rx_chan); in s3c24xx_serial_release_dma()
1159 dma_unmap_single(dma->rx_chan->device->dev, dma->rx_addr, in s3c24xx_serial_release_dma()
1162 dma_release_channel(dma->rx_chan); in s3c24xx_serial_release_dma()
1163 dma->rx_chan = NULL; in s3c24xx_serial_release_dma()