Lines Matching refs:sc_port
93 struct uart_port sc_port;
472 if (port->sc_port.state) {
474 tty = port->sc_port.state->port.tty;
494 spin_unlock_irqrestore(&port->sc_port.lock, flags);
496 spin_lock_irqsave(&port->sc_port.lock, flags);
522 port->sc_port.icount.rx++;
553 if (port->sc_port.state) {
555 xmit = &port->sc_port.state->xmit;
564 if (uart_circ_empty(xmit) || uart_tx_stopped(&port->sc_port)) {
596 port->sc_port.icount.tx += result;
606 uart_write_wakeup(&port->sc_port);
609 snp_stop_tx(&port->sc_port); /* no-op for us */
627 spin_lock_irqsave(&port->sc_port.lock, flags);
634 spin_unlock_irqrestore(&port->sc_port.lock, flags);
655 if (!port->sc_port.irq) {
656 spin_lock_irqsave(&port->sc_port.lock, flags);
660 spin_unlock_irqrestore(&port->sc_port.lock, flags);
692 spin_lock_irqsave(&port->sc_port.lock, flags);
718 spin_unlock_irqrestore(&port->sc_port.lock, flags);
742 spin_lock_irqsave(&port->sc_port.lock, flags);
743 port->sc_port.irq = SGI_UART_VECTOR;
748 spin_unlock_irqrestore(&port->sc_port.lock, flags);
831 spin_lock_init(&sal_console_port.sc_port.lock);
834 sal_console_port.sc_port.membase = (char *)1; /* just needs to be non-zero */
835 sal_console_port.sc_port.type = PORT_16550A;
836 sal_console_port.sc_port.fifosize = SN_SAL_MAX_CHARS;
837 sal_console_port.sc_port.ops = &sn_console_ops;
838 sal_console_port.sc_port.line = 0;
840 if (uart_add_one_port(&sal_console_uart, &sal_console_port.sc_port) < 0) {
867 uart_remove_one_port(&sal_console_uart, &sal_console_port.sc_port);
930 if (!port->sc_port.state) {
938 if (spin_is_locked(&port->sc_port.lock)) {
939 int lhead = port->sc_port.state->xmit.head;
940 int ltail = port->sc_port.state->xmit.tail;
955 if (!spin_is_locked(&port->sc_port.lock)
958 spin_lock_irqsave(&port->sc_port.lock,
965 if ((lhead != port->sc_port.state->xmit.head)
967 port->sc_port.state->xmit.tail)) {
969 port->sc_port.state->xmit.head;
971 port->sc_port.state->xmit.tail;
979 spin_unlock_irqrestore(&port->sc_port.lock, flags);
988 spin_lock_irqsave(&port->sc_port.lock, flags);
990 spin_unlock_irqrestore(&port->sc_port.lock, flags);
1055 spin_lock_init(&sal_console_port.sc_port.lock);