Lines Matching refs:tty
341 struct tty_struct *tty; in raw3215_wakeup() local
343 tty = tty_port_tty_get(&raw->port); in raw3215_wakeup()
344 if (tty) { in raw3215_wakeup()
345 tty_wakeup(tty); in raw3215_wakeup()
346 tty_kref_put(tty); in raw3215_wakeup()
353 static void raw3215_next_io(struct raw3215_info *raw, struct tty_struct *tty) in raw3215_next_io() argument
357 if (tty && RAW3215_BUFFER_SIZE - raw->count >= RAW3215_MIN_SPACE) in raw3215_next_io()
369 struct tty_struct *tty; in raw3215_irq() local
375 tty = tty_port_tty_get(&raw->port); in raw3215_irq()
379 raw3215_next_io(raw, tty); in raw3215_irq()
389 raw3215_next_io(raw, tty); in raw3215_irq()
406 if (req->type == RAW3215_READ && tty != NULL) { in raw3215_irq()
411 cchar = ctrlchar_handle(raw->inbuf, count, tty); in raw3215_irq()
448 raw3215_next_io(raw, tty); in raw3215_irq()
460 raw3215_next_io(raw, tty); in raw3215_irq()
463 tty_kref_put(tty); in raw3215_irq()
960 static int tty3215_install(struct tty_driver *driver, struct tty_struct *tty) in tty3215_install() argument
964 raw = raw3215[tty->index]; in tty3215_install()
968 tty->driver_data = raw; in tty3215_install()
970 return tty_port_install(&raw->port, driver, tty); in tty3215_install()
978 static int tty3215_open(struct tty_struct *tty, struct file * filp) in tty3215_open() argument
980 struct raw3215_info *raw = tty->driver_data; in tty3215_open()
983 tty_port_tty_set(&raw->port, tty); in tty3215_open()
1002 static void tty3215_close(struct tty_struct *tty, struct file * filp) in tty3215_close() argument
1006 raw = (struct raw3215_info *) tty->driver_data; in tty3215_close()
1007 if (raw == NULL || tty->count > 1) in tty3215_close()
1009 tty->closing = 1; in tty3215_close()
1013 tty->closing = 0; in tty3215_close()
1020 static int tty3215_write_room(struct tty_struct *tty) in tty3215_write_room() argument
1024 raw = (struct raw3215_info *) tty->driver_data; in tty3215_write_room()
1036 static int tty3215_write(struct tty_struct * tty, in tty3215_write() argument
1042 if (!tty) in tty3215_write()
1044 raw = (struct raw3215_info *) tty->driver_data; in tty3215_write()
1065 static int tty3215_put_char(struct tty_struct *tty, unsigned char ch) in tty3215_put_char() argument
1069 if (!tty) in tty3215_put_char()
1071 raw = (struct raw3215_info *) tty->driver_data; in tty3215_put_char()
1076 static void tty3215_flush_chars(struct tty_struct *tty) in tty3215_flush_chars() argument
1083 static int tty3215_chars_in_buffer(struct tty_struct *tty) in tty3215_chars_in_buffer() argument
1087 raw = (struct raw3215_info *) tty->driver_data; in tty3215_chars_in_buffer()
1091 static void tty3215_flush_buffer(struct tty_struct *tty) in tty3215_flush_buffer() argument
1095 raw = (struct raw3215_info *) tty->driver_data; in tty3215_flush_buffer()
1097 tty_wakeup(tty); in tty3215_flush_buffer()
1103 static void tty3215_throttle(struct tty_struct * tty) in tty3215_throttle() argument
1107 raw = (struct raw3215_info *) tty->driver_data; in tty3215_throttle()
1114 static void tty3215_unthrottle(struct tty_struct * tty) in tty3215_unthrottle() argument
1119 raw = (struct raw3215_info *) tty->driver_data; in tty3215_unthrottle()
1131 static void tty3215_stop(struct tty_struct *tty) in tty3215_stop() argument
1135 raw = (struct raw3215_info *) tty->driver_data; in tty3215_stop()
1142 static void tty3215_start(struct tty_struct *tty) in tty3215_start() argument
1147 raw = (struct raw3215_info *) tty->driver_data; in tty3215_start()