Lines Matching refs:lsr
565 unsigned int *lsr) in handle_lsr_errors() argument
570 if (*lsr & SPRD_LSR_BI) { in handle_lsr_errors()
571 *lsr &= ~(SPRD_LSR_FE | SPRD_LSR_PE); in handle_lsr_errors()
576 } else if (*lsr & SPRD_LSR_PE) in handle_lsr_errors()
578 else if (*lsr & SPRD_LSR_FE) in handle_lsr_errors()
580 if (*lsr & SPRD_LSR_OE) in handle_lsr_errors()
584 *lsr &= port->read_status_mask; in handle_lsr_errors()
585 if (*lsr & SPRD_LSR_BI) in handle_lsr_errors()
587 else if (*lsr & SPRD_LSR_PE) in handle_lsr_errors()
589 else if (*lsr & SPRD_LSR_FE) in handle_lsr_errors()
600 unsigned int ch, flag, lsr, max_count = SPRD_TIMEOUT; in sprd_rx() local
609 lsr = serial_in(port, SPRD_LSR); in sprd_rx()
614 if (lsr & (SPRD_LSR_BI | SPRD_LSR_PE | in sprd_rx()
616 if (handle_lsr_errors(port, &flag, &lsr)) in sprd_rx()
621 uart_insert_char(port, lsr, SPRD_LSR_OE, ch, flag); in sprd_rx()