Lines Matching refs:tty
36 #define INTR_CHAR(tty) ((tty)->termios.c_cc[VINTR]) argument
37 #define QUIT_CHAR(tty) ((tty)->termios.c_cc[VQUIT]) argument
38 #define ERASE_CHAR(tty) ((tty)->termios.c_cc[VERASE]) argument
39 #define KILL_CHAR(tty) ((tty)->termios.c_cc[VKILL]) argument
40 #define EOF_CHAR(tty) ((tty)->termios.c_cc[VEOF]) argument
41 #define TIME_CHAR(tty) ((tty)->termios.c_cc[VTIME]) argument
42 #define MIN_CHAR(tty) ((tty)->termios.c_cc[VMIN]) argument
43 #define SWTC_CHAR(tty) ((tty)->termios.c_cc[VSWTC]) argument
44 #define START_CHAR(tty) ((tty)->termios.c_cc[VSTART]) argument
45 #define STOP_CHAR(tty) ((tty)->termios.c_cc[VSTOP]) argument
46 #define SUSP_CHAR(tty) ((tty)->termios.c_cc[VSUSP]) argument
47 #define EOL_CHAR(tty) ((tty)->termios.c_cc[VEOL]) argument
48 #define REPRINT_CHAR(tty) ((tty)->termios.c_cc[VREPRINT]) argument
49 #define DISCARD_CHAR(tty) ((tty)->termios.c_cc[VDISCARD]) argument
50 #define WERASE_CHAR(tty) ((tty)->termios.c_cc[VWERASE]) argument
51 #define LNEXT_CHAR(tty) ((tty)->termios.c_cc[VLNEXT]) argument
52 #define EOL2_CHAR(tty) ((tty)->termios.c_cc[VEOL2]) argument
54 #define _I_FLAG(tty, f) ((tty)->termios.c_iflag & (f)) argument
55 #define _O_FLAG(tty, f) ((tty)->termios.c_oflag & (f)) argument
56 #define _C_FLAG(tty, f) ((tty)->termios.c_cflag & (f)) argument
57 #define _L_FLAG(tty, f) ((tty)->termios.c_lflag & (f)) argument
59 #define I_IGNBRK(tty) _I_FLAG((tty), IGNBRK) argument
60 #define I_BRKINT(tty) _I_FLAG((tty), BRKINT) argument
61 #define I_IGNPAR(tty) _I_FLAG((tty), IGNPAR) argument
62 #define I_PARMRK(tty) _I_FLAG((tty), PARMRK) argument
63 #define I_INPCK(tty) _I_FLAG((tty), INPCK) argument
64 #define I_ISTRIP(tty) _I_FLAG((tty), ISTRIP) argument
65 #define I_INLCR(tty) _I_FLAG((tty), INLCR) argument
66 #define I_IGNCR(tty) _I_FLAG((tty), IGNCR) argument
67 #define I_ICRNL(tty) _I_FLAG((tty), ICRNL) argument
68 #define I_IUCLC(tty) _I_FLAG((tty), IUCLC) argument
69 #define I_IXON(tty) _I_FLAG((tty), IXON) argument
70 #define I_IXANY(tty) _I_FLAG((tty), IXANY) argument
71 #define I_IXOFF(tty) _I_FLAG((tty), IXOFF) argument
72 #define I_IMAXBEL(tty) _I_FLAG((tty), IMAXBEL) argument
73 #define I_IUTF8(tty) _I_FLAG((tty), IUTF8) argument
75 #define O_OPOST(tty) _O_FLAG((tty), OPOST) argument
76 #define O_OLCUC(tty) _O_FLAG((tty), OLCUC) argument
77 #define O_ONLCR(tty) _O_FLAG((tty), ONLCR) argument
78 #define O_OCRNL(tty) _O_FLAG((tty), OCRNL) argument
79 #define O_ONOCR(tty) _O_FLAG((tty), ONOCR) argument
80 #define O_ONLRET(tty) _O_FLAG((tty), ONLRET) argument
81 #define O_OFILL(tty) _O_FLAG((tty), OFILL) argument
82 #define O_OFDEL(tty) _O_FLAG((tty), OFDEL) argument
83 #define O_NLDLY(tty) _O_FLAG((tty), NLDLY) argument
84 #define O_CRDLY(tty) _O_FLAG((tty), CRDLY) argument
85 #define O_TABDLY(tty) _O_FLAG((tty), TABDLY) argument
86 #define O_BSDLY(tty) _O_FLAG((tty), BSDLY) argument
87 #define O_VTDLY(tty) _O_FLAG((tty), VTDLY) argument
88 #define O_FFDLY(tty) _O_FLAG((tty), FFDLY) argument
90 #define C_BAUD(tty) _C_FLAG((tty), CBAUD) argument
91 #define C_CSIZE(tty) _C_FLAG((tty), CSIZE) argument
92 #define C_CSTOPB(tty) _C_FLAG((tty), CSTOPB) argument
93 #define C_CREAD(tty) _C_FLAG((tty), CREAD) argument
94 #define C_PARENB(tty) _C_FLAG((tty), PARENB) argument
95 #define C_PARODD(tty) _C_FLAG((tty), PARODD) argument
96 #define C_HUPCL(tty) _C_FLAG((tty), HUPCL) argument
97 #define C_CLOCAL(tty) _C_FLAG((tty), CLOCAL) argument
98 #define C_CIBAUD(tty) _C_FLAG((tty), CIBAUD) argument
99 #define C_CRTSCTS(tty) _C_FLAG((tty), CRTSCTS) argument
100 #define C_CMSPAR(tty) _C_FLAG((tty), CMSPAR) argument
102 #define L_ISIG(tty) _L_FLAG((tty), ISIG) argument
103 #define L_ICANON(tty) _L_FLAG((tty), ICANON) argument
104 #define L_XCASE(tty) _L_FLAG((tty), XCASE) argument
105 #define L_ECHO(tty) _L_FLAG((tty), ECHO) argument
106 #define L_ECHOE(tty) _L_FLAG((tty), ECHOE) argument
107 #define L_ECHOK(tty) _L_FLAG((tty), ECHOK) argument
108 #define L_ECHONL(tty) _L_FLAG((tty), ECHONL) argument
109 #define L_NOFLSH(tty) _L_FLAG((tty), NOFLSH) argument
110 #define L_TOSTOP(tty) _L_FLAG((tty), TOSTOP) argument
111 #define L_ECHOCTL(tty) _L_FLAG((tty), ECHOCTL) argument
112 #define L_ECHOPRT(tty) _L_FLAG((tty), ECHOPRT) argument
113 #define L_ECHOKE(tty) _L_FLAG((tty), ECHOKE) argument
114 #define L_FLUSHO(tty) _L_FLAG((tty), FLUSHO) argument
115 #define L_PENDIN(tty) _L_FLAG((tty), PENDIN) argument
116 #define L_IEXTEN(tty) _L_FLAG((tty), IEXTEN) argument
117 #define L_EXTPROC(tty) _L_FLAG((tty), EXTPROC) argument
213 struct tty_struct *tty; member
242 static inline bool tty_io_nonblock(struct tty_struct *tty, struct file *file) in tty_io_nonblock() argument
245 test_bit(TTY_LDISC_CHANGING, &tty->flags); in tty_io_nonblock()
248 static inline bool tty_io_error(struct tty_struct *tty) in tty_io_error() argument
250 return test_bit(TTY_IO_ERROR, &tty->flags); in tty_io_error()
253 static inline bool tty_throttled(struct tty_struct *tty) in tty_throttled() argument
255 return test_bit(TTY_THROTTLED, &tty->flags); in tty_throttled()
259 extern void tty_kref_put(struct tty_struct *tty);
260 extern struct pid *tty_get_pgrp(struct tty_struct *tty);
263 extern dev_t tty_devnum(struct tty_struct *tty);
268 extern const char *tty_name(const struct tty_struct *tty);
271 extern void tty_kclose(struct tty_struct *tty);
274 static inline void tty_kref_put(struct tty_struct *tty) in tty_kref_put() argument
276 static inline struct pid *tty_get_pgrp(struct tty_struct *tty) in tty_get_pgrp() argument
282 static inline dev_t tty_devnum(struct tty_struct *tty) in tty_devnum() argument
291 static inline const char *tty_name(const struct tty_struct *tty) in tty_name() argument
295 static inline void tty_kclose(struct tty_struct *tty) in tty_kclose() argument
316 static inline struct tty_struct *tty_kref_get(struct tty_struct *tty) in tty_kref_get() argument
318 if (tty) in tty_kref_get()
319 kref_get(&tty->kref); in tty_kref_get()
320 return tty; in tty_kref_get()
323 extern const char *tty_driver_name(const struct tty_struct *tty);
324 extern void tty_wait_until_sent(struct tty_struct *tty, long timeout);
325 extern void stop_tty(struct tty_struct *tty);
326 extern void start_tty(struct tty_struct *tty);
327 extern void tty_write_message(struct tty_struct *tty, char *msg);
328 extern int tty_send_xchar(struct tty_struct *tty, char ch);
329 extern int tty_put_char(struct tty_struct *tty, unsigned char c);
330 extern unsigned int tty_chars_in_buffer(struct tty_struct *tty);
331 extern unsigned int tty_write_room(struct tty_struct *tty);
332 extern void tty_driver_flush_buffer(struct tty_struct *tty);
333 extern void tty_unthrottle(struct tty_struct *tty);
334 extern int tty_throttle_safe(struct tty_struct *tty);
335 extern int tty_unthrottle_safe(struct tty_struct *tty);
336 extern int tty_do_resize(struct tty_struct *tty, struct winsize *ws);
337 extern int tty_get_icount(struct tty_struct *tty,
340 extern void tty_hangup(struct tty_struct *tty);
341 extern void tty_vhangup(struct tty_struct *tty);
343 extern void do_SAK(struct tty_struct *tty);
344 extern void __do_SAK(struct tty_struct *tty);
349 extern void tty_encode_baud_rate(struct tty_struct *tty,
362 static inline speed_t tty_get_baud_rate(struct tty_struct *tty) in tty_get_baud_rate() argument
364 return tty_termios_baud_rate(&tty->termios); in tty_get_baud_rate()
372 extern int tty_set_termios(struct tty_struct *tty, struct ktermios *kt);
374 extern void tty_wakeup(struct tty_struct *tty);
376 extern int tty_mode_ioctl(struct tty_struct *tty, struct file *file,
378 extern int tty_perform_flush(struct tty_struct *tty, unsigned long arg);
380 extern void tty_release_struct(struct tty_struct *tty, int idx);
381 extern void tty_init_termios(struct tty_struct *tty);
382 extern void tty_save_termios(struct tty_struct *tty);
384 struct tty_struct *tty);
415 extern int n_tty_ioctl_helper(struct tty_struct *tty, struct file *file,
420 extern int vt_ioctl(struct tty_struct *tty,
423 extern long vt_compat_ioctl(struct tty_struct *tty,
428 extern void tty_lock(struct tty_struct *tty);
429 extern int tty_lock_interruptible(struct tty_struct *tty);
430 extern void tty_unlock(struct tty_struct *tty);
431 extern void tty_lock_slave(struct tty_struct *tty);
432 extern void tty_unlock_slave(struct tty_struct *tty);
433 extern void tty_set_lock_subclass(struct tty_struct *tty);