Lines Matching refs:tty_struct

13  * tty_struct and tty_queue structures.  Previously there was an array
14 * of 256 tty_struct's which was statically allocated, and the
159 static void release_tty(struct tty_struct *tty, int idx);
169 static void free_tty_struct(struct tty_struct *tty)
177 static inline struct tty_struct *file_tty(struct file *file)
196 void tty_add_file(struct tty_struct *tty, struct file *file)
227 struct tty_struct *tty = priv->tty;
244 const char *tty_name(const struct tty_struct *tty)
252 const char *tty_driver_name(const struct tty_struct *tty)
259 static int tty_paranoia_check(struct tty_struct *tty, struct inode *inode,
273 static void check_tty_count(struct tty_struct *tty, const char *routine)
458 struct tty_struct *tty = file_tty(file);
515 void tty_wakeup(struct tty_struct *tty)
538 static struct file *tty_release_redirect(struct tty_struct *tty)
577 static void __tty_hangup(struct tty_struct *tty, int exit_session)
669 struct tty_struct *tty =
670 container_of(work, struct tty_struct, hangup_work);
682 void tty_hangup(struct tty_struct *tty)
697 void tty_vhangup(struct tty_struct *tty)
712 struct tty_struct *tty;
731 void tty_vhangup_session(struct tty_struct *tty)
749 void __stop_tty(struct tty_struct *tty)
772 void stop_tty(struct tty_struct *tty)
782 void __start_tty(struct tty_struct *tty)
803 void start_tty(struct tty_struct *tty)
813 static void tty_update_time(struct tty_struct *tty, bool mtime)
850 static ssize_t iterate_tty_read(struct tty_ldisc *ld, struct tty_struct *tty,
920 struct tty_struct *tty = file_tty(file);
946 void tty_write_unlock(struct tty_struct *tty)
952 int tty_write_lock(struct tty_struct *tty, bool ndelay)
967 static ssize_t iterate_tty_write(struct tty_ldisc *ld, struct tty_struct *tty,
1053 * @tty: the destination tty_struct
1064 void tty_write_message(struct tty_struct *tty, char *msg)
1079 struct tty_struct *tty = file_tty(file);
1152 int tty_send_xchar(struct tty_struct *tty, u8 ch)
1229 static struct tty_struct *tty_driver_lookup_tty(struct tty_driver *driver,
1232 struct tty_struct *tty;
1256 void tty_init_termios(struct tty_struct *tty)
1286 int tty_standard_install(struct tty_driver *driver, struct tty_struct *tty)
1308 struct tty_struct *tty)
1324 static void tty_driver_remove_tty(struct tty_driver *driver, struct tty_struct *tty)
1341 static int tty_reopen(struct tty_struct *tty)
1399 struct tty_struct *tty_init_dev(struct tty_driver *driver, int idx)
1401 struct tty_struct *tty;
1477 void tty_save_termios(struct tty_struct *tty)
1504 static void tty_flush_works(struct tty_struct *tty)
1531 struct tty_struct *tty =
1532 container_of(work, struct tty_struct, hangup_work);
1553 struct tty_struct *tty = container_of(kref, struct tty_struct, kref);
1569 void tty_kref_put(struct tty_struct *tty)
1589 static void release_tty(struct tty_struct *tty, int idx)
1619 static int tty_release_checks(struct tty_struct *tty, int idx)
1637 struct tty_struct *o_tty = tty->link;
1661 void tty_kclose(struct tty_struct *tty)
1691 void tty_release_struct(struct tty_struct *tty, int idx)
1732 struct tty_struct *tty = file_tty(filp);
1733 struct tty_struct *o_tty = NULL;
1882 static struct tty_struct *tty_open_current_tty(dev_t device, struct file *filp)
1884 struct tty_struct *tty;
1959 static struct tty_struct *tty_kopen(dev_t device, int shared)
1961 struct tty_struct *tty;
2005 * Return: the locked initialized &tty_struct
2007 struct tty_struct *tty_kopen_exclusive(dev_t device)
2022 struct tty_struct *tty_kopen_shared(dev_t device)
2042 * Return: the locked initialized or re-opened &tty_struct
2044 static struct tty_struct *tty_open_by_driver(dev_t device,
2047 struct tty_struct *tty;
2121 struct tty_struct *tty;
2203 struct tty_struct *tty = file_tty(filp);
2221 struct tty_struct *tty = file_tty(filp);
2256 struct tty_struct *tty = file_tty(filp);
2281 static int tiocsti(struct tty_struct *tty, u8 __user *p)
2315 static int tiocgwinsz(struct tty_struct *tty, struct winsize __user *arg)
2334 int tty_do_resize(struct tty_struct *tty, struct winsize *ws)
2370 static int tiocswinsz(struct tty_struct *tty, struct winsize __user *arg)
2431 static int tiocsetd(struct tty_struct *tty, int __user *p)
2454 static int tiocgetd(struct tty_struct *tty, int __user *p)
2478 static int send_break(struct tty_struct *tty, unsigned int duration)
2515 int tty_get_tiocm(struct tty_struct *tty)
2536 static int tty_tiocmget(struct tty_struct *tty, int __user *p)
2558 static int tty_tiocmset(struct tty_struct *tty, unsigned int cmd,
2597 int tty_get_icount(struct tty_struct *tty,
2609 static int tty_tiocgicount(struct tty_struct *tty, void __user *arg)
2623 static int tty_set_serial(struct tty_struct *tty, struct serial_struct *ss)
2640 static int tty_tiocsserial(struct tty_struct *tty, struct serial_struct __user *ss)
2650 static int tty_tiocgserial(struct tty_struct *tty, struct serial_struct __user *ss)
2668 static struct tty_struct *tty_pair_get_tty(struct tty_struct *tty)
2681 struct tty_struct *tty = file_tty(file);
2682 struct tty_struct *real_tty;
2844 static int compat_tty_tiocsserial(struct tty_struct *tty,
2862 static int compat_tty_tiocgserial(struct tty_struct *tty,
2889 struct tty_struct *tty = file_tty(file);
3027 void __do_SAK(struct tty_struct *tty)
3075 struct tty_struct *tty =
3076 container_of(work, struct tty_struct, SAK_work);
3086 void do_SAK(struct tty_struct *tty)
3095 static struct device *tty_get_device(struct tty_struct *tty)
3112 struct tty_struct *alloc_tty_struct(struct tty_driver *driver, int idx)
3114 struct tty_struct *tty;
3164 int tty_put_char(struct tty_struct *tty, u8 ch)
3515 dev_t tty_devnum(struct tty_struct *tty)