Home
last modified time | relevance | path

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

123456

/linux/drivers/tty/
H A 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 …]
H A 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()
453 struct tty_struct *tty = file_tty(file); in tty_show_fdinfo() local
[all …]
H A Dtty_ioctl.c48 unsigned int tty_chars_in_buffer(struct tty_struct *tty) in tty_chars_in_buffer()
66 unsigned int tty_write_room(struct tty_struct *tty) in tty_write_room()
82 void tty_driver_flush_buffer(struct tty_struct *tty) in tty_driver_flush_buffer()
101 void tty_unthrottle(struct tty_struct *tty) in tty_unthrottle()
123 bool tty_throttle_safe(struct tty_struct *tty) in tty_throttle_safe()
151 bool tty_unthrottle_safe(struct tty_struct *tty) in tty_unthrottle_safe()
179 void tty_wait_until_sent(struct tty_struct *tty, long timeout) in tty_wait_until_sent()
202 static void unset_locked_termios(struct tty_struct *tty, const struct ktermios *old) in unset_locked_termios()
319 int tty_set_termios(struct tty_struct *tty, struct ktermios *new_termios) in tty_set_termios()
444 static int set_termios(struct tty_struct *tty, void __user *arg, int opt) in set_termios()
[all …]
H A 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 …]
H A 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
50 static inline void __tty_set_flow_change(struct tty_struct *tty, in __tty_set_flow_change()
56 static inline void tty_set_flow_change(struct tty_struct *tty, in tty_set_flow_change()
96 #define tty_is_writelocked(tty) (mutex_is_locked(&tty->atomic_write_lock)) argument
111 static inline void tty_audit_add_data(const struct tty_struct *tty, in tty_audit_add_data()
[all …]
H A 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
305 struct tty_struct *tty; in tty_port_tty_get() local
322 void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty) in tty_port_tty_set()
343 static void tty_port_shutdown(struct tty_port *port, struct tty_struct *tty) in tty_port_shutdown()
376 struct tty_struct *tty; in tty_port_hangup() local
401 struct tty_struct *tty = tty_port_tty_get(port); in tty_port_tty_hangup() local
491 struct tty_struct *tty, struct file *filp) in tty_port_block_til_ready()
576 static void tty_port_drain_delay(struct tty_port *port, struct tty_struct *tty) in tty_port_drain_delay()
[all …]
H A 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()
H A Damiserial.c133 static void rs_stop(struct tty_struct *tty) in rs_stop()
150 static void rs_start(struct tty_struct *tty) in rs_start()
441 static int startup(struct tty_struct *tty, struct serial_state *info) in startup()
516 static void shutdown(struct tty_struct *tty, struct serial_state *info) in shutdown()
566 static void change_speed(struct tty_struct *tty, struct serial_state *info, in change_speed()
697 static int rs_put_char(struct tty_struct *tty, u8 ch) in rs_put_char()
721 static void rs_flush_chars(struct tty_struct *tty) in rs_flush_chars()
742 static ssize_t rs_write(struct tty_struct * tty, const u8 *buf, size_t count) in rs_write()
785 static unsigned int rs_write_room(struct tty_struct *tty) in rs_write_room()
792 static unsigned int rs_chars_in_buffer(struct tty_struct *tty) in rs_chars_in_buffer()
[all …]
H A Dn_hdlc.c159 static void flush_rx_queue(struct tty_struct *tty) in flush_rx_queue()
168 static void flush_tx_queue(struct tty_struct *tty) in flush_tx_queue()
194 static void n_hdlc_tty_close(struct tty_struct *tty) in n_hdlc_tty_close()
222 static int n_hdlc_tty_open(struct tty_struct *tty) in n_hdlc_tty_open()
264 static void n_hdlc_send_frames(struct n_hdlc *n_hdlc, struct tty_struct *tty) in n_hdlc_send_frames()
344 struct tty_struct *tty = n_hdlc->tty_for_write_work; in n_hdlc_tty_write_work() local
355 static void n_hdlc_tty_wakeup(struct tty_struct *tty) in n_hdlc_tty_wakeup()
372 static void n_hdlc_tty_receive(struct tty_struct *tty, const u8 *data, in n_hdlc_tty_receive()
427 static ssize_t n_hdlc_tty_read(struct tty_struct *tty, struct file *file, in n_hdlc_tty_read()
520 static ssize_t n_hdlc_tty_write(struct tty_struct *tty, struct file *file, in n_hdlc_tty_write()
[all …]
H A Dmxser.c481 static int mxser_set_baud(struct tty_struct *tty, speed_t newspd) in mxser_set_baud()
546 static void mxser_handle_cts(struct tty_struct *tty, struct mxser_port *info, in mxser_handle_cts()
572 static void mxser_change_speed(struct tty_struct *tty, in mxser_change_speed()
683 static u8 mxser_check_modem_status(struct tty_struct *tty, in mxser_check_modem_status()
723 static int mxser_activate(struct tty_port *port, struct tty_struct *tty) in mxser_activate()
870 static int mxser_open(struct tty_struct *tty, struct file *filp) in mxser_open()
880 static void mxser_flush_buffer(struct tty_struct *tty) in mxser_flush_buffer()
896 static void mxser_close(struct tty_struct *tty, struct file *filp) in mxser_close()
901 static ssize_t mxser_write(struct tty_struct *tty, const u8 *buf, size_t count) in mxser_write()
920 static int mxser_put_char(struct tty_struct *tty, u8 ch) in mxser_put_char()
[all …]
H A Dttynull.c17 static int ttynull_open(struct tty_struct *tty, struct file *filp) in ttynull_open()
22 static void ttynull_close(struct tty_struct *tty, struct file *filp) in ttynull_close()
27 static void ttynull_hangup(struct tty_struct *tty) in ttynull_hangup()
32 static ssize_t ttynull_write(struct tty_struct *tty, const u8 *buf, in ttynull_write()
38 static unsigned int ttynull_write_room(struct tty_struct *tty) in ttynull_write_room()
/linux/drivers/tty/ipwireless/
H A 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 …]
/linux/drivers/accessibility/speakup/
H A 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 …]
H A 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
/linux/drivers/input/serio/
H A Dserport.c32 struct tty_struct *tty; member
74 static int serport_ldisc_open(struct tty_struct *tty) in serport_ldisc_open()
100 static void serport_ldisc_close(struct tty_struct *tty) in serport_ldisc_close()
113 static void serport_ldisc_receive(struct tty_struct *tty, const u8 *cp, in serport_ldisc_receive()
152 static ssize_t serport_ldisc_read(struct tty_struct * tty, struct file * file, in serport_ldisc_read()
189 static void serport_set_type(struct tty_struct *tty, unsigned long type) in serport_set_type()
202 static int serport_ldisc_ioctl(struct tty_struct *tty, unsigned int cmd, in serport_ldisc_ioctl()
220 static int serport_ldisc_compat_ioctl(struct tty_struct *tty, in serport_ldisc_compat_ioctl()
238 static void serport_ldisc_hangup(struct tty_struct *tty) in serport_ldisc_hangup()
248 static void serport_ldisc_write_wakeup(struct tty_struct * tty) in serport_ldisc_write_wakeup()
/linux/drivers/tty/hvc/
H A Dhvc_console.c320 static void hvc_unthrottle(struct tty_struct *tty) in hvc_unthrottle()
325 static int hvc_install(struct tty_driver *driver, struct tty_struct *tty) in hvc_install()
347 static int hvc_open(struct tty_struct *tty, struct file * filp) in hvc_open()
389 static void hvc_close(struct tty_struct *tty, struct file * filp) in hvc_close()
432 static void hvc_cleanup(struct tty_struct *tty) in hvc_cleanup()
439 static void hvc_hangup(struct tty_struct *tty) in hvc_hangup()
499 static ssize_t hvc_write(struct tty_struct *tty, const u8 *buf, size_t count) in hvc_write()
567 struct tty_struct *tty; in hvc_set_winsz() local
589 static unsigned int hvc_write_room(struct tty_struct *tty) in hvc_write_room()
599 static unsigned int hvc_chars_in_buffer(struct tty_struct *tty) in hvc_chars_in_buffer()
[all …]
/linux/net/bluetooth/rfcomm/
H A Dtty.c110 static int rfcomm_dev_activate(struct tty_port *port, struct tty_struct *tty) in rfcomm_dev_activate()
321 struct device *tty; in rfcomm_dev_add() local
441 struct tty_struct *tty; in __rfcomm_release_dev() local
682 static void rfcomm_tty_cleanup(struct tty_struct *tty) in rfcomm_tty_cleanup()
705 static int rfcomm_tty_install(struct tty_driver *driver, struct tty_struct *tty) in rfcomm_tty_install()
743 static int rfcomm_tty_open(struct tty_struct *tty, struct file *filp) in rfcomm_tty_open()
769 static void rfcomm_tty_close(struct tty_struct *tty, struct file *filp) in rfcomm_tty_close()
779 static ssize_t rfcomm_tty_write(struct tty_struct *tty, const u8 *buf, in rfcomm_tty_write()
809 static unsigned int rfcomm_tty_write_room(struct tty_struct *tty) in rfcomm_tty_write_room()
822 static int rfcomm_tty_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) in rfcomm_tty_ioctl()
[all …]
/linux/net/nfc/nci/
H A Duart.c74 struct tty_struct *tty = nu->tty; in nci_uart_write_work() local
105 static int nci_uart_set_driver(struct tty_struct *tty, unsigned int driver) in nci_uart_set_driver()
151 static int nci_uart_tty_open(struct tty_struct *tty) in nci_uart_tty_open()
173 static void nci_uart_tty_close(struct tty_struct *tty) in nci_uart_tty_close()
205 static void nci_uart_tty_wakeup(struct tty_struct *tty) in nci_uart_tty_wakeup()
298 static void nci_uart_tty_receive(struct tty_struct *tty, const u8 *data, in nci_uart_tty_receive()
325 static int nci_uart_tty_ioctl(struct tty_struct *tty, unsigned int cmd, in nci_uart_tty_ioctl()
347 static ssize_t nci_uart_tty_read(struct tty_struct *tty, struct file *file, in nci_uart_tty_read()
354 static ssize_t nci_uart_tty_write(struct tty_struct *tty, struct file *file, in nci_uart_tty_write()
/linux/arch/um/drivers/
H A Dline.c50 unsigned int line_write_room(struct tty_struct *tty) in line_write_room()
63 unsigned int line_chars_in_buffer(struct tty_struct *tty) in line_chars_in_buffer()
168 void line_flush_buffer(struct tty_struct *tty) in line_flush_buffer()
182 void line_flush_chars(struct tty_struct *tty) in line_flush_chars()
187 ssize_t line_write(struct tty_struct *tty, const u8 *buf, size_t len) in line_write()
214 void line_throttle(struct tty_struct *tty) in line_throttle()
222 void line_unthrottle(struct tty_struct *tty) in line_unthrottle()
285 static int line_activate(struct tty_port *port, struct tty_struct *tty) in line_activate()
309 struct tty_struct *tty = tty_port_tty_get(port); in line_destruct() local
323 int line_open(struct tty_struct *tty, struct file *filp) in line_open()
[all …]
/linux/drivers/usb/host/
H A Dxhci-dbgtty.c153 struct tty_struct *tty; in dbc_read_complete() local
250 static int dbc_tty_install(struct tty_driver *driver, struct tty_struct *tty) in dbc_tty_install()
266 static int dbc_tty_open(struct tty_struct *tty, struct file *file) in dbc_tty_open()
273 static void dbc_tty_close(struct tty_struct *tty, struct file *file) in dbc_tty_close()
280 static ssize_t dbc_tty_write(struct tty_struct *tty, const u8 *buf, in dbc_tty_write()
313 static int dbc_tty_put_char(struct tty_struct *tty, u8 ch) in dbc_tty_put_char()
326 static void dbc_tty_flush_chars(struct tty_struct *tty) in dbc_tty_flush_chars()
336 static unsigned int dbc_tty_write_room(struct tty_struct *tty) in dbc_tty_write_room()
353 static unsigned int dbc_tty_chars_in_buffer(struct tty_struct *tty) in dbc_tty_chars_in_buffer()
366 static void dbc_tty_unthrottle(struct tty_struct *tty) in dbc_tty_unthrottle()
[all …]
/linux/drivers/bluetooth/
H A Dhci_ldisc.c150 struct tty_struct *tty = hu->tty; in hci_uart_write_work() local
230 struct tty_struct *tty = hu->tty; in hci_uart_flush() local
313 struct tty_struct *tty = hu->tty; in hci_uart_set_flow_control() local
378 struct tty_struct *tty = hu->tty; in hci_uart_set_baudrate() local
479 static int hci_uart_tty_open(struct tty_struct *tty) in hci_uart_tty_open()
530 static void hci_uart_tty_close(struct tty_struct *tty) in hci_uart_tty_close()
577 static void hci_uart_tty_wakeup(struct tty_struct *tty) in hci_uart_tty_wakeup()
608 static void hci_uart_tty_receive(struct tty_struct *tty, const u8 *data, in hci_uart_tty_receive()
756 static int hci_uart_tty_ioctl(struct tty_struct *tty, unsigned int cmd, in hci_uart_tty_ioctl()
815 static ssize_t hci_uart_tty_read(struct tty_struct *tty, struct file *file, in hci_uart_tty_read()
[all …]
/linux/drivers/usb/serial/
H A Dgeneric.c105 int usb_serial_generic_open(struct tty_struct *tty, struct usb_serial_port *port) in usb_serial_generic_open()
212 int usb_serial_generic_write(struct tty_struct *tty, in usb_serial_generic_write()
232 unsigned int usb_serial_generic_write_room(struct tty_struct *tty) in usb_serial_generic_write_room()
249 unsigned int usb_serial_generic_chars_in_buffer(struct tty_struct *tty) in usb_serial_generic_chars_in_buffer()
267 void usb_serial_generic_wait_until_sent(struct tty_struct *tty, long timeout) in usb_serial_generic_wait_until_sent()
473 void usb_serial_generic_throttle(struct tty_struct *tty) in usb_serial_generic_throttle()
481 void usb_serial_generic_unthrottle(struct tty_struct *tty) in usb_serial_generic_unthrottle()
497 static bool usb_serial_generic_msr_changed(struct tty_struct *tty, in usb_serial_generic_msr_changed()
526 int usb_serial_generic_tiocmiwait(struct tty_struct *tty, unsigned long arg) in usb_serial_generic_tiocmiwait()
546 int usb_serial_generic_get_icount(struct tty_struct *tty, in usb_serial_generic_get_icount()
[all …]
/linux/drivers/usb/class/
H A Dcdc-acm.c640 static int acm_tty_install(struct tty_driver *driver, struct tty_struct *tty) in acm_tty_install()
669 static int acm_tty_open(struct tty_struct *tty, struct file *filp) in acm_tty_open()
696 static int acm_port_activate(struct tty_port *port, struct tty_struct *tty) in acm_port_activate()
793 static void acm_tty_cleanup(struct tty_struct *tty) in acm_tty_cleanup()
800 static void acm_tty_hangup(struct tty_struct *tty) in acm_tty_hangup()
807 static void acm_tty_close(struct tty_struct *tty, struct file *filp) in acm_tty_close()
814 static ssize_t acm_tty_write(struct tty_struct *tty, const u8 *buf, in acm_tty_write()
868 static unsigned int acm_tty_write_room(struct tty_struct *tty) in acm_tty_write_room()
878 static void acm_tty_flush_buffer(struct tty_struct *tty) in acm_tty_flush_buffer()
891 static unsigned int acm_tty_chars_in_buffer(struct tty_struct *tty) in acm_tty_chars_in_buffer()
[all …]
/linux/drivers/ipack/devices/
H A Dipoctal.c70 static int ipoctal_port_activate(struct tty_port *port, struct tty_struct *tty) in ipoctal_port_activate()
85 static int ipoctal_install(struct tty_driver *driver, struct tty_struct *tty) in ipoctal_install()
108 static int ipoctal_open(struct tty_struct *tty, struct file *file) in ipoctal_open()
133 static void ipoctal_close(struct tty_struct *tty, struct file *filp) in ipoctal_close()
141 static int ipoctal_get_icount(struct tty_struct *tty, in ipoctal_get_icount()
459 static ssize_t ipoctal_write_tty(struct tty_struct *tty, const u8 *buf, in ipoctal_write_tty()
482 static unsigned int ipoctal_write_room(struct tty_struct *tty) in ipoctal_write_room()
489 static unsigned int ipoctal_chars_in_buffer(struct tty_struct *tty) in ipoctal_chars_in_buffer()
496 static void ipoctal_set_termios(struct tty_struct *tty, in ipoctal_set_termios()
630 static void ipoctal_hangup(struct tty_struct *tty) in ipoctal_hangup()
[all …]
/linux/drivers/net/ppp/
H A Dppp_synctty.c53 struct tty_struct *tty; member
134 static struct syncppp *sp_get(struct tty_struct *tty) in sp_get()
156 ppp_sync_open(struct tty_struct *tty) in ppp_sync_open()
214 ppp_sync_close(struct tty_struct *tty) in ppp_sync_close()
248 static void ppp_sync_hangup(struct tty_struct *tty) in ppp_sync_hangup()
258 ppp_sync_read(struct tty_struct *tty, struct file *file, u8 *buf, size_t count, in ppp_sync_read()
269 ppp_sync_write(struct tty_struct *tty, struct file *file, const u8 *buf, in ppp_sync_write()
276 ppp_synctty_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) in ppp_synctty_ioctl()
325 ppp_sync_receive(struct tty_struct *tty, const u8 *buf, const u8 *cflags, in ppp_sync_receive()
343 ppp_sync_wakeup(struct tty_struct *tty) in ppp_sync_wakeup()
[all …]

123456