Lines Matching refs:sts
594 unsigned int sts, ch, flag; in max310x_handle_rx() local
607 sts = max310x_port_read(port, MAX310X_LSR_IRQSTS_REG); in max310x_handle_rx()
609 sts &= MAX310X_LSR_RXPAR_BIT | MAX310X_LSR_FRERR_BIT | in max310x_handle_rx()
615 if (unlikely(sts)) { in max310x_handle_rx()
616 if (sts & MAX310X_LSR_RXBRK_BIT) { in max310x_handle_rx()
620 } else if (sts & MAX310X_LSR_RXPAR_BIT) in max310x_handle_rx()
622 else if (sts & MAX310X_LSR_FRERR_BIT) in max310x_handle_rx()
624 else if (sts & MAX310X_LSR_RXOVR_BIT) in max310x_handle_rx()
627 sts &= port->read_status_mask; in max310x_handle_rx()
628 if (sts & MAX310X_LSR_RXBRK_BIT) in max310x_handle_rx()
630 else if (sts & MAX310X_LSR_RXPAR_BIT) in max310x_handle_rx()
632 else if (sts & MAX310X_LSR_FRERR_BIT) in max310x_handle_rx()
634 else if (sts & MAX310X_LSR_RXOVR_BIT) in max310x_handle_rx()
641 if (sts & port->ignore_status_mask) in max310x_handle_rx()
644 uart_insert_char(port, sts, MAX310X_LSR_RXOVR_BIT, ch, flag); in max310x_handle_rx()
755 unsigned int lvl, sts; in max310x_tx_empty() local
758 sts = max310x_port_read(port, MAX310X_IRQSTS_REG); in max310x_tx_empty()
760 return ((sts & MAX310X_IRQ_TXEMPTY_BIT) && !lvl) ? TIOCSER_TEMT : 0; in max310x_tx_empty()