Lines Matching refs:port
18 * Use newest tty open/close port helpers and install hooks
139 struct tty_port port; /* The tty bound to this DLCI if there is one */
818 tty_port_tty_wakeup(&dlci->port);
824 tty_port_tty_wakeup(&gsm->dlci[i]->port);
954 tty_port_tty_wakeup(&dlci->port);
1190 tty_insert_flip_char(&dlci->port, 0, TTY_BREAK);
1227 /* Closed port, or invalid ? */
1247 tty = tty_port_tty_get(&dlci->port);
1269 struct tty_port *port;
1285 /* Closed port, or invalid ? */
1293 port = &gsm->dlci[addr]->port;
1296 tty_insert_flip_char(port, 0, TTY_OVERRUN);
1298 tty_insert_flip_char(port, 0, TTY_PARITY);
1300 tty_insert_flip_char(port, 0, TTY_FRAME);
1302 tty_flip_buffer_push(port);
1370 case CMD_RPN: /* Remote port negotiation */
1561 tty_port_tty_hangup(&dlci->port, false);
1566 tty_port_set_initialized(&dlci->port, 0);
1567 wake_up_interruptible(&dlci->port.open_wait);
1601 * in which case an opening port goes back to closed and a closing port
1722 struct tty_port *port = &dlci->port;
1741 tty = tty_port_tty_get(port);
1749 tty_insert_flip_string(port, data, len);
1750 tty_flip_buffer_push(port);
1818 tty_port_init(&dlci->port);
1819 dlci->port.ops = &gsm_port_ops;
1837 * @port: tty port for DLCI to free
1843 static void gsm_dlci_free(struct tty_port *port)
1845 struct gsm_dlci *dlci = container_of(port, struct gsm_dlci, port);
1857 tty_port_get(&dlci->port);
1862 tty_port_put(&dlci->port);
1878 struct tty_struct *tty = tty_port_tty_get(&dlci->port);
1891 tty_port_tty_set(&dlci->port, NULL);
2637 /* The ldisc locks and closes the port before calling our close. This
3071 static int gsm_carrier_raised(struct tty_port *port)
3073 struct gsm_dlci *dlci = container_of(port, struct gsm_dlci, port);
3093 static void gsm_dtr_rts(struct tty_port *port, int onoff)
3095 struct gsm_dlci *dlci = container_of(port, struct gsm_dlci, port);
3152 ret = tty_port_install(&dlci->port, driver, tty);
3172 struct tty_port *port = &dlci->port;
3175 port->count++;
3176 tty_port_tty_set(port, tty);
3181 tty_port_set_initialized(port, 1);
3188 return tty_port_block_til_ready(port, tty, filp);
3202 if (tty_port_close_start(&dlci->port, tty, filp) == 0)
3205 if (tty_port_initialized(&dlci->port) && C_HUPCL(tty))
3206 tty_port_lower_dtr_rts(&dlci->port);
3207 tty_port_close_end(&dlci->port, tty);
3208 tty_port_tty_set(&dlci->port, NULL);
3217 tty_port_hangup(&dlci->port);