Lines Matching defs:tty
27 #include <linux/tty.h>
53 static void acm_tty_set_termios(struct tty_struct *tty,
618 static int acm_tty_install(struct tty_driver *driver, struct tty_struct *tty)
623 acm = acm_get_by_minor(tty->index);
627 retval = tty_standard_install(driver, tty);
636 tty->termios.c_lflag &= ~ECHO;
638 tty->driver_data = acm;
647 static int acm_tty_open(struct tty_struct *tty, struct file *filp)
649 struct acm *acm = tty->driver_data;
651 return tty_port_open(&acm->port, tty, filp);
674 static int acm_port_activate(struct tty_port *port, struct tty_struct *tty)
692 set_bit(TTY_NO_WRITE_SPLIT, &tty->flags);
703 acm_tty_set_termios(tty, NULL);
752 * hold it due to the tty-port initialised flag.
775 static void acm_tty_cleanup(struct tty_struct *tty)
777 struct acm *acm = tty->driver_data;
782 static void acm_tty_hangup(struct tty_struct *tty)
784 struct acm *acm = tty->driver_data;
789 static void acm_tty_close(struct tty_struct *tty, struct file *filp)
791 struct acm *acm = tty->driver_data;
793 tty_port_close(&acm->port, tty, filp);
796 static int acm_tty_write(struct tty_struct *tty,
799 struct acm *acm = tty->driver_data;
808 dev_vdbg(&acm->data->dev, "%d bytes from tty layer\n", count);
850 static int acm_tty_write_room(struct tty_struct *tty)
852 struct acm *acm = tty->driver_data;
860 static int acm_tty_chars_in_buffer(struct tty_struct *tty)
862 struct acm *acm = tty->driver_data;
875 static void acm_tty_throttle(struct tty_struct *tty)
877 struct acm *acm = tty->driver_data;
882 static void acm_tty_unthrottle(struct tty_struct *tty)
884 struct acm *acm = tty->driver_data;
894 static int acm_tty_break_ctl(struct tty_struct *tty, int state)
896 struct acm *acm = tty->driver_data;
909 static int acm_tty_tiocmget(struct tty_struct *tty)
911 struct acm *acm = tty->driver_data;
921 static int acm_tty_tiocmset(struct tty_struct *tty,
924 struct acm *acm = tty->driver_data;
940 static int get_serial_info(struct tty_struct *tty, struct serial_struct *ss)
942 struct acm *acm = tty->driver_data;
952 static int set_serial_info(struct tty_struct *tty, struct serial_struct *ss)
954 struct acm *acm = tty->driver_data;
1021 static int acm_tty_get_icount(struct tty_struct *tty,
1024 struct acm *acm = tty->driver_data;
1037 static int acm_tty_ioctl(struct tty_struct *tty,
1040 struct acm *acm = tty->driver_data;
1058 static void acm_tty_set_termios(struct tty_struct *tty,
1061 struct acm *acm = tty->driver_data;
1062 struct ktermios *termios = &tty->termios;
1066 newline.dwDTERate = cpu_to_le32(tty_get_baud_rate(tty));
1089 if (C_BAUD(tty) == B0) {
1557 struct tty_struct *tty;
1584 tty = tty_port_tty_get(&acm->port);
1585 if (tty) {
1586 tty_vhangup(tty);
1587 tty_kref_put(tty);