Lines Matching refs:xmit
770 struct circ_buf *xmit = &port->state->xmit; in pch_dma_tx_complete() local
775 xmit->tail += sg_dma_len(sg); in pch_dma_tx_complete()
778 xmit->tail &= UART_XMIT_SIZE - 1; in pch_dma_tx_complete()
792 struct circ_buf *xmit = &port->state->xmit; in pop_tx() local
794 if (uart_tx_stopped(port) || uart_circ_empty(xmit) || count >= size) in pop_tx()
799 CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in pop_tx()
801 pch_uart_hal_write(priv, &xmit->buf[xmit->tail], sz); in pop_tx()
802 xmit->tail = (xmit->tail + sz) & (UART_XMIT_SIZE - 1); in pop_tx()
804 } while (!uart_circ_empty(xmit) && count < size); in pop_tx()
876 struct circ_buf *xmit = &port->state->xmit; in handle_tx() local
892 if (pop_tx_x(priv, xmit->buf)) { in handle_tx()
893 pch_uart_hal_write(priv, xmit->buf, 1); in handle_tx()
898 size = min(xmit->head - xmit->tail, fifo_size); in handle_tx()
921 struct circ_buf *xmit = &port->state->xmit; in dma_handle_tx() local
949 if (pop_tx_x(priv, xmit->buf)) { in dma_handle_tx()
950 pch_uart_hal_write(priv, xmit->buf, 1); in dma_handle_tx()
955 bytes = min((int)CIRC_CNT(xmit->head, xmit->tail, in dma_handle_tx()
956 UART_XMIT_SIZE), CIRC_CNT_TO_END(xmit->head, in dma_handle_tx()
957 xmit->tail, UART_XMIT_SIZE)); in dma_handle_tx()
991 sg_set_page(sg, virt_to_page(xmit->buf), in dma_handle_tx()
994 sg_set_page(sg, virt_to_page(xmit->buf), in dma_handle_tx()
1008 sg->offset = (xmit->tail & (UART_XMIT_SIZE - 1)) + in dma_handle_tx()