Lines Matching refs:xmit
429 struct circ_buf *xmit = &port->state->xmit; in stm32_usart_transmit_chars_pio() local
436 while (!uart_circ_empty(xmit)) { in stm32_usart_transmit_chars_pio()
440 writel_relaxed(xmit->buf[xmit->tail], port->membase + ofs->tdr); in stm32_usart_transmit_chars_pio()
441 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in stm32_usart_transmit_chars_pio()
446 if (uart_circ_empty(xmit)) in stm32_usart_transmit_chars_pio()
456 struct circ_buf *xmit = &port->state->xmit; in stm32_usart_transmit_chars_dma() local
465 count = uart_circ_chars_pending(xmit); in stm32_usart_transmit_chars_dma()
470 if (xmit->tail < xmit->head) { in stm32_usart_transmit_chars_dma()
471 memcpy(&stm32port->tx_buf[0], &xmit->buf[xmit->tail], count); in stm32_usart_transmit_chars_dma()
473 size_t one = UART_XMIT_SIZE - xmit->tail; in stm32_usart_transmit_chars_dma()
480 memcpy(&stm32port->tx_buf[0], &xmit->buf[xmit->tail], one); in stm32_usart_transmit_chars_dma()
482 memcpy(&stm32port->tx_buf[one], &xmit->buf[0], two); in stm32_usart_transmit_chars_dma()
509 xmit->tail = (xmit->tail + count) & (UART_XMIT_SIZE - 1); in stm32_usart_transmit_chars_dma()
522 struct circ_buf *xmit = &port->state->xmit; in stm32_usart_transmit_chars() local
535 if (uart_circ_empty(xmit) || uart_tx_stopped(port)) { in stm32_usart_transmit_chars()
550 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in stm32_usart_transmit_chars()
553 if (uart_circ_empty(xmit)) in stm32_usart_transmit_chars()
697 struct circ_buf *xmit = &port->state->xmit; in stm32_usart_start_tx() local
699 if (uart_circ_empty(xmit)) in stm32_usart_start_tx()