• Home
  • Raw
  • Download

Lines Matching refs:port

108 static void ircomm_port_raise_dtr_rts(struct tty_port *port, int raise)  in ircomm_port_raise_dtr_rts()  argument
110 struct ircomm_tty_cb *self = container_of(port, struct ircomm_tty_cb, in ircomm_port_raise_dtr_rts()
111 port); in ircomm_port_raise_dtr_rts()
125 static int ircomm_port_carrier_raised(struct tty_port *port) in ircomm_port_carrier_raised() argument
127 struct ircomm_tty_cb *self = container_of(port, struct ircomm_tty_cb, in ircomm_port_carrier_raised()
128 port); in ircomm_port_carrier_raised()
183 tty_port_destroy(&self->port); in __ircomm_tty_cleanup()
223 if (test_and_set_bit(ASYNCB_INITIALIZED, &self->port.flags)) { in ircomm_tty_startup()
260 clear_bit(ASYNCB_INITIALIZED, &self->port.flags); in ircomm_tty_startup()
273 struct tty_port *port = &self->port; in ircomm_tty_block_til_ready() local
284 port->flags |= ASYNC_NORMAL_ACTIVE; in ircomm_tty_block_til_ready()
291 tty_port_raise_dtr_rts(port); in ircomm_tty_block_til_ready()
292 port->flags |= ASYNC_NORMAL_ACTIVE; in ircomm_tty_block_til_ready()
310 add_wait_queue(&port->open_wait, &wait); in ircomm_tty_block_til_ready()
313 __FILE__, __LINE__, tty->driver->name, port->count); in ircomm_tty_block_til_ready()
315 spin_lock_irqsave(&port->lock, flags); in ircomm_tty_block_til_ready()
316 port->count--; in ircomm_tty_block_til_ready()
317 port->blocked_open++; in ircomm_tty_block_til_ready()
318 spin_unlock_irqrestore(&port->lock, flags); in ircomm_tty_block_til_ready()
321 if (C_BAUD(tty) && test_bit(ASYNCB_INITIALIZED, &port->flags)) in ircomm_tty_block_til_ready()
322 tty_port_raise_dtr_rts(port); in ircomm_tty_block_til_ready()
327 !test_bit(ASYNCB_INITIALIZED, &port->flags)) { in ircomm_tty_block_til_ready()
328 retval = (port->flags & ASYNC_HUP_NOTIFY) ? in ircomm_tty_block_til_ready()
338 if ((do_clocal || tty_port_carrier_raised(port)) && in ircomm_tty_block_til_ready()
350 __FILE__, __LINE__, tty->driver->name, port->count); in ircomm_tty_block_til_ready()
356 remove_wait_queue(&port->open_wait, &wait); in ircomm_tty_block_til_ready()
358 spin_lock_irqsave(&port->lock, flags); in ircomm_tty_block_til_ready()
360 port->count++; in ircomm_tty_block_til_ready()
361 port->blocked_open--; in ircomm_tty_block_til_ready()
362 spin_unlock_irqrestore(&port->lock, flags); in ircomm_tty_block_til_ready()
365 __FILE__, __LINE__, tty->driver->name, port->count); in ircomm_tty_block_til_ready()
368 port->flags |= ASYNC_NORMAL_ACTIVE; in ircomm_tty_block_til_ready()
387 tty_port_init(&self->port); in ircomm_tty_install()
388 self->port.ops = &ircomm_port_ops; in ircomm_tty_install()
417 return tty_port_install(&self->port, driver, tty); in ircomm_tty_install()
434 spin_lock_irqsave(&self->port.lock, flags); in ircomm_tty_open()
435 self->port.count++; in ircomm_tty_open()
436 spin_unlock_irqrestore(&self->port.lock, flags); in ircomm_tty_open()
437 tty_port_tty_set(&self->port, tty); in ircomm_tty_open()
440 self->line, self->port.count); in ircomm_tty_open()
443 self->port.low_latency = (self->port.flags & ASYNC_LOW_LATENCY) ? 1 : 0; in ircomm_tty_open()
481 struct tty_port *port = &self->port; in ircomm_tty_close() local
486 if (tty_port_close_start(port, tty, filp) == 0) in ircomm_tty_close()
493 tty_port_close_end(port, tty); in ircomm_tty_close()
494 tty_port_tty_set(port, NULL); in ircomm_tty_close()
535 tty = tty_port_tty_get(&self->port); in ircomm_tty_do_softint()
880 if (!test_and_clear_bit(ASYNCB_INITIALIZED, &self->port.flags)) in ircomm_tty_shutdown()
919 struct tty_port *port = &self->port; in ircomm_tty_hangup() local
928 spin_lock_irqsave(&port->lock, flags); in ircomm_tty_hangup()
929 port->flags &= ~ASYNC_NORMAL_ACTIVE; in ircomm_tty_hangup()
930 if (port->tty) { in ircomm_tty_hangup()
931 set_bit(TTY_IO_ERROR, &port->tty->flags); in ircomm_tty_hangup()
932 tty_kref_put(port->tty); in ircomm_tty_hangup()
934 port->tty = NULL; in ircomm_tty_hangup()
935 port->count = 0; in ircomm_tty_hangup()
936 spin_unlock_irqrestore(&port->lock, flags); in ircomm_tty_hangup()
938 wake_up_interruptible(&port->open_wait); in ircomm_tty_hangup()
996 tty = tty_port_tty_get(&self->port); in ircomm_tty_check_modem_status()
1003 if ((self->port.flags & ASYNC_CHECK_CD) && (status & IRCOMM_DELTA_CD)) { in ircomm_tty_check_modem_status()
1008 wake_up_interruptible(&self->port.open_wait); in ircomm_tty_check_modem_status()
1018 if (tty && tty_port_cts_enabled(&self->port)) { in ircomm_tty_check_modem_status()
1025 wake_up_interruptible(&self->port.open_wait); in ircomm_tty_check_modem_status()
1057 tty = tty_port_tty_get(&self->port); in ircomm_tty_data_indication()
1083 tty_insert_flip_string(&self->port, skb->data, skb->len); in ircomm_tty_data_indication()
1084 tty_flip_buffer_push(&self->port); in ircomm_tty_data_indication()
1133 tty = tty_port_tty_get(&self->port); in ircomm_tty_flow_indication()
1255 if (tty_port_cts_enabled(&self->port)) { in ircomm_tty_line_info()
1259 if (self->port.flags & ASYNC_CHECK_CD) { in ircomm_tty_line_info()
1263 if (self->port.flags & ASYNC_INITIALIZED) { in ircomm_tty_line_info()
1267 if (self->port.flags & ASYNC_LOW_LATENCY) { in ircomm_tty_line_info()
1271 if (self->port.flags & ASYNC_CLOSING) { in ircomm_tty_line_info()
1275 if (self->port.flags & ASYNC_NORMAL_ACTIVE) { in ircomm_tty_line_info()
1282 seq_printf(m, "Open count: %d\n", self->port.count); in ircomm_tty_line_info()
1286 tty = tty_port_tty_get(&self->port); in ircomm_tty_line_info()