Lines Matching refs:xmit
209 struct circ_buf *xmit = &port->state->xmit; in sprd_stop_tx_dma() local
218 xmit->tail = (xmit->tail + trans_len) & (UART_XMIT_SIZE - 1); in sprd_stop_tx_dma()
232 struct circ_buf *xmit = &port->state->xmit; in sprd_tx_buf_remap() local
235 CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in sprd_tx_buf_remap()
238 (void *)&(xmit->buf[xmit->tail]), in sprd_tx_buf_remap()
249 struct circ_buf *xmit = &port->state->xmit; in sprd_complete_tx_dma() local
256 xmit->tail = (xmit->tail + sp->tx_dma.trans_len) & (UART_XMIT_SIZE - 1); in sprd_complete_tx_dma()
259 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in sprd_complete_tx_dma()
262 if (uart_circ_empty(xmit) || sprd_tx_buf_remap(port) || in sprd_complete_tx_dma()
325 struct circ_buf *xmit = &port->state->xmit; in sprd_start_tx_dma() local
334 if (uart_circ_empty(xmit) || uart_tx_stopped(port)) { in sprd_start_tx_dma()
629 struct circ_buf *xmit = &port->state->xmit; in sprd_tx() local
639 if (uart_circ_empty(xmit) || uart_tx_stopped(port)) { in sprd_tx()
646 serial_out(port, SPRD_TXD, xmit->buf[xmit->tail]); in sprd_tx()
647 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in sprd_tx()
649 if (uart_circ_empty(xmit)) in sprd_tx()
653 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in sprd_tx()
656 if (uart_circ_empty(xmit)) in sprd_tx()