Lines Matching refs:lsr
584 unsigned int *lsr) in handle_lsr_errors() argument
589 if (*lsr & SPRD_LSR_BI) { in handle_lsr_errors()
590 *lsr &= ~(SPRD_LSR_FE | SPRD_LSR_PE); in handle_lsr_errors()
595 } else if (*lsr & SPRD_LSR_PE) in handle_lsr_errors()
597 else if (*lsr & SPRD_LSR_FE) in handle_lsr_errors()
599 if (*lsr & SPRD_LSR_OE) in handle_lsr_errors()
603 *lsr &= port->read_status_mask; in handle_lsr_errors()
604 if (*lsr & SPRD_LSR_BI) in handle_lsr_errors()
606 else if (*lsr & SPRD_LSR_PE) in handle_lsr_errors()
608 else if (*lsr & SPRD_LSR_FE) in handle_lsr_errors()
619 unsigned int lsr, max_count = SPRD_TIMEOUT; in sprd_rx() local
629 lsr = serial_in(port, SPRD_LSR); in sprd_rx()
634 if (lsr & (SPRD_LSR_BI | SPRD_LSR_PE | in sprd_rx()
636 if (handle_lsr_errors(port, &flag, &lsr)) in sprd_rx()
641 uart_insert_char(port, lsr, SPRD_LSR_OE, ch, flag); in sprd_rx()