/drivers/tty/ |
D | tty_ioctl.c | 30 # define tty_debug_wait_until_sent(tty, f, args...) tty_debug(tty, f, ##args) argument 32 # define tty_debug_wait_until_sent(tty, f, args...) do {} while (0) argument 55 int tty_chars_in_buffer(struct tty_struct *tty) in tty_chars_in_buffer() 75 int tty_write_room(struct tty_struct *tty) in tty_write_room() 91 void tty_driver_flush_buffer(struct tty_struct *tty) in tty_driver_flush_buffer() 108 void tty_throttle(struct tty_struct *tty) in tty_throttle() 133 void tty_unthrottle(struct tty_struct *tty) in tty_unthrottle() 156 int tty_throttle_safe(struct tty_struct *tty) in tty_throttle_safe() 187 int tty_unthrottle_safe(struct tty_struct *tty) in tty_unthrottle_safe() 217 void tty_wait_until_sent(struct tty_struct *tty, long timeout) in tty_wait_until_sent() [all …]
|
D | pty.c | 30 # define tty_debug_hangup(tty, f, args...) tty_debug(tty, f, ##args) argument 32 # define tty_debug_hangup(tty, f, args...) do {} while (0) argument 41 static void pty_close(struct tty_struct *tty, struct file *filp) in pty_close() 88 static void pty_unthrottle(struct tty_struct *tty) in pty_unthrottle() 106 static int pty_write(struct tty_struct *tty, const unsigned char *buf, int c) in pty_write() 131 static int pty_write_room(struct tty_struct *tty) in pty_write_room() 146 static int pty_chars_in_buffer(struct tty_struct *tty) in pty_chars_in_buffer() 152 static int pty_set_lock(struct tty_struct *tty, int __user *arg) in pty_set_lock() 164 static int pty_get_lock(struct tty_struct *tty, int __user *arg) in pty_get_lock() 171 static int pty_set_pktmode(struct tty_struct *tty, int __user *arg) in pty_set_pktmode() [all …]
|
D | tty_ldisc.c | 25 #define tty_ldisc_debug(tty, f, args...) tty_debug(tty, f, ##args) argument 27 #define tty_ldisc_debug(tty, f, args...) argument 158 static struct tty_ldisc *tty_ldisc_get(struct tty_struct *tty, int disc) in tty_ldisc_get() 272 struct tty_ldisc *tty_ldisc_ref_wait(struct tty_struct *tty) in tty_ldisc_ref_wait() 293 struct tty_ldisc *tty_ldisc_ref(struct tty_struct *tty) in tty_ldisc_ref() 322 __tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout) in __tty_ldisc_lock() 328 __tty_ldisc_lock_nested(struct tty_struct *tty, unsigned long timeout) in __tty_ldisc_lock_nested() 334 static inline void __tty_ldisc_unlock(struct tty_struct *tty) in __tty_ldisc_unlock() 339 int tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout) in tty_ldisc_lock() 350 void tty_ldisc_unlock(struct tty_struct *tty) in tty_ldisc_unlock() [all …]
|
D | tty_io.c | 110 # define tty_debug_hangup(tty, f, args...) tty_debug(tty, f, ##args) argument 112 # define tty_debug_hangup(tty, f, args...) do { } while (0) argument 167 static void free_tty_struct(struct tty_struct *tty) in free_tty_struct() 195 void tty_add_file(struct tty_struct *tty, struct file *file) in tty_add_file() 225 struct tty_struct *tty = priv->tty; in tty_del_file() local 243 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() 278 static int check_tty_count(struct tty_struct *tty, const char *routine) in check_tty_count() 396 int __tty_check_change(struct tty_struct *tty, int sig) in __tty_check_change() [all …]
|
D | n_tty.c | 154 static int tty_copy_to_user(struct tty_struct *tty, void __user *to, in tty_copy_to_user() 188 static void n_tty_kick_worker(struct tty_struct *tty) in n_tty_kick_worker() 208 static ssize_t chars_in_buffer(struct tty_struct *tty) in chars_in_buffer() 229 static void n_tty_write_wakeup(struct tty_struct *tty) in n_tty_write_wakeup() 235 static void n_tty_check_throttle(struct tty_struct *tty) in n_tty_check_throttle() 259 static void n_tty_check_unthrottle(struct tty_struct *tty) in n_tty_check_unthrottle() 331 static void n_tty_packet_mode_flush(struct tty_struct *tty) in n_tty_packet_mode_flush() 357 static void n_tty_flush_buffer(struct tty_struct *tty) in n_tty_flush_buffer() 390 static inline int is_continuation(unsigned char c, struct tty_struct *tty) in is_continuation() 417 static int do_output_char(unsigned char c, struct tty_struct *tty, int space) in do_output_char() [all …]
|
D | tty_port.c | 172 struct tty_struct *tty; in tty_port_tty_get() local 190 void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty) in tty_port_tty_set() 201 static void tty_port_shutdown(struct tty_port *port, struct tty_struct *tty) in tty_port_shutdown() 235 struct tty_struct *tty; in tty_port_hangup() local 261 struct tty_struct *tty = tty_port_tty_get(port); in tty_port_tty_hangup() local 276 struct tty_struct *tty = tty_port_tty_get(port); in tty_port_tty_wakeup() local 360 struct tty_struct *tty, struct file *filp) in tty_port_block_til_ready() 441 static void tty_port_drain_delay(struct tty_port *port, struct tty_struct *tty) in tty_port_drain_delay() 457 struct tty_struct *tty, struct file *filp) in tty_port_close_start() 502 void tty_port_close_end(struct tty_port *port, struct tty_struct *tty) in tty_port_close_end() [all …]
|
D | tty_mutex.c | 13 void tty_lock(struct tty_struct *tty) in tty_lock() 22 int tty_lock_interruptible(struct tty_struct *tty) in tty_lock_interruptible() 35 void tty_unlock(struct tty_struct *tty) in tty_unlock() 44 void tty_lock_slave(struct tty_struct *tty) in tty_lock_slave() 50 void tty_unlock_slave(struct tty_struct *tty) in tty_unlock_slave() 56 void tty_set_lock_subclass(struct tty_struct *tty) in tty_set_lock_subclass()
|
D | amiserial.c | 186 static void rs_stop(struct tty_struct *tty) in rs_stop() 206 static void rs_start(struct tty_struct *tty) in rs_start() 515 static int startup(struct tty_struct *tty, struct serial_state *info) in startup() 602 static void shutdown(struct tty_struct *tty, struct serial_state *info) in shutdown() 657 static void change_speed(struct tty_struct *tty, struct serial_state *info, in change_speed() 790 static int rs_put_char(struct tty_struct *tty, unsigned char ch) in rs_put_char() 817 static void rs_flush_chars(struct tty_struct *tty) in rs_flush_chars() 841 static int rs_write(struct tty_struct * tty, const unsigned char *buf, int count) in rs_write() 888 static int rs_write_room(struct tty_struct *tty) in rs_write_room() 897 static int rs_chars_in_buffer(struct tty_struct *tty) in rs_chars_in_buffer() [all …]
|
D | n_hdlc.c | 146 struct tty_struct *tty; member 194 #define tty2n_hdlc(tty) ((struct n_hdlc *) ((tty)->disc_data)) argument 197 static void flush_rx_queue(struct tty_struct *tty) in flush_rx_queue() 206 static void flush_tx_queue(struct tty_struct *tty) in flush_tx_queue() 236 struct tty_struct *tty = n_hdlc2tty (n_hdlc); in n_hdlc_release() local 289 static void n_hdlc_tty_close(struct tty_struct *tty) in n_hdlc_tty_close() 327 static int n_hdlc_tty_open (struct tty_struct *tty) in n_hdlc_tty_open() 376 static void n_hdlc_send_frames(struct n_hdlc *n_hdlc, struct tty_struct *tty) in n_hdlc_send_frames() 465 static void n_hdlc_tty_wakeup(struct tty_struct *tty) in n_hdlc_tty_wakeup() 494 static void n_hdlc_tty_receive(struct tty_struct *tty, const __u8 *data, in n_hdlc_tty_receive() [all …]
|
D | isicom.c | 408 struct tty_struct *tty; in isicom_tx() local 519 struct tty_struct *tty; in isicom_interrupt() local 683 static void isicom_config_port(struct tty_struct *tty) in isicom_config_port() 806 static int isicom_activate(struct tty_port *tport, struct tty_struct *tty) in isicom_activate() 839 static struct tty_port *isicom_find_port(struct tty_struct *tty) in isicom_find_port() 863 static int isicom_open(struct tty_struct *tty, struct file *filp) in isicom_open() 894 static void isicom_flush_buffer(struct tty_struct *tty) in isicom_flush_buffer() 926 static void isicom_close(struct tty_struct *tty, struct file *filp) in isicom_close() 941 static int isicom_write(struct tty_struct *tty, const unsigned char *buf, in isicom_write() 975 static int isicom_put_char(struct tty_struct *tty, unsigned char ch) in isicom_put_char() [all …]
|
/drivers/tty/ipwireless/ |
D | tty.c | 90 struct ipw_tty *tty = get_tty(linux_tty->index); in ipw_open() local 113 static void do_ipw_close(struct ipw_tty *tty) in do_ipw_close() 132 struct ipw_tty *tty = linux_tty->driver_data; in ipw_hangup() local 154 void ipwireless_tty_received(struct ipw_tty *tty, unsigned char *data, in ipwireless_tty_received() 181 struct ipw_tty *tty = callback_data; in ipw_write_packet_sent_callback() local 193 struct ipw_tty *tty = linux_tty->driver_data; in ipw_write() local 233 struct ipw_tty *tty = linux_tty->driver_data; in ipw_write_room() local 250 static int ipwireless_get_serial_info(struct ipw_tty *tty, in ipwireless_get_serial_info() 268 struct ipw_tty *tty = linux_tty->driver_data; in ipw_chars_in_buffer() local 279 static int get_control_lines(struct ipw_tty *tty) in get_control_lines() [all …]
|
/drivers/isdn/gigaset/ |
D | interface.c | 116 static int if_open(struct tty_struct *tty, struct file *filp) in if_open() 144 static void if_close(struct tty_struct *tty, struct file *filp) in if_close() 169 static int if_ioctl(struct tty_struct *tty, in if_ioctl() 236 static int if_tiocmget(struct tty_struct *tty) in if_tiocmget() 253 static int if_tiocmset(struct tty_struct *tty, in if_tiocmset() 280 static int if_write(struct tty_struct *tty, const unsigned char *buf, int count) in if_write() 325 static int if_write_room(struct tty_struct *tty) in if_write_room() 349 static int if_chars_in_buffer(struct tty_struct *tty) in if_chars_in_buffer() 370 static void if_throttle(struct tty_struct *tty) in if_throttle() 386 static void if_unthrottle(struct tty_struct *tty) in if_unthrottle() [all …]
|
D | ser-gigaset.c | 47 struct tty_struct *tty; member 65 struct tty_struct *tty = cs->hw.ser->tty; in write_modem() local 106 struct tty_struct *tty = cs->hw.ser->tty; in send_cb() local 422 struct tty_struct *tty = cs->hw.ser->tty; in gigaset_set_modem_ctrl() local 471 static struct cardstate *cs_get(struct tty_struct *tty) in cs_get() 494 gigaset_tty_open(struct tty_struct *tty) in gigaset_tty_open() 557 gigaset_tty_close(struct tty_struct *tty) in gigaset_tty_close() 595 static int gigaset_tty_hangup(struct tty_struct *tty) in gigaset_tty_hangup() 607 gigaset_tty_ioctl(struct tty_struct *tty, struct file *file, in gigaset_tty_ioctl() 660 gigaset_tty_receive(struct tty_struct *tty, const unsigned char *buf, in gigaset_tty_receive() [all …]
|
/drivers/net/irda/ |
D | irtty-sir.c | 90 struct tty_struct *tty; in irtty_wait_until_sent() local 117 struct tty_struct *tty; in irtty_change_speed() local 185 struct tty_struct *tty; in irtty_do_write() local 219 static void irtty_receive_buf(struct tty_struct *tty, const unsigned char *cp, in irtty_receive_buf() 259 static void irtty_write_wakeup(struct tty_struct *tty) in irtty_write_wakeup() 278 static inline void irtty_stop_receiver(struct tty_struct *tty, int stop) in irtty_stop_receiver() 308 struct tty_struct *tty; in irtty_start_dev() local 335 struct tty_struct *tty; in irtty_stop_dev() local 380 static int irtty_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long a… in irtty_ioctl() 425 static int irtty_open(struct tty_struct *tty) in irtty_open() [all …]
|
/drivers/tty/hvc/ |
D | hvc_console.c | 311 static void hvc_unthrottle(struct tty_struct *tty) in hvc_unthrottle() 316 static int hvc_install(struct tty_driver *driver, struct tty_struct *tty) in hvc_install() 338 static int hvc_open(struct tty_struct *tty, struct file * filp) in hvc_open() 381 static void hvc_close(struct tty_struct *tty, struct file * filp) in hvc_close() 430 static void hvc_cleanup(struct tty_struct *tty) in hvc_cleanup() 437 static void hvc_hangup(struct tty_struct *tty) in hvc_hangup() 497 static int hvc_write(struct tty_struct *tty, const unsigned char *buf, int count) in hvc_write() 551 struct tty_struct *tty; in hvc_set_winsz() local 573 static int hvc_write_room(struct tty_struct *tty) in hvc_write_room() 583 static int hvc_chars_in_buffer(struct tty_struct *tty) in hvc_chars_in_buffer() [all …]
|
/drivers/staging/dgnc/ |
D | dgnc_tty.c | 961 static int dgnc_tty_open(struct tty_struct *tty, struct file *file) in dgnc_tty_open() 1171 static int dgnc_block_til_ready(struct tty_struct *tty, in dgnc_block_til_ready() 1298 static void dgnc_tty_hangup(struct tty_struct *tty) in dgnc_tty_hangup() 1311 static void dgnc_tty_close(struct tty_struct *tty, struct file *file) in dgnc_tty_close() 1454 static int dgnc_tty_chars_in_buffer(struct tty_struct *tty) in dgnc_tty_chars_in_buffer() 1536 static int dgnc_tty_write_room(struct tty_struct *tty) in dgnc_tty_write_room() 1599 static int dgnc_tty_put_char(struct tty_struct *tty, unsigned char c) in dgnc_tty_put_char() 1614 static int dgnc_tty_write(struct tty_struct *tty, in dgnc_tty_write() 1756 static int dgnc_tty_tiocmget(struct tty_struct *tty) in dgnc_tty_tiocmget() 1805 static int dgnc_tty_tiocmset(struct tty_struct *tty, in dgnc_tty_tiocmset() [all …]
|
/drivers/bluetooth/ |
D | hci_ldisc.c | 146 struct tty_struct *tty = hu->tty; in hci_uart_write_work() local 223 struct tty_struct *tty = hu->tty; in hci_uart_flush() local 269 struct tty_struct *tty = hu->tty; in hci_uart_set_flow_control() local 328 struct tty_struct *tty = hu->tty; in hci_uart_init_tty() local 347 struct tty_struct *tty = hu->tty; in hci_uart_set_baudrate() local 446 static int hci_uart_tty_open(struct tty_struct *tty) in hci_uart_tty_open() 481 static void hci_uart_tty_close(struct tty_struct *tty) in hci_uart_tty_close() 521 static void hci_uart_tty_wakeup(struct tty_struct *tty) in hci_uart_tty_wakeup() 551 static void hci_uart_tty_receive(struct tty_struct *tty, const u8 *data, in hci_uart_tty_receive() 689 static int hci_uart_tty_ioctl(struct tty_struct *tty, struct file *file, in hci_uart_tty_ioctl() [all …]
|
/drivers/input/serio/ |
D | serport.c | 36 struct tty_struct *tty; member 82 static int serport_ldisc_open(struct tty_struct *tty) in serport_ldisc_open() 108 static void serport_ldisc_close(struct tty_struct *tty) in serport_ldisc_close() 121 static void serport_ldisc_receive(struct tty_struct *tty, const unsigned char *cp, char *fp, int co… in serport_ldisc_receive() 163 static ssize_t serport_ldisc_read(struct tty_struct * tty, struct file * file, unsigned char __user… in serport_ldisc_read() 198 static void serport_set_type(struct tty_struct *tty, unsigned long type) in serport_set_type() 211 static int serport_ldisc_ioctl(struct tty_struct *tty, struct file *file, in serport_ldisc_ioctl() 229 static long serport_ldisc_compat_ioctl(struct tty_struct *tty, in serport_ldisc_compat_ioctl() 248 static int serport_ldisc_hangup(struct tty_struct *tty) in serport_ldisc_hangup() 261 static void serport_ldisc_write_wakeup(struct tty_struct * tty) in serport_ldisc_write_wakeup()
|
/drivers/usb/serial/ |
D | usb-serial.c | 180 static int serial_install(struct tty_driver *driver, struct tty_struct *tty) in serial_install() 223 static int serial_port_activate(struct tty_port *tport, struct tty_struct *tty) in serial_port_activate() 243 static int serial_open(struct tty_struct *tty, struct file *filp) in serial_open() 272 static void serial_hangup(struct tty_struct *tty) in serial_hangup() 281 static void serial_close(struct tty_struct *tty, struct file *filp) in serial_close() 299 static void serial_cleanup(struct tty_struct *tty) in serial_cleanup() 327 static int serial_write(struct tty_struct *tty, const unsigned char *buf, in serial_write() 345 static int serial_write_room(struct tty_struct *tty) in serial_write_room() 354 static int serial_chars_in_buffer(struct tty_struct *tty) in serial_chars_in_buffer() 367 static void serial_wait_until_sent(struct tty_struct *tty, int timeout) in serial_wait_until_sent() [all …]
|
D | generic.c | 80 int usb_serial_generic_open(struct tty_struct *tty, struct usb_serial_port *port) in usb_serial_generic_open() 191 int usb_serial_generic_write(struct tty_struct *tty, in usb_serial_generic_write() 211 int usb_serial_generic_write_room(struct tty_struct *tty) in usb_serial_generic_write_room() 228 int usb_serial_generic_chars_in_buffer(struct tty_struct *tty) in usb_serial_generic_chars_in_buffer() 246 void usb_serial_generic_wait_until_sent(struct tty_struct *tty, long timeout) in usb_serial_generic_wait_until_sent() 440 void usb_serial_generic_throttle(struct tty_struct *tty) in usb_serial_generic_throttle() 451 void usb_serial_generic_unthrottle(struct tty_struct *tty) in usb_serial_generic_unthrottle() 466 static bool usb_serial_generic_msr_changed(struct tty_struct *tty, in usb_serial_generic_msr_changed() 495 int usb_serial_generic_tiocmiwait(struct tty_struct *tty, unsigned long arg) in usb_serial_generic_tiocmiwait() 515 int usb_serial_generic_get_icount(struct tty_struct *tty, in usb_serial_generic_get_icount() [all …]
|
/drivers/isdn/capi/ |
D | capi.c | 303 struct tty_struct *tty; in capincci_free_minor() local 320 struct tty_struct *tty; in capincci_minor_opencount() local 404 struct tty_struct *tty; in handle_recv_skb() local 488 struct tty_struct *tty; in handle_minor_send() local 998 capinc_tty_install(struct tty_driver *driver, struct tty_struct *tty) in capinc_tty_install() 1010 static void capinc_tty_cleanup(struct tty_struct *tty) in capinc_tty_cleanup() 1017 static int capinc_tty_open(struct tty_struct *tty, struct file *filp) in capinc_tty_open() 1030 static void capinc_tty_close(struct tty_struct *tty, struct file *filp) in capinc_tty_close() 1037 static int capinc_tty_write(struct tty_struct *tty, in capinc_tty_write() 1072 static int capinc_tty_put_char(struct tty_struct *tty, unsigned char ch) in capinc_tty_put_char() [all …]
|
/drivers/net/ppp/ |
D | ppp_synctty.c | 56 struct tty_struct *tty; member 137 static struct syncppp *sp_get(struct tty_struct *tty) in sp_get() 159 ppp_sync_open(struct tty_struct *tty) in ppp_sync_open() 217 ppp_sync_close(struct tty_struct *tty) in ppp_sync_close() 251 static int ppp_sync_hangup(struct tty_struct *tty) in ppp_sync_hangup() 262 ppp_sync_read(struct tty_struct *tty, struct file *file, in ppp_sync_read() 273 ppp_sync_write(struct tty_struct *tty, struct file *file, in ppp_sync_write() 280 ppp_synctty_ioctl(struct tty_struct *tty, struct file *file, in ppp_synctty_ioctl() 330 ppp_sync_poll(struct tty_struct *tty, struct file *file, poll_table *wait) in ppp_sync_poll() 337 ppp_sync_receive(struct tty_struct *tty, const unsigned char *buf, in ppp_sync_receive() [all …]
|
/drivers/tty/serial/ |
D | serial_core.c | 117 static void uart_stop(struct tty_struct *tty) in uart_stop() 129 static void __uart_start(struct tty_struct *tty) in __uart_start() 141 static void uart_start(struct tty_struct *tty) in uart_start() 173 static int uart_port_startup(struct tty_struct *tty, struct uart_state *state, in uart_port_startup() 232 static int uart_startup(struct tty_struct *tty, struct uart_state *state, in uart_startup() 255 static void uart_shutdown(struct tty_struct *tty, struct uart_state *state) in uart_shutdown() 475 static void uart_change_speed(struct tty_struct *tty, struct uart_state *state, in uart_change_speed() 520 static int uart_put_char(struct tty_struct *tty, unsigned char c) in uart_put_char() 542 static void uart_flush_chars(struct tty_struct *tty) in uart_flush_chars() 547 static int uart_write(struct tty_struct *tty, in uart_write() [all …]
|
/drivers/mmc/card/ |
D | sdio_uart.c | 434 struct tty_struct *tty; in sdio_uart_transmit_chars() local 472 struct tty_struct *tty; in sdio_uart_check_modem_status() local 600 static int sdio_uart_activate(struct tty_port *tport, struct tty_struct *tty) in sdio_uart_activate() 732 static int sdio_uart_install(struct tty_driver *driver, struct tty_struct *tty) in sdio_uart_install() 754 static void sdio_uart_cleanup(struct tty_struct *tty) in sdio_uart_cleanup() 765 static int sdio_uart_open(struct tty_struct *tty, struct file *filp) in sdio_uart_open() 771 static void sdio_uart_close(struct tty_struct *tty, struct file * filp) in sdio_uart_close() 777 static void sdio_uart_hangup(struct tty_struct *tty) in sdio_uart_hangup() 783 static int sdio_uart_write(struct tty_struct *tty, const unsigned char *buf, in sdio_uart_write() 806 static int sdio_uart_write_room(struct tty_struct *tty) in sdio_uart_write_room() [all …]
|
/drivers/ipack/devices/ |
D | ipoctal.c | 74 static int ipoctal_port_activate(struct tty_port *port, struct tty_struct *tty) in ipoctal_port_activate() 89 static int ipoctal_open(struct tty_struct *tty, struct file *file) in ipoctal_open() 125 static void ipoctal_close(struct tty_struct *tty, struct file *filp) in ipoctal_close() 133 static int ipoctal_get_icount(struct tty_struct *tty, in ipoctal_get_icount() 271 struct tty_driver *tty; in ipoctal_inst_slot() local 443 static int ipoctal_write_tty(struct tty_struct *tty, in ipoctal_write_tty() 466 static int ipoctal_write_room(struct tty_struct *tty) in ipoctal_write_room() 473 static int ipoctal_chars_in_buffer(struct tty_struct *tty) in ipoctal_chars_in_buffer() 480 static void ipoctal_set_termios(struct tty_struct *tty, in ipoctal_set_termios() 615 static void ipoctal_hangup(struct tty_struct *tty) in ipoctal_hangup() [all …]
|