Searched refs:tty (Results 1 - 25 of 363) sorted by relevance

1234567891011>>

/linux-master/drivers/tty/
H A Dtty_mutex.c2 #include <linux/tty.h>
7 #include "tty.h"
9 /* Legacy tty mutex glue */
12 * Getting the big tty mutex.
15 void tty_lock(struct tty_struct *tty) argument
17 tty_kref_get(tty);
18 mutex_lock(&tty->legacy_mutex);
22 int tty_lock_interruptible(struct tty_struct *tty) argument
26 tty_kref_get(tty);
27 ret = mutex_lock_interruptible(&tty
33 tty_unlock(struct tty_struct *tty) argument
40 tty_lock_slave(struct tty_struct *tty) argument
46 tty_unlock_slave(struct tty_struct *tty) argument
52 tty_set_lock_subclass(struct tty_struct *tty) argument
[all...]
H A Dn_tty.c46 #include <linux/tty.h>
51 #include "tty.h"
161 static void zero_buffer(const struct tty_struct *tty, u8 *buffer, size_t size) argument
163 if (L_ICANON(tty) && !L_ECHO(tty))
167 static void tty_copy(const struct tty_struct *tty, void *to, size_t tail, argument
170 struct n_tty_data *ldata = tty->disc_data;
175 tty_audit_add_data(tty, from, size);
177 zero_buffer(tty, from, size);
183 tty_audit_add_data(tty, fro
199 n_tty_kick_worker(const struct tty_struct *tty) argument
219 chars_in_buffer(const struct tty_struct *tty) argument
234 n_tty_write_wakeup(struct tty_struct *tty) argument
240 n_tty_check_throttle(struct tty_struct *tty) argument
261 n_tty_check_unthrottle(struct tty_struct *tty) argument
331 n_tty_packet_mode_flush(struct tty_struct *tty) argument
356 n_tty_flush_buffer(struct tty_struct *tty) argument
388 is_continuation(u8 c, const struct tty_struct *tty) argument
412 do_output_char(u8 c, struct tty_struct *tty, int space) argument
486 process_output(u8 c, struct tty_struct *tty) argument
521 process_output_block(struct tty_struct *tty, const u8 *buf, unsigned int nr) argument
580 n_tty_process_echo_ops(struct tty_struct *tty, size_t *tail, int space) argument
696 __process_echoes(struct tty_struct *tty) argument
750 commit_echoes(struct tty_struct *tty) argument
779 process_echoes(struct tty_struct *tty) argument
797 flush_echoes(struct tty_struct *tty) argument
910 echo_char(u8 c, const struct tty_struct *tty) argument
948 eraser(u8 c, const struct tty_struct *tty) argument
972 echo_char(KILL_CHAR(tty), tty); local
1019 echo_char(ERASE_CHAR(tty), tty); local
1067 __isig(int sig, struct tty_struct *tty) argument
1090 isig(int sig, struct tty_struct *tty) argument
1137 n_tty_receive_break(struct tty_struct *tty) argument
1164 n_tty_receive_overrun(const struct tty_struct *tty) argument
1187 n_tty_receive_parity_error(const struct tty_struct *tty, u8 c) argument
1206 n_tty_receive_signal_char(struct tty_struct *tty, int signal, u8 c) argument
1218 n_tty_is_char_flow_ctrl(struct tty_struct *tty, u8 c) argument
1238 n_tty_receive_char_flow_ctrl(struct tty_struct *tty, u8 c, bool lookahead_done) argument
1258 n_tty_receive_handle_newline(struct tty_struct *tty, u8 c) argument
1269 n_tty_receive_char_canon(struct tty_struct *tty, u8 c) argument
1302 echo_char(read_buf(ldata, tail), tty); local
1354 n_tty_receive_char_special(struct tty_struct *tty, u8 c, bool lookahead_done) argument
1423 n_tty_receive_char(struct tty_struct *tty, u8 c) argument
1445 n_tty_receive_char_closing(struct tty_struct *tty, u8 c, bool lookahead_done) argument
1465 n_tty_receive_char_flagged(struct tty_struct *tty, u8 c, u8 flag) argument
1485 n_tty_receive_char_lnext(struct tty_struct *tty, u8 c, u8 flag) argument
1501 n_tty_lookahead_flow_ctrl(struct tty_struct *tty, const u8 *cp, const u8 *fp, size_t count) argument
1522 n_tty_receive_buf_real_raw(const struct tty_struct *tty, const u8 *cp, size_t count) argument
1541 n_tty_receive_buf_raw(struct tty_struct *tty, const u8 *cp, const u8 *fp, size_t count) argument
1558 n_tty_receive_buf_closing(struct tty_struct *tty, const u8 *cp, const u8 *fp, size_t count, bool lookahead_done) argument
1571 n_tty_receive_buf_standard(struct tty_struct *tty, const u8 *cp, const u8 *fp, size_t count, bool lookahead_done) argument
1610 __receive_buf(struct tty_struct *tty, const u8 *cp, const u8 *fp, size_t count) argument
1685 n_tty_receive_buf_common(struct tty_struct *tty, const u8 *cp, const u8 *fp, size_t count, bool flow) argument
1766 n_tty_receive_buf(struct tty_struct *tty, const u8 *cp, const u8 *fp, size_t count) argument
1772 n_tty_receive_buf2(struct tty_struct *tty, const u8 *cp, const u8 *fp, size_t count) argument
1790 n_tty_set_termios(struct tty_struct *tty, const struct ktermios *old) argument
1881 n_tty_close(struct tty_struct *tty) argument
1902 n_tty_open(struct tty_struct *tty) argument
1924 input_available_p(const struct tty_struct *tty, int poll) argument
1953 copy_from_read_buf(const struct tty_struct *tty, u8 **kbp, size_t *nr) argument
2008 canon_copy_from_read_buf(const struct tty_struct *tty, u8 **kbp, size_t *nr) argument
2113 job_control(struct tty_struct *tty, struct file *file) argument
2147 n_tty_read(struct tty_struct *tty, struct file *file, u8 *kbuf, size_t nr, void **cookie, unsigned long offset) argument
2348 n_tty_write(struct tty_struct *tty, struct file *file, const u8 *buf, size_t nr) argument
2447 n_tty_poll(struct tty_struct *tty, struct file *file, poll_table *wait) argument
2493 n_tty_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) argument
[all...]
H A Dtty.h9 #define tty_msg(fn, tty, f, ...) \
10 fn("%s %s: " f, tty_driver_name(tty), tty_name(tty), ##__VA_ARGS__)
12 #define tty_debug(tty, f, ...) tty_msg(pr_debug, tty, f, ##__VA_ARGS__)
13 #define tty_notice(tty, f, ...) tty_msg(pr_notice, tty, f, ##__VA_ARGS__)
14 #define tty_warn(tty, f, ...) tty_msg(pr_warn, tty, f, ##__VA_ARGS__)
15 #define tty_err(tty,
50 __tty_set_flow_change(struct tty_struct *tty, enum tty_flow_change val) argument
56 tty_set_flow_change(struct tty_struct *tty, enum tty_flow_change val) argument
111 tty_audit_add_data(const struct tty_struct *tty, const void *data, size_t size) argument
115 tty_audit_tiocsti(const struct tty_struct *tty, u8 ch) argument
[all...]
H A Dtty_ldisc.c7 #include <linux/tty.h>
22 #include "tty.h"
27 #define tty_ldisc_debug(tty, f, args...) tty_debug(tty, f, ##args)
29 #define tty_ldisc_debug(tty, f, args...)
32 /* lockdep nested classes for tty->ldisc_sem */
123 * @tty: tty device
139 static struct tty_ldisc *tty_ldisc_get(struct tty_struct *tty, int disc) argument
155 request_module("tty
239 tty_ldisc_ref_wait(struct tty_struct *tty) argument
259 tty_ldisc_ref(struct tty_struct *tty) argument
287 __tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout) argument
293 __tty_ldisc_lock_nested(struct tty_struct *tty, unsigned long timeout) argument
299 __tty_ldisc_unlock(struct tty_struct *tty) argument
304 tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout) argument
320 tty_ldisc_unlock(struct tty_struct *tty) argument
329 tty_ldisc_lock_pair_timeout(struct tty_struct *tty, struct tty_struct *tty2, unsigned long timeout) argument
364 tty_ldisc_lock_pair(struct tty_struct *tty, struct tty_struct *tty2) argument
369 tty_ldisc_unlock_pair(struct tty_struct *tty, struct tty_struct *tty2) argument
384 tty_ldisc_flush(struct tty_struct *tty) argument
407 tty_set_termios_ldisc(struct tty_struct *tty, int disc) argument
426 tty_ldisc_open(struct tty_struct *tty, struct tty_ldisc *ld) argument
449 tty_ldisc_close(struct tty_struct *tty, struct tty_ldisc *ld) argument
467 tty_ldisc_failto(struct tty_struct *tty, int ld) argument
491 tty_ldisc_restore(struct tty_struct *tty, struct tty_ldisc *old) argument
519 tty_set_ldisc(struct tty_struct *tty, int disc) argument
599 tty_ldisc_kill(struct tty_struct *tty) argument
619 tty_reset_termios(struct tty_struct *tty) argument
641 tty_ldisc_reinit(struct tty_struct *tty, int disc) argument
684 tty_ldisc_hangup(struct tty_struct *tty, bool reinit) argument
737 tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty) argument
765 tty_ldisc_release(struct tty_struct *tty) argument
795 tty_ldisc_init(struct tty_struct *tty) argument
812 tty_ldisc_deinit(struct tty_struct *tty) argument
[all...]
H A Dtty_io.c7 * 'tty_io.c' gives an orthogonal feeling to tty's, be they consoles
16 * dynamically allocated only when the tty is open.
19 * between the high-level tty routines (tty_io.c and tty_ioctl.c) and
20 * the low-level tty routines (serial.c, pty.c, console.c). This
31 * Added functionality to the OPOST tty handling. No delays, but all
76 #include <linux/tty.h>
112 #include "tty.h"
116 # define tty_debug_hangup(tty, f, args...) tty_debug(tty, f, ##args)
118 # define tty_debug_hangup(tty,
169 free_tty_struct(struct tty_struct *tty) argument
196 tty_add_file(struct tty_struct *tty, struct file *file) argument
227 struct tty_struct *tty = priv->tty; local
244 tty_name(const struct tty_struct *tty) argument
252 tty_driver_name(const struct tty_struct *tty) argument
259 tty_paranoia_check(struct tty_struct *tty, struct inode *inode, const char *routine) argument
273 check_tty_count(struct tty_struct *tty, const char *routine) argument
458 struct tty_struct *tty = file_tty(file); local
515 tty_wakeup(struct tty_struct *tty) argument
538 tty_release_redirect(struct tty_struct *tty) argument
577 __tty_hangup(struct tty_struct *tty, int exit_session) argument
669 struct tty_struct *tty = local
682 tty_hangup(struct tty_struct *tty) argument
697 tty_vhangup(struct tty_struct *tty) argument
712 struct tty_struct *tty; local
731 tty_vhangup_session(struct tty_struct *tty) argument
749 __stop_tty(struct tty_struct *tty) argument
772 stop_tty(struct tty_struct *tty) argument
782 __start_tty(struct tty_struct *tty) argument
803 start_tty(struct tty_struct *tty) argument
813 tty_update_time(struct tty_struct *tty, bool mtime) argument
850 iterate_tty_read(struct tty_ldisc *ld, struct tty_struct *tty, struct file *file, struct iov_iter *to) argument
920 struct tty_struct *tty = file_tty(file); local
946 tty_write_unlock(struct tty_struct *tty) argument
952 tty_write_lock(struct tty_struct *tty, bool ndelay) argument
967 iterate_tty_write(struct tty_ldisc *ld, struct tty_struct *tty, struct file *file, struct iov_iter *from) argument
1064 tty_write_message(struct tty_struct *tty, char *msg) argument
1079 struct tty_struct *tty = file_tty(file); local
1152 tty_send_xchar(struct tty_struct *tty, u8 ch) argument
1232 struct tty_struct *tty; local
1256 tty_init_termios(struct tty_struct *tty) argument
1286 tty_standard_install(struct tty_driver *driver, struct tty_struct *tty) argument
1307 tty_driver_install_tty(struct tty_driver *driver, struct tty_struct *tty) argument
1324 tty_driver_remove_tty(struct tty_driver *driver, struct tty_struct *tty) argument
1341 tty_reopen(struct tty_struct *tty) argument
1401 struct tty_struct *tty; local
1477 tty_save_termios(struct tty_struct *tty) argument
1504 tty_flush_works(struct tty_struct *tty) argument
1531 struct tty_struct *tty = local
1553 struct tty_struct *tty = container_of(kref, struct tty_struct, kref); local
1569 tty_kref_put(struct tty_struct *tty) argument
1589 release_tty(struct tty_struct *tty, int idx) argument
1619 tty_release_checks(struct tty_struct *tty, int idx) argument
1661 tty_kclose(struct tty_struct *tty) argument
1691 tty_release_struct(struct tty_struct *tty, int idx) argument
1732 struct tty_struct *tty = file_tty(filp); local
1884 struct tty_struct *tty; local
1961 struct tty_struct *tty; local
2047 struct tty_struct *tty; local
2121 struct tty_struct *tty; local
2203 struct tty_struct *tty = file_tty(filp); local
2221 struct tty_struct *tty = file_tty(filp); local
2256 struct tty_struct *tty = file_tty(filp); local
2281 tiocsti(struct tty_struct *tty, u8 __user *p) argument
2315 tiocgwinsz(struct tty_struct *tty, struct winsize __user *arg) argument
2334 tty_do_resize(struct tty_struct *tty, struct winsize *ws) argument
2370 tiocswinsz(struct tty_struct *tty, struct winsize __user *arg) argument
2431 tiocsetd(struct tty_struct *tty, int __user *p) argument
2454 tiocgetd(struct tty_struct *tty, int __user *p) argument
2478 send_break(struct tty_struct *tty, unsigned int duration) argument
2515 tty_get_tiocm(struct tty_struct *tty) argument
2536 tty_tiocmget(struct tty_struct *tty, int __user *p) argument
2558 tty_tiocmset(struct tty_struct *tty, unsigned int cmd, unsigned __user *p) argument
2597 tty_get_icount(struct tty_struct *tty, struct serial_icounter_struct *icount) argument
2609 tty_tiocgicount(struct tty_struct *tty, void __user *arg) argument
2623 tty_set_serial(struct tty_struct *tty, struct serial_struct *ss) argument
2640 tty_tiocsserial(struct tty_struct *tty, struct serial_struct __user *ss) argument
2650 tty_tiocgserial(struct tty_struct *tty, struct serial_struct __user *ss) argument
2668 tty_pair_get_tty(struct tty_struct *tty) argument
2681 struct tty_struct *tty = file_tty(file); local
2844 compat_tty_tiocsserial(struct tty_struct *tty, struct serial_struct32 __user *ss) argument
2862 compat_tty_tiocgserial(struct tty_struct *tty, struct serial_struct32 __user *ss) argument
2889 struct tty_struct *tty = file_tty(file); local
3027 __do_SAK(struct tty_struct *tty) argument
3075 struct tty_struct *tty = local
3086 do_SAK(struct tty_struct *tty) argument
3095 tty_get_device(struct tty_struct *tty) argument
3114 struct tty_struct *tty; local
3164 tty_put_char(struct tty_struct *tty, u8 ch) argument
3515 tty_devnum(struct tty_struct *tty) argument
[all...]
H A Dtty_jobctrl.c11 #include <linux/tty.h>
14 #include "tty.h"
24 * @tty: tty to check
33 int __tty_check_change(struct tty_struct *tty, int sig) argument
39 if (current->signal->tty != tty)
45 spin_lock_irqsave(&tty->ctrl.lock, flags);
46 tty_pgrp = tty->ctrl.pgrp;
47 spin_unlock_irqrestore(&tty
69 tty_check_change(struct tty_struct *tty) argument
78 struct tty_struct *tty; local
98 __proc_set_tty(struct tty_struct *tty) argument
122 proc_set_tty(struct tty_struct *tty) argument
132 tty_open_proc_set_tty(struct file *filp, struct tty_struct *tty) argument
162 struct tty_struct *tty; local
196 tty_signal_session_leader(struct tty_struct *tty, int exit_session) argument
267 struct tty_struct *tty; local
365 tiocsctty(struct tty_struct *tty, struct file *file, int arg) argument
421 tty_get_pgrp(struct tty_struct *tty) argument
466 tiocgpgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t __user *p) argument
493 tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t __user *p) argument
543 tiocgsid(struct tty_struct *tty, struct tty_struct *real_tty, pid_t __user *p) argument
572 tty_jobctrl_ioctl(struct tty_struct *tty, struct tty_struct *real_tty, struct file *file, unsigned int cmd, unsigned long arg) argument
[all...]
H A Dtty_ioctl.c17 #include <linux/tty.h>
26 #include "tty.h"
43 * @tty: terminal
48 unsigned int tty_chars_in_buffer(struct tty_struct *tty) argument
50 if (tty->ops->chars_in_buffer)
51 return tty->ops->chars_in_buffer(tty);
58 * @tty: terminal
66 unsigned int tty_write_room(struct tty_struct *tty) argument
68 if (tty
82 tty_driver_flush_buffer(struct tty_struct *tty) argument
101 tty_unthrottle(struct tty_struct *tty) argument
123 tty_throttle_safe(struct tty_struct *tty) argument
153 tty_unthrottle_safe(struct tty_struct *tty) argument
183 tty_wait_until_sent(struct tty_struct *tty, long timeout) argument
206 unset_locked_termios(struct tty_struct *tty, const struct ktermios *old) argument
323 tty_set_termios(struct tty_struct *tty, struct ktermios *new_termios) argument
448 set_termios(struct tty_struct *tty, void __user *arg, int opt) argument
530 copy_termios(struct tty_struct *tty, struct ktermios *kterm) argument
537 copy_termios_locked(struct tty_struct *tty, struct ktermios *kterm) argument
544 get_termio(struct tty_struct *tty, struct termio __user *termio) argument
559 get_sgflags(struct tty_struct *tty) argument
577 get_sgttyb(struct tty_struct *tty, struct sgttyb __user *sgttyb) argument
629 set_sgttyb(struct tty_struct *tty, struct sgttyb __user *sgttyb) argument
657 get_tchars(struct tty_struct *tty, struct tchars __user *tchars) argument
672 set_tchars(struct tty_struct *tty, struct tchars __user *tchars) argument
691 get_ltchars(struct tty_struct *tty, struct ltchars __user *ltchars) argument
708 set_ltchars(struct tty_struct *tty, struct ltchars __user *ltchars) argument
741 tty_change_softcar(struct tty_struct *tty, bool enable) argument
769 tty_mode_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) argument
899 __tty_perform_flush(struct tty_struct *tty, unsigned long arg) argument
925 tty_perform_flush(struct tty_struct *tty, unsigned long arg) argument
940 n_tty_ioctl_helper(struct tty_struct *tty, unsigned int cmd, unsigned long arg) argument
[all...]
H A Dpty.c13 #include <linux/tty.h>
32 #include "tty.h"
36 # define tty_debug_hangup(tty, f, args...) tty_debug(tty, f, ##args)
38 # define tty_debug_hangup(tty, f, args...) do {} while (0)
47 static void pty_close(struct tty_struct *tty, struct file *filp) argument
49 if (tty->driver->subtype == PTY_TYPE_MASTER)
50 WARN_ON(tty->count > 1);
52 if (tty_io_error(tty))
54 if (tty
93 pty_unthrottle(struct tty_struct *tty) argument
111 pty_write(struct tty_struct *tty, const u8 *buf, size_t c) argument
129 pty_write_room(struct tty_struct *tty) argument
137 pty_set_lock(struct tty_struct *tty, int __user *arg) argument
150 pty_get_lock(struct tty_struct *tty, int __user *arg) argument
158 pty_set_pktmode(struct tty_struct *tty, int __user *arg) argument
180 pty_get_pktmode(struct tty_struct *tty, int __user *arg) argument
188 pty_signal(struct tty_struct *tty, int sig) argument
204 pty_flush_buffer(struct tty_struct *tty) argument
220 pty_open(struct tty_struct *tty, struct file *filp) argument
242 pty_set_termios(struct tty_struct *tty, const struct ktermios *old_termios) argument
283 pty_resize(struct tty_struct *tty, struct winsize *ws) argument
322 pty_start(struct tty_struct *tty) argument
335 pty_stop(struct tty_struct *tty) argument
359 pty_common_install(struct tty_driver *driver, struct tty_struct *tty, bool legacy) argument
431 pty_cleanup(struct tty_struct *tty) argument
439 pty_install(struct tty_driver *driver, struct tty_struct *tty) argument
444 pty_remove(struct tty_driver *driver, struct tty_struct *tty) argument
453 pty_bsd_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) argument
474 pty_bsd_compat_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) argument
602 ptm_open_peer(struct file *master, struct tty_struct *tty, int flags) argument
642 pty_unix98_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) argument
664 pty_unix98_compat_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) argument
708 struct tty_struct *tty; local
719 pty_unix98_install(struct tty_driver *driver, struct tty_struct *tty) argument
725 pty_unix98_remove(struct tty_driver *driver, struct tty_struct *tty) argument
740 pty_show_fdinfo(struct tty_struct *tty, struct seq_file *m) argument
793 struct tty_struct *tty; local
[all...]
H A Dtty_port.c8 #include <linux/tty.h>
21 #include "tty.h"
26 struct tty_struct *tty; local
29 tty = READ_ONCE(port->itty);
30 if (!tty)
33 ld = tty_ldisc_ref(tty);
47 struct tty_struct *tty; local
50 tty = READ_ONCE(port->itty);
51 if (!tty)
54 ld = tty_ldisc_ref(tty);
66 struct tty_struct *tty = tty_port_tty_get(port); local
325 struct tty_struct *tty; local
342 tty_port_tty_set(struct tty_port *port, struct tty_struct *tty) argument
363 tty_port_shutdown(struct tty_port *port, struct tty_struct *tty) argument
396 struct tty_struct *tty; local
421 struct tty_struct *tty = tty_port_tty_get(port); local
510 tty_port_block_til_ready(struct tty_port *port, struct tty_struct *tty, struct file *filp) argument
596 tty_port_drain_delay(struct tty_port *port, struct tty_struct *tty) argument
625 tty_port_close_start(struct tty_port *port, struct tty_struct *tty, struct file *filp) argument
681 tty_port_close_end(struct tty_port *port, struct tty_struct *tty) argument
715 tty_port_close(struct tty_port *port, struct tty_struct *tty, struct file *filp) argument
738 tty_port_install(struct tty_port *port, struct tty_driver *driver, struct tty_struct *tty) argument
765 tty_port_open(struct tty_port *port, struct tty_struct *tty, struct file *filp) argument
[all...]
/linux-master/include/linux/
H A Dtty.h14 #include <uapi/linux/tty.h>
34 #define INTR_CHAR(tty) ((tty)->termios.c_cc[VINTR])
35 #define QUIT_CHAR(tty) ((tty)->termios.c_cc[VQUIT])
36 #define ERASE_CHAR(tty) ((tty)->termios.c_cc[VERASE])
37 #define KILL_CHAR(tty) ((tty)->termios.c_cc[VKILL])
38 #define EOF_CHAR(tty) ((tt
254 struct tty_struct *tty; member in struct:tty_file_private
326 tty_io_nonblock(struct tty_struct *tty, struct file *file) argument
332 tty_io_error(struct tty_struct *tty) argument
337 tty_throttled(struct tty_struct *tty) argument
358 tty_kref_put(struct tty_struct *tty) argument
360 tty_get_pgrp(struct tty_struct *tty) argument
366 tty_devnum(struct tty_struct *tty) argument
375 tty_name(const struct tty_struct *tty) argument
379 tty_kclose(struct tty_struct *tty) argument
400 tty_kref_get(struct tty_struct *tty) argument
445 tty_get_baud_rate(const struct tty_struct *tty) argument
[all...]
H A Dtty_ldisc.h61 * @name: name of this ldisc rendered in /proc/tty/ldiscs
64 * @open: [TTY] ``int ()(struct tty_struct *tty)``
67 * @tty. No other call into the line discipline for this tty will occur
69 * by the ldisc, and set @tty->receive_room to the maximum amount of data
76 * @close: [TTY] ``void ()(struct tty_struct *tty)``
79 * either because the @tty is being closed or because the @tty is being
81 * further users will enter the ldisc code for this tty.
85 * @flush_buffer: [TTY] ``void ()(struct tty_struct *tty)``
271 struct tty_struct *tty; member in struct:tty_ldisc
[all...]
H A Dtty_driver.h20 * struct tty_operations -- interface between driver and tty
25 * Return the tty device corresponding to @idx, %NULL if there is not
31 * @install: ``int ()(struct tty_driver *self, struct tty_struct *tty)``
33 * Install a new @tty into the @self's internal tables. Used in
38 * @remove: ``void ()(struct tty_driver *self, struct tty_struct *tty)``
40 * Remove a closed @tty from the @self's internal tables. Used in
45 * @open: ``int ()(struct tty_struct *tty, struct file *)``
47 * This routine is called when a particular @tty device is opened. This
51 * Required method. Called with tty lock held. May sleep.
53 * @close: ``void ()(struct tty_struct *tty, struc
[all...]
/linux-master/drivers/accessibility/speakup/
H A Dselection.c9 #include <linux/tty.h>
22 struct tty_struct *tty; member in struct:speakup_selection_work
30 struct tty_struct *tty; local
38 /* release the lock by setting tty of the struct to NULL */
39 tty = xchg(&ssw->tty, NULL);
51 set_selection_kernel(&sel, tty);
54 tty_kref_put(tty);
62 int speakup_set_selection(struct tty_struct *tty) argument
66 * invariant that if speakup_sel_work.tty i
94 struct tty_struct *tty; local
110 struct tty_struct *tty = xchg(&ssw->tty, NULL); local
121 speakup_paste_selection(struct tty_struct *tty) argument
135 struct tty_struct *tty; local
[all...]
H A Dspk_ttyio.c3 #include <linux/tty.h>
47 static int spk_ttyio_ldisc_open(struct tty_struct *tty) argument
51 if (tty != speakup_tty)
55 if (!tty->ops->write)
64 tty->disc_data = ldisc_data;
69 static void spk_ttyio_ldisc_close(struct tty_struct *tty) argument
71 kfree(tty->disc_data);
74 static size_t spk_ttyio_receive_buf2(struct tty_struct *tty, const u8 *cp, argument
77 struct spk_ldisc_data *ldisc_data = tty->disc_data;
135 static inline void get_termios(struct tty_struct *tty, argument
146 struct tty_struct *tty; local
226 struct tty_struct *tty = in_synth->dev; local
272 struct tty_struct *tty = in_synth->dev; local
280 struct tty_struct *tty = in_synth->dev; local
293 struct tty_struct *tty = in_synth->dev; local
333 struct tty_struct *tty = in_synth->dev; local
354 struct tty_struct *tty = in_synth->dev; local
374 struct tty_struct *tty = in_synth->dev; local
[all...]
/linux-master/drivers/tty/ipwireless/
H A Dtty.c28 #include <linux/tty.h>
33 #include "tty.h"
90 struct ipw_tty *tty = get_tty(linux_tty->index); local
92 if (!tty)
95 mutex_lock(&tty->ipw_tty_mutex);
96 if (tty->port.count == 0)
97 tty->tx_bytes_queued = 0;
99 tty->port.count++;
101 tty->port.tty
112 do_ipw_close(struct ipw_tty *tty) argument
131 struct ipw_tty *tty = linux_tty->driver_data; local
153 ipwireless_tty_received(struct ipw_tty *tty, unsigned char *data, unsigned int length) argument
180 struct ipw_tty *tty = callback_data; local
192 struct ipw_tty *tty = linux_tty->driver_data; local
232 struct ipw_tty *tty = linux_tty->driver_data; local
252 struct ipw_tty *tty = linux_tty->driver_data; local
274 struct ipw_tty *tty = linux_tty->driver_data; local
285 get_control_lines(struct ipw_tty *tty) argument
304 set_control_lines(struct ipw_tty *tty, unsigned int set, unsigned int clear) argument
354 struct ipw_tty *tty = linux_tty->driver_data; local
370 struct ipw_tty *tty = linux_tty->driver_data; local
385 struct ipw_tty *tty = linux_tty->driver_data; local
512 ipwireless_tty_free(struct ipw_tty *tty) argument
601 ipwireless_tty_is_modem(struct ipw_tty *tty) argument
607 ipwireless_tty_notify_control_line_change(struct ipw_tty *tty, unsigned int channel_idx, unsigned int control_lines, unsigned int changed_mask) argument
[all...]
H A Dtty.h37 void ipwireless_tty_free(struct ipw_tty *tty);
38 void ipwireless_tty_received(struct ipw_tty *tty, unsigned char *data,
40 int ipwireless_tty_is_modem(struct ipw_tty *tty);
41 void ipwireless_tty_notify_control_line_change(struct ipw_tty *tty,
H A DMakefile8 ipwireless-y := hardware.o main.o network.o tty.o
/linux-master/drivers/tty/serdev/
H A Dserdev-ttyport.c7 #include <linux/tty.h>
15 struct tty_struct *tty; member in struct:serport
22 * Callback functions from the tty port.
50 struct tty_struct *tty; local
52 tty = tty_port_tty_get(port);
53 if (!tty)
56 if (test_and_clear_bit(TTY_DO_WRITE_WAKEUP, &tty->flags) &&
61 wake_up_interruptible(&tty->write_wait);
63 tty_kref_put(tty);
78 struct tty_struct *tty local
90 struct tty_struct *tty = serport->tty; local
98 struct tty_struct *tty = serport->tty; local
106 struct tty_struct *tty; local
155 struct tty_struct *tty = serport->tty; local
170 struct tty_struct *tty = serport->tty; local
184 struct tty_struct *tty = serport->tty; local
199 struct tty_struct *tty = serport->tty; local
221 struct tty_struct *tty = serport->tty; local
229 struct tty_struct *tty = serport->tty; local
240 struct tty_struct *tty = serport->tty; local
251 struct tty_struct *tty = serport->tty; local
[all...]
/linux-master/tools/testing/selftests/tty/
H A Dtty_tstamp_update.c16 static bool tty_valid(char *tty) argument
18 if (strlen(tty) < MIN_TTY_PATH_LEN)
21 if (strncmp(tty, "/dev/tty", MIN_TTY_PATH_LEN) == 0 ||
22 strncmp(tty, "/dev/pts", MIN_TTY_PATH_LEN) == 0)
33 f = fopen("/dev/tty", "r+");
48 char tty[PATH_MAX] = {}; local
54 r = readlink("/proc/self/fd/0", tty, PATH_MAX);
58 if (!tty_valid(tty))
59 ksft_exit_skip("invalid tty pat
[all...]
/linux-master/net/bluetooth/rfcomm/
H A DMakefile9 rfcomm-$(CONFIG_BT_RFCOMM_TTY) += tty.o
/linux-master/net/nfc/nci/
H A Duart.c23 #include <linux/tty.h>
74 struct tty_struct *tty = nu->tty; local
86 set_bit(TTY_DO_WRITE_WAKEUP, &tty->flags);
87 len = tty->ops->write(tty, skb->data, skb->len);
105 static int nci_uart_set_driver(struct tty_struct *tty, unsigned int driver) argument
121 nu->tty = tty;
122 tty
151 nci_uart_tty_open(struct tty_struct *tty) argument
173 nci_uart_tty_close(struct tty_struct *tty) argument
205 nci_uart_tty_wakeup(struct tty_struct *tty) argument
298 nci_uart_tty_receive(struct tty_struct *tty, const u8 *data, const u8 *flags, size_t count) argument
325 nci_uart_tty_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) argument
347 nci_uart_tty_read(struct tty_struct *tty, struct file *file, u8 *buf, size_t nr, void **cookie, unsigned long offset) argument
354 nci_uart_tty_write(struct tty_struct *tty, struct file *file, const u8 *data, size_t count) argument
[all...]
/linux-master/drivers/s390/char/
H A Dctrlchar.h10 #include <linux/tty.h>
15 ctrlchar_handle(const unsigned char *buf, int len, struct tty_struct *tty);
/linux-master/drivers/pps/clients/
H A Dpps-ldisc.c12 #include <linux/tty.h>
16 static void pps_tty_dcd_change(struct tty_struct *tty, bool active) argument
23 pps = pps_lookup_dev(tty);
39 static int (*alias_n_tty_open)(struct tty_struct *tty);
41 static int pps_tty_open(struct tty_struct *tty) argument
44 struct tty_driver *drv = tty->driver;
45 int index = tty->index + drv->name_base;
63 pps->lookup_cookie = tty;
66 ret = alias_n_tty_open(tty);
68 pr_err("cannot open tty ldis
83 pps_tty_close(struct tty_struct *tty) argument
[all...]
/linux-master/arch/um/drivers/
H A Dline.h11 #include <linux/tty.h>
59 extern void line_close(struct tty_struct *tty, struct file * filp);
60 extern int line_open(struct tty_struct *tty, struct file *filp);
61 extern int line_install(struct tty_driver *driver, struct tty_struct *tty,
63 extern void line_cleanup(struct tty_struct *tty);
64 extern void line_hangup(struct tty_struct *tty);
67 extern ssize_t line_write(struct tty_struct *tty, const u8 *buf, size_t len);
68 extern unsigned int line_chars_in_buffer(struct tty_struct *tty);
69 extern void line_flush_buffer(struct tty_struct *tty);
70 extern void line_flush_chars(struct tty_struct *tty);
[all...]
/linux-master/drivers/input/serio/
H A Dserport.c7 * This is a module that converts a tty line into a much simpler
19 #include <linux/tty.h>
32 struct tty_struct *tty; member in struct:serport
47 return -(serport->tty->ops->write(serport->tty, &data, 1) != 1);
75 * discipline on a tty. It prepares the serio struct.
78 static int serport_ldisc_open(struct tty_struct *tty) argument
89 serport->tty = tty;
93 tty
104 serport_ldisc_close(struct tty_struct *tty) argument
117 serport_ldisc_receive(struct tty_struct *tty, const u8 *cp, const u8 *fp, size_t count) argument
160 serport_ldisc_read(struct tty_struct * tty, struct file * file, u8 *kbuf, size_t nr, void **cookie, unsigned long offset) argument
197 serport_set_type(struct tty_struct *tty, unsigned long type) argument
210 serport_ldisc_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) argument
228 serport_ldisc_compat_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) argument
246 serport_ldisc_hangup(struct tty_struct *tty) argument
258 serport_ldisc_write_wakeup(struct tty_struct * tty) argument
[all...]

Completed in 216 milliseconds

1234567891011>>