Lines Matching refs:xmit
774 struct circ_buf *xmit = &port->state->xmit; in pch_dma_tx_complete() local
779 xmit->tail += sg_dma_len(sg); in pch_dma_tx_complete()
782 xmit->tail &= UART_XMIT_SIZE - 1; in pch_dma_tx_complete()
796 struct circ_buf *xmit = &port->state->xmit; in pop_tx() local
798 if (uart_tx_stopped(port) || uart_circ_empty(xmit) || count >= size) in pop_tx()
803 CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in pop_tx()
805 pch_uart_hal_write(priv, &xmit->buf[xmit->tail], sz); in pop_tx()
806 xmit->tail = (xmit->tail + sz) & (UART_XMIT_SIZE - 1); in pop_tx()
808 } while (!uart_circ_empty(xmit) && count < size); in pop_tx()
880 struct circ_buf *xmit = &port->state->xmit; in handle_tx() local
896 if (pop_tx_x(priv, xmit->buf)) { in handle_tx()
897 pch_uart_hal_write(priv, xmit->buf, 1); in handle_tx()
902 size = min(xmit->head - xmit->tail, fifo_size); in handle_tx()
925 struct circ_buf *xmit = &port->state->xmit; in dma_handle_tx() local
953 if (pop_tx_x(priv, xmit->buf)) { in dma_handle_tx()
954 pch_uart_hal_write(priv, xmit->buf, 1); in dma_handle_tx()
959 bytes = min((int)CIRC_CNT(xmit->head, xmit->tail, in dma_handle_tx()
960 UART_XMIT_SIZE), CIRC_CNT_TO_END(xmit->head, in dma_handle_tx()
961 xmit->tail, UART_XMIT_SIZE)); in dma_handle_tx()
995 sg_set_page(sg, virt_to_page(xmit->buf), in dma_handle_tx()
998 sg_set_page(sg, virt_to_page(xmit->buf), in dma_handle_tx()
1012 sg->offset = (xmit->tail & (UART_XMIT_SIZE - 1)) + in dma_handle_tx()