Lines Matching refs:trans_len
117 u32 trans_len; member
211 u32 trans_len; in sprd_stop_tx_dma() local
217 trans_len = state.residue - sp->tx_dma.phys_addr; in sprd_stop_tx_dma()
218 xmit->tail = (xmit->tail + trans_len) & (UART_XMIT_SIZE - 1); in sprd_stop_tx_dma()
219 port->icount.tx += trans_len; in sprd_stop_tx_dma()
221 sp->tx_dma.trans_len, DMA_TO_DEVICE); in sprd_stop_tx_dma()
225 sp->tx_dma.trans_len = 0; in sprd_stop_tx_dma()
234 sp->tx_dma.trans_len = in sprd_tx_buf_remap()
239 sp->tx_dma.trans_len, in sprd_tx_buf_remap()
254 sp->tx_dma.trans_len, DMA_TO_DEVICE); in sprd_complete_tx_dma()
256 xmit->tail = (xmit->tail + sp->tx_dma.trans_len) & (UART_XMIT_SIZE - 1); in sprd_complete_tx_dma()
257 port->icount.tx += sp->tx_dma.trans_len; in sprd_complete_tx_dma()
264 sp->tx_dma.trans_len = 0; in sprd_complete_tx_dma()
270 struct sprd_uart_dma *ud, u32 trans_len, in sprd_uart_dma_submit() argument
282 dma_des = dmaengine_prep_slave_single(ud->chn, ud->phys_addr, trans_len, in sprd_uart_dma_submit()
303 u32 burst = sp->tx_dma.trans_len > SPRD_TX_FIFO_FULL ? in sprd_tx_dma_config()
304 SPRD_TX_FIFO_FULL : sp->tx_dma.trans_len; in sprd_tx_dma_config()
317 return sprd_uart_dma_submit(port, &sp->tx_dma, sp->tx_dma.trans_len, in sprd_tx_dma_config()
339 if (sp->tx_dma.trans_len) in sprd_start_tx_dma()
343 sp->tx_dma.trans_len = 0; in sprd_start_tx_dma()
393 port->icount.rx += sp->rx_dma.trans_len; in sprd_uart_dma_rx()
394 tty_insert_flip_string(tty, sp->rx_buf_tail, sp->rx_dma.trans_len); in sprd_uart_dma_rx()
414 sp->rx_dma.trans_len = SPRD_UART_RX_SIZE + in sprd_uart_dma_irq()
418 sp->rx_dma.trans_len = state.residue - sp->pos; in sprd_uart_dma_irq()
423 sp->rx_buf_tail += sp->rx_dma.trans_len; in sprd_uart_dma_irq()
446 sp->rx_dma.trans_len = SPRD_UART_RX_SIZE + in sprd_complete_rx_dma()
449 sp->rx_buf_tail += sp->rx_dma.trans_len; in sprd_complete_rx_dma()