Lines Matching refs:xmit

737 	struct circ_buf *xmit = &port->state->xmit;  in atmel_tx_chars()  local
746 if (uart_circ_empty(xmit) || uart_tx_stopped(port)) in atmel_tx_chars()
751 atmel_uart_write_char(port, xmit->buf[xmit->tail]); in atmel_tx_chars()
752 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); in atmel_tx_chars()
754 if (uart_circ_empty(xmit)) in atmel_tx_chars()
758 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in atmel_tx_chars()
761 if (!uart_circ_empty(xmit)) in atmel_tx_chars()
771 struct circ_buf *xmit = &port->state->xmit; in atmel_complete_tx_dma() local
779 xmit->tail += atmel_port->tx_len; in atmel_complete_tx_dma()
780 xmit->tail &= UART_XMIT_SIZE - 1; in atmel_complete_tx_dma()
790 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in atmel_complete_tx_dma()
798 if (!uart_circ_empty(xmit)) in atmel_complete_tx_dma()
827 struct circ_buf *xmit = &port->state->xmit; in atmel_tx_dma() local
838 if (!uart_circ_empty(xmit) && !uart_tx_stopped(port)) { in atmel_tx_dma()
848 tx_len = CIRC_CNT_TO_END(xmit->head, in atmel_tx_dma()
849 xmit->tail, in atmel_tx_dma()
864 phys_addr = sg_dma_address(sg_tx) + xmit->tail; in atmel_tx_dma()
910 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in atmel_tx_dma()
933 BUG_ON(!PAGE_ALIGNED(port->state->xmit.buf)); in atmel_prepare_tx_dma()
935 virt_to_page(port->state->xmit.buf), in atmel_prepare_tx_dma()
937 (unsigned long)port->state->xmit.buf & ~PAGE_MASK); in atmel_prepare_tx_dma()
949 port->state->xmit.buf, in atmel_prepare_tx_dma()
1338 struct circ_buf *xmit = &port->state->xmit; in atmel_tx_pdc() local
1346 xmit->tail += pdc->ofs; in atmel_tx_pdc()
1347 xmit->tail &= UART_XMIT_SIZE - 1; in atmel_tx_pdc()
1357 if (!uart_circ_empty(xmit) && !uart_tx_stopped(port)) { in atmel_tx_pdc()
1363 count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE); in atmel_tx_pdc()
1367 pdc->dma_addr + xmit->tail); in atmel_tx_pdc()
1382 if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) in atmel_tx_pdc()
1390 struct circ_buf *xmit = &port->state->xmit; in atmel_prepare_tx_pdc() local
1392 pdc->buf = xmit->buf; in atmel_prepare_tx_pdc()