Lines Matching refs:xmit
695 struct circ_buf *xmit = &port->state->xmit; in stm32_usart_transmit_chars_pio() local
697 while (!uart_circ_empty(xmit)) { in stm32_usart_transmit_chars_pio()
701 writel_relaxed(xmit->buf[xmit->tail], port->membase + ofs->tdr); in stm32_usart_transmit_chars_pio()
706 if (uart_circ_empty(xmit)) in stm32_usart_transmit_chars_pio()
715 struct circ_buf *xmit = &port->state->xmit; in stm32_usart_transmit_chars_dma() local
727 count = uart_circ_chars_pending(xmit); in stm32_usart_transmit_chars_dma()
732 if (xmit->tail < xmit->head) { in stm32_usart_transmit_chars_dma()
733 memcpy(&stm32port->tx_buf[0], &xmit->buf[xmit->tail], count); in stm32_usart_transmit_chars_dma()
735 size_t one = UART_XMIT_SIZE - xmit->tail; in stm32_usart_transmit_chars_dma()
742 memcpy(&stm32port->tx_buf[0], &xmit->buf[xmit->tail], one); in stm32_usart_transmit_chars_dma()
744 memcpy(&stm32port->tx_buf[one], &xmit->buf[0], two); in stm32_usart_transmit_chars_dma()
791 struct circ_buf *xmit = &port->state->xmit; in stm32_usart_transmit_chars() local
798 !(uart_circ_empty(xmit) || uart_tx_stopped(port)))) { in stm32_usart_transmit_chars()
825 if (uart_circ_empty(xmit) || uart_tx_stopped(port)) { in stm32_usart_transmit_chars()
840 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in stm32_usart_transmit_chars()
843 if (uart_circ_empty(xmit)) { in stm32_usart_transmit_chars()
974 struct circ_buf *xmit = &port->state->xmit; in stm32_usart_start_tx() local
976 if (uart_circ_empty(xmit) && !port->x_char) { in stm32_usart_start_tx()