Lines Matching refs:xmit
780 struct circ_buf *xmit = &port->state->xmit; in pch_dma_tx_complete() local
785 xmit->tail += sg_dma_len(sg); in pch_dma_tx_complete()
788 xmit->tail &= UART_XMIT_SIZE - 1; in pch_dma_tx_complete()
801 struct circ_buf *xmit = &port->state->xmit; in pop_tx() local
803 if (uart_tx_stopped(port) || uart_circ_empty(xmit) || count >= size) in pop_tx()
808 CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in pop_tx()
810 pch_uart_hal_write(priv, &xmit->buf[xmit->tail], sz); in pop_tx()
811 xmit->tail = (xmit->tail + sz) & (UART_XMIT_SIZE - 1); in pop_tx()
813 } while (!uart_circ_empty(xmit) && count < size); in pop_tx()
885 struct circ_buf *xmit = &port->state->xmit; in handle_tx() local
901 if (pop_tx_x(priv, xmit->buf)) { in handle_tx()
902 pch_uart_hal_write(priv, xmit->buf, 1); in handle_tx()
907 size = min(xmit->head - xmit->tail, fifo_size); in handle_tx()
930 struct circ_buf *xmit = &port->state->xmit; in dma_handle_tx() local
958 if (pop_tx_x(priv, xmit->buf)) { in dma_handle_tx()
959 pch_uart_hal_write(priv, xmit->buf, 1); in dma_handle_tx()
964 bytes = min((int)CIRC_CNT(xmit->head, xmit->tail, in dma_handle_tx()
965 UART_XMIT_SIZE), CIRC_CNT_TO_END(xmit->head, in dma_handle_tx()
966 xmit->tail, UART_XMIT_SIZE)); in dma_handle_tx()
1000 sg_set_page(sg, virt_to_page(xmit->buf), in dma_handle_tx()
1003 sg_set_page(sg, virt_to_page(xmit->buf), in dma_handle_tx()
1016 sg->offset = (xmit->tail & (UART_XMIT_SIZE - 1)) + in dma_handle_tx()