Lines Matching refs:xmit
824 struct circ_buf *xmit = &port->state->xmit; in atmel_tx_chars() local
833 if (uart_circ_empty(xmit) || uart_tx_stopped(port)) in atmel_tx_chars()
837 atmel_uart_write_char(port, xmit->buf[xmit->tail]); in atmel_tx_chars()
838 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in atmel_tx_chars()
840 if (uart_circ_empty(xmit)) in atmel_tx_chars()
844 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in atmel_tx_chars()
847 if (!uart_circ_empty(xmit)) { in atmel_tx_chars()
867 struct circ_buf *xmit = &port->state->xmit; in atmel_complete_tx_dma() local
875 xmit->tail += atmel_port->tx_len; in atmel_complete_tx_dma()
876 xmit->tail &= UART_XMIT_SIZE - 1; in atmel_complete_tx_dma()
886 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in atmel_complete_tx_dma()
894 if (!uart_circ_empty(xmit)) in atmel_complete_tx_dma()
932 struct circ_buf *xmit = &port->state->xmit; in atmel_tx_dma() local
943 if (!uart_circ_empty(xmit) && !uart_tx_stopped(port)) { in atmel_tx_dma()
953 tx_len = CIRC_CNT_TO_END(xmit->head, in atmel_tx_dma()
954 xmit->tail, in atmel_tx_dma()
969 phys_addr = sg_dma_address(sg_tx) + xmit->tail; in atmel_tx_dma()
1009 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in atmel_tx_dma()
1033 BUG_ON(!PAGE_ALIGNED(port->state->xmit.buf)); in atmel_prepare_tx_dma()
1035 virt_to_page(port->state->xmit.buf), in atmel_prepare_tx_dma()
1037 offset_in_page(port->state->xmit.buf)); in atmel_prepare_tx_dma()
1049 port->state->xmit.buf, in atmel_prepare_tx_dma()
1450 struct circ_buf *xmit = &port->state->xmit; in atmel_tx_pdc() local
1458 xmit->tail += pdc->ofs; in atmel_tx_pdc()
1459 xmit->tail &= UART_XMIT_SIZE - 1; in atmel_tx_pdc()
1469 if (!uart_circ_empty(xmit) && !uart_tx_stopped(port)) { in atmel_tx_pdc()
1475 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in atmel_tx_pdc()
1479 pdc->dma_addr + xmit->tail); in atmel_tx_pdc()
1493 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in atmel_tx_pdc()
1501 struct circ_buf *xmit = &port->state->xmit; in atmel_prepare_tx_pdc() local
1503 pdc->buf = xmit->buf; in atmel_prepare_tx_pdc()