lh7a40xuart_stop_tx (port, 0); 
lh7a40xuart_stop_tx (port); 
static void lh7a40xuart_tx_chars (struct uart_port* port){	struct circ_buf* xmit = &port->info->xmit;	int cbTxMax = port->fifosize;	if (port->x_char) {		UR (port, UART_R_DATA) = port->x_char;		++port->icount.tx;		port->x_char = 0;		return;	}	if (uart_circ_empty (xmit) || uart_tx_stopped (port)) {		lh7a40xuart_stop_tx (port, 0);		return;	}	/* Unlike the AMBA UART, the lh7a40x UART does not guarantee	   that at least half of the FIFO is empty.  Instead, we check	   status for every character.  Using the AMBA method causes	   the transmitter to drop characters. */	do {		UR (port, UART_R_DATA) = xmit->buf[xmit->tail];		xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);		++port->icount.tx;		if (uart_circ_empty(xmit))			break;	} while (!(UR (port, UART_R_STATUS) & nTxRdy)		 && cbTxMax--);	if (uart_circ_chars_pending (xmit) < WAKEUP_CHARS)		uart_write_wakeup (port);	if (uart_circ_empty (xmit))		lh7a40xuart_stop_tx (port, 0);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/1cd9855c1ba60b3e615e09d3ddf557f7bc371533/serial_lh7a40x.c/clean/drivers/serial/serial_lh7a40x.c