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()
235 unsigned int lsr = readl(port->membase + SUP_UART_LSR); in receive_chars() local
243 if (unlikely(lsr & SUP_UART_LSR_BRK_ERROR_BITS)) { in receive_chars()
244 if (lsr & SUP_UART_LSR_BC) { in receive_chars()
245 lsr &= ~(SUP_UART_LSR_FE | SUP_UART_LSR_PE); in receive_chars()
250 } else if (lsr & SUP_UART_LSR_PE) { in receive_chars()
253 } else if (lsr & SUP_UART_LSR_FE) { in receive_chars()
258 if (lsr & SUP_UART_LSR_OE) in receive_chars()
268 uart_insert_char(port, lsr, SUP_UART_LSR_OE, ch, flag); in receive_chars()
271 lsr = readl(port->membase + SUP_UART_LSR); in receive_chars()
272 } while (lsr & SUP_UART_LSR_RX); in receive_chars()
470 unsigned int lsr = readl(port->membase + SUP_UART_LSR); in sunplus_poll_get_char() local
472 if (!(lsr & SUP_UART_LSR_RX)) in sunplus_poll_get_char()