Lines Matching refs:xmit
532 struct circ_buf *xmit = &sport->port.state->xmit; in imx_uart_transmit_buffer() local
542 if (uart_circ_empty(xmit) || uart_tx_stopped(&sport->port)) { in imx_uart_transmit_buffer()
566 while (!uart_circ_empty(xmit) && in imx_uart_transmit_buffer()
570 imx_uart_writel(sport, xmit->buf[xmit->tail], URTX0); in imx_uart_transmit_buffer()
574 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in imx_uart_transmit_buffer()
577 if (uart_circ_empty(xmit)) in imx_uart_transmit_buffer()
585 struct circ_buf *xmit = &sport->port.state->xmit; in imx_uart_dma_tx_callback() local
603 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in imx_uart_dma_tx_callback()
606 if (!uart_circ_empty(xmit) && !uart_tx_stopped(&sport->port)) in imx_uart_dma_tx_callback()
620 struct circ_buf *xmit = &sport->port.state->xmit; in imx_uart_dma_tx() local
635 sport->tx_bytes = uart_circ_chars_pending(xmit); in imx_uart_dma_tx()
637 if (xmit->tail < xmit->head || xmit->head == 0) { in imx_uart_dma_tx()
639 sg_init_one(sgl, xmit->buf + xmit->tail, sport->tx_bytes); in imx_uart_dma_tx()
643 sg_set_buf(sgl, xmit->buf + xmit->tail, in imx_uart_dma_tx()
644 UART_XMIT_SIZE - xmit->tail); in imx_uart_dma_tx()
645 sg_set_buf(sgl + 1, xmit->buf, xmit->head); in imx_uart_dma_tx()
665 uart_circ_chars_pending(xmit)); in imx_uart_dma_tx()
684 if (!sport->port.x_char && uart_circ_empty(&port->state->xmit)) in imx_uart_start_tx()
760 if (!uart_circ_empty(&port->state->xmit) && in imx_uart_start_tx()