Lines Matching refs:sts
672 unsigned int sts, i; in max310x_handle_rx() local
687 sts = max310x_port_read(port, MAX310X_LSR_IRQSTS_REG); in max310x_handle_rx()
692 sts &= port->read_status_mask; in max310x_handle_rx()
694 if (sts & MAX310X_LSR_RXOVR_BIT) { in max310x_handle_rx()
700 uart_insert_char(port, sts, 0, one->rx_buf[i], flag); in max310x_handle_rx()
707 uart_insert_char(port, sts, MAX310X_LSR_RXOVR_BIT, in max310x_handle_rx()
720 sts = max310x_port_read(port, MAX310X_LSR_IRQSTS_REG); in max310x_handle_rx()
722 sts &= MAX310X_LSR_RXPAR_BIT | MAX310X_LSR_FRERR_BIT | in max310x_handle_rx()
728 if (unlikely(sts)) { in max310x_handle_rx()
729 if (sts & MAX310X_LSR_RXBRK_BIT) { in max310x_handle_rx()
733 } else if (sts & MAX310X_LSR_RXPAR_BIT) in max310x_handle_rx()
735 else if (sts & MAX310X_LSR_FRERR_BIT) in max310x_handle_rx()
737 else if (sts & MAX310X_LSR_RXOVR_BIT) in max310x_handle_rx()
740 sts &= port->read_status_mask; in max310x_handle_rx()
741 if (sts & MAX310X_LSR_RXBRK_BIT) in max310x_handle_rx()
743 else if (sts & MAX310X_LSR_RXPAR_BIT) in max310x_handle_rx()
745 else if (sts & MAX310X_LSR_FRERR_BIT) in max310x_handle_rx()
747 else if (sts & MAX310X_LSR_RXOVR_BIT) in max310x_handle_rx()
754 if (sts & port->ignore_status_mask) in max310x_handle_rx()
757 uart_insert_char(port, sts, MAX310X_LSR_RXOVR_BIT, ch, flag); in max310x_handle_rx()