Lines Matching refs:lsr
192 unsigned int *lsr) in handle_lsr_errors() argument
197 if (*lsr & SPRD_LSR_BI) { in handle_lsr_errors()
198 *lsr &= ~(SPRD_LSR_FE | SPRD_LSR_PE); in handle_lsr_errors()
203 } else if (*lsr & SPRD_LSR_PE) in handle_lsr_errors()
205 else if (*lsr & SPRD_LSR_FE) in handle_lsr_errors()
207 if (*lsr & SPRD_LSR_OE) in handle_lsr_errors()
211 *lsr &= port->read_status_mask; in handle_lsr_errors()
212 if (*lsr & SPRD_LSR_BI) in handle_lsr_errors()
214 else if (*lsr & SPRD_LSR_PE) in handle_lsr_errors()
216 else if (*lsr & SPRD_LSR_FE) in handle_lsr_errors()
225 unsigned int ch, flag, lsr, max_count = SPRD_TIMEOUT; in sprd_rx() local
228 lsr = serial_in(port, SPRD_LSR); in sprd_rx()
233 if (lsr & (SPRD_LSR_BI | SPRD_LSR_PE | in sprd_rx()
235 if (handle_lsr_errors(port, &lsr, &flag)) in sprd_rx()
240 uart_insert_char(port, lsr, SPRD_LSR_OE, ch, flag); in sprd_rx()