Lines Matching refs:tty_struct
158 static void release_tty(struct tty_struct *tty, int idx);
169 static void free_tty_struct(struct tty_struct *tty) in free_tty_struct()
178 static inline struct tty_struct *file_tty(struct file *file) in file_tty()
197 void tty_add_file(struct tty_struct *tty, struct file *file) in tty_add_file()
227 struct tty_struct *tty = priv->tty; in tty_del_file()
245 const char *tty_name(const struct tty_struct *tty) in tty_name()
254 const char *tty_driver_name(const struct tty_struct *tty) in tty_driver_name()
261 static int tty_paranoia_check(struct tty_struct *tty, struct inode *inode, in tty_paranoia_check()
280 static int check_tty_count(struct tty_struct *tty, const char *routine) in check_tty_count()
470 struct tty_struct *tty = file_tty(file); in tty_show_fdinfo()
524 void tty_wakeup(struct tty_struct *tty) in tty_wakeup()
563 static void __tty_hangup(struct tty_struct *tty, int exit_session) in __tty_hangup()
660 struct tty_struct *tty = in do_tty_hangup()
661 container_of(work, struct tty_struct, hangup_work); in do_tty_hangup()
674 void tty_hangup(struct tty_struct *tty) in tty_hangup()
691 void tty_vhangup(struct tty_struct *tty) in tty_vhangup()
708 struct tty_struct *tty; in tty_vhangup_self()
728 void tty_vhangup_session(struct tty_struct *tty) in tty_vhangup_session()
766 void __stop_tty(struct tty_struct *tty) in __stop_tty()
775 void stop_tty(struct tty_struct *tty) in stop_tty()
797 void __start_tty(struct tty_struct *tty) in __start_tty()
807 void start_tty(struct tty_struct *tty) in start_tty()
851 struct tty_struct *tty = file_tty(file); in tty_read()
876 static void tty_write_unlock(struct tty_struct *tty) in tty_write_unlock()
882 static int tty_write_lock(struct tty_struct *tty, int ndelay) in tty_write_lock()
898 ssize_t (*write)(struct tty_struct *, struct file *, const unsigned char *, size_t), in do_tty_write() argument
899 struct tty_struct *tty, in do_tty_write()
992 void tty_write_message(struct tty_struct *tty, char *msg) in tty_write_message()
1025 struct tty_struct *tty = file_tty(file); in tty_write()
1074 int tty_send_xchar(struct tty_struct *tty, char ch) in tty_send_xchar()
1151 static struct tty_struct *tty_driver_lookup_tty(struct tty_driver *driver, in tty_driver_lookup_tty()
1154 struct tty_struct *tty; in tty_driver_lookup_tty()
1177 void tty_init_termios(struct tty_struct *tty) in tty_init_termios()
1199 int tty_standard_install(struct tty_driver *driver, struct tty_struct *tty) in tty_standard_install()
1222 struct tty_struct *tty) in tty_driver_install_tty()
1238 static void tty_driver_remove_tty(struct tty_driver *driver, struct tty_struct *tty) in tty_driver_remove_tty()
1255 static int tty_reopen(struct tty_struct *tty) in tty_reopen()
1306 struct tty_struct *tty_init_dev(struct tty_driver *driver, int idx) in tty_init_dev()
1308 struct tty_struct *tty; in tty_init_dev()
1375 static void tty_free_termios(struct tty_struct *tty) in tty_free_termios()
1401 static void tty_flush_works(struct tty_struct *tty) in tty_flush_works()
1428 struct tty_struct *tty = in release_one_tty()
1429 container_of(work, struct tty_struct, hangup_work); in release_one_tty()
1451 struct tty_struct *tty = container_of(kref, struct tty_struct, kref); in queue_release_one_tty()
1467 void tty_kref_put(struct tty_struct *tty) in tty_kref_put()
1486 static void release_tty(struct tty_struct *tty, int idx) in release_tty()
1515 static int tty_release_checks(struct tty_struct *tty, int idx) in tty_release_checks()
1533 struct tty_struct *o_tty = tty->link; in tty_release_checks()
1557 void tty_kclose(struct tty_struct *tty) in tty_kclose()
1589 void tty_release_struct(struct tty_struct *tty, int idx) in tty_release_struct()
1633 struct tty_struct *tty = file_tty(filp); in tty_release()
1634 struct tty_struct *o_tty = NULL; in tty_release()
1782 static struct tty_struct *tty_open_current_tty(dev_t device, struct file *filp) in tty_open_current_tty()
1784 struct tty_struct *tty; in tty_open_current_tty()
1869 struct tty_struct *tty_kopen(dev_t device) in tty_kopen()
1871 struct tty_struct *tty; in tty_kopen()
1920 static struct tty_struct *tty_open_by_driver(dev_t device, struct inode *inode, in tty_open_by_driver()
1923 struct tty_struct *tty; in tty_open_by_driver()
1998 struct tty_struct *tty; in tty_open()
2082 struct tty_struct *tty = file_tty(filp); in tty_poll()
2100 struct tty_struct *tty = file_tty(filp); in __tty_fasync()
2135 struct tty_struct *tty = file_tty(filp); in tty_fasync()
2163 static int tiocsti(struct tty_struct *tty, char __user *p) in tiocsti()
2192 static int tiocgwinsz(struct tty_struct *tty, struct winsize __user *arg) in tiocgwinsz()
2213 int tty_do_resize(struct tty_struct *tty, struct winsize *ws) in tty_do_resize()
2250 static int tiocswinsz(struct tty_struct *tty, struct winsize __user *arg) in tiocswinsz()
2333 static int tiocsetd(struct tty_struct *tty, int __user *p) in tiocsetd()
2357 static int tiocgetd(struct tty_struct *tty, int __user *p) in tiocgetd()
2383 static int send_break(struct tty_struct *tty, unsigned int duration) in send_break()
2422 static int tty_tiocmget(struct tty_struct *tty, int __user *p) in tty_tiocmget()
2447 static int tty_tiocmset(struct tty_struct *tty, unsigned int cmd, in tty_tiocmset()
2477 static int tty_tiocgicount(struct tty_struct *tty, void __user *arg) in tty_tiocgicount()
2513 static struct tty_struct *tty_pair_get_tty(struct tty_struct *tty) in tty_pair_get_tty()
2526 struct tty_struct *tty = file_tty(file); in tty_ioctl()
2527 struct tty_struct *real_tty; in tty_ioctl()
2672 struct tty_struct *tty = file_tty(file); in tty_compat_ioctl()
2724 void __do_SAK(struct tty_struct *tty) in __do_SAK()
2772 struct tty_struct *tty = in do_SAK_work()
2773 container_of(work, struct tty_struct, SAK_work); in do_SAK_work()
2783 void do_SAK(struct tty_struct *tty) in do_SAK()
2799 static struct device *tty_get_device(struct tty_struct *tty) in tty_get_device()
2814 struct tty_struct *alloc_tty_struct(struct tty_driver *driver, int idx) in alloc_tty_struct()
2816 struct tty_struct *tty; in alloc_tty_struct()
2866 int tty_put_char(struct tty_struct *tty, unsigned char ch) in tty_put_char()
3232 dev_t tty_devnum(struct tty_struct *tty) in tty_devnum()