Lines Matching refs:lsr
199 unsigned int *lsr) in handle_lsr_errors() argument
204 if (*lsr & SPRD_LSR_BI) { in handle_lsr_errors()
205 *lsr &= ~(SPRD_LSR_FE | SPRD_LSR_PE); in handle_lsr_errors()
210 } else if (*lsr & SPRD_LSR_PE) in handle_lsr_errors()
212 else if (*lsr & SPRD_LSR_FE) in handle_lsr_errors()
214 if (*lsr & SPRD_LSR_OE) in handle_lsr_errors()
218 *lsr &= port->read_status_mask; in handle_lsr_errors()
219 if (*lsr & SPRD_LSR_BI) in handle_lsr_errors()
221 else if (*lsr & SPRD_LSR_PE) in handle_lsr_errors()
223 else if (*lsr & SPRD_LSR_FE) in handle_lsr_errors()
232 unsigned int ch, flag, lsr, max_count = SPRD_TIMEOUT; in sprd_rx() local
235 lsr = serial_in(port, SPRD_LSR); in sprd_rx()
240 if (lsr & (SPRD_LSR_BI | SPRD_LSR_PE | in sprd_rx()
242 if (handle_lsr_errors(port, &lsr, &flag)) in sprd_rx()
247 uart_insert_char(port, lsr, SPRD_LSR_OE, ch, flag); in sprd_rx()