Lines Matching refs:lsr
87 unsigned int lsr = readl(port->membase + SUP_UART_LSR); in sunplus_tx_buf_not_full() local
89 return (lsr & SUP_UART_LSR_TX) ? SUP_UART_LSR_TX_NOT_FULL : 0; in sunplus_tx_buf_not_full()
94 unsigned int lsr = readl(port->membase + SUP_UART_LSR); in sunplus_tx_empty() local
96 return (lsr & UART_LSR_TEMT) ? TIOCSER_TEMT : 0; in sunplus_tx_empty()
233 unsigned int lsr = readl(port->membase + SUP_UART_LSR); in receive_chars() local
241 if (unlikely(lsr & SUP_UART_LSR_BRK_ERROR_BITS)) { in receive_chars()
242 if (lsr & SUP_UART_LSR_BC) { in receive_chars()
243 lsr &= ~(SUP_UART_LSR_FE | SUP_UART_LSR_PE); in receive_chars()
248 } else if (lsr & SUP_UART_LSR_PE) { in receive_chars()
251 } else if (lsr & SUP_UART_LSR_FE) { in receive_chars()
256 if (lsr & SUP_UART_LSR_OE) in receive_chars()
266 uart_insert_char(port, lsr, SUP_UART_LSR_OE, ch, flag); in receive_chars()
269 lsr = readl(port->membase + SUP_UART_LSR); in receive_chars()
270 } while (lsr & SUP_UART_LSR_RX); in receive_chars()
468 unsigned int lsr = readl(port->membase + SUP_UART_LSR); in sunplus_poll_get_char() local
470 if (!(lsr & SUP_UART_LSR_RX)) in sunplus_poll_get_char()