Lines Matching refs:tty

35 #define INTR_CHAR(tty) ((tty)->termios.c_cc[VINTR])  argument
36 #define QUIT_CHAR(tty) ((tty)->termios.c_cc[VQUIT]) argument
37 #define ERASE_CHAR(tty) ((tty)->termios.c_cc[VERASE]) argument
38 #define KILL_CHAR(tty) ((tty)->termios.c_cc[VKILL]) argument
39 #define EOF_CHAR(tty) ((tty)->termios.c_cc[VEOF]) argument
40 #define TIME_CHAR(tty) ((tty)->termios.c_cc[VTIME]) argument
41 #define MIN_CHAR(tty) ((tty)->termios.c_cc[VMIN]) argument
42 #define SWTC_CHAR(tty) ((tty)->termios.c_cc[VSWTC]) argument
43 #define START_CHAR(tty) ((tty)->termios.c_cc[VSTART]) argument
44 #define STOP_CHAR(tty) ((tty)->termios.c_cc[VSTOP]) argument
45 #define SUSP_CHAR(tty) ((tty)->termios.c_cc[VSUSP]) argument
46 #define EOL_CHAR(tty) ((tty)->termios.c_cc[VEOL]) argument
47 #define REPRINT_CHAR(tty) ((tty)->termios.c_cc[VREPRINT]) argument
48 #define DISCARD_CHAR(tty) ((tty)->termios.c_cc[VDISCARD]) argument
49 #define WERASE_CHAR(tty) ((tty)->termios.c_cc[VWERASE]) argument
50 #define LNEXT_CHAR(tty) ((tty)->termios.c_cc[VLNEXT]) argument
51 #define EOL2_CHAR(tty) ((tty)->termios.c_cc[VEOL2]) argument
53 #define _I_FLAG(tty, f) ((tty)->termios.c_iflag & (f)) argument
54 #define _O_FLAG(tty, f) ((tty)->termios.c_oflag & (f)) argument
55 #define _C_FLAG(tty, f) ((tty)->termios.c_cflag & (f)) argument
56 #define _L_FLAG(tty, f) ((tty)->termios.c_lflag & (f)) argument
58 #define I_IGNBRK(tty) _I_FLAG((tty), IGNBRK) argument
59 #define I_BRKINT(tty) _I_FLAG((tty), BRKINT) argument
60 #define I_IGNPAR(tty) _I_FLAG((tty), IGNPAR) argument
61 #define I_PARMRK(tty) _I_FLAG((tty), PARMRK) argument
62 #define I_INPCK(tty) _I_FLAG((tty), INPCK) argument
63 #define I_ISTRIP(tty) _I_FLAG((tty), ISTRIP) argument
64 #define I_INLCR(tty) _I_FLAG((tty), INLCR) argument
65 #define I_IGNCR(tty) _I_FLAG((tty), IGNCR) argument
66 #define I_ICRNL(tty) _I_FLAG((tty), ICRNL) argument
67 #define I_IUCLC(tty) _I_FLAG((tty), IUCLC) argument
68 #define I_IXON(tty) _I_FLAG((tty), IXON) argument
69 #define I_IXANY(tty) _I_FLAG((tty), IXANY) argument
70 #define I_IXOFF(tty) _I_FLAG((tty), IXOFF) argument
71 #define I_IMAXBEL(tty) _I_FLAG((tty), IMAXBEL) argument
72 #define I_IUTF8(tty) _I_FLAG((tty), IUTF8) argument
74 #define O_OPOST(tty) _O_FLAG((tty), OPOST) argument
75 #define O_OLCUC(tty) _O_FLAG((tty), OLCUC) argument
76 #define O_ONLCR(tty) _O_FLAG((tty), ONLCR) argument
77 #define O_OCRNL(tty) _O_FLAG((tty), OCRNL) argument
78 #define O_ONOCR(tty) _O_FLAG((tty), ONOCR) argument
79 #define O_ONLRET(tty) _O_FLAG((tty), ONLRET) argument
80 #define O_OFILL(tty) _O_FLAG((tty), OFILL) argument
81 #define O_OFDEL(tty) _O_FLAG((tty), OFDEL) argument
82 #define O_NLDLY(tty) _O_FLAG((tty), NLDLY) argument
83 #define O_CRDLY(tty) _O_FLAG((tty), CRDLY) argument
84 #define O_TABDLY(tty) _O_FLAG((tty), TABDLY) argument
85 #define O_BSDLY(tty) _O_FLAG((tty), BSDLY) argument
86 #define O_VTDLY(tty) _O_FLAG((tty), VTDLY) argument
87 #define O_FFDLY(tty) _O_FLAG((tty), FFDLY) argument
89 #define C_BAUD(tty) _C_FLAG((tty), CBAUD) argument
90 #define C_CSIZE(tty) _C_FLAG((tty), CSIZE) argument
91 #define C_CSTOPB(tty) _C_FLAG((tty), CSTOPB) argument
92 #define C_CREAD(tty) _C_FLAG((tty), CREAD) argument
93 #define C_PARENB(tty) _C_FLAG((tty), PARENB) argument
94 #define C_PARODD(tty) _C_FLAG((tty), PARODD) argument
95 #define C_HUPCL(tty) _C_FLAG((tty), HUPCL) argument
96 #define C_CLOCAL(tty) _C_FLAG((tty), CLOCAL) argument
97 #define C_CIBAUD(tty) _C_FLAG((tty), CIBAUD) argument
98 #define C_CRTSCTS(tty) _C_FLAG((tty), CRTSCTS) argument
99 #define C_CMSPAR(tty) _C_FLAG((tty), CMSPAR) argument
101 #define L_ISIG(tty) _L_FLAG((tty), ISIG) argument
102 #define L_ICANON(tty) _L_FLAG((tty), ICANON) argument
103 #define L_XCASE(tty) _L_FLAG((tty), XCASE) argument
104 #define L_ECHO(tty) _L_FLAG((tty), ECHO) argument
105 #define L_ECHOE(tty) _L_FLAG((tty), ECHOE) argument
106 #define L_ECHOK(tty) _L_FLAG((tty), ECHOK) argument
107 #define L_ECHONL(tty) _L_FLAG((tty), ECHONL) argument
108 #define L_NOFLSH(tty) _L_FLAG((tty), NOFLSH) argument
109 #define L_TOSTOP(tty) _L_FLAG((tty), TOSTOP) argument
110 #define L_ECHOCTL(tty) _L_FLAG((tty), ECHOCTL) argument
111 #define L_ECHOPRT(tty) _L_FLAG((tty), ECHOPRT) argument
112 #define L_ECHOKE(tty) _L_FLAG((tty), ECHOKE) argument
113 #define L_FLUSHO(tty) _L_FLAG((tty), FLUSHO) argument
114 #define L_PENDIN(tty) _L_FLAG((tty), PENDIN) argument
115 #define L_IEXTEN(tty) _L_FLAG((tty), IEXTEN) argument
116 #define L_EXTPROC(tty) _L_FLAG((tty), EXTPROC) argument
255 struct tty_struct *tty; member
327 static inline bool tty_io_nonblock(struct tty_struct *tty, struct file *file) in tty_io_nonblock() argument
330 test_bit(TTY_LDISC_CHANGING, &tty->flags); in tty_io_nonblock()
333 static inline bool tty_io_error(struct tty_struct *tty) in tty_io_error() argument
335 return test_bit(TTY_IO_ERROR, &tty->flags); in tty_io_error()
338 static inline bool tty_throttled(struct tty_struct *tty) in tty_throttled() argument
340 return test_bit(TTY_THROTTLED, &tty->flags); in tty_throttled()
344 void tty_kref_put(struct tty_struct *tty);
345 struct pid *tty_get_pgrp(struct tty_struct *tty);
348 dev_t tty_devnum(struct tty_struct *tty);
353 const char *tty_name(const struct tty_struct *tty);
356 void tty_kclose(struct tty_struct *tty);
359 static inline void tty_kref_put(struct tty_struct *tty) in tty_kref_put() argument
361 static inline struct pid *tty_get_pgrp(struct tty_struct *tty) in tty_get_pgrp() argument
367 static inline dev_t tty_devnum(struct tty_struct *tty) in tty_devnum() argument
376 static inline const char *tty_name(const struct tty_struct *tty) in tty_name() argument
380 static inline void tty_kclose(struct tty_struct *tty) in tty_kclose() argument
401 static inline struct tty_struct *tty_kref_get(struct tty_struct *tty) in tty_kref_get() argument
403 if (tty) in tty_kref_get()
404 kref_get(&tty->kref); in tty_kref_get()
405 return tty; in tty_kref_get()
408 const char *tty_driver_name(const struct tty_struct *tty);
409 void tty_wait_until_sent(struct tty_struct *tty, long timeout);
410 void stop_tty(struct tty_struct *tty);
411 void start_tty(struct tty_struct *tty);
412 void tty_write_message(struct tty_struct *tty, char *msg);
413 int tty_send_xchar(struct tty_struct *tty, char ch);
414 int tty_put_char(struct tty_struct *tty, unsigned char c);
415 unsigned int tty_chars_in_buffer(struct tty_struct *tty);
416 unsigned int tty_write_room(struct tty_struct *tty);
417 void tty_driver_flush_buffer(struct tty_struct *tty);
418 void tty_unthrottle(struct tty_struct *tty);
419 int tty_throttle_safe(struct tty_struct *tty);
420 int tty_unthrottle_safe(struct tty_struct *tty);
421 int tty_do_resize(struct tty_struct *tty, struct winsize *ws);
422 int tty_get_icount(struct tty_struct *tty,
425 void tty_hangup(struct tty_struct *tty);
426 void tty_vhangup(struct tty_struct *tty);
428 void do_SAK(struct tty_struct *tty);
429 void __do_SAK(struct tty_struct *tty);
434 void tty_encode_baud_rate(struct tty_struct *tty, speed_t ibaud,
447 static inline speed_t tty_get_baud_rate(struct tty_struct *tty) in tty_get_baud_rate() argument
449 return tty_termios_baud_rate(&tty->termios); in tty_get_baud_rate()
457 int tty_set_termios(struct tty_struct *tty, struct ktermios *kt);
459 void tty_wakeup(struct tty_struct *tty);
461 int tty_mode_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg);
462 int tty_perform_flush(struct tty_struct *tty, unsigned long arg);
464 void tty_release_struct(struct tty_struct *tty, int idx);
465 void tty_init_termios(struct tty_struct *tty);
466 void tty_save_termios(struct tty_struct *tty);
468 struct tty_struct *tty);
499 int n_tty_ioctl_helper(struct tty_struct *tty, unsigned int cmd,
504 int vt_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg);
506 long vt_compat_ioctl(struct tty_struct *tty, unsigned int cmd,
511 void tty_lock(struct tty_struct *tty);
512 int tty_lock_interruptible(struct tty_struct *tty);
513 void tty_unlock(struct tty_struct *tty);
514 void tty_lock_slave(struct tty_struct *tty);
515 void tty_unlock_slave(struct tty_struct *tty);
516 void tty_set_lock_subclass(struct tty_struct *tty);