Lines Matching refs:sts
602 unsigned int sts, ch, flag; in max310x_handle_rx() local
613 sts = max310x_port_read(port, MAX310X_LSR_IRQSTS_REG); in max310x_handle_rx()
615 sts &= MAX310X_LSR_RXPAR_BIT | MAX310X_LSR_FRERR_BIT | in max310x_handle_rx()
621 if (unlikely(sts)) { in max310x_handle_rx()
622 if (sts & MAX310X_LSR_RXBRK_BIT) { in max310x_handle_rx()
626 } else if (sts & MAX310X_LSR_RXPAR_BIT) in max310x_handle_rx()
628 else if (sts & MAX310X_LSR_FRERR_BIT) in max310x_handle_rx()
630 else if (sts & MAX310X_LSR_RXOVR_BIT) in max310x_handle_rx()
633 sts &= port->read_status_mask; in max310x_handle_rx()
634 if (sts & MAX310X_LSR_RXBRK_BIT) in max310x_handle_rx()
636 else if (sts & MAX310X_LSR_RXPAR_BIT) in max310x_handle_rx()
638 else if (sts & MAX310X_LSR_FRERR_BIT) in max310x_handle_rx()
640 else if (sts & MAX310X_LSR_RXOVR_BIT) in max310x_handle_rx()
647 if (sts & port->ignore_status_mask) in max310x_handle_rx()
650 uart_insert_char(port, sts, MAX310X_LSR_RXOVR_BIT, ch, flag); in max310x_handle_rx()
761 unsigned int lvl, sts; in max310x_tx_empty() local
764 sts = max310x_port_read(port, MAX310X_IRQSTS_REG); in max310x_tx_empty()
766 return ((sts & MAX310X_IRQ_TXEMPTY_BIT) && !lvl) ? TIOCSER_TEMT : 0; in max310x_tx_empty()