Home
last modified time | relevance | path

Searched defs:tty (Results 1 – 25 of 332) sorted by relevance

12345678910>>...14

/kernel/linux/linux-6.6/include/linux/
Dtty.h35 #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
[all …]
/kernel/linux/linux-5.10/include/linux/
Dtty.h82 #define INTR_CHAR(tty) ((tty)->termios.c_cc[VINTR]) argument
83 #define QUIT_CHAR(tty) ((tty)->termios.c_cc[VQUIT]) argument
84 #define ERASE_CHAR(tty) ((tty)->termios.c_cc[VERASE]) argument
85 #define KILL_CHAR(tty) ((tty)->termios.c_cc[VKILL]) argument
86 #define EOF_CHAR(tty) ((tty)->termios.c_cc[VEOF]) argument
87 #define TIME_CHAR(tty) ((tty)->termios.c_cc[VTIME]) argument
88 #define MIN_CHAR(tty) ((tty)->termios.c_cc[VMIN]) argument
89 #define SWTC_CHAR(tty) ((tty)->termios.c_cc[VSWTC]) argument
90 #define START_CHAR(tty) ((tty)->termios.c_cc[VSTART]) argument
91 #define STOP_CHAR(tty) ((tty)->termios.c_cc[VSTOP]) argument
[all …]
/kernel/linux/linux-5.10/drivers/tty/
Dpty.c36 # define tty_debug_hangup(tty, f, args...) tty_debug(tty, f, ##args) argument
38 # define tty_debug_hangup(tty, f, args...) do {} while (0) argument
47 static void pty_close(struct tty_struct *tty, struct file *filp) in pty_close()
94 static void pty_unthrottle(struct tty_struct *tty) in pty_unthrottle()
112 static int pty_write(struct tty_struct *tty, const unsigned char *buf, int c) in pty_write()
130 static int pty_write_room(struct tty_struct *tty) in pty_write_room()
145 static int pty_chars_in_buffer(struct tty_struct *tty) in pty_chars_in_buffer()
151 static int pty_set_lock(struct tty_struct *tty, int __user *arg) in pty_set_lock()
163 static int pty_get_lock(struct tty_struct *tty, int __user *arg) in pty_get_lock()
170 static int pty_set_pktmode(struct tty_struct *tty, int __user *arg) in pty_set_pktmode()
[all …]
Dtty_ioctl.c32 # define tty_debug_wait_until_sent(tty, f, args...) tty_debug(tty, f, ##args) argument
34 # define tty_debug_wait_until_sent(tty, f, args...) do {} while (0) argument
57 int tty_chars_in_buffer(struct tty_struct *tty) in tty_chars_in_buffer()
77 int tty_write_room(struct tty_struct *tty) in tty_write_room()
93 void tty_driver_flush_buffer(struct tty_struct *tty) in tty_driver_flush_buffer()
110 void tty_throttle(struct tty_struct *tty) in tty_throttle()
135 void tty_unthrottle(struct tty_struct *tty) in tty_unthrottle()
158 int tty_throttle_safe(struct tty_struct *tty) in tty_throttle_safe()
189 int tty_unthrottle_safe(struct tty_struct *tty) in tty_unthrottle_safe()
219 void tty_wait_until_sent(struct tty_struct *tty, long timeout) in tty_wait_until_sent()
[all …]
Dtty_ldisc.c27 #define tty_ldisc_debug(tty, f, args...) tty_debug(tty, f, ##args) argument
29 #define tty_ldisc_debug(tty, f, args...) argument
161 static struct tty_ldisc *tty_ldisc_get(struct tty_struct *tty, int disc) in tty_ldisc_get()
263 struct tty_ldisc *tty_ldisc_ref_wait(struct tty_struct *tty) in tty_ldisc_ref_wait()
284 struct tty_ldisc *tty_ldisc_ref(struct tty_struct *tty) in tty_ldisc_ref()
313 __tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout) in __tty_ldisc_lock()
319 __tty_ldisc_lock_nested(struct tty_struct *tty, unsigned long timeout) in __tty_ldisc_lock_nested()
325 static inline void __tty_ldisc_unlock(struct tty_struct *tty) in __tty_ldisc_unlock()
330 int tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout) in tty_ldisc_lock()
346 void tty_ldisc_unlock(struct tty_struct *tty) in tty_ldisc_unlock()
[all …]
Dtty_io.c115 # define tty_debug_hangup(tty, f, args...) tty_debug(tty, f, ##args) argument
117 # define tty_debug_hangup(tty, f, args...) do { } while (0) argument
169 static void free_tty_struct(struct tty_struct *tty) in free_tty_struct()
197 void tty_add_file(struct tty_struct *tty, struct file *file) in tty_add_file()
227 struct tty_struct *tty = priv->tty; in tty_del_file() local
245 const char *tty_name(const struct tty_struct *tty) in tty_name()
254 const char *tty_driver_name(const struct tty_struct *tty) in tty_driver_name()
261 static int tty_paranoia_check(struct tty_struct *tty, struct inode *inode, in tty_paranoia_check()
280 static int check_tty_count(struct tty_struct *tty, const char *routine) in check_tty_count()
468 struct tty_struct *tty = file_tty(file); in tty_show_fdinfo() local
[all …]
Dtty.h9 #define tty_msg(fn, tty, f, ...) \ argument
12 #define tty_debug(tty, f, ...) tty_msg(pr_debug, tty, f, ##__VA_ARGS__) argument
13 #define tty_info(tty, f, ...) tty_msg(pr_info, tty, f, ##__VA_ARGS__) argument
14 #define tty_notice(tty, f, ...) tty_msg(pr_notice, tty, f, ##__VA_ARGS__) argument
15 #define tty_warn(tty, f, ...) tty_msg(pr_warn, tty, f, ##__VA_ARGS__) argument
16 #define tty_err(tty, f, ...) tty_msg(pr_err, tty, f, ##__VA_ARGS__) argument
18 #define tty_info_ratelimited(tty, f, ...) \ argument
48 static inline void __tty_set_flow_change(struct tty_struct *tty, int val) in __tty_set_flow_change()
53 static inline void tty_set_flow_change(struct tty_struct *tty, int val) in tty_set_flow_change()
92 #define tty_is_writelocked(tty) (mutex_is_locked(&tty->atomic_write_lock)) argument
[all …]
Dn_tty.c159 static void zero_buffer(struct tty_struct *tty, u8 *buffer, int size) in zero_buffer()
168 static void tty_copy(struct tty_struct *tty, void *to, size_t tail, size_t n) in tty_copy()
200 static void n_tty_kick_worker(struct tty_struct *tty) in n_tty_kick_worker()
220 static ssize_t chars_in_buffer(struct tty_struct *tty) in chars_in_buffer()
241 static void n_tty_write_wakeup(struct tty_struct *tty) in n_tty_write_wakeup()
247 static void n_tty_check_throttle(struct tty_struct *tty) in n_tty_check_throttle()
271 static void n_tty_check_unthrottle(struct tty_struct *tty) in n_tty_check_unthrottle()
341 static void n_tty_packet_mode_flush(struct tty_struct *tty) in n_tty_packet_mode_flush()
367 static void n_tty_flush_buffer(struct tty_struct *tty) in n_tty_flush_buffer()
400 static inline int is_continuation(unsigned char c, struct tty_struct *tty) in is_continuation()
[all …]
Dtty_jobctrl.c32 int __tty_check_change(struct tty_struct *tty, int sig) in __tty_check_change()
68 int tty_check_change(struct tty_struct *tty) in tty_check_change()
77 struct tty_struct *tty; in proc_clear_tty() local
95 static void __proc_set_tty(struct tty_struct *tty) in __proc_set_tty()
119 static void proc_set_tty(struct tty_struct *tty) in proc_set_tty()
129 void tty_open_proc_set_tty(struct file *filp, struct tty_struct *tty) in tty_open_proc_set_tty()
159 struct tty_struct *tty; in get_current_tty() local
192 int tty_signal_session_leader(struct tty_struct *tty, int exit_session) in tty_signal_session_leader()
260 struct tty_struct *tty; in disassociate_ctty() local
352 static int tiocsctty(struct tty_struct *tty, struct file *file, int arg) in tiocsctty()
[all …]
Dtty_mutex.c15 void tty_lock(struct tty_struct *tty) in tty_lock()
24 int tty_lock_interruptible(struct tty_struct *tty) in tty_lock_interruptible()
37 void tty_unlock(struct tty_struct *tty) in tty_unlock()
46 void tty_lock_slave(struct tty_struct *tty) in tty_lock_slave()
52 void tty_unlock_slave(struct tty_struct *tty) in tty_unlock_slave()
58 void tty_set_lock_subclass(struct tty_struct *tty) in tty_set_lock_subclass()
/kernel/linux/linux-6.6/drivers/tty/
Dpty.c36 # define tty_debug_hangup(tty, f, args...) tty_debug(tty, f, ##args) argument
38 # define tty_debug_hangup(tty, f, args...) do {} while (0) argument
47 static void pty_close(struct tty_struct *tty, struct file *filp) in pty_close()
93 static void pty_unthrottle(struct tty_struct *tty) in pty_unthrottle()
111 static ssize_t pty_write(struct tty_struct *tty, const u8 *buf, size_t c) in pty_write()
129 static unsigned int pty_write_room(struct tty_struct *tty) in pty_write_room()
137 static int pty_set_lock(struct tty_struct *tty, int __user *arg) in pty_set_lock()
150 static int pty_get_lock(struct tty_struct *tty, int __user *arg) in pty_get_lock()
158 static int pty_set_pktmode(struct tty_struct *tty, int __user *arg) in pty_set_pktmode()
180 static int pty_get_pktmode(struct tty_struct *tty, int __user *arg) in pty_get_pktmode()
[all …]
Dtty_ldisc.c27 #define tty_ldisc_debug(tty, f, args...) tty_debug(tty, f, ##args) argument
29 #define tty_ldisc_debug(tty, f, args...) argument
139 static struct tty_ldisc *tty_ldisc_get(struct tty_struct *tty, int disc) in tty_ldisc_get()
239 struct tty_ldisc *tty_ldisc_ref_wait(struct tty_struct *tty) in tty_ldisc_ref_wait()
259 struct tty_ldisc *tty_ldisc_ref(struct tty_struct *tty) in tty_ldisc_ref()
287 __tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout) in __tty_ldisc_lock()
293 __tty_ldisc_lock_nested(struct tty_struct *tty, unsigned long timeout) in __tty_ldisc_lock_nested()
299 static inline void __tty_ldisc_unlock(struct tty_struct *tty) in __tty_ldisc_unlock()
304 int tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout) in tty_ldisc_lock()
320 void tty_ldisc_unlock(struct tty_struct *tty) in tty_ldisc_unlock()
[all …]
Dtty_io.c116 # define tty_debug_hangup(tty, f, args...) tty_debug(tty, f, ##args) argument
118 # define tty_debug_hangup(tty, f, args...) do { } while (0) argument
169 static void free_tty_struct(struct tty_struct *tty) in free_tty_struct()
196 void tty_add_file(struct tty_struct *tty, struct file *file) in tty_add_file()
227 struct tty_struct *tty = priv->tty; in tty_del_file() local
244 const char *tty_name(const struct tty_struct *tty) in tty_name()
252 const char *tty_driver_name(const struct tty_struct *tty) in tty_driver_name()
259 static int tty_paranoia_check(struct tty_struct *tty, struct inode *inode, in tty_paranoia_check()
273 static void check_tty_count(struct tty_struct *tty, const char *routine) in check_tty_count()
458 struct tty_struct *tty = file_tty(file); in tty_show_fdinfo() local
[all …]
Dtty_ioctl.c51 unsigned int tty_chars_in_buffer(struct tty_struct *tty) in tty_chars_in_buffer()
70 unsigned int tty_write_room(struct tty_struct *tty) in tty_write_room()
86 void tty_driver_flush_buffer(struct tty_struct *tty) in tty_driver_flush_buffer()
106 void tty_unthrottle(struct tty_struct *tty) in tty_unthrottle()
130 int tty_throttle_safe(struct tty_struct *tty) in tty_throttle_safe()
161 int tty_unthrottle_safe(struct tty_struct *tty) in tty_unthrottle_safe()
191 void tty_wait_until_sent(struct tty_struct *tty, long timeout) in tty_wait_until_sent()
214 static void unset_locked_termios(struct tty_struct *tty, const struct ktermios *old) in unset_locked_termios()
332 int tty_set_termios(struct tty_struct *tty, struct ktermios *new_termios) in tty_set_termios()
456 static int set_termios(struct tty_struct *tty, void __user *arg, int opt) in set_termios()
[all …]
Dn_tty.c161 static void zero_buffer(const struct tty_struct *tty, u8 *buffer, size_t size) in zero_buffer()
167 static void tty_copy(const struct tty_struct *tty, void *to, size_t tail, in tty_copy()
199 static void n_tty_kick_worker(const struct tty_struct *tty) in n_tty_kick_worker()
219 static ssize_t chars_in_buffer(const struct tty_struct *tty) in chars_in_buffer()
234 static void n_tty_write_wakeup(struct tty_struct *tty) in n_tty_write_wakeup()
240 static void n_tty_check_throttle(struct tty_struct *tty) in n_tty_check_throttle()
264 static void n_tty_check_unthrottle(struct tty_struct *tty) in n_tty_check_unthrottle()
336 static void n_tty_packet_mode_flush(struct tty_struct *tty) in n_tty_packet_mode_flush()
361 static void n_tty_flush_buffer(struct tty_struct *tty) in n_tty_flush_buffer()
393 static inline int is_continuation(u8 c, const struct tty_struct *tty) in is_continuation()
[all …]
Dtty.h9 #define tty_msg(fn, tty, f, ...) \ argument
12 #define tty_debug(tty, f, ...) tty_msg(pr_debug, tty, f, ##__VA_ARGS__) argument
13 #define tty_notice(tty, f, ...) tty_msg(pr_notice, tty, f, ##__VA_ARGS__) argument
14 #define tty_warn(tty, f, ...) tty_msg(pr_warn, tty, f, ##__VA_ARGS__) argument
15 #define tty_err(tty, f, ...) tty_msg(pr_err, tty, f, ##__VA_ARGS__) argument
17 #define tty_info_ratelimited(tty, f, ...) \ argument
47 static inline void __tty_set_flow_change(struct tty_struct *tty, int val) in __tty_set_flow_change()
52 static inline void tty_set_flow_change(struct tty_struct *tty, int val) in tty_set_flow_change()
91 #define tty_is_writelocked(tty) (mutex_is_locked(&tty->atomic_write_lock)) argument
106 static inline void tty_audit_add_data(const struct tty_struct *tty, in tty_audit_add_data()
[all …]
Dtty_jobctrl.c33 int __tty_check_change(struct tty_struct *tty, int sig) in __tty_check_change()
69 int tty_check_change(struct tty_struct *tty) in tty_check_change()
78 struct tty_struct *tty; in proc_clear_tty() local
98 static void __proc_set_tty(struct tty_struct *tty) in __proc_set_tty()
122 static void proc_set_tty(struct tty_struct *tty) in proc_set_tty()
132 void tty_open_proc_set_tty(struct file *filp, struct tty_struct *tty) in tty_open_proc_set_tty()
162 struct tty_struct *tty; in get_current_tty() local
196 int tty_signal_session_leader(struct tty_struct *tty, int exit_session) in tty_signal_session_leader()
267 struct tty_struct *tty; in disassociate_ctty() local
365 static int tiocsctty(struct tty_struct *tty, struct file *file, int arg) in tiocsctty()
[all …]
Dtty_mutex.c15 void tty_lock(struct tty_struct *tty) in tty_lock()
22 int tty_lock_interruptible(struct tty_struct *tty) in tty_lock_interruptible()
33 void tty_unlock(struct tty_struct *tty) in tty_unlock()
40 void tty_lock_slave(struct tty_struct *tty) in tty_lock_slave()
46 void tty_unlock_slave(struct tty_struct *tty) in tty_unlock_slave()
52 void tty_set_lock_subclass(struct tty_struct *tty) in tty_set_lock_subclass()
Dtty_port.c26 struct tty_struct *tty; in tty_port_default_receive_buf() local
47 struct tty_struct *tty; in tty_port_default_lookahead_buf() local
66 struct tty_struct *tty = tty_port_tty_get(port); in tty_port_default_wakeup() local
323 struct tty_struct *tty; in tty_port_tty_get() local
340 void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty) in tty_port_tty_set()
361 static void tty_port_shutdown(struct tty_port *port, struct tty_struct *tty) in tty_port_shutdown()
394 struct tty_struct *tty; in tty_port_hangup() local
419 struct tty_struct *tty = tty_port_tty_get(port); in tty_port_tty_hangup() local
509 struct tty_struct *tty, struct file *filp) in tty_port_block_til_ready()
594 static void tty_port_drain_delay(struct tty_port *port, struct tty_struct *tty) in tty_port_drain_delay()
[all …]
/kernel/linux/linux-6.6/drivers/tty/serdev/
Dserdev-ttyport.c15 struct tty_struct *tty; member
52 struct tty_struct *tty; in ttyport_write_wakeup() local
80 struct tty_struct *tty = serport->tty; in ttyport_write_buf() local
92 struct tty_struct *tty = serport->tty; in ttyport_write_flush() local
100 struct tty_struct *tty = serport->tty; in ttyport_write_room() local
108 struct tty_struct *tty; in ttyport_open() local
157 struct tty_struct *tty = serport->tty; in ttyport_close() local
172 struct tty_struct *tty = serport->tty; in ttyport_set_baudrate() local
186 struct tty_struct *tty = serport->tty; in ttyport_set_flow_control() local
201 struct tty_struct *tty = serport->tty; in ttyport_set_parity() local
[all …]
/kernel/linux/linux-6.6/drivers/tty/ipwireless/
Dtty.c90 struct ipw_tty *tty = get_tty(linux_tty->index); in ipw_open() local
112 static void do_ipw_close(struct ipw_tty *tty) in do_ipw_close()
131 struct ipw_tty *tty = linux_tty->driver_data; in ipw_hangup() local
153 void ipwireless_tty_received(struct ipw_tty *tty, unsigned char *data, in ipwireless_tty_received()
180 struct ipw_tty *tty = callback_data; in ipw_write_packet_sent_callback() local
192 struct ipw_tty *tty = linux_tty->driver_data; in ipw_write() local
232 struct ipw_tty *tty = linux_tty->driver_data; in ipw_write_room() local
252 struct ipw_tty *tty = linux_tty->driver_data; in ipwireless_get_serial_info() local
274 struct ipw_tty *tty = linux_tty->driver_data; in ipw_chars_in_buffer() local
285 static int get_control_lines(struct ipw_tty *tty) in get_control_lines()
[all …]
/kernel/linux/linux-5.10/drivers/tty/ipwireless/
Dtty.c91 struct ipw_tty *tty = get_tty(linux_tty->index); in ipw_open() local
114 static void do_ipw_close(struct ipw_tty *tty) in do_ipw_close()
133 struct ipw_tty *tty = linux_tty->driver_data; in ipw_hangup() local
155 void ipwireless_tty_received(struct ipw_tty *tty, unsigned char *data, in ipwireless_tty_received()
182 struct ipw_tty *tty = callback_data; in ipw_write_packet_sent_callback() local
194 struct ipw_tty *tty = linux_tty->driver_data; in ipw_write() local
234 struct ipw_tty *tty = linux_tty->driver_data; in ipw_write_room() local
254 struct ipw_tty *tty = linux_tty->driver_data; in ipwireless_get_serial_info() local
276 struct ipw_tty *tty = linux_tty->driver_data; in ipw_chars_in_buffer() local
287 static int get_control_lines(struct ipw_tty *tty) in get_control_lines()
[all …]
/kernel/linux/linux-5.10/drivers/tty/serdev/
Dserdev-ttyport.c15 struct tty_struct *tty; member
52 struct tty_struct *tty; in ttyport_write_wakeup() local
80 struct tty_struct *tty = serport->tty; in ttyport_write_buf() local
92 struct tty_struct *tty = serport->tty; in ttyport_write_flush() local
100 struct tty_struct *tty = serport->tty; in ttyport_write_room() local
108 struct tty_struct *tty; in ttyport_open() local
157 struct tty_struct *tty = serport->tty; in ttyport_close() local
172 struct tty_struct *tty = serport->tty; in ttyport_set_baudrate() local
186 struct tty_struct *tty = serport->tty; in ttyport_set_flow_control() local
201 struct tty_struct *tty = serport->tty; in ttyport_set_parity() local
[all …]
/kernel/linux/linux-6.6/drivers/accessibility/speakup/
Dspk_ttyio.c47 static int spk_ttyio_ldisc_open(struct tty_struct *tty) in spk_ttyio_ldisc_open()
69 static void spk_ttyio_ldisc_close(struct tty_struct *tty) in spk_ttyio_ldisc_close()
74 static size_t spk_ttyio_receive_buf2(struct tty_struct *tty, const u8 *cp, in spk_ttyio_receive_buf2()
135 static inline void get_termios(struct tty_struct *tty, in get_termios()
146 struct tty_struct *tty; in spk_ttyio_initialise_ldisc() local
226 struct tty_struct *tty = in_synth->dev; in spk_ttyio_out() local
272 struct tty_struct *tty = in_synth->dev; in spk_ttyio_send_xchar() local
280 struct tty_struct *tty = in_synth->dev; in spk_ttyio_tiocmset() local
293 struct tty_struct *tty = in_synth->dev; in ttyio_in() local
333 struct tty_struct *tty = in_synth->dev; in spk_ttyio_flush_buffer() local
[all …]
Dselection.c22 struct tty_struct *tty; member
30 struct tty_struct *tty; in __speakup_set_selection() local
62 int speakup_set_selection(struct tty_struct *tty) in speakup_set_selection()
94 struct tty_struct *tty; in speakup_cancel_selection() local
110 struct tty_struct *tty = xchg(&ssw->tty, NULL); in __speakup_paste_selection() local
121 int speakup_paste_selection(struct tty_struct *tty) in speakup_paste_selection()
135 struct tty_struct *tty; in speakup_cancel_paste() local

12345678910>>...14