• Home
  • Raw
  • Download

Lines Matching refs:flags

171 	unsigned long flags;  in tty_port_tty_get()  local
174 spin_lock_irqsave(&port->lock, flags); in tty_port_tty_get()
176 spin_unlock_irqrestore(&port->lock, flags); in tty_port_tty_get()
192 unsigned long flags; in tty_port_tty_set() local
194 spin_lock_irqsave(&port->lock, flags); in tty_port_tty_set()
197 spin_unlock_irqrestore(&port->lock, flags); in tty_port_tty_set()
207 if (test_and_clear_bit(ASYNCB_INITIALIZED, &port->flags)) { in tty_port_shutdown()
235 unsigned long flags; in tty_port_hangup() local
237 spin_lock_irqsave(&port->lock, flags); in tty_port_hangup()
239 port->flags &= ~ASYNC_NORMAL_ACTIVE; in tty_port_hangup()
242 set_bit(TTY_IO_ERROR, &tty->flags); in tty_port_hangup()
244 spin_unlock_irqrestore(&port->lock, flags); in tty_port_hangup()
362 unsigned long flags; in tty_port_block_til_ready() local
367 if (tty->flags & (1 << TTY_IO_ERROR)) { in tty_port_block_til_ready()
368 port->flags |= ASYNC_NORMAL_ACTIVE; in tty_port_block_til_ready()
375 port->flags |= ASYNC_NORMAL_ACTIVE; in tty_port_block_til_ready()
389 spin_lock_irqsave(&port->lock, flags); in tty_port_block_til_ready()
392 spin_unlock_irqrestore(&port->lock, flags); in tty_port_block_til_ready()
396 if (C_BAUD(tty) && test_bit(ASYNCB_INITIALIZED, &port->flags)) in tty_port_block_til_ready()
402 if (tty_hung_up_p(filp) || !(port->flags & ASYNC_INITIALIZED)) { in tty_port_block_til_ready()
403 if (port->flags & ASYNC_HUP_NOTIFY) in tty_port_block_til_ready()
429 spin_lock_irqsave(&port->lock, flags); in tty_port_block_til_ready()
434 port->flags |= ASYNC_NORMAL_ACTIVE; in tty_port_block_til_ready()
435 spin_unlock_irqrestore(&port->lock, flags); in tty_port_block_til_ready()
458 unsigned long flags; in tty_port_close_start() local
463 spin_lock_irqsave(&port->lock, flags); in tty_port_close_start()
477 spin_unlock_irqrestore(&port->lock, flags); in tty_port_close_start()
480 set_bit(ASYNCB_CLOSING, &port->flags); in tty_port_close_start()
481 spin_unlock_irqrestore(&port->lock, flags); in tty_port_close_start()
485 if (test_bit(ASYNCB_INITIALIZED, &port->flags)) { in tty_port_close_start()
505 unsigned long flags; in tty_port_close_end() local
510 spin_lock_irqsave(&port->lock, flags); in tty_port_close_end()
513 spin_unlock_irqrestore(&port->lock, flags); in tty_port_close_end()
518 spin_lock_irqsave(&port->lock, flags); in tty_port_close_end()
521 port->flags &= ~(ASYNC_NORMAL_ACTIVE | ASYNC_CLOSING); in tty_port_close_end()
522 spin_unlock_irqrestore(&port->lock, flags); in tty_port_close_end()
537 set_bit(TTY_IO_ERROR, &tty->flags); in tty_port_close()
585 if (!test_bit(ASYNCB_INITIALIZED, &port->flags)) { in tty_port_open()
586 clear_bit(TTY_IO_ERROR, &tty->flags); in tty_port_open()
594 set_bit(ASYNCB_INITIALIZED, &port->flags); in tty_port_open()