Lines Matching refs:sts
655 unsigned int sts, i; in max310x_handle_rx() local
671 sts = max310x_port_read(port, MAX310X_LSR_IRQSTS_REG); in max310x_handle_rx()
676 sts &= port->read_status_mask; in max310x_handle_rx()
678 if (sts & MAX310X_LSR_RXOVR_BIT) { in max310x_handle_rx()
684 uart_insert_char(port, sts, 0, one->rx_buf[i], flag); in max310x_handle_rx()
691 uart_insert_char(port, sts, MAX310X_LSR_RXOVR_BIT, in max310x_handle_rx()
704 sts = max310x_port_read(port, MAX310X_LSR_IRQSTS_REG); in max310x_handle_rx()
706 sts &= MAX310X_LSR_RXPAR_BIT | MAX310X_LSR_FRERR_BIT | in max310x_handle_rx()
712 if (unlikely(sts)) { in max310x_handle_rx()
713 if (sts & MAX310X_LSR_RXBRK_BIT) { in max310x_handle_rx()
717 } else if (sts & MAX310X_LSR_RXPAR_BIT) in max310x_handle_rx()
719 else if (sts & MAX310X_LSR_FRERR_BIT) in max310x_handle_rx()
721 else if (sts & MAX310X_LSR_RXOVR_BIT) in max310x_handle_rx()
724 sts &= port->read_status_mask; in max310x_handle_rx()
725 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()
738 if (sts & port->ignore_status_mask) in max310x_handle_rx()
741 uart_insert_char(port, sts, MAX310X_LSR_RXOVR_BIT, ch, flag); in max310x_handle_rx()