Lines Matching refs:tty
239 struct tty_struct *tty, struct hvsi_struct **to_handshake) in hvsi_recv_control() argument
249 if (tty && !C_CLOCAL(tty)) in hvsi_recv_control()
250 tty_hangup(tty); in hvsi_recv_control()
401 static int hvsi_load_chunk(struct hvsi_struct *hp, struct tty_struct *tty, in hvsi_load_chunk() argument
444 hvsi_recv_control(hp, packet, tty, handshake); in hvsi_load_chunk()
492 struct tty_struct *tty; in hvsi_interrupt() local
498 tty = tty_port_tty_get(&hp->port); in hvsi_interrupt()
502 again = hvsi_load_chunk(hp, tty, &handshake); in hvsi_interrupt()
512 if (tty && hp->n_throttle && !test_bit(TTY_THROTTLED, &tty->flags)) { in hvsi_interrupt()
520 tty_kref_put(tty); in hvsi_interrupt()
712 static int hvsi_open(struct tty_struct *tty, struct file *filp) in hvsi_open() argument
720 hp = &hvsi_ports[tty->index]; in hvsi_open()
722 tty->driver_data = hp; in hvsi_open()
728 tty_port_tty_set(&hp->port, tty); in hvsi_open()
740 printk(KERN_ERR "%s: HVSI handshaking failed\n", tty->name); in hvsi_open()
746 printk(KERN_ERR "%s: couldn't get initial modem flags\n", tty->name); in hvsi_open()
752 printk(KERN_ERR "%s: couldn't set DTR\n", tty->name); in hvsi_open()
775 static void hvsi_close(struct tty_struct *tty, struct file *filp) in hvsi_close() argument
777 struct hvsi_struct *hp = tty->driver_data; in hvsi_close()
799 tty->closing = 1; in hvsi_close()
827 static void hvsi_hangup(struct tty_struct *tty) in hvsi_hangup() argument
829 struct hvsi_struct *hp = tty->driver_data; in hvsi_hangup()
906 static int hvsi_write_room(struct tty_struct *tty) in hvsi_write_room() argument
908 struct hvsi_struct *hp = tty->driver_data; in hvsi_write_room()
913 static int hvsi_chars_in_buffer(struct tty_struct *tty) in hvsi_chars_in_buffer() argument
915 struct hvsi_struct *hp = tty->driver_data; in hvsi_chars_in_buffer()
920 static int hvsi_write(struct tty_struct *tty, in hvsi_write() argument
923 struct hvsi_struct *hp = tty->driver_data; in hvsi_write()
944 while ((count > 0) && (hvsi_write_room(tty) > 0)) { in hvsi_write()
945 int chunksize = min(count, hvsi_write_room(tty)); in hvsi_write()
979 static void hvsi_throttle(struct tty_struct *tty) in hvsi_throttle() argument
981 struct hvsi_struct *hp = tty->driver_data; in hvsi_throttle()
988 static void hvsi_unthrottle(struct tty_struct *tty) in hvsi_unthrottle() argument
990 struct hvsi_struct *hp = tty->driver_data; in hvsi_unthrottle()
1006 static int hvsi_tiocmget(struct tty_struct *tty) in hvsi_tiocmget() argument
1008 struct hvsi_struct *hp = tty->driver_data; in hvsi_tiocmget()
1014 static int hvsi_tiocmset(struct tty_struct *tty, in hvsi_tiocmset() argument
1017 struct hvsi_struct *hp = tty->driver_data; in hvsi_tiocmset()