Lines Matching refs:tty
315 static int hso_serial_tiocmset(struct tty_struct *tty,
1109 static void _hso_serial_set_termios(struct tty_struct *tty, in _hso_serial_set_termios() argument
1112 struct hso_serial *serial = tty->driver_data; in _hso_serial_set_termios()
1124 tty->termios.c_iflag &= ~IXON; /* disable enable XON/XOFF flow control */ in _hso_serial_set_termios()
1126 tty->termios.c_cflag &= in _hso_serial_set_termios()
1132 tty->termios.c_cflag |= CS8; /* character size 8 bits */ in _hso_serial_set_termios()
1135 tty_encode_baud_rate(tty, 115200, 115200); in _hso_serial_set_termios()
1252 static void hso_unthrottle(struct tty_struct *tty) in hso_unthrottle() argument
1254 struct hso_serial *serial = tty->driver_data; in hso_unthrottle()
1260 static int hso_serial_open(struct tty_struct *tty, struct file *filp) in hso_serial_open() argument
1262 struct hso_serial *serial = get_serial_by_index(tty->index); in hso_serial_open()
1268 tty->driver_data = NULL; in hso_serial_open()
1281 tty->driver_data = serial; in hso_serial_open()
1282 tty_port_tty_set(&serial->port, tty); in hso_serial_open()
1289 _hso_serial_set_termios(tty, NULL); in hso_serial_open()
1308 hso_serial_tiocmset(tty, TIOCM_RTS | TIOCM_DTR, 0); in hso_serial_open()
1315 static void hso_serial_close(struct tty_struct *tty, struct file *filp) in hso_serial_close() argument
1317 struct hso_serial *serial = tty->driver_data; in hso_serial_close()
1351 static int hso_serial_write(struct tty_struct *tty, const unsigned char *buf, in hso_serial_write() argument
1354 struct hso_serial *serial = tty->driver_data; in hso_serial_write()
1384 static int hso_serial_write_room(struct tty_struct *tty) in hso_serial_write_room() argument
1386 struct hso_serial *serial = tty->driver_data; in hso_serial_write_room()
1398 static void hso_serial_cleanup(struct tty_struct *tty) in hso_serial_cleanup() argument
1400 struct hso_serial *serial = tty->driver_data; in hso_serial_cleanup()
1409 static void hso_serial_set_termios(struct tty_struct *tty, struct ktermios *old) in hso_serial_set_termios() argument
1411 struct hso_serial *serial = tty->driver_data; in hso_serial_set_termios()
1416 tty->termios.c_cflag, old->c_cflag); in hso_serial_set_termios()
1421 _hso_serial_set_termios(tty, old); in hso_serial_set_termios()
1423 tty->termios = *old; in hso_serial_set_termios()
1430 static int hso_serial_chars_in_buffer(struct tty_struct *tty) in hso_serial_chars_in_buffer() argument
1432 struct hso_serial *serial = tty->driver_data; in hso_serial_chars_in_buffer()
1612 static int hso_get_count(struct tty_struct *tty, in hso_get_count() argument
1616 struct hso_serial *serial = tty->driver_data; in hso_get_count()
1643 static int hso_serial_tiocmget(struct tty_struct *tty) in hso_serial_tiocmget() argument
1646 struct hso_serial *serial = tty->driver_data; in hso_serial_tiocmget()
1674 static int hso_serial_tiocmset(struct tty_struct *tty, in hso_serial_tiocmset() argument
1680 struct hso_serial *serial = tty->driver_data; in hso_serial_tiocmset()
1719 static int hso_serial_ioctl(struct tty_struct *tty, in hso_serial_ioctl() argument
1722 struct hso_serial *serial = tty->driver_data; in hso_serial_ioctl()
2021 struct tty_struct *tty; in put_rxbuf_data() local
2030 tty = tty_port_tty_get(&serial->port); in put_rxbuf_data()
2032 if (tty && test_bit(TTY_THROTTLED, &tty->flags)) { in put_rxbuf_data()
2033 tty_kref_put(tty); in put_rxbuf_data()
2049 tty_kref_put(tty); in put_rxbuf_data()