Lines Matching refs:lsr
165 if ((serial_in(&com_port->lsr) & (UART_LSR_TEMT | UART_LSR_THRE)) in NS16550_init()
173 while (!(serial_in(&com_port->lsr) & UART_LSR_TEMT)) in NS16550_init()
206 while ((serial_in(&com_port->lsr) & UART_LSR_THRE) == 0) in NS16550_putc()
223 while ((serial_in(&com_port->lsr) & UART_LSR_DR) == 0) { in NS16550_getc()
235 return (serial_in(&com_port->lsr) & UART_LSR_DR) != 0; in NS16550_tstc()
285 while (!(serial_din(&com_port->lsr) & UART_LSR_THRE)) in _debug_uart_putc()
302 while (!(serial_din(&com_port->lsr) & UART_LSR_DR)) in _debug_uart_getc()
321 return serial_din(&com_port->lsr) & UART_LSR_DR ? 1 : 0; in _debug_uart_tstc()
323 return serial_din(&com_port->lsr) & UART_LSR_THRE ? 0 : 1; in _debug_uart_tstc()
426 while (!(serial_din(&com_port->lsr) & UART_LSR_THRE)) in _debug_uart_putc()
468 return serial_in(&com_port->lsr) & UART_LSR_DR ? 1 : 0; in ns16550_serial_pending()
470 return serial_in(&com_port->lsr) & UART_LSR_THRE ? 0 : 1; in ns16550_serial_pending()
477 if (!(serial_in(&com_port->lsr) & UART_LSR_DR)) in ns16550_serial_getc()