Lines Matching refs:port_lock
106 spinlock_t port_lock; /* guard port_* access */ member
279 spin_unlock(&port->port_lock); in gs_start_tx()
281 spin_lock(&port->port_lock); in gs_start_tx()
335 spin_unlock(&port->port_lock); in gs_start_rx()
337 spin_lock(&port->port_lock); in gs_start_rx()
374 spin_lock_irq(&port->port_lock); in gs_rx_push()
455 spin_unlock_irq(&port->port_lock); in gs_rx_push()
463 spin_lock(&port->port_lock); in gs_read_complete()
466 spin_unlock(&port->port_lock); in gs_read_complete()
473 spin_lock(&port->port_lock); in gs_write_complete()
494 spin_unlock(&port->port_lock); in gs_write_complete()
617 spin_lock_irq(&port->port_lock); in gs_open()
622 spin_unlock_irq(&port->port_lock); in gs_open()
637 spin_lock_irq(&port->port_lock); in gs_open()
667 spin_unlock_irq(&port->port_lock); in gs_open()
678 spin_lock_irq(&p->port_lock); in gs_close_flush_done()
681 spin_unlock_irq(&p->port_lock); in gs_close_flush_done()
691 spin_lock_irq(&port->port_lock); in gs_close()
712 spin_unlock_irq(&port->port_lock); in gs_close()
716 spin_lock_irq(&port->port_lock); in gs_close()
742 spin_unlock_irq(&port->port_lock); in gs_close()
753 spin_lock_irqsave(&port->port_lock, flags); in gs_write()
759 spin_unlock_irqrestore(&port->port_lock, flags); in gs_write()
773 spin_lock_irqsave(&port->port_lock, flags); in gs_put_char()
775 spin_unlock_irqrestore(&port->port_lock, flags); in gs_put_char()
787 spin_lock_irqsave(&port->port_lock, flags); in gs_flush_chars()
790 spin_unlock_irqrestore(&port->port_lock, flags); in gs_flush_chars()
799 spin_lock_irqsave(&port->port_lock, flags); in gs_write_room()
802 spin_unlock_irqrestore(&port->port_lock, flags); in gs_write_room()
816 spin_lock_irqsave(&port->port_lock, flags); in gs_chars_in_buffer()
818 spin_unlock_irqrestore(&port->port_lock, flags); in gs_chars_in_buffer()
832 spin_lock_irqsave(&port->port_lock, flags); in gs_unthrottle()
841 spin_unlock_irqrestore(&port->port_lock, flags); in gs_unthrottle()
853 spin_lock_irq(&port->port_lock); in gs_break_ctl()
857 spin_unlock_irq(&port->port_lock); in gs_break_ctl()
869 spin_lock_irqsave(&port->port_lock, flags); in gs_get_icount()
871 spin_unlock_irqrestore(&port->port_lock, flags); in gs_get_icount()
1076 spin_lock_irq(&port->port_lock); in gs_console_init()
1079 spin_unlock_irq(&port->port_lock); in gs_console_init()
1093 spin_lock_irq(&port->port_lock); in gs_console_exit()
1096 spin_unlock_irq(&port->port_lock); in gs_console_exit()
1193 spin_lock_init(&port->port_lock); in gs_port_alloc()
1216 spin_lock_irq(&port->port_lock); in gs_closed()
1218 spin_unlock_irq(&port->port_lock); in gs_closed()
1361 spin_lock_irqsave(&port->port_lock, flags); in gserial_connect()
1386 spin_unlock_irqrestore(&port->port_lock, flags); in gserial_connect()
1417 spin_lock(&port->port_lock); in gserial_disconnect()
1432 spin_unlock(&port->port_lock); in gserial_disconnect()
1440 spin_lock_irqsave(&port->port_lock, flags); in gserial_disconnect()
1450 spin_unlock_irqrestore(&port->port_lock, flags); in gserial_disconnect()
1467 spin_lock(&port->port_lock); in gserial_suspend()
1471 spin_unlock_irqrestore(&port->port_lock, flags); in gserial_suspend()
1488 spin_lock(&port->port_lock); in gserial_resume()
1492 spin_unlock_irqrestore(&port->port_lock, flags); in gserial_resume()
1501 spin_unlock_irqrestore(&port->port_lock, flags); in gserial_resume()