Lines Matching full:rx_chan
107 struct dma_chan *rx_chan; member
520 dma_sync_single_for_cpu(dma->rx_chan->device->dev, dma->rx_addr, in s3c24xx_uart_copy_rx_to_tty()
562 if (dma && dma->rx_chan) { in s3c24xx_serial_stop_rx()
564 dma_status = dmaengine_tx_status(dma->rx_chan, in s3c24xx_serial_stop_rx()
569 dmaengine_terminate_all(dma->rx_chan); in s3c24xx_serial_stop_rx()
618 dmaengine_tx_status(dma->rx_chan, dma->rx_cookie, &state); in s3c24xx_serial_rx_dma_complete()
641 dma_sync_single_for_device(dma->rx_chan->device->dev, dma->rx_addr, in s3c64xx_start_rx_dma()
644 dma->rx_desc = dmaengine_prep_slave_single(dma->rx_chan, in s3c64xx_start_rx_dma()
657 dma_async_issue_pending(dma->rx_chan); in s3c64xx_start_rx_dma()
735 dmaengine_pause(dma->rx_chan); in s3c24xx_serial_rx_chars_dma()
736 dmaengine_tx_status(dma->rx_chan, dma->rx_cookie, &state); in s3c24xx_serial_rx_chars_dma()
737 dmaengine_terminate_all(dma->rx_chan); in s3c24xx_serial_rx_chars_dma()
863 if (ourport->dma && ourport->dma->rx_chan) in s3c24xx_serial_rx_irq()
1067 dma->rx_chan = dma_request_chan(p->port.dev, "rx"); in s3c24xx_serial_request_dma()
1069 if (IS_ERR(dma->rx_chan)) { in s3c24xx_serial_request_dma()
1071 ret = PTR_ERR(dma->rx_chan); in s3c24xx_serial_request_dma()
1075 ret = dma_get_slave_caps(dma->rx_chan, &dma_caps); in s3c24xx_serial_request_dma()
1083 dmaengine_slave_config(dma->rx_chan, &dma->rx_conf); in s3c24xx_serial_request_dma()
1111 dma->rx_addr = dma_map_single(dma->rx_chan->device->dev, dma->rx_buf, in s3c24xx_serial_request_dma()
1113 if (dma_mapping_error(dma->rx_chan->device->dev, dma->rx_addr)) { in s3c24xx_serial_request_dma()
1132 dma_unmap_single(dma->rx_chan->device->dev, dma->rx_addr, in s3c24xx_serial_request_dma()
1139 dma_release_channel(dma->rx_chan); in s3c24xx_serial_request_dma()
1150 if (dma->rx_chan) { in s3c24xx_serial_release_dma()
1151 dmaengine_terminate_all(dma->rx_chan); in s3c24xx_serial_release_dma()
1152 dma_unmap_single(dma->rx_chan->device->dev, dma->rx_addr, in s3c24xx_serial_release_dma()
1155 dma_release_channel(dma->rx_chan); in s3c24xx_serial_release_dma()
1156 dma->rx_chan = NULL; in s3c24xx_serial_release_dma()