Lines Matching refs:lsr
200 unsigned int *lsr) in handle_lsr_errors() argument
205 if (*lsr & SPRD_LSR_BI) { in handle_lsr_errors()
206 *lsr &= ~(SPRD_LSR_FE | SPRD_LSR_PE); in handle_lsr_errors()
211 } else if (*lsr & SPRD_LSR_PE) in handle_lsr_errors()
213 else if (*lsr & SPRD_LSR_FE) in handle_lsr_errors()
215 if (*lsr & SPRD_LSR_OE) in handle_lsr_errors()
219 *lsr &= port->read_status_mask; in handle_lsr_errors()
220 if (*lsr & SPRD_LSR_BI) in handle_lsr_errors()
222 else if (*lsr & SPRD_LSR_PE) in handle_lsr_errors()
224 else if (*lsr & SPRD_LSR_FE) in handle_lsr_errors()
233 unsigned int ch, flag, lsr, max_count = SPRD_TIMEOUT; in sprd_rx() local
236 lsr = serial_in(port, SPRD_LSR); in sprd_rx()
241 if (lsr & (SPRD_LSR_BI | SPRD_LSR_PE | in sprd_rx()
243 if (handle_lsr_errors(port, &flag, &lsr)) in sprd_rx()
248 uart_insert_char(port, lsr, SPRD_LSR_OE, ch, flag); in sprd_rx()