/drivers/tty/ |
D | tty.h | 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() 58 int tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout); 59 void tty_ldisc_unlock(struct tty_struct *tty); 61 int __tty_check_change(struct tty_struct *tty, int sig); 62 int tty_check_change(struct tty_struct *tty); 63 void __stop_tty(struct tty_struct *tty); 64 void __start_tty(struct tty_struct *tty); 65 void tty_write_unlock(struct tty_struct *tty); 66 int tty_write_lock(struct tty_struct *tty, bool ndelay); [all …]
|
D | tty_ldisc.c | 146 static struct tty_ldisc *tty_ldisc_get(struct tty_struct *tty, int disc) in tty_ldisc_get() 248 struct tty_ldisc *tty_ldisc_ref_wait(struct tty_struct *tty) in tty_ldisc_ref_wait() 269 struct tty_ldisc *tty_ldisc_ref(struct tty_struct *tty) in tty_ldisc_ref() 298 __tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout) in __tty_ldisc_lock() 304 __tty_ldisc_lock_nested(struct tty_struct *tty, unsigned long timeout) in __tty_ldisc_lock_nested() 310 static inline void __tty_ldisc_unlock(struct tty_struct *tty) in __tty_ldisc_unlock() 315 int tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout) in tty_ldisc_lock() 331 void tty_ldisc_unlock(struct tty_struct *tty) in tty_ldisc_unlock() 340 tty_ldisc_lock_pair_timeout(struct tty_struct *tty, struct tty_struct *tty2, in tty_ldisc_lock_pair_timeout() 375 static void tty_ldisc_lock_pair(struct tty_struct *tty, struct tty_struct *tty2) in tty_ldisc_lock_pair() [all …]
|
D | pty.c | 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 int pty_write(struct tty_struct *tty, const unsigned char *buf, int c) in pty_write() 113 struct tty_struct *to = tty->link; 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() 188 static int pty_signal(struct tty_struct *tty, int sig) in pty_signal() [all …]
|
D | tty_io.c | 158 static void release_tty(struct tty_struct *tty, int idx); 169 static void free_tty_struct(struct tty_struct *tty) in free_tty_struct() 178 static inline struct tty_struct *file_tty(struct file *file) in file_tty() 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() 245 const char *tty_name(const struct tty_struct *tty) in tty_name() 253 const char *tty_driver_name(const struct tty_struct *tty) in tty_driver_name() 260 static int tty_paranoia_check(struct tty_struct *tty, struct inode *inode, in tty_paranoia_check() 279 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() [all …]
|
D | tty_jobctrl.c | 33 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() 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() 160 struct tty_struct *get_current_tty(void) in get_current_tty() 162 struct tty_struct *tty; in get_current_tty() 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() [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_ioctl.c | 57 unsigned int tty_chars_in_buffer(struct tty_struct *tty) in tty_chars_in_buffer() 76 unsigned int tty_write_room(struct tty_struct *tty) in tty_write_room() 92 void tty_driver_flush_buffer(struct tty_struct *tty) in tty_driver_flush_buffer() 112 void tty_unthrottle(struct tty_struct *tty) in tty_unthrottle() 136 int tty_throttle_safe(struct tty_struct *tty) in tty_throttle_safe() 167 int tty_unthrottle_safe(struct tty_struct *tty) in tty_unthrottle_safe() 197 void tty_wait_until_sent(struct tty_struct *tty, long timeout) in tty_wait_until_sent() 222 static void unset_locked_termios(struct tty_struct *tty, struct ktermios *old) in unset_locked_termios() 338 int tty_set_termios(struct tty_struct *tty, struct ktermios *new_termios) in tty_set_termios() 386 static int set_termios(struct tty_struct *tty, void __user *arg, int opt) in set_termios() [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() 401 static inline int is_continuation(unsigned char c, struct tty_struct *tty) in is_continuation() [all …]
|
D | tty_port.c | 28 struct tty_struct *tty; in tty_port_default_receive_buf() 48 struct tty_struct *tty = tty_port_tty_get(port); in tty_port_default_wakeup() 284 struct tty_struct *tty_port_tty_get(struct tty_port *port) in tty_port_tty_get() 287 struct tty_struct *tty; in tty_port_tty_get() 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() 374 struct tty_struct *tty = tty_port_tty_get(port); in tty_port_tty_hangup() 464 struct tty_struct *tty, struct file *filp) in tty_port_block_til_ready() 549 static void tty_port_drain_delay(struct tty_port *port, struct tty_struct *tty) in tty_port_drain_delay() [all …]
|
D | n_null.c | 13 static int n_null_open(struct tty_struct *tty) in n_null_open() 18 static void n_null_close(struct tty_struct *tty) in n_null_close() 22 static ssize_t n_null_read(struct tty_struct *tty, struct file *file, in n_null_read() 29 static ssize_t n_null_write(struct tty_struct *tty, struct file *file, in n_null_write() 35 static void n_null_receivebuf(struct tty_struct *tty, in n_null_receivebuf()
|
D | amiserial.c | 95 static void change_speed(struct tty_struct *tty, struct serial_state *info, 97 static void rs_wait_until_sent(struct tty_struct *tty, int timeout); 132 static void rs_stop(struct tty_struct *tty) in rs_stop() 149 static void rs_start(struct tty_struct *tty) in rs_start() 442 static int startup(struct tty_struct *tty, struct serial_state *info) in startup() 517 static void shutdown(struct tty_struct *tty, struct serial_state *info) in shutdown() 569 static void change_speed(struct tty_struct *tty, struct serial_state *info, in change_speed() 702 static int rs_put_char(struct tty_struct *tty, unsigned char ch) in rs_put_char() 726 static void rs_flush_chars(struct tty_struct *tty) in rs_flush_chars() 747 static int rs_write(struct tty_struct * tty, const unsigned char *buf, int count) in rs_write() [all …]
|
D | ttynull.c | 17 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 int ttynull_write(struct tty_struct *tty, const unsigned char *buf, in ttynull_write() 38 static unsigned int ttynull_write_room(struct tty_struct *tty) in ttynull_write_room()
|
D | n_hdlc.c | 144 struct tty_struct *tty_for_write_work; 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() 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() 442 static ssize_t n_hdlc_tty_read(struct tty_struct *tty, struct file *file, in n_hdlc_tty_read() [all …]
|
/drivers/accessibility/speakup/ |
D | spk_ttyio.c | 22 static struct tty_struct *speakup_tty; 47 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 int spk_ttyio_receive_buf2(struct tty_struct *tty, in spk_ttyio_receive_buf2() 136 static inline void get_termios(struct tty_struct *tty, in get_termios() 147 struct tty_struct *tty; in spk_ttyio_initialise_ldisc() 227 struct tty_struct *tty = in_synth->dev; in spk_ttyio_out() 273 struct tty_struct *tty = in_synth->dev; in spk_ttyio_send_xchar() 281 struct tty_struct *tty = in_synth->dev; in spk_ttyio_tiocmset() 294 struct tty_struct *tty = in_synth->dev; in ttyio_in() [all …]
|
D | selection.c | 22 struct tty_struct *tty; 30 struct tty_struct *tty; in __speakup_set_selection() 62 int speakup_set_selection(struct tty_struct *tty) in speakup_set_selection() 94 struct tty_struct *tty; in speakup_cancel_selection() 110 struct tty_struct *tty = xchg(&ssw->tty, NULL); in __speakup_paste_selection() 121 int speakup_paste_selection(struct tty_struct *tty) in speakup_paste_selection() 135 struct tty_struct *tty; in speakup_cancel_paste()
|
/drivers/usb/serial/ |
D | usb-wwan.h | 10 extern int usb_wwan_open(struct tty_struct *tty, struct usb_serial_port *port); 14 extern unsigned int usb_wwan_write_room(struct tty_struct *tty); 15 extern int usb_wwan_tiocmget(struct tty_struct *tty); 16 extern int usb_wwan_tiocmset(struct tty_struct *tty, 18 extern int usb_wwan_write(struct tty_struct *tty, struct usb_serial_port *port, 20 extern unsigned int usb_wwan_chars_in_buffer(struct tty_struct *tty);
|
D | kobil_sct.c | 52 static int kobil_open(struct tty_struct *tty, struct usb_serial_port *port); 54 static int kobil_write(struct tty_struct *tty, struct usb_serial_port *port, 56 static unsigned int kobil_write_room(struct tty_struct *tty); 57 static int kobil_ioctl(struct tty_struct *tty, 59 static int kobil_tiocmget(struct tty_struct *tty); 60 static int kobil_tiocmset(struct tty_struct *tty, 64 static void kobil_set_termios(struct tty_struct *tty, 66 static void kobil_init_termios(struct tty_struct *tty); 154 static void kobil_init_termios(struct tty_struct *tty) in kobil_init_termios() 164 static int kobil_open(struct tty_struct *tty, struct usb_serial_port *port) in kobil_open() [all …]
|
D | mct_u232.c | 43 static int mct_u232_open(struct tty_struct *tty, struct usb_serial_port *port); 47 static void mct_u232_set_termios(struct tty_struct *tty, 49 static void mct_u232_break_ctl(struct tty_struct *tty, int break_state); 50 static int mct_u232_tiocmget(struct tty_struct *tty); 51 static int mct_u232_tiocmset(struct tty_struct *tty, 53 static void mct_u232_throttle(struct tty_struct *tty); 54 static void mct_u232_unthrottle(struct tty_struct *tty); 174 static int mct_u232_set_baud_rate(struct tty_struct *tty, in mct_u232_set_baud_rate() 411 static int mct_u232_open(struct tty_struct *tty, struct usb_serial_port *port) in mct_u232_open() 594 static void mct_u232_set_termios(struct tty_struct *tty, in mct_u232_set_termios() [all …]
|
/drivers/tty/serdev/ |
D | serdev-ttyport.c | 15 struct tty_struct *tty; 52 struct tty_struct *tty; in ttyport_write_wakeup() 80 struct tty_struct *tty = serport->tty; in ttyport_write_buf() 92 struct tty_struct *tty = serport->tty; in ttyport_write_flush() 100 struct tty_struct *tty = serport->tty; in ttyport_write_room() 108 struct tty_struct *tty; in ttyport_open() 157 struct tty_struct *tty = serport->tty; in ttyport_close() 172 struct tty_struct *tty = serport->tty; in ttyport_set_baudrate() 186 struct tty_struct *tty = serport->tty; in ttyport_set_flow_control() 201 struct tty_struct *tty = serport->tty; in ttyport_set_parity() [all …]
|
/drivers/input/serio/ |
D | serport.c | 32 struct tty_struct *tty; 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, in serport_ldisc_receive() 160 static ssize_t serport_ldisc_read(struct tty_struct * tty, struct file * file, in serport_ldisc_read() 197 static void serport_set_type(struct tty_struct *tty, unsigned long type) in serport_set_type() 210 static int serport_ldisc_ioctl(struct tty_struct *tty, struct file *file, in serport_ldisc_ioctl() 228 static int serport_ldisc_compat_ioctl(struct tty_struct *tty, in serport_ldisc_compat_ioctl() 247 static int serport_ldisc_hangup(struct tty_struct *tty) in serport_ldisc_hangup() 260 static void serport_ldisc_write_wakeup(struct tty_struct * tty) in serport_ldisc_write_wakeup()
|
/drivers/tty/ipwireless/ |
D | tty.c | 88 static int ipw_open(struct tty_struct *linux_tty, struct file *filp) in ipw_open() 117 struct tty_struct *linux_tty = tty->port.tty; in do_ipw_close() 129 static void ipw_hangup(struct tty_struct *linux_tty) in ipw_hangup() 147 static void ipw_close(struct tty_struct *linux_tty, struct file *filp) in ipw_close() 189 static int ipw_write(struct tty_struct *linux_tty, in ipw_write() 230 static unsigned int ipw_write_room(struct tty_struct *linux_tty) in ipw_write_room() 249 static int ipwireless_get_serial_info(struct tty_struct *linux_tty, in ipwireless_get_serial_info() 266 static int ipwireless_set_serial_info(struct tty_struct *linux_tty, in ipwireless_set_serial_info() 272 static unsigned int ipw_chars_in_buffer(struct tty_struct *linux_tty) in ipw_chars_in_buffer() 352 static int ipw_tiocmget(struct tty_struct *linux_tty) in ipw_tiocmget() [all …]
|
/drivers/tty/serial/ |
D | kgdb_nmi.c | 208 static int kgdb_nmi_tty_activate(struct tty_port *port, struct tty_struct *tty) in kgdb_nmi_tty_activate() 234 static int kgdb_nmi_tty_install(struct tty_driver *drv, struct tty_struct *tty) in kgdb_nmi_tty_install() 261 static void kgdb_nmi_tty_cleanup(struct tty_struct *tty) in kgdb_nmi_tty_cleanup() 270 static int kgdb_nmi_tty_open(struct tty_struct *tty, struct file *file) in kgdb_nmi_tty_open() 283 static void kgdb_nmi_tty_close(struct tty_struct *tty, struct file *file) in kgdb_nmi_tty_close() 294 static void kgdb_nmi_tty_hangup(struct tty_struct *tty) in kgdb_nmi_tty_hangup() 301 static unsigned int kgdb_nmi_tty_write_room(struct tty_struct *tty) in kgdb_nmi_tty_write_room() 307 static int kgdb_nmi_tty_write(struct tty_struct *tty, const unchar *buf, int c) in kgdb_nmi_tty_write()
|
/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() 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 …]
|
/drivers/pps/clients/ |
D | pps-ldisc.c | 16 static void pps_tty_dcd_change(struct tty_struct *tty, unsigned int status) in pps_tty_dcd_change() 39 static int (*alias_n_tty_open)(struct tty_struct *tty); 41 static int pps_tty_open(struct tty_struct *tty) in pps_tty_open() 81 static void (*alias_n_tty_close)(struct tty_struct *tty); 83 static void pps_tty_close(struct tty_struct *tty) in pps_tty_close()
|
/drivers/staging/greybus/ |
D | uart.c | 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 unsigned int gb_tty_write_room(struct tty_struct *tty) in gb_tty_write_room() 460 static unsigned 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() 482 static void gb_tty_set_termios(struct tty_struct *tty, in gb_tty_set_termios() [all …]
|