Lines Matching refs:sts
667 unsigned int sts, ch, flag, i; in max310x_handle_rx() local
681 sts = max310x_port_read(port, MAX310X_LSR_IRQSTS_REG); in max310x_handle_rx()
686 sts &= port->read_status_mask; in max310x_handle_rx()
688 if (sts & MAX310X_LSR_RXOVR_BIT) { in max310x_handle_rx()
694 uart_insert_char(port, sts, 0, one->rx_buf[i], flag); in max310x_handle_rx()
701 uart_insert_char(port, sts, MAX310X_LSR_RXOVR_BIT, in max310x_handle_rx()
714 sts = max310x_port_read(port, MAX310X_LSR_IRQSTS_REG); in max310x_handle_rx()
716 sts &= MAX310X_LSR_RXPAR_BIT | MAX310X_LSR_FRERR_BIT | in max310x_handle_rx()
722 if (unlikely(sts)) { in max310x_handle_rx()
723 if (sts & MAX310X_LSR_RXBRK_BIT) { in max310x_handle_rx()
727 } else if (sts & MAX310X_LSR_RXPAR_BIT) in max310x_handle_rx()
729 else if (sts & MAX310X_LSR_FRERR_BIT) in max310x_handle_rx()
731 else if (sts & MAX310X_LSR_RXOVR_BIT) in max310x_handle_rx()
734 sts &= port->read_status_mask; in max310x_handle_rx()
735 if (sts & MAX310X_LSR_RXBRK_BIT) in max310x_handle_rx()
737 else if (sts & MAX310X_LSR_RXPAR_BIT) in max310x_handle_rx()
739 else if (sts & MAX310X_LSR_FRERR_BIT) in max310x_handle_rx()
741 else if (sts & MAX310X_LSR_RXOVR_BIT) in max310x_handle_rx()
748 if (sts & port->ignore_status_mask) in max310x_handle_rx()
751 uart_insert_char(port, sts, MAX310X_LSR_RXOVR_BIT, ch, flag); in max310x_handle_rx()