Lines Matching refs:tty

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