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()
399 static int hvsi_load_chunk(struct hvsi_struct *hp, struct tty_struct *tty, in hvsi_load_chunk() argument
442 hvsi_recv_control(hp, packet, tty, handshake); in hvsi_load_chunk()
490 struct tty_struct *tty; in hvsi_interrupt() local
496 tty = tty_port_tty_get(&hp->port); in hvsi_interrupt()
500 again = hvsi_load_chunk(hp, tty, &handshake); in hvsi_interrupt()
510 if (tty && hp->n_throttle && !test_bit(TTY_THROTTLED, &tty->flags)) { in hvsi_interrupt()
518 tty_kref_put(tty); in hvsi_interrupt()
710 static int hvsi_open(struct tty_struct *tty, struct file *filp) in hvsi_open() argument
718 hp = &hvsi_ports[tty->index]; in hvsi_open()
720 tty->driver_data = hp; in hvsi_open()
726 tty_port_tty_set(&hp->port, tty); in hvsi_open()
738 printk(KERN_ERR "%s: HVSI handshaking failed\n", tty->name); in hvsi_open()
744 printk(KERN_ERR "%s: couldn't get initial modem flags\n", tty->name); in hvsi_open()
750 printk(KERN_ERR "%s: couldn't set DTR\n", tty->name); in hvsi_open()
773 static void hvsi_close(struct tty_struct *tty, struct file *filp) in hvsi_close() argument
775 struct hvsi_struct *hp = tty->driver_data; in hvsi_close()
797 tty->closing = 1; in hvsi_close()
825 static void hvsi_hangup(struct tty_struct *tty) in hvsi_hangup() argument
827 struct hvsi_struct *hp = tty->driver_data; in hvsi_hangup()
904 static int hvsi_write_room(struct tty_struct *tty) in hvsi_write_room() argument
906 struct hvsi_struct *hp = tty->driver_data; in hvsi_write_room()
911 static int hvsi_chars_in_buffer(struct tty_struct *tty) in hvsi_chars_in_buffer() argument
913 struct hvsi_struct *hp = tty->driver_data; in hvsi_chars_in_buffer()
918 static int hvsi_write(struct tty_struct *tty, in hvsi_write() argument
921 struct hvsi_struct *hp = tty->driver_data; in hvsi_write()
942 while ((count > 0) && (hvsi_write_room(tty) > 0)) { in hvsi_write()
943 int chunksize = min(count, hvsi_write_room(tty)); in hvsi_write()
977 static void hvsi_throttle(struct tty_struct *tty) in hvsi_throttle() argument
979 struct hvsi_struct *hp = tty->driver_data; in hvsi_throttle()
986 static void hvsi_unthrottle(struct tty_struct *tty) in hvsi_unthrottle() argument
988 struct hvsi_struct *hp = tty->driver_data; in hvsi_unthrottle()
1004 static int hvsi_tiocmget(struct tty_struct *tty) in hvsi_tiocmget() argument
1006 struct hvsi_struct *hp = tty->driver_data; in hvsi_tiocmget()
1012 static int hvsi_tiocmset(struct tty_struct *tty, in hvsi_tiocmset() argument
1015 struct hvsi_struct *hp = tty->driver_data; in hvsi_tiocmset()