| /linux/drivers/tty/ |
| H A D | tty_ioctl.c | 48 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 D | n_tty.c | 155 static void zero_buffer(const struct tty_struct *tty, u8 *buffer, size_t size) in zero_buffer() 161 static void tty_copy(const struct tty_struct *tty, void *to, size_t tail, in tty_copy() 193 static void n_tty_kick_worker(const struct tty_struct *tty) in n_tty_kick_worker() 213 static ssize_t chars_in_buffer(const struct tty_struct *tty) in chars_in_buffer() 228 static void n_tty_write_wakeup(struct tty_struct *tty) in n_tty_write_wakeup() 234 static void n_tty_check_throttle(struct tty_struct *tty) in n_tty_check_throttle() 255 static void n_tty_check_unthrottle(struct tty_struct *tty) in n_tty_check_unthrottle() 325 static void n_tty_packet_mode_flush(struct tty_struct *tty) in n_tty_packet_mode_flush() 347 static void n_tty_flush_buffer(struct tty_struct *tty) in n_tty_flush_buffer() 378 static inline int is_continuation(u8 c, const struct tty_struct *tty) in is_continuation() [all …]
|
| H A 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_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 D | tty_mutex.c | 15 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 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 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()
|
| H A D | vcc.c | 27 struct tty_struct *tty; /* only populated while dev is open */ member 277 static int vcc_rx_check(struct tty_struct *tty, int size) in vcc_rx_check() 292 static int vcc_rx(struct tty_struct *tty, char *buf, int size) in vcc_rx() 309 struct tty_struct *tty; in vcc_ldc_read() local 413 struct tty_struct *tty = port->tty; in vcc_tx_timer() local 734 static int vcc_open(struct tty_struct *tty, struct file *vcc_file) in vcc_open() 769 static void vcc_close(struct tty_struct *tty, struct file *vcc_file) in vcc_close() 794 static void vcc_hangup(struct tty_struct *tty) in vcc_hangup() 817 static ssize_t vcc_write(struct tty_struct *tty, const u8 *buf, size_t count) in vcc_write() 882 static unsigned int vcc_write_room(struct tty_struct *tty) in vcc_write_room() [all …]
|
| H A D | rpmsg_tty.c | 50 static int rpmsg_tty_install(struct tty_driver *driver, struct tty_struct *tty) in rpmsg_tty_install() 61 static void rpmsg_tty_cleanup(struct tty_struct *tty) in rpmsg_tty_cleanup() 66 static int rpmsg_tty_open(struct tty_struct *tty, struct file *filp) in rpmsg_tty_open() 71 static void rpmsg_tty_close(struct tty_struct *tty, struct file *filp) in rpmsg_tty_close() 76 static ssize_t rpmsg_tty_write(struct tty_struct *tty, const u8 *buf, in rpmsg_tty_write() 105 static unsigned int rpmsg_tty_write_room(struct tty_struct *tty) in rpmsg_tty_write_room() 117 static void rpmsg_tty_hangup(struct tty_struct *tty) in rpmsg_tty_hangup()
|
| H A D | goldfish.c | 155 static int goldfish_tty_activate(struct tty_port *port, struct tty_struct *tty) in goldfish_tty_activate() 170 static int goldfish_tty_open(struct tty_struct *tty, struct file *filp) in goldfish_tty_open() 176 static void goldfish_tty_close(struct tty_struct *tty, struct file *filp) in goldfish_tty_close() 181 static void goldfish_tty_hangup(struct tty_struct *tty) in goldfish_tty_hangup() 186 static ssize_t goldfish_tty_write(struct tty_struct *tty, const u8 *buf, in goldfish_tty_write() 193 static unsigned int goldfish_tty_write_room(struct tty_struct *tty) in goldfish_tty_write_room() 198 static unsigned int goldfish_tty_chars_in_buffer(struct tty_struct *tty) in goldfish_tty_chars_in_buffer() 244 struct tty_driver *tty; in goldfish_tty_create_driver() local
|
| H A D | n_gsm.c | 273 struct tty_struct *tty; /* The tty our ldisc is bound to */ member 1508 static void gsm_process_modem(struct tty_struct *tty, struct gsm_dlci *dlci, in gsm_process_modem() 1690 struct tty_struct *tty; in gsm_control_modem() local 2408 struct tty_struct *tty; in gsm_dlci_data() local 2727 struct tty_struct *tty = tty_port_tty_get(&dlci->port); in gsm_dlci_release() local 3576 static void gsmld_attach_gsm(struct tty_struct *tty, struct gsm_mux *gsm) in gsmld_attach_gsm() 3592 static void gsmld_detach_gsm(struct tty_struct *tty, struct gsm_mux *gsm) in gsmld_detach_gsm() 3601 static void gsmld_receive_buf(struct tty_struct *tty, const u8 *cp, in gsmld_receive_buf() 3643 static void gsmld_flush_buffer(struct tty_struct *tty) in gsmld_flush_buffer() 3657 static void gsmld_close(struct tty_struct *tty) in gsmld_close() [all …]
|
| /linux/drivers/accessibility/speakup/ |
| H A D | spk_ttyio.c | 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 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 …]
|
| /linux/drivers/input/serio/ |
| H A D | serport.c | 32 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 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 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 …]
|
| H A D | hvcs.c | 485 static void hvcs_unthrottle(struct tty_struct *tty) in hvcs_unthrottle() 496 static void hvcs_throttle(struct tty_struct *tty) in hvcs_throttle() 528 struct tty_struct *tty = hvcsd->port.tty; in hvcs_try_write() local 558 struct tty_struct *tty; in hvcs_io() local 802 struct tty_struct *tty; in hvcs_remove() local 1058 static int hvcs_install(struct tty_driver *driver, struct tty_struct *tty) in hvcs_install() 1135 static int hvcs_open(struct tty_struct *tty, struct file *filp) in hvcs_open() 1153 static void hvcs_close(struct tty_struct *tty, struct file *filp) in hvcs_close() 1206 static void hvcs_cleanup(struct tty_struct * tty) in hvcs_cleanup() 1220 static void hvcs_hangup(struct tty_struct * tty) in hvcs_hangup() [all …]
|
| H A D | hvsi.c | 226 struct tty_struct *tty, struct hvsi_struct **to_handshake) in hvsi_recv_control() 388 static int hvsi_load_chunk(struct hvsi_struct *hp, struct tty_struct *tty, in hvsi_load_chunk() 479 struct tty_struct *tty; in hvsi_interrupt() local 699 static int hvsi_open(struct tty_struct *tty, struct file *filp) in hvsi_open() 762 static void hvsi_close(struct tty_struct *tty, struct file *filp) in hvsi_close() 814 static void hvsi_hangup(struct tty_struct *tty) in hvsi_hangup() 893 static unsigned int hvsi_write_room(struct tty_struct *tty) in hvsi_write_room() 900 static unsigned int hvsi_chars_in_buffer(struct tty_struct *tty) in hvsi_chars_in_buffer() 907 static ssize_t hvsi_write(struct tty_struct *tty, const u8 *source, in hvsi_write() 965 static void hvsi_throttle(struct tty_struct *tty) in hvsi_throttle() [all …]
|
| /linux/net/nfc/nci/ |
| H A D | uart.c | 74 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() argument 151 nci_uart_tty_open(struct tty_struct * tty) nci_uart_tty_open() argument 173 nci_uart_tty_close(struct tty_struct * tty) nci_uart_tty_close() argument 205 nci_uart_tty_wakeup(struct tty_struct * tty) nci_uart_tty_wakeup() argument 298 nci_uart_tty_receive(struct tty_struct * tty,const u8 * data,const u8 * flags,size_t count) nci_uart_tty_receive() argument 325 nci_uart_tty_ioctl(struct tty_struct * tty,unsigned int cmd,unsigned long arg) nci_uart_tty_ioctl() argument 347 nci_uart_tty_read(struct tty_struct * tty,struct file * file,u8 * buf,size_t nr,void ** cookie,unsigned long offset) nci_uart_tty_read() argument 354 nci_uart_tty_write(struct tty_struct * tty,struct file * file,const u8 * data,size_t count) nci_uart_tty_write() argument [all...] |
| /linux/net/bluetooth/rfcomm/ |
| H A D | tty.c | 107 static int rfcomm_dev_activate(struct tty_port *port, struct tty_struct *tty) in rfcomm_dev_activate() 318 struct device *tty; in rfcomm_dev_add() local 674 static void rfcomm_tty_cleanup(struct tty_struct *tty) in rfcomm_tty_cleanup() 697 static int rfcomm_tty_install(struct tty_driver *driver, struct tty_struct *tty) in rfcomm_tty_install() 735 static int rfcomm_tty_open(struct tty_struct *tty, struct file *filp) in rfcomm_tty_open() 761 static void rfcomm_tty_close(struct tty_struct *tty, struct file *filp) in rfcomm_tty_close() 771 static ssize_t rfcomm_tty_write(struct tty_struct *tty, const u8 *buf, in rfcomm_tty_write() 801 static unsigned int rfcomm_tty_write_room(struct tty_struct *tty) in rfcomm_tty_write_room() 814 static int rfcomm_tty_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) in rfcomm_tty_ioctl() 847 static void rfcomm_tty_set_termios(struct tty_struct *tty, in rfcomm_tty_set_termios() [all …]
|
| /linux/arch/um/drivers/ |
| H A D | line.c | 50 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/net/ppp/ |
| H A D | ppp_synctty.c | 53 struct tty_struct *tty; member 132 static struct syncppp *sp_get(struct tty_struct *tty) in sp_get() 154 ppp_sync_open(struct tty_struct *tty) in ppp_sync_open() 212 ppp_sync_close(struct tty_struct *tty) in ppp_sync_close() 246 static void ppp_sync_hangup(struct tty_struct *tty) in ppp_sync_hangup() 256 ppp_sync_read(struct tty_struct *tty, struct file *file, u8 *buf, size_t count, in ppp_sync_read() 267 ppp_sync_write(struct tty_struct *tty, struct file *file, const u8 *buf, in ppp_sync_write() 274 ppp_synctty_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) in ppp_synctty_ioctl() 323 ppp_sync_receive(struct tty_struct *tty, const u8 *buf, const u8 *cflags, in ppp_sync_receive() 341 ppp_sync_wakeup(struct tty_struct *tty) in ppp_sync_wakeup() [all …]
|
| H A D | ppp_async.c | 42 struct tty_struct *tty; member 131 static struct asyncppp *ap_get(struct tty_struct *tty) in ap_get() 154 ppp_asynctty_open(struct tty_struct *tty) in ppp_asynctty_open() 214 ppp_asynctty_close(struct tty_struct *tty) in ppp_asynctty_close() 249 static void ppp_asynctty_hangup(struct tty_struct *tty) in ppp_asynctty_hangup() 259 ppp_asynctty_read(struct tty_struct *tty, struct file *file, u8 *buf, in ppp_asynctty_read() 270 ppp_asynctty_write(struct tty_struct *tty, struct file *file, const u8 *buf, in ppp_asynctty_write() 282 ppp_asynctty_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) in ppp_asynctty_ioctl() 331 ppp_asynctty_receive(struct tty_struct *tty, const u8 *buf, const u8 *cflags, in ppp_asynctty_receive() 349 ppp_asynctty_wakeup(struct tty_struct *tty) in ppp_asynctty_wakeup() [all …]
|
| /linux/drivers/usb/class/ |
| H A D | cdc-acm.c | 640 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() 806 static void acm_tty_cleanup(struct tty_struct *tty) in acm_tty_cleanup() 813 static void acm_tty_hangup(struct tty_struct *tty) in acm_tty_hangup() 820 static void acm_tty_close(struct tty_struct *tty, struct file *filp) in acm_tty_close() 827 static ssize_t acm_tty_write(struct tty_struct *tty, const u8 *buf, in acm_tty_write() 881 static unsigned int acm_tty_write_room(struct tty_struct *tty) in acm_tty_write_room() 891 static void acm_tty_flush_buffer(struct tty_struct *tty) in acm_tty_flush_buffer() 904 static unsigned int acm_tty_chars_in_buffer(struct tty_struct *tty) in acm_tty_chars_in_buffer() [all …]
|
| /linux/drivers/mmc/core/ |
| H A D | sdio_uart.c | 411 struct tty_struct *tty; in sdio_uart_transmit_chars() local 448 struct tty_struct *tty; in sdio_uart_check_modem_status() local 576 static int sdio_uart_activate(struct tty_port *tport, struct tty_struct *tty) in sdio_uart_activate() 708 static int sdio_uart_install(struct tty_driver *driver, struct tty_struct *tty) in sdio_uart_install() 730 static void sdio_uart_cleanup(struct tty_struct *tty) in sdio_uart_cleanup() 741 static int sdio_uart_open(struct tty_struct *tty, struct file *filp) in sdio_uart_open() 747 static void sdio_uart_close(struct tty_struct *tty, struct file * filp) in sdio_uart_close() 753 static void sdio_uart_hangup(struct tty_struct *tty) in sdio_uart_hangup() 759 static ssize_t sdio_uart_write(struct tty_struct *tty, const u8 *buf, in sdio_uart_write() 782 static unsigned int sdio_uart_write_room(struct tty_struct *tty) in sdio_uart_write_room() [all …]
|
| /linux/arch/m68k/emu/ |
| H A D | nfcon.c | 64 static int nfcon_tty_open(struct tty_struct *tty, struct file *filp) in nfcon_tty_open() 69 static void nfcon_tty_close(struct tty_struct *tty, struct file *filp) in nfcon_tty_close() 73 static ssize_t nfcon_tty_write(struct tty_struct *tty, const u8 *buf, in nfcon_tty_write() 80 static int nfcon_tty_put_char(struct tty_struct *tty, u8 ch) in nfcon_tty_put_char() 88 static unsigned int nfcon_tty_write_room(struct tty_struct *tty) in nfcon_tty_write_room()
|
| /linux/drivers/char/ |
| H A D | ttyprintk.c | 86 static int tpk_open(struct tty_struct *tty, struct file *filp) in tpk_open() 96 static void tpk_close(struct tty_struct *tty, struct file *filp) in tpk_close() 106 static ssize_t tpk_write(struct tty_struct *tty, const u8 *buf, size_t count) in tpk_write() 123 static unsigned int tpk_write_room(struct tty_struct *tty) in tpk_write_room() 131 static void tpk_hangup(struct tty_struct *tty) in tpk_hangup()
|
| /linux/sound/soc/codecs/ |
| H A D | cx20442.c | 25 struct tty_struct *tty; member 212 static int v253_open(struct tty_struct *tty) in v253_open() argument 237 v253_close(struct tty_struct * tty) v253_close() argument 255 v253_hangup(struct tty_struct * tty) v253_hangup() argument 261 v253_receive(struct tty_struct * tty,const u8 * cp,const u8 * fp,size_t count) v253_receive() argument 389 struct tty_struct *tty = cx20442->tty; cx20442_component_remove() local [all...] |
| /linux/drivers/usb/serial/ |
| H A D | upd78f0730.c | 183 static int upd78f0730_tiocmget(struct tty_struct *tty) in upd78f0730_tiocmget() 204 static int upd78f0730_tiocmset(struct tty_struct *tty, in upd78f0730_tiocmset() 241 static int upd78f0730_break_ctl(struct tty_struct *tty, int break_state) in upd78f0730_break_ctl() 270 struct tty_struct *tty = port->port.tty; in upd78f0730_dtr_rts() local 282 static speed_t upd78f0730_get_baud_rate(struct tty_struct *tty) in upd78f0730_get_baud_rate() 301 static void upd78f0730_set_termios(struct tty_struct *tty, in upd78f0730_set_termios() 379 static int upd78f0730_open(struct tty_struct *tty, struct usb_serial_port *port) in upd78f0730_open()
|