Lines Matching refs:lsr
538 unsigned int lsr = 0, ch, flag, bytes_read, i; in sc16is7xx_handle_rx() local
553 lsr = sc16is7xx_port_read(port, SC16IS7XX_LSR_REG); in sc16is7xx_handle_rx()
554 if (!(lsr & SC16IS7XX_LSR_FIFOE_BIT)) in sc16is7xx_handle_rx()
557 lsr = 0; in sc16is7xx_handle_rx()
567 lsr &= SC16IS7XX_LSR_BRK_ERROR_MASK; in sc16is7xx_handle_rx()
572 if (unlikely(lsr)) { in sc16is7xx_handle_rx()
573 if (lsr & SC16IS7XX_LSR_BI_BIT) { in sc16is7xx_handle_rx()
577 } else if (lsr & SC16IS7XX_LSR_PE_BIT) in sc16is7xx_handle_rx()
579 else if (lsr & SC16IS7XX_LSR_FE_BIT) in sc16is7xx_handle_rx()
581 else if (lsr & SC16IS7XX_LSR_OE_BIT) in sc16is7xx_handle_rx()
584 lsr &= port->read_status_mask; in sc16is7xx_handle_rx()
585 if (lsr & SC16IS7XX_LSR_BI_BIT) in sc16is7xx_handle_rx()
587 else if (lsr & SC16IS7XX_LSR_PE_BIT) in sc16is7xx_handle_rx()
589 else if (lsr & SC16IS7XX_LSR_FE_BIT) in sc16is7xx_handle_rx()
591 else if (lsr & SC16IS7XX_LSR_OE_BIT) in sc16is7xx_handle_rx()
600 if (lsr & port->ignore_status_mask) in sc16is7xx_handle_rx()
603 uart_insert_char(port, lsr, SC16IS7XX_LSR_OE_BIT, ch, in sc16is7xx_handle_rx()
795 unsigned int lsr; in sc16is7xx_tx_empty() local
797 lsr = sc16is7xx_port_read(port, SC16IS7XX_LSR_REG); in sc16is7xx_tx_empty()
799 return (lsr & SC16IS7XX_LSR_TEMT_BIT) ? TIOCSER_TEMT : 0; in sc16is7xx_tx_empty()