Lines Matching refs:tty

104 #define INTR_CHAR(tty) ((tty)->termios.c_cc[VINTR])  argument
105 #define QUIT_CHAR(tty) ((tty)->termios.c_cc[VQUIT]) argument
106 #define ERASE_CHAR(tty) ((tty)->termios.c_cc[VERASE]) argument
107 #define KILL_CHAR(tty) ((tty)->termios.c_cc[VKILL]) argument
108 #define EOF_CHAR(tty) ((tty)->termios.c_cc[VEOF]) argument
109 #define TIME_CHAR(tty) ((tty)->termios.c_cc[VTIME]) argument
110 #define MIN_CHAR(tty) ((tty)->termios.c_cc[VMIN]) argument
111 #define SWTC_CHAR(tty) ((tty)->termios.c_cc[VSWTC]) argument
112 #define START_CHAR(tty) ((tty)->termios.c_cc[VSTART]) argument
113 #define STOP_CHAR(tty) ((tty)->termios.c_cc[VSTOP]) argument
114 #define SUSP_CHAR(tty) ((tty)->termios.c_cc[VSUSP]) argument
115 #define EOL_CHAR(tty) ((tty)->termios.c_cc[VEOL]) argument
116 #define REPRINT_CHAR(tty) ((tty)->termios.c_cc[VREPRINT]) argument
117 #define DISCARD_CHAR(tty) ((tty)->termios.c_cc[VDISCARD]) argument
118 #define WERASE_CHAR(tty) ((tty)->termios.c_cc[VWERASE]) argument
119 #define LNEXT_CHAR(tty) ((tty)->termios.c_cc[VLNEXT]) argument
120 #define EOL2_CHAR(tty) ((tty)->termios.c_cc[VEOL2]) argument
122 #define _I_FLAG(tty, f) ((tty)->termios.c_iflag & (f)) argument
123 #define _O_FLAG(tty, f) ((tty)->termios.c_oflag & (f)) argument
124 #define _C_FLAG(tty, f) ((tty)->termios.c_cflag & (f)) argument
125 #define _L_FLAG(tty, f) ((tty)->termios.c_lflag & (f)) argument
127 #define I_IGNBRK(tty) _I_FLAG((tty), IGNBRK) argument
128 #define I_BRKINT(tty) _I_FLAG((tty), BRKINT) argument
129 #define I_IGNPAR(tty) _I_FLAG((tty), IGNPAR) argument
130 #define I_PARMRK(tty) _I_FLAG((tty), PARMRK) argument
131 #define I_INPCK(tty) _I_FLAG((tty), INPCK) argument
132 #define I_ISTRIP(tty) _I_FLAG((tty), ISTRIP) argument
133 #define I_INLCR(tty) _I_FLAG((tty), INLCR) argument
134 #define I_IGNCR(tty) _I_FLAG((tty), IGNCR) argument
135 #define I_ICRNL(tty) _I_FLAG((tty), ICRNL) argument
136 #define I_IUCLC(tty) _I_FLAG((tty), IUCLC) argument
137 #define I_IXON(tty) _I_FLAG((tty), IXON) argument
138 #define I_IXANY(tty) _I_FLAG((tty), IXANY) argument
139 #define I_IXOFF(tty) _I_FLAG((tty), IXOFF) argument
140 #define I_IMAXBEL(tty) _I_FLAG((tty), IMAXBEL) argument
141 #define I_IUTF8(tty) _I_FLAG((tty), IUTF8) argument
143 #define O_OPOST(tty) _O_FLAG((tty), OPOST) argument
144 #define O_OLCUC(tty) _O_FLAG((tty), OLCUC) argument
145 #define O_ONLCR(tty) _O_FLAG((tty), ONLCR) argument
146 #define O_OCRNL(tty) _O_FLAG((tty), OCRNL) argument
147 #define O_ONOCR(tty) _O_FLAG((tty), ONOCR) argument
148 #define O_ONLRET(tty) _O_FLAG((tty), ONLRET) argument
149 #define O_OFILL(tty) _O_FLAG((tty), OFILL) argument
150 #define O_OFDEL(tty) _O_FLAG((tty), OFDEL) argument
151 #define O_NLDLY(tty) _O_FLAG((tty), NLDLY) argument
152 #define O_CRDLY(tty) _O_FLAG((tty), CRDLY) argument
153 #define O_TABDLY(tty) _O_FLAG((tty), TABDLY) argument
154 #define O_BSDLY(tty) _O_FLAG((tty), BSDLY) argument
155 #define O_VTDLY(tty) _O_FLAG((tty), VTDLY) argument
156 #define O_FFDLY(tty) _O_FLAG((tty), FFDLY) argument
158 #define C_BAUD(tty) _C_FLAG((tty), CBAUD) argument
159 #define C_CSIZE(tty) _C_FLAG((tty), CSIZE) argument
160 #define C_CSTOPB(tty) _C_FLAG((tty), CSTOPB) argument
161 #define C_CREAD(tty) _C_FLAG((tty), CREAD) argument
162 #define C_PARENB(tty) _C_FLAG((tty), PARENB) argument
163 #define C_PARODD(tty) _C_FLAG((tty), PARODD) argument
164 #define C_HUPCL(tty) _C_FLAG((tty), HUPCL) argument
165 #define C_CLOCAL(tty) _C_FLAG((tty), CLOCAL) argument
166 #define C_CIBAUD(tty) _C_FLAG((tty), CIBAUD) argument
167 #define C_CRTSCTS(tty) _C_FLAG((tty), CRTSCTS) argument
168 #define C_CMSPAR(tty) _C_FLAG((tty), CMSPAR) argument
170 #define L_ISIG(tty) _L_FLAG((tty), ISIG) argument
171 #define L_ICANON(tty) _L_FLAG((tty), ICANON) argument
172 #define L_XCASE(tty) _L_FLAG((tty), XCASE) argument
173 #define L_ECHO(tty) _L_FLAG((tty), ECHO) argument
174 #define L_ECHOE(tty) _L_FLAG((tty), ECHOE) argument
175 #define L_ECHOK(tty) _L_FLAG((tty), ECHOK) argument
176 #define L_ECHONL(tty) _L_FLAG((tty), ECHONL) argument
177 #define L_NOFLSH(tty) _L_FLAG((tty), NOFLSH) argument
178 #define L_TOSTOP(tty) _L_FLAG((tty), TOSTOP) argument
179 #define L_ECHOCTL(tty) _L_FLAG((tty), ECHOCTL) argument
180 #define L_ECHOPRT(tty) _L_FLAG((tty), ECHOPRT) argument
181 #define L_ECHOKE(tty) _L_FLAG((tty), ECHOKE) argument
182 #define L_FLUSHO(tty) _L_FLAG((tty), FLUSHO) argument
183 #define L_PENDIN(tty) _L_FLAG((tty), PENDIN) argument
184 #define L_IEXTEN(tty) _L_FLAG((tty), IEXTEN) argument
185 #define L_EXTPROC(tty) _L_FLAG((tty), EXTPROC) argument
216 int (*activate)(struct tty_port *port, struct tty_struct *tty);
223 struct tty_struct *tty; /* Back pointer */ member
319 struct tty_struct *tty; member
347 #define TTY_WRITE_FLUSH(tty) tty_write_flush((tty)) argument
353 static inline void __tty_set_flow_change(struct tty_struct *tty, int val) in __tty_set_flow_change() argument
355 tty->flow_change = val; in __tty_set_flow_change()
358 static inline void tty_set_flow_change(struct tty_struct *tty, int val) in tty_set_flow_change() argument
360 tty->flow_change = val; in tty_set_flow_change()
366 extern void tty_kref_put(struct tty_struct *tty);
367 extern struct pid *tty_get_pgrp(struct tty_struct *tty);
370 extern dev_t tty_devnum(struct tty_struct *tty);
378 static inline void tty_kref_put(struct tty_struct *tty) in tty_kref_put() argument
380 static inline struct pid *tty_get_pgrp(struct tty_struct *tty) in tty_get_pgrp() argument
386 static inline dev_t tty_devnum(struct tty_struct *tty) in tty_devnum() argument
414 static inline struct tty_struct *tty_kref_get(struct tty_struct *tty) in tty_kref_get() argument
416 if (tty) in tty_kref_get()
417 kref_get(&tty->kref); in tty_kref_get()
418 return tty; in tty_kref_get()
421 extern int tty_paranoia_check(struct tty_struct *tty, struct inode *inode,
423 extern const char *tty_name(const struct tty_struct *tty);
424 extern void tty_wait_until_sent(struct tty_struct *tty, long timeout);
425 extern int __tty_check_change(struct tty_struct *tty, int sig);
426 extern int tty_check_change(struct tty_struct *tty);
427 extern void __stop_tty(struct tty_struct *tty);
428 extern void stop_tty(struct tty_struct *tty);
429 extern void __start_tty(struct tty_struct *tty);
430 extern void start_tty(struct tty_struct *tty);
440 extern int tty_read_raw_data(struct tty_struct *tty, unsigned char *bufp,
442 extern void tty_write_message(struct tty_struct *tty, char *msg);
443 extern int tty_send_xchar(struct tty_struct *tty, char ch);
444 extern int tty_put_char(struct tty_struct *tty, unsigned char c);
445 extern int tty_chars_in_buffer(struct tty_struct *tty);
446 extern int tty_write_room(struct tty_struct *tty);
447 extern void tty_driver_flush_buffer(struct tty_struct *tty);
448 extern void tty_throttle(struct tty_struct *tty);
449 extern void tty_unthrottle(struct tty_struct *tty);
450 extern int tty_throttle_safe(struct tty_struct *tty);
451 extern int tty_unthrottle_safe(struct tty_struct *tty);
452 extern int tty_do_resize(struct tty_struct *tty, struct winsize *ws);
454 struct tty_struct *tty);
455 extern void tty_free_termios(struct tty_struct *tty);
458 extern int tty_signal(int sig, struct tty_struct *tty);
459 extern void tty_hangup(struct tty_struct *tty);
460 extern void tty_vhangup(struct tty_struct *tty);
462 extern void do_SAK(struct tty_struct *tty);
463 extern void __do_SAK(struct tty_struct *tty);
466 extern void tty_buffer_flush(struct tty_struct *tty, struct tty_ldisc *ld);
476 extern void tty_encode_baud_rate(struct tty_struct *tty,
489 static inline speed_t tty_get_baud_rate(struct tty_struct *tty) in tty_get_baud_rate() argument
491 return tty_termios_baud_rate(&tty->termios); in tty_get_baud_rate()
496 extern int tty_set_termios(struct tty_struct *tty, struct ktermios *kt);
501 extern void tty_ldisc_hangup(struct tty_struct *tty);
504 extern void tty_wakeup(struct tty_struct *tty);
505 extern void tty_ldisc_flush(struct tty_struct *tty);
508 extern int tty_mode_ioctl(struct tty_struct *tty, struct file *file,
510 extern int tty_perform_flush(struct tty_struct *tty, unsigned long arg);
514 extern void tty_add_file(struct tty_struct *tty, struct file *file);
516 extern void free_tty_struct(struct tty_struct *tty);
517 extern void deinitialize_tty_struct(struct tty_struct *tty);
520 extern int tty_init_termios(struct tty_struct *tty);
522 struct tty_struct *tty);
527 #define tty_is_writelocked(tty) (mutex_is_locked(&tty->atomic_write_lock)) argument
558 extern void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty);
566 struct tty_struct *tty, struct file *filp);
568 struct tty_struct *tty, struct file *filp);
569 extern void tty_port_close_end(struct tty_port *port, struct tty_struct *tty);
571 struct tty_struct *tty, struct file *filp);
573 struct tty_struct *tty);
575 struct tty_struct *tty, struct file *filp);
583 extern int tty_set_ldisc(struct tty_struct *tty, int ldisc);
584 extern int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty);
585 extern void tty_ldisc_release(struct tty_struct *tty);
586 extern void tty_ldisc_init(struct tty_struct *tty);
587 extern void tty_ldisc_deinit(struct tty_struct *tty);
594 count = ld->ops->receive_buf2(ld->tty, p, f, count); in tty_ldisc_receive_buf()
596 count = min_t(int, count, ld->tty->receive_room); in tty_ldisc_receive_buf()
598 ld->ops->receive_buf(ld->tty, p, f, count); in tty_ldisc_receive_buf()
610 extern void tty_audit_add_data(struct tty_struct *tty, const void *data,
614 extern void tty_audit_tiocsti(struct tty_struct *tty, char ch);
615 extern void tty_audit_push(struct tty_struct *tty);
618 static inline void tty_audit_add_data(struct tty_struct *tty, const void *data, in tty_audit_add_data() argument
622 static inline void tty_audit_tiocsti(struct tty_struct *tty, char ch) in tty_audit_tiocsti() argument
631 static inline void tty_audit_push(struct tty_struct *tty) in tty_audit_push() argument
641 extern int n_tty_ioctl_helper(struct tty_struct *tty, struct file *file,
643 extern long n_tty_compat_ioctl_helper(struct tty_struct *tty, struct file *file,
648 extern int vt_ioctl(struct tty_struct *tty,
651 extern long vt_compat_ioctl(struct tty_struct *tty,
656 extern void __lockfunc tty_lock(struct tty_struct *tty);
657 extern int tty_lock_interruptible(struct tty_struct *tty);
658 extern void __lockfunc tty_unlock(struct tty_struct *tty);
659 extern void __lockfunc tty_lock_slave(struct tty_struct *tty);
660 extern void __lockfunc tty_unlock_slave(struct tty_struct *tty);
661 extern void tty_set_lock_subclass(struct tty_struct *tty);
671 #define tty_debug(tty, f, args...) \ argument
674 tty_name(tty), ##args); \