Lines Matching refs:tty_struct

159 static void release_tty(struct tty_struct *tty, int idx);
169 static void free_tty_struct(struct tty_struct *tty) in free_tty_struct()
177 static inline struct tty_struct *file_tty(struct file *file) in file_tty()
196 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()
244 const char *tty_name(const struct tty_struct *tty) in tty_name()
252 const char *tty_driver_name(const struct tty_struct *tty) in tty_driver_name()
259 static int tty_paranoia_check(struct tty_struct *tty, struct inode *inode, in tty_paranoia_check()
273 static void check_tty_count(struct tty_struct *tty, const char *routine) in check_tty_count()
455 struct tty_struct *tty = file_tty(file); in tty_show_fdinfo()
509 void tty_wakeup(struct tty_struct *tty) in tty_wakeup()
532 static struct file *tty_release_redirect(struct tty_struct *tty) in tty_release_redirect()
571 static void __tty_hangup(struct tty_struct *tty, int exit_session) in __tty_hangup()
663 struct tty_struct *tty = in do_tty_hangup()
664 container_of(work, struct tty_struct, hangup_work); in do_tty_hangup()
676 void tty_hangup(struct tty_struct *tty) in tty_hangup()
691 void tty_vhangup(struct tty_struct *tty) in tty_vhangup()
706 struct tty_struct *tty; in tty_vhangup_self()
725 void tty_vhangup_session(struct tty_struct *tty) in tty_vhangup_session()
743 void __stop_tty(struct tty_struct *tty) in __stop_tty()
766 void stop_tty(struct tty_struct *tty) in stop_tty()
776 void __start_tty(struct tty_struct *tty) in __start_tty()
797 void start_tty(struct tty_struct *tty) in start_tty()
807 static void tty_update_time(struct tty_struct *tty, bool mtime) in tty_update_time()
844 static ssize_t iterate_tty_read(struct tty_ldisc *ld, struct tty_struct *tty, in iterate_tty_read()
914 struct tty_struct *tty = file_tty(file); in tty_read()
940 void tty_write_unlock(struct tty_struct *tty) in tty_write_unlock()
946 int tty_write_lock(struct tty_struct *tty, bool ndelay) in tty_write_lock()
961 static ssize_t iterate_tty_write(struct tty_ldisc *ld, struct tty_struct *tty, in iterate_tty_write()
1058 void tty_write_message(struct tty_struct *tty, char *msg) in tty_write_message()
1073 struct tty_struct *tty = file_tty(file); in file_tty_write()
1146 int tty_send_xchar(struct tty_struct *tty, u8 ch) in tty_send_xchar()
1223 static struct tty_struct *tty_driver_lookup_tty(struct tty_driver *driver, in tty_driver_lookup_tty()
1226 struct tty_struct *tty; in tty_driver_lookup_tty()
1250 void tty_init_termios(struct tty_struct *tty) in tty_init_termios()
1280 int tty_standard_install(struct tty_driver *driver, struct tty_struct *tty) in tty_standard_install()
1302 struct tty_struct *tty) in tty_driver_install_tty()
1318 static void tty_driver_remove_tty(struct tty_driver *driver, struct tty_struct *tty) in tty_driver_remove_tty()
1335 static int tty_reopen(struct tty_struct *tty) in tty_reopen()
1393 struct tty_struct *tty_init_dev(struct tty_driver *driver, int idx) in tty_init_dev()
1395 struct tty_struct *tty; in tty_init_dev()
1471 void tty_save_termios(struct tty_struct *tty) in tty_save_termios()
1498 static void tty_flush_works(struct tty_struct *tty) in tty_flush_works()
1525 struct tty_struct *tty = in release_one_tty()
1526 container_of(work, struct tty_struct, hangup_work); in release_one_tty()
1547 struct tty_struct *tty = container_of(kref, struct tty_struct, kref); in queue_release_one_tty()
1563 void tty_kref_put(struct tty_struct *tty) in tty_kref_put()
1583 static void release_tty(struct tty_struct *tty, int idx) in release_tty()
1613 static int tty_release_checks(struct tty_struct *tty, int idx) in tty_release_checks()
1631 struct tty_struct *o_tty = tty->link; in tty_release_checks()
1655 void tty_kclose(struct tty_struct *tty) in tty_kclose()
1685 void tty_release_struct(struct tty_struct *tty, int idx) in tty_release_struct()
1726 struct tty_struct *tty = file_tty(filp); in tty_release()
1727 struct tty_struct *o_tty = NULL; in tty_release()
1876 static struct tty_struct *tty_open_current_tty(dev_t device, struct file *filp) in tty_open_current_tty()
1878 struct tty_struct *tty; in tty_open_current_tty()
1953 static struct tty_struct *tty_kopen(dev_t device, int shared) in tty_kopen()
1955 struct tty_struct *tty; in tty_kopen()
2001 struct tty_struct *tty_kopen_exclusive(dev_t device) in tty_kopen_exclusive()
2016 struct tty_struct *tty_kopen_shared(dev_t device) in tty_kopen_shared()
2038 static struct tty_struct *tty_open_by_driver(dev_t device, in tty_open_by_driver()
2041 struct tty_struct *tty; in tty_open_by_driver()
2115 struct tty_struct *tty; in tty_open()
2197 struct tty_struct *tty = file_tty(filp); in tty_poll()
2215 struct tty_struct *tty = file_tty(filp); in __tty_fasync()
2256 struct tty_struct *tty = file_tty(filp); in tty_fasync()
2281 static int tiocsti(struct tty_struct *tty, u8 __user *p) in tiocsti()
2315 static int tiocgwinsz(struct tty_struct *tty, struct winsize __user *arg) in tiocgwinsz()
2334 int tty_do_resize(struct tty_struct *tty, struct winsize *ws) in tty_do_resize()
2370 static int tiocswinsz(struct tty_struct *tty, struct winsize __user *arg) in tiocswinsz()
2431 static int tiocsetd(struct tty_struct *tty, int __user *p) in tiocsetd()
2454 static int tiocgetd(struct tty_struct *tty, int __user *p) in tiocgetd()
2478 static int send_break(struct tty_struct *tty, unsigned int duration) in send_break()
2515 int tty_get_tiocm(struct tty_struct *tty) in tty_get_tiocm()
2536 static int tty_tiocmget(struct tty_struct *tty, int __user *p) in tty_tiocmget()
2558 static int tty_tiocmset(struct tty_struct *tty, unsigned int cmd, in tty_tiocmset()
2597 int tty_get_icount(struct tty_struct *tty, in tty_get_icount()
2609 static int tty_tiocgicount(struct tty_struct *tty, void __user *arg) in tty_tiocgicount()
2623 static int tty_set_serial(struct tty_struct *tty, struct serial_struct *ss) in tty_set_serial()
2640 static int tty_tiocsserial(struct tty_struct *tty, struct serial_struct __user *ss) in tty_tiocsserial()
2650 static int tty_tiocgserial(struct tty_struct *tty, struct serial_struct __user *ss) in tty_tiocgserial()
2668 static struct tty_struct *tty_pair_get_tty(struct tty_struct *tty) in tty_pair_get_tty()
2681 struct tty_struct *tty = file_tty(file); in tty_ioctl()
2682 struct tty_struct *real_tty; in tty_ioctl()
2844 static int compat_tty_tiocsserial(struct tty_struct *tty, in compat_tty_tiocsserial()
2862 static int compat_tty_tiocgserial(struct tty_struct *tty, in compat_tty_tiocgserial()
2889 struct tty_struct *tty = file_tty(file); in tty_compat_ioctl()
3027 void __do_SAK(struct tty_struct *tty) in __do_SAK()
3075 struct tty_struct *tty = in do_SAK_work()
3076 container_of(work, struct tty_struct, SAK_work); in do_SAK_work()
3086 void do_SAK(struct tty_struct *tty) in do_SAK()
3095 static struct device *tty_get_device(struct tty_struct *tty) in tty_get_device()
3112 struct tty_struct *alloc_tty_struct(struct tty_driver *driver, int idx) in alloc_tty_struct()
3114 struct tty_struct *tty; in alloc_tty_struct()
3164 int tty_put_char(struct tty_struct *tty, u8 ch) in tty_put_char()
3515 dev_t tty_devnum(struct tty_struct *tty) in tty_devnum()