Lines Matching defs:tty
27 #include <linux/tty.h>
54 static void acm_tty_set_termios(struct tty_struct *tty,
323 if ((difference & USB_CDC_SERIAL_STATE_DCD) && acm->port.tty) {
324 struct tty_ldisc *ld = tty_ldisc_ref(acm->port.tty);
327 ld->ops->dcd_change(acm->port.tty, newctrl & USB_CDC_SERIAL_STATE_DCD);
629 static int acm_tty_install(struct tty_driver *driver, struct tty_struct *tty)
634 acm = acm_get_by_minor(tty->index);
638 retval = tty_standard_install(driver, tty);
647 tty->termios.c_lflag &= ~ECHO;
649 tty->driver_data = acm;
658 static int acm_tty_open(struct tty_struct *tty, struct file *filp)
660 struct acm *acm = tty->driver_data;
662 return tty_port_open(&acm->port, tty, filp);
685 static int acm_port_activate(struct tty_port *port, struct tty_struct *tty)
699 set_bit(TTY_NO_WRITE_SPLIT, &tty->flags);
710 acm_tty_set_termios(tty, NULL);
759 * hold it due to the tty-port initialised flag.
782 static void acm_tty_cleanup(struct tty_struct *tty)
784 struct acm *acm = tty->driver_data;
789 static void acm_tty_hangup(struct tty_struct *tty)
791 struct acm *acm = tty->driver_data;
796 static void acm_tty_close(struct tty_struct *tty, struct file *filp)
798 struct acm *acm = tty->driver_data;
800 tty_port_close(&acm->port, tty, filp);
803 static ssize_t acm_tty_write(struct tty_struct *tty, const u8 *buf,
806 struct acm *acm = tty->driver_data;
815 dev_vdbg(&acm->data->dev, "%zu bytes from tty layer\n", count);
857 static unsigned int acm_tty_write_room(struct tty_struct *tty)
859 struct acm *acm = tty->driver_data;
867 static void acm_tty_flush_buffer(struct tty_struct *tty)
869 struct acm *acm = tty->driver_data;
880 static unsigned int acm_tty_chars_in_buffer(struct tty_struct *tty)
882 struct acm *acm = tty->driver_data;
895 static void acm_tty_throttle(struct tty_struct *tty)
897 struct acm *acm = tty->driver_data;
902 static void acm_tty_unthrottle(struct tty_struct *tty)
904 struct acm *acm = tty->driver_data;
914 static int acm_tty_break_ctl(struct tty_struct *tty, int state)
916 struct acm *acm = tty->driver_data;
929 static int acm_tty_tiocmget(struct tty_struct *tty)
931 struct acm *acm = tty->driver_data;
941 static int acm_tty_tiocmset(struct tty_struct *tty,
944 struct acm *acm = tty->driver_data;
960 static int get_serial_info(struct tty_struct *tty, struct serial_struct *ss)
962 struct acm *acm = tty->driver_data;
972 static int set_serial_info(struct tty_struct *tty, struct serial_struct *ss)
974 struct acm *acm = tty->driver_data;
1041 static int acm_tty_get_icount(struct tty_struct *tty,
1044 struct acm *acm = tty->driver_data;
1057 static int acm_tty_ioctl(struct tty_struct *tty,
1060 struct acm *acm = tty->driver_data;
1078 static void acm_tty_set_termios(struct tty_struct *tty,
1081 struct acm *acm = tty->driver_data;
1082 struct ktermios *termios = &tty->termios;
1086 newline.dwDTERate = cpu_to_le32(tty_get_baud_rate(tty));
1096 if (C_BAUD(tty) == B0) {
1561 struct tty_struct *tty;
1588 tty = tty_port_tty_get(&acm->port);
1589 if (tty) {
1590 tty_vhangup(tty);
1591 tty_kref_put(tty);