/drivers/tty/ |
D | pty.c | 36 # 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 …]
|
D | tty_ioctl.c | 32 # 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 …]
|
D | tty_ldisc.c | 27 #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 …]
|
D | tty_io.c | 115 # 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 …]
|
D | n_tty.c | 159 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 …]
|
D | tty.h | 9 #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 …]
|
D | tty_jobctrl.c | 32 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 …]
|
D | amiserial.c | 155 static void rs_stop(struct tty_struct *tty) in rs_stop() 172 static void rs_start(struct tty_struct *tty) in rs_start() 478 static int startup(struct tty_struct *tty, struct serial_state *info) in startup() 553 static void shutdown(struct tty_struct *tty, struct serial_state *info) in shutdown() 608 static void change_speed(struct tty_struct *tty, struct serial_state *info, in change_speed() 741 static int rs_put_char(struct tty_struct *tty, unsigned char ch) in rs_put_char() 765 static void rs_flush_chars(struct tty_struct *tty) in rs_flush_chars() 786 static int rs_write(struct tty_struct * tty, const unsigned char *buf, int count) in rs_write() 830 static int rs_write_room(struct tty_struct *tty) in rs_write_room() 837 static int rs_chars_in_buffer(struct tty_struct *tty) in rs_chars_in_buffer() [all …]
|
D | tty_mutex.c | 15 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()
|
D | tty_port.c | 28 struct tty_struct *tty; in tty_port_default_receive_buf() local 48 struct tty_struct *tty = tty_port_tty_get(port); in tty_port_default_wakeup() local 287 struct tty_struct *tty; in tty_port_tty_get() local 304 void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty) in tty_port_tty_set() 315 static void tty_port_shutdown(struct tty_port *port, struct tty_struct *tty) in tty_port_shutdown() 348 struct tty_struct *tty; in tty_port_hangup() local 374 struct tty_struct *tty = tty_port_tty_get(port); in tty_port_tty_hangup() local 464 struct tty_struct *tty, struct file *filp) in tty_port_block_til_ready() 545 static void tty_port_drain_delay(struct tty_port *port, struct tty_struct *tty) in tty_port_drain_delay() 561 struct tty_struct *tty, struct file *filp) in tty_port_close_start() [all …]
|
D | isicom.c | 400 struct tty_struct *tty; in isicom_tx() local 511 struct tty_struct *tty; in isicom_interrupt() local 674 static void isicom_config_port(struct tty_struct *tty) in isicom_config_port() 797 static int isicom_activate(struct tty_port *tport, struct tty_struct *tty) in isicom_activate() 830 static struct tty_port *isicom_find_port(struct tty_struct *tty) in isicom_find_port() 854 static int isicom_open(struct tty_struct *tty, struct file *filp) in isicom_open() 885 static void isicom_flush_buffer(struct tty_struct *tty) in isicom_flush_buffer() 917 static void isicom_close(struct tty_struct *tty, struct file *filp) in isicom_close() 932 static int isicom_write(struct tty_struct *tty, const unsigned char *buf, in isicom_write() 966 static int isicom_put_char(struct tty_struct *tty, unsigned char ch) in isicom_put_char() [all …]
|
D | n_hdlc.c | 164 static void flush_rx_queue(struct tty_struct *tty) in flush_rx_queue() 173 static void flush_tx_queue(struct tty_struct *tty) in flush_tx_queue() 199 static void n_hdlc_tty_close(struct tty_struct *tty) in n_hdlc_tty_close() 231 static int n_hdlc_tty_open(struct tty_struct *tty) in n_hdlc_tty_open() 273 static void n_hdlc_send_frames(struct n_hdlc *n_hdlc, struct tty_struct *tty) in n_hdlc_send_frames() 353 struct tty_struct *tty = n_hdlc->tty_for_write_work; in n_hdlc_tty_write_work() local 364 static void n_hdlc_tty_wakeup(struct tty_struct *tty) in n_hdlc_tty_wakeup() 381 static void n_hdlc_tty_receive(struct tty_struct *tty, const __u8 *data, in n_hdlc_tty_receive() 440 static ssize_t n_hdlc_tty_read(struct tty_struct *tty, struct file *file, in n_hdlc_tty_read() 533 static ssize_t n_hdlc_tty_write(struct tty_struct *tty, struct file *file, in n_hdlc_tty_write() [all …]
|
/drivers/tty/ipwireless/ |
D | tty.c | 91 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 …]
|
/drivers/tty/serdev/ |
D | serdev-ttyport.c | 21 struct tty_struct *tty; member 58 struct tty_struct *tty; in ttyport_write_wakeup() local 86 struct tty_struct *tty = serport->tty; in ttyport_write_buf() local 98 struct tty_struct *tty = serport->tty; in ttyport_write_flush() local 106 struct tty_struct *tty = serport->tty; in ttyport_write_room() local 114 struct tty_struct *tty; in ttyport_open() local 163 struct tty_struct *tty = serport->tty; in ttyport_close() local 178 struct tty_struct *tty = serport->tty; in ttyport_set_baudrate() local 192 struct tty_struct *tty = serport->tty; in ttyport_set_flow_control() local 207 struct tty_struct *tty = serport->tty; in ttyport_set_parity() local [all …]
|
/drivers/accessibility/speakup/ |
D | selection.c | 22 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
|
/drivers/tty/hvc/ |
D | hvc_console.c | 320 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 int hvc_write(struct tty_struct *tty, const unsigned char *buf, int count) in hvc_write() 567 struct tty_struct *tty; in hvc_set_winsz() local 589 static int hvc_write_room(struct tty_struct *tty) in hvc_write_room() 599 static int hvc_chars_in_buffer(struct tty_struct *tty) in hvc_chars_in_buffer() [all …]
|
/drivers/staging/greybus/ |
D | uart.c | 281 static int send_line_coding(struct gb_tty *tty) in send_line_coding() 382 static int gb_tty_install(struct tty_driver *driver, struct tty_struct *tty) in gb_tty_install() 402 static int gb_tty_open(struct tty_struct *tty, struct file *file) in gb_tty_open() 409 static void gb_tty_close(struct tty_struct *tty, struct file *file) in gb_tty_close() 416 static void gb_tty_cleanup(struct tty_struct *tty) in gb_tty_cleanup() 423 static void gb_tty_hangup(struct tty_struct *tty) in gb_tty_hangup() 430 static int gb_tty_write(struct tty_struct *tty, const unsigned char *buf, in gb_tty_write() 443 static int gb_tty_write_room(struct tty_struct *tty) in gb_tty_write_room() 460 static int gb_tty_chars_in_buffer(struct tty_struct *tty) in gb_tty_chars_in_buffer() 475 static int gb_tty_break_ctl(struct tty_struct *tty, int state) in gb_tty_break_ctl() [all …]
|
/drivers/input/serio/ |
D | serport.c | 32 struct tty_struct *tty; member 78 static int serport_ldisc_open(struct tty_struct *tty) in serport_ldisc_open() 104 static void serport_ldisc_close(struct tty_struct *tty) in serport_ldisc_close() 117 static void serport_ldisc_receive(struct tty_struct *tty, const unsigned char *cp, char *fp, int co… in serport_ldisc_receive() 159 static ssize_t serport_ldisc_read(struct tty_struct * tty, struct file * file, in serport_ldisc_read() 196 static void serport_set_type(struct tty_struct *tty, unsigned long type) in serport_set_type() 209 static int serport_ldisc_ioctl(struct tty_struct *tty, struct file *file, in serport_ldisc_ioctl() 227 static int serport_ldisc_compat_ioctl(struct tty_struct *tty, in serport_ldisc_compat_ioctl() 246 static int serport_ldisc_hangup(struct tty_struct *tty) in serport_ldisc_hangup() 259 static void serport_ldisc_write_wakeup(struct tty_struct * tty) in serport_ldisc_write_wakeup()
|
/drivers/usb/serial/ |
D | usb-serial.c | 176 static int serial_install(struct tty_driver *driver, struct tty_struct *tty) in serial_install() 222 static int serial_port_activate(struct tty_port *tport, struct tty_struct *tty) in serial_port_activate() 242 static int serial_open(struct tty_struct *tty, struct file *filp) in serial_open() 271 static void serial_hangup(struct tty_struct *tty) in serial_hangup() 280 static void serial_close(struct tty_struct *tty, struct file *filp) in serial_close() 298 static void serial_cleanup(struct tty_struct *tty) in serial_cleanup() 323 static int serial_write(struct tty_struct *tty, const unsigned char *buf, in serial_write() 341 static int serial_write_room(struct tty_struct *tty) in serial_write_room() 350 static int serial_chars_in_buffer(struct tty_struct *tty) in serial_chars_in_buffer() 363 static void serial_wait_until_sent(struct tty_struct *tty, int timeout) in serial_wait_until_sent() [all …]
|
/drivers/bluetooth/ |
D | hci_ldisc.c | 148 struct tty_struct *tty = hu->tty; in hci_uart_write_work() local 228 struct tty_struct *tty = hu->tty; in hci_uart_flush() local 310 struct tty_struct *tty = hu->tty; in hci_uart_set_flow_control() local 375 struct tty_struct *tty = hu->tty; in hci_uart_set_baudrate() local 476 static int hci_uart_tty_open(struct tty_struct *tty) in hci_uart_tty_open() 521 static void hci_uart_tty_close(struct tty_struct *tty) in hci_uart_tty_close() 568 static void hci_uart_tty_wakeup(struct tty_struct *tty) in hci_uart_tty_wakeup() 598 static void hci_uart_tty_receive(struct tty_struct *tty, const u8 *data, in hci_uart_tty_receive() 748 static int hci_uart_tty_ioctl(struct tty_struct *tty, struct file *file, in hci_uart_tty_ioctl() 806 static ssize_t hci_uart_tty_read(struct tty_struct *tty, struct file *file, in hci_uart_tty_read() [all …]
|
/drivers/isdn/capi/ |
D | capi.c | 306 struct tty_struct *tty; in capincci_free_minor() local 323 struct tty_struct *tty; in capincci_minor_opencount() local 407 struct tty_struct *tty; in handle_recv_skb() local 491 struct tty_struct *tty; in handle_minor_send() local 1040 capinc_tty_install(struct tty_driver *driver, struct tty_struct *tty) in capinc_tty_install() 1052 static void capinc_tty_cleanup(struct tty_struct *tty) in capinc_tty_cleanup() 1059 static int capinc_tty_open(struct tty_struct *tty, struct file *filp) in capinc_tty_open() 1072 static void capinc_tty_close(struct tty_struct *tty, struct file *filp) in capinc_tty_close() 1079 static int capinc_tty_write(struct tty_struct *tty, in capinc_tty_write() 1114 static int capinc_tty_put_char(struct tty_struct *tty, unsigned char ch) in capinc_tty_put_char() [all …]
|
/drivers/ipack/devices/ |
D | ipoctal.c | 72 static int ipoctal_port_activate(struct tty_port *port, struct tty_struct *tty) in ipoctal_port_activate() 87 static int ipoctal_install(struct tty_driver *driver, struct tty_struct *tty) in ipoctal_install() 110 static int ipoctal_open(struct tty_struct *tty, struct file *file) in ipoctal_open() 135 static void ipoctal_close(struct tty_struct *tty, struct file *filp) in ipoctal_close() 143 static int ipoctal_get_icount(struct tty_struct *tty, in ipoctal_get_icount() 281 struct tty_driver *tty; in ipoctal_inst_slot() local 465 static int ipoctal_write_tty(struct tty_struct *tty, in ipoctal_write_tty() 488 static int ipoctal_write_room(struct tty_struct *tty) in ipoctal_write_room() 495 static int ipoctal_chars_in_buffer(struct tty_struct *tty) in ipoctal_chars_in_buffer() 502 static void ipoctal_set_termios(struct tty_struct *tty, in ipoctal_set_termios() [all …]
|
/drivers/usb/class/ |
D | cdc-acm.c | 618 static int acm_tty_install(struct tty_driver *driver, struct tty_struct *tty) in acm_tty_install() 647 static int acm_tty_open(struct tty_struct *tty, struct file *filp) in acm_tty_open() 674 static int acm_port_activate(struct tty_port *port, struct tty_struct *tty) in acm_port_activate() 775 static void acm_tty_cleanup(struct tty_struct *tty) in acm_tty_cleanup() 782 static void acm_tty_hangup(struct tty_struct *tty) in acm_tty_hangup() 789 static void acm_tty_close(struct tty_struct *tty, struct file *filp) in acm_tty_close() 796 static int acm_tty_write(struct tty_struct *tty, in acm_tty_write() 850 static int acm_tty_write_room(struct tty_struct *tty) in acm_tty_write_room() 860 static int acm_tty_chars_in_buffer(struct tty_struct *tty) in acm_tty_chars_in_buffer() 875 static void acm_tty_throttle(struct tty_struct *tty) in acm_tty_throttle() [all …]
|
/drivers/mmc/core/ |
D | sdio_uart.c | 428 struct tty_struct *tty; in sdio_uart_transmit_chars() local 466 struct tty_struct *tty; in sdio_uart_check_modem_status() local 594 static int sdio_uart_activate(struct tty_port *tport, struct tty_struct *tty) in sdio_uart_activate() 726 static int sdio_uart_install(struct tty_driver *driver, struct tty_struct *tty) in sdio_uart_install() 748 static void sdio_uart_cleanup(struct tty_struct *tty) in sdio_uart_cleanup() 759 static int sdio_uart_open(struct tty_struct *tty, struct file *filp) in sdio_uart_open() 765 static void sdio_uart_close(struct tty_struct *tty, struct file * filp) in sdio_uart_close() 771 static void sdio_uart_hangup(struct tty_struct *tty) in sdio_uart_hangup() 777 static int sdio_uart_write(struct tty_struct *tty, const unsigned char *buf, in sdio_uart_write() 800 static int sdio_uart_write_room(struct tty_struct *tty) in sdio_uart_write_room() [all …]
|
/drivers/net/ppp/ |
D | ppp_synctty.c | 53 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 int ppp_sync_hangup(struct tty_struct *tty) in ppp_sync_hangup() 259 ppp_sync_read(struct tty_struct *tty, struct file *file, in ppp_sync_read() 271 ppp_sync_write(struct tty_struct *tty, struct file *file, in ppp_sync_write() 278 ppp_synctty_ioctl(struct tty_struct *tty, struct file *file, in ppp_synctty_ioctl() 328 ppp_sync_poll(struct tty_struct *tty, struct file *file, poll_table *wait) in ppp_sync_poll() 335 ppp_sync_receive(struct tty_struct *tty, const unsigned char *buf, in ppp_sync_receive() [all …]
|