Lines Matching refs:xmit
827 struct circ_buf *xmit = &port->state->xmit; in atmel_tx_chars() local
836 if (uart_circ_empty(xmit) || uart_tx_stopped(port)) in atmel_tx_chars()
840 atmel_uart_write_char(port, xmit->buf[xmit->tail]); in atmel_tx_chars()
841 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in atmel_tx_chars()
843 if (uart_circ_empty(xmit)) in atmel_tx_chars()
847 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in atmel_tx_chars()
850 if (!uart_circ_empty(xmit)) { in atmel_tx_chars()
870 struct circ_buf *xmit = &port->state->xmit; in atmel_complete_tx_dma() local
878 xmit->tail += atmel_port->tx_len; in atmel_complete_tx_dma()
879 xmit->tail &= UART_XMIT_SIZE - 1; in atmel_complete_tx_dma()
889 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in atmel_complete_tx_dma()
897 if (!uart_circ_empty(xmit)) in atmel_complete_tx_dma()
935 struct circ_buf *xmit = &port->state->xmit; in atmel_tx_dma() local
946 if (!uart_circ_empty(xmit) && !uart_tx_stopped(port)) { in atmel_tx_dma()
956 tx_len = CIRC_CNT_TO_END(xmit->head, in atmel_tx_dma()
957 xmit->tail, in atmel_tx_dma()
972 phys_addr = sg_dma_address(sg_tx) + xmit->tail; in atmel_tx_dma()
1019 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in atmel_tx_dma()
1043 BUG_ON(!PAGE_ALIGNED(port->state->xmit.buf)); in atmel_prepare_tx_dma()
1045 virt_to_page(port->state->xmit.buf), in atmel_prepare_tx_dma()
1047 offset_in_page(port->state->xmit.buf)); in atmel_prepare_tx_dma()
1059 port->state->xmit.buf, in atmel_prepare_tx_dma()
1467 struct circ_buf *xmit = &port->state->xmit; in atmel_tx_pdc() local
1475 xmit->tail += pdc->ofs; in atmel_tx_pdc()
1476 xmit->tail &= UART_XMIT_SIZE - 1; in atmel_tx_pdc()
1486 if (!uart_circ_empty(xmit) && !uart_tx_stopped(port)) { in atmel_tx_pdc()
1492 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in atmel_tx_pdc()
1496 pdc->dma_addr + xmit->tail); in atmel_tx_pdc()
1510 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in atmel_tx_pdc()
1518 struct circ_buf *xmit = &port->state->xmit; in atmel_prepare_tx_pdc() local
1520 pdc->buf = xmit->buf; in atmel_prepare_tx_pdc()