Lines Matching refs:lsr
472 unsigned int lsr = 0, ch, flag, bytes_read, i; in sc16is7xx_handle_rx() local
487 lsr = sc16is7xx_port_read(port, SC16IS7XX_LSR_REG); in sc16is7xx_handle_rx()
488 if (!(lsr & SC16IS7XX_LSR_FIFOE_BIT)) in sc16is7xx_handle_rx()
491 lsr = 0; in sc16is7xx_handle_rx()
504 lsr &= SC16IS7XX_LSR_BRK_ERROR_MASK; in sc16is7xx_handle_rx()
509 if (unlikely(lsr)) { in sc16is7xx_handle_rx()
510 if (lsr & SC16IS7XX_LSR_BI_BIT) { in sc16is7xx_handle_rx()
514 } else if (lsr & SC16IS7XX_LSR_PE_BIT) in sc16is7xx_handle_rx()
516 else if (lsr & SC16IS7XX_LSR_FE_BIT) in sc16is7xx_handle_rx()
518 else if (lsr & SC16IS7XX_LSR_OE_BIT) in sc16is7xx_handle_rx()
521 lsr &= port->read_status_mask; in sc16is7xx_handle_rx()
522 if (lsr & SC16IS7XX_LSR_BI_BIT) in sc16is7xx_handle_rx()
524 else if (lsr & SC16IS7XX_LSR_PE_BIT) in sc16is7xx_handle_rx()
526 else if (lsr & SC16IS7XX_LSR_FE_BIT) in sc16is7xx_handle_rx()
528 else if (lsr & SC16IS7XX_LSR_OE_BIT) in sc16is7xx_handle_rx()
537 if (lsr & port->ignore_status_mask) in sc16is7xx_handle_rx()
540 uart_insert_char(port, lsr, SC16IS7XX_LSR_OE_BIT, ch, in sc16is7xx_handle_rx()
660 int lsr = sc16is7xx_port_read(port, SC16IS7XX_LSR_REG); in sc16is7xx_stop_tx() local
661 if (!(lsr & SC16IS7XX_LSR_TEMT_BIT)) in sc16is7xx_stop_tx()
700 unsigned int lvl, lsr; in sc16is7xx_tx_empty() local
703 lsr = sc16is7xx_port_read(port, SC16IS7XX_LSR_REG); in sc16is7xx_tx_empty()
705 return ((lsr & SC16IS7XX_LSR_THRE_BIT) && !lvl) ? TIOCSER_TEMT : 0; in sc16is7xx_tx_empty()