Lines Matching refs:xmit
782 struct circ_buf *xmit = &port->state->xmit; in pch_dma_tx_complete() local
787 xmit->tail += sg_dma_len(sg); in pch_dma_tx_complete()
790 xmit->tail &= UART_XMIT_SIZE - 1; in pch_dma_tx_complete()
803 struct circ_buf *xmit = &port->state->xmit; in pop_tx() local
805 if (uart_tx_stopped(port) || uart_circ_empty(xmit) || count >= size) in pop_tx()
810 CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in pop_tx()
812 pch_uart_hal_write(priv, &xmit->buf[xmit->tail], sz); in pop_tx()
813 xmit->tail = (xmit->tail + sz) & (UART_XMIT_SIZE - 1); in pop_tx()
815 } while (!uart_circ_empty(xmit) && count < size); in pop_tx()
887 struct circ_buf *xmit = &port->state->xmit; in handle_tx() local
903 if (pop_tx_x(priv, xmit->buf)) { in handle_tx()
904 pch_uart_hal_write(priv, xmit->buf, 1); in handle_tx()
909 size = min(xmit->head - xmit->tail, fifo_size); in handle_tx()
932 struct circ_buf *xmit = &port->state->xmit; in dma_handle_tx() local
962 if (pop_tx_x(priv, xmit->buf)) { in dma_handle_tx()
963 pch_uart_hal_write(priv, xmit->buf, 1); in dma_handle_tx()
969 bytes = min((int)CIRC_CNT(xmit->head, xmit->tail, in dma_handle_tx()
970 UART_XMIT_SIZE), CIRC_CNT_TO_END(xmit->head, in dma_handle_tx()
971 xmit->tail, UART_XMIT_SIZE)); in dma_handle_tx()
1005 sg_set_page(sg, virt_to_page(xmit->buf), in dma_handle_tx()
1008 sg_set_page(sg, virt_to_page(xmit->buf), in dma_handle_tx()
1021 sg->offset = (xmit->tail & (UART_XMIT_SIZE - 1)) + in dma_handle_tx()