Lines Matching refs:chn
113 struct dma_chan *chn; member
181 dmaengine_terminate_all(sp->rx_dma.chn); in sprd_stop_rx()
213 dmaengine_pause(sp->tx_dma.chn); in sprd_stop_tx_dma()
215 dmaengine_tx_status(sp->tx_dma.chn, sp->tx_dma.cookie, &state); in sprd_stop_tx_dma()
224 dmaengine_terminate_all(sp->tx_dma.chn); in sprd_stop_tx_dma()
282 dma_des = dmaengine_prep_slave_single(ud->chn, ud->phys_addr, trans_len, in sprd_uart_dma_submit()
294 dma_async_issue_pending(ud->chn); in sprd_uart_dma_submit()
313 ret = dmaengine_slave_config(sp->tx_dma.chn, &cfg); in sprd_tx_dma_config()
384 return dmaengine_slave_config(sp->rx_dma.chn, &cfg); in sprd_rx_dma_config()
405 status = dmaengine_tx_status(sp->rx_dma.chn, in sprd_uart_dma_irq()
437 status = dmaengine_tx_status(sp->rx_dma.chn, in sprd_complete_rx_dma()
486 dma_release_channel(sp->rx_dma.chn); in sprd_release_dma()
489 dma_release_channel(sp->tx_dma.chn); in sprd_release_dma()
503 sp->tx_dma.chn = dma_request_chan(port->dev, "tx"); in sprd_request_dma()
504 if (IS_ERR(sp->tx_dma.chn)) { in sprd_request_dma()
506 PTR_ERR(sp->tx_dma.chn)); in sprd_request_dma()
510 sp->rx_dma.chn = dma_request_chan(port->dev, "rx"); in sprd_request_dma()
511 if (IS_ERR(sp->rx_dma.chn)) { in sprd_request_dma()
513 PTR_ERR(sp->rx_dma.chn)); in sprd_request_dma()
705 dma_release_channel(sp->rx_dma.chn); in sprd_uart_dma_startup()