Lines Matching defs:xmit
820 struct circ_buf *xmit = &port->state->xmit;
829 if (uart_circ_empty(xmit) || uart_tx_stopped(port))
833 atmel_uart_write_char(port, xmit->buf[xmit->tail]);
834 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
836 if (uart_circ_empty(xmit))
840 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
843 if (!uart_circ_empty(xmit)) {
863 struct circ_buf *xmit = &port->state->xmit;
871 xmit->tail += atmel_port->tx_len;
872 xmit->tail &= UART_XMIT_SIZE - 1;
882 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
886 * xmit is a circular buffer so, if we have just send data from
887 * xmit->tail to the end of xmit->buf, now we have to transmit the
888 * remaining data from the beginning of xmit->buf to xmit->head.
890 if (!uart_circ_empty(xmit))
928 struct circ_buf *xmit = &port->state->xmit;
939 if (!uart_circ_empty(xmit) && !uart_tx_stopped(port)) {
942 * Port xmit buffer is already mapped,
947 * consistent xmit buffer state.
949 tx_len = CIRC_CNT_TO_END(xmit->head,
950 xmit->tail,
965 phys_addr = sg_dma_address(sg_tx) + xmit->tail;
982 * xmit->tail correctly
1012 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
1036 BUG_ON(!PAGE_ALIGNED(port->state->xmit.buf));
1038 virt_to_page(port->state->xmit.buf),
1040 offset_in_page(port->state->xmit.buf));
1052 port->state->xmit.buf,
1466 struct circ_buf *xmit = &port->state->xmit;
1474 xmit->tail += pdc->ofs;
1475 xmit->tail &= UART_XMIT_SIZE - 1;
1485 if (!uart_circ_empty(xmit) && !uart_tx_stopped(port)) {
1491 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE);
1495 pdc->dma_addr + xmit->tail);
1509 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
1517 struct circ_buf *xmit = &port->state->xmit;
1519 pdc->buf = xmit->buf;
1980 /* enable xmit & rcvr */
2037 * in uart_flush_buffer(), the xmit circular buffer has just