Lines Matching refs:xmit
797 struct circ_buf *xmit = &port->state->xmit; in pch_dma_tx_complete() local
802 xmit->tail += sg_dma_len(sg); in pch_dma_tx_complete()
805 xmit->tail &= UART_XMIT_SIZE - 1; in pch_dma_tx_complete()
818 struct circ_buf *xmit = &port->state->xmit; in pop_tx() local
820 if (uart_tx_stopped(port) || uart_circ_empty(xmit) || count >= size) in pop_tx()
825 CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in pop_tx()
827 pch_uart_hal_write(priv, &xmit->buf[xmit->tail], sz); in pop_tx()
828 xmit->tail = (xmit->tail + sz) & (UART_XMIT_SIZE - 1); in pop_tx()
830 } while (!uart_circ_empty(xmit) && count < size); in pop_tx()
903 struct circ_buf *xmit = &port->state->xmit; in handle_tx() local
919 if (pop_tx_x(priv, xmit->buf)) { in handle_tx()
920 pch_uart_hal_write(priv, xmit->buf, 1); in handle_tx()
925 size = min(xmit->head - xmit->tail, fifo_size); in handle_tx()
948 struct circ_buf *xmit = &port->state->xmit; in dma_handle_tx() local
978 if (pop_tx_x(priv, xmit->buf)) { in dma_handle_tx()
979 pch_uart_hal_write(priv, xmit->buf, 1); in dma_handle_tx()
985 bytes = min((int)CIRC_CNT(xmit->head, xmit->tail, in dma_handle_tx()
986 UART_XMIT_SIZE), CIRC_CNT_TO_END(xmit->head, in dma_handle_tx()
987 xmit->tail, UART_XMIT_SIZE)); in dma_handle_tx()
1021 sg_set_page(sg, virt_to_page(xmit->buf), in dma_handle_tx()
1024 sg_set_page(sg, virt_to_page(xmit->buf), in dma_handle_tx()
1037 sg->offset = (xmit->tail & (UART_XMIT_SIZE - 1)) + in dma_handle_tx()