Lines Matching refs:sr
355 u8 sr; in sccnxp_handle_rx() local
359 sr = sccnxp_port_read(port, SCCNXP_SR_REG); in sccnxp_handle_rx()
360 if (!(sr & SR_RXRDY)) in sccnxp_handle_rx()
362 sr &= SR_PE | SR_FE | SR_OVR | SR_BRK; in sccnxp_handle_rx()
369 if (unlikely(sr)) { in sccnxp_handle_rx()
370 if (sr & SR_BRK) { in sccnxp_handle_rx()
376 } else if (sr & SR_PE) in sccnxp_handle_rx()
378 else if (sr & SR_FE) in sccnxp_handle_rx()
380 else if (sr & SR_OVR) { in sccnxp_handle_rx()
386 sr &= port->read_status_mask; in sccnxp_handle_rx()
387 if (sr & SR_BRK) in sccnxp_handle_rx()
389 else if (sr & SR_PE) in sccnxp_handle_rx()
391 else if (sr & SR_FE) in sccnxp_handle_rx()
393 else if (sr & SR_OVR) in sccnxp_handle_rx()
400 if (sr & port->ignore_status_mask) in sccnxp_handle_rx()
403 uart_insert_char(port, sr, SR_OVR, ch, flag); in sccnxp_handle_rx()
411 u8 sr; in sccnxp_handle_tx() local
435 sr = sccnxp_port_read(port, SCCNXP_SR_REG); in sccnxp_handle_tx()
436 if (!(sr & SR_TXRDY)) in sccnxp_handle_tx()