| /drivers/tty/ |
| A D | tty_ldisc.c | 27 #define tty_ldisc_debug(tty, f, args...) tty_debug(tty, f, ##args) argument 167 ld->tty = tty; in tty_ldisc_get() 549 retval = tty->ops->ldisc_ok(tty, disc); in tty_set_ldisc() 572 tty->ops->set_ldisc(tty); in tty_set_ldisc() 613 tty_ldisc_close(tty, tty->ldisc); in tty_ldisc_kill() 628 tty->termios = tty->driver->init_termios; in tty_reset_termios() 660 tty_ldisc_close(tty, tty->ldisc); in tty_ldisc_reinit() 667 retval = tty_ldisc_open(tty, tty->ldisc); in tty_ldisc_reinit() 694 tty_ldisc_debug(tty, "%p: hangup\n", tty->ldisc); in tty_ldisc_hangup() 745 int retval = tty_ldisc_open(tty, tty->ldisc); in tty_ldisc_setup() [all …]
|
| A D | n_tty.c | 157 if (L_ICANON(tty) && !L_ECHO(tty)) in zero_buffer() 760 tty->ops->flush_chars(tty); in commit_echoes() 777 tty->ops->flush_chars(tty); in process_echoes() 953 if (!L_ECHOK(tty) || !L_ECHOKE(tty) || !L_ECHOE(tty)) { in eraser() 1279 if (c == REPRINT_CHAR(tty) && L_ECHO(tty) && L_IEXTEN(tty)) { in n_tty_receive_char_canon() 1359 if (tty->flow.stopped && !tty->flow.tco_stopped && I_IXON(tty) && I_IXANY(tty)) { in n_tty_receive_char_special() 1411 if (tty->flow.stopped && !tty->flow.tco_stopped && I_IXON(tty) && I_IXANY(tty)) { in n_tty_receive_char() 1628 tty->ops->flush_chars(tty); in __receive_buf() 1806 if (I_ISTRIP(tty) || I_IUCLC(tty) || I_IGNCR(tty) || in n_tty_set_termios() 1807 I_ICRNL(tty) || I_INLCR(tty) || L_ICANON(tty) || in n_tty_set_termios() [all …]
|
| A D | tty_io.c | 200 priv->tty = tty; in tty_add_file() 254 if (!tty || !tty->driver) in tty_driver_name() 455 if (tty && tty->ops && tty->ops->show_fdinfo) in tty_show_fdinfo() 644 tty->ops->hangup(tty); in __tty_hangup() 746 tty->ops->stop(tty); in __stop_tty() 776 tty->ops->start(tty); in __start_tty() 1070 if (!tty || !tty->ops->write || tty_io_error(tty)) in file_tty_write() 1424 tty->port->itty = tty; in tty_init_dev() 1522 tty->ops->cleanup(tty); in release_one_tty() 1580 tty->ops->shutdown(tty); in release_tty() [all …]
|
| A D | tty_ioctl.c | 51 return tty->ops->chars_in_buffer(tty); in tty_chars_in_buffer() 69 return tty->ops->write_room(tty); in tty_write_room() 85 tty->ops->flush_buffer(tty); in tty_driver_flush_buffer() 106 tty->ops->unthrottle(tty); in tty_unthrottle() 135 tty->ops->throttle(tty); in tty_throttle_safe() 163 tty->ops->unthrottle(tty); in tty_unthrottle_safe() 193 tty->ops->wait_until_sent(tty, timeout); in tty_wait_until_sent() 341 tty->ops->set_termios(tty, &old_termios); in tty_set_termios() 505 tty->ops->wait_until_sent(tty, 0); 748 tty->ops->set_termios(tty, &old); in tty_change_softcar() [all …]
|
| A D | pty.c | 36 # define tty_debug_hangup(tty, f, args...) tty_debug(tty, f, ##args) argument 64 if (!tty->link) in pty_close() 195 if (tty->link) { in pty_signal() 222 if (!tty || !tty->link) in pty_open() 246 if (tty->link && tty->link->ctrl.packet) { in pty_set_termios() 326 if (tty->link && tty->link->ctrl.packet) { in pty_start() 339 if (tty->link && tty->link->ctrl.packet) { in pty_stop() 419 tty->count++; in pty_common_install() 714 if (!tty) in pts_unix98_lookup() 716 return tty; in pts_unix98_lookup() [all …]
|
| A D | tty_jobctrl.c | 39 if (current->signal->tty != tty) in __tty_check_change() 81 tty = p->signal->tty; in proc_clear_tty() 118 current->signal->tty = tty_kref_get(tty); in __proc_set_tty() 166 tty = tty_kref_get(current->signal->tty); in get_current_tty() 168 return tty; in get_current_tty() 206 if (p->signal->tty == tty) { in tty_signal_session_leader() 273 if (tty) { in disassociate_ctty() 304 if (tty) { in disassociate_ctty() 474 if (tty == real_tty && current->signal->tty != real_tty) in tiocgpgrp() 552 if (tty == real_tty && current->signal->tty != real_tty) in tiocgsid() [all …]
|
| A D | tty.h | 9 #define tty_msg(fn, tty, f, ...) \ argument 10 fn("%s %s: " f, tty_driver_name(tty), tty_name(tty), ##__VA_ARGS__) 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 53 tty->flow_change = val; in __tty_set_flow_change() 59 tty->flow_change = val; in tty_set_flow_change() 68 void __stop_tty(struct tty_struct *tty); [all …]
|
| A D | tty_port.c | 30 if (!tty) in tty_port_default_receive_buf() 51 if (!tty) in tty_port_default_lookahead_buf() 68 if (tty) { in tty_port_default_wakeup() 69 tty_wakeup(tty); in tty_port_default_wakeup() 308 tty = tty_kref_get(port->tty); in tty_port_tty_get() 310 return tty; in tty_port_tty_get() 328 port->tty = tty_kref_get(tty); in tty_port_tty_set() 355 if (tty && C_HUPCL(tty)) in tty_port_shutdown() 381 tty = port->tty; in tty_port_hangup() 382 if (tty) in tty_port_hangup() [all …]
|
| A D | tty_mutex.c | 15 void tty_lock(struct tty_struct *tty) in tty_lock() argument 17 tty_kref_get(tty); in tty_lock() 18 mutex_lock(&tty->legacy_mutex); in tty_lock() 26 tty_kref_get(tty); in tty_lock_interruptible() 29 tty_kref_put(tty); in tty_lock_interruptible() 35 mutex_unlock(&tty->legacy_mutex); in tty_unlock() 36 tty_kref_put(tty); in tty_unlock() 42 if (tty && tty != tty->link) in tty_lock_slave() 43 tty_lock(tty); in tty_lock_slave() 48 if (tty && tty != tty->link) in tty_unlock_slave() [all …]
|
| A D | amiserial.c | 338 if (port->tty) in check_modem_status() 491 if (C_BAUD(tty)) in startup() 654 if (I_BRKINT(tty) || I_PARMRK(tty)) in change_speed() 807 tty_wakeup(tty); in rs_flush_buffer() 855 rs_send_xchar(tty, STOP_CHAR(tty)); in rs_throttle() 877 rs_send_xchar(tty, START_CHAR(tty)); in rs_unthrottle() 897 tty_lock(tty); in get_serial_info() 923 tty_lock(tty); in set_serial_info() 1189 if (!C_CRTSCTS(tty) || !tty_throttled(tty)) in rs_set_termios() 1199 rs_start(tty); in rs_set_termios() [all …]
|
| A D | n_hdlc.c | 201 tty->disc_data = NULL; in n_hdlc_tty_close() 241 n_hdlc->tty_for_write_work = tty; in n_hdlc_tty_open() 242 tty->disc_data = n_hdlc; in n_hdlc_tty_open() 243 tty->receive_room = 65536; in n_hdlc_tty_open() 249 tty_driver_flush_buffer(tty); in n_hdlc_tty_open() 288 actual = tty->ops->write(tty, tbuf->buf, tbuf->count); in n_hdlc_send_frames() 346 n_hdlc_send_frames(n_hdlc, tty); in n_hdlc_tty_write_work() 411 if (tty->fasync != NULL) in n_hdlc_tty_receive() 568 n_hdlc_send_frames(n_hdlc, tty); in n_hdlc_tty_write() 626 flush_tx_queue(tty); in n_hdlc_tty_ioctl() [all …]
|
| A D | vcc.c | 279 if (WARN_ON(!tty || !tty->port)) in vcc_rx_check() 296 if (WARN_ON(!tty || !tty->port)) in vcc_rx() 313 tty = port->tty; in vcc_ldc_read() 314 if (!tty) { in vcc_ldc_read() 413 struct tty_struct *tty = port->tty; in vcc_tx_timer() local 416 if (tty) in vcc_tx_timer() 693 if (port->tty) in vcc_remove() 707 if (port->tty) { in vcc_remove() 766 return tty_port_open(tty->port, tty, vcc_file); in vcc_open() 779 tty_port_close(tty->port, tty, vcc_file); in vcc_close() [all …]
|
| A D | mxser.c | 557 tty_wakeup(tty); in mxser_handle_cts() 580 if (mxser_set_baud(tty, tty_get_baud_rate(tty))) { in mxser_change_speed() 646 if (I_INPCK(tty)) in mxser_change_speed() 648 if (I_BRKINT(tty) || I_PARMRK(tty)) in mxser_change_speed() 893 tty_wakeup(tty); in mxser_flush_buffer() 898 tty_port_close(tty->port, tty, filp); in mxser_close() 1362 mxser_start(tty); in mxser_set_termios() 1375 mxser_start(tty); in mxser_set_termios() 1528 do_SAK(tty); in mxser_receive_chars_old() 1595 tty_wakeup(tty); in mxser_transmit_chars() [all …]
|
| /drivers/tty/ipwireless/ |
| A D | tty.c | 92 if (!tty) in ipw_open() 101 tty->port.tty = linux_tty; in ipw_open() 117 struct tty_struct *linux_tty = tty->port.tty; in do_ipw_close() 120 tty->port.tty = NULL; in do_ipw_close() 133 if (!tty) in ipw_hangup() 195 if (!tty) in ipw_write() 236 if (!tty) in ipw_write_room() 254 if (!tty) in ipwireless_get_serial_info() 276 if (!tty) in ipw_chars_in_buffer() 623 && tty->port.tty) { in ipwireless_tty_notify_control_line_change() [all …]
|
| /drivers/tty/serdev/ |
| A D | serdev-ttyport.c | 78 struct tty_struct *tty = serport->tty; in ttyport_write_buf() local 90 struct tty_struct *tty = serport->tty; in ttyport_write_flush() local 105 serport->tty = tty; in ttyport_open() 136 tty->ops->close(tty, NULL); in ttyport_open() 147 struct tty_struct *tty = serport->tty; in ttyport_close() local 153 tty->ops->close(tty, NULL); in ttyport_close() 162 struct tty_struct *tty = serport->tty; in ttyport_set_baudrate() local 176 struct tty_struct *tty = serport->tty; in ttyport_set_flow_control() local 191 struct tty_struct *tty = serport->tty; in ttyport_set_parity() local 213 struct tty_struct *tty = serport->tty; in ttyport_wait_until_sent() local [all …]
|
| /drivers/accessibility/speakup/ |
| A D | spk_ttyio.c | 155 if (IS_ERR(tty)) in spk_ttyio_initialise_ldisc() 159 ret = tty->ops->open(tty, NULL); in spk_ttyio_initialise_ldisc() 184 tty_unlock(tty); in spk_ttyio_initialise_ldisc() 203 tty_lock(tty); in spk_ttyio_initialise_ldisc() 205 tty->ops->close(tty, NULL); in spk_ttyio_initialise_ldisc() 232 ret = tty->ops->write(tty, &ch, 1); in spk_ttyio_out() 275 tty->ops->send_xchar(tty, ch); in spk_ttyio_send_xchar() 283 tty->ops->tiocmset(tty, set, clear); in spk_ttyio_tiocmset() 336 tty->ops->flush_buffer(tty); in spk_ttyio_flush_buffer() 359 tty_lock(tty); in spk_ttyio_release() [all …]
|
| A D | selection.c | 39 tty = xchg(&ssw->tty, NULL); in __speakup_set_selection() 54 tty_kref_put(tty); in __speakup_set_selection() 70 tty_kref_get(tty); in speakup_set_selection() 71 if (cmpxchg(&speakup_sel_work.tty, NULL, tty)) { in speakup_set_selection() 101 tty = xchg(&speakup_sel_work.tty, NULL); in speakup_cancel_selection() 102 if (tty) in speakup_cancel_selection() 110 struct tty_struct *tty = xchg(&ssw->tty, NULL); in __speakup_paste_selection() local 113 tty_kref_put(tty); in __speakup_paste_selection() 124 if (cmpxchg(&speakup_paste_work.tty, NULL, tty)) { in speakup_paste_selection() 138 tty = xchg(&speakup_paste_work.tty, NULL); in speakup_cancel_paste() [all …]
|
| /drivers/bluetooth/ |
| A D | hci_ldisc.c | 150 struct tty_struct *tty = hu->tty; in hci_uart_write_work() local 165 len = tty->ops->write(tty, skb->data, skb->len); in hci_uart_write_work() 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 335 status = tty->driver->ops->tiocmget(tty); in hci_uart_set_flow_control() 348 status = tty->driver->ops->tiocmget(tty); in hci_uart_set_flow_control() 378 struct tty_struct *tty = hu->tty; in hci_uart_set_baudrate() local 389 tty->termios.c_ispeed, tty->termios.c_ospeed); in hci_uart_set_baudrate() 506 hu->tty = tty; in hci_uart_tty_open() 588 if (tty != hu->tty) in hci_uart_tty_wakeup() [all …]
|
| /drivers/input/serio/ |
| A D | serport.c | 32 struct tty_struct *tty; member 47 return -(serport->tty->ops->write(serport->tty, &data, 1) != 1); in serport_serio_write() 85 serport->tty = tty; in serport_ldisc_open() 89 tty->disc_data = serport; in serport_ldisc_open() 90 tty->receive_room = 256; in serport_ldisc_open() 91 set_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in serport_ldisc_open() 102 struct serport *serport = tty->disc_data; in serport_ldisc_close() 116 struct serport *serport = tty->disc_data; in serport_ldisc_receive() 174 serio->dev.parent = tty->dev; in serport_ldisc_read() 211 serport_set_type(tty, type); in serport_ldisc_ioctl() [all …]
|
| /drivers/usb/serial/ |
| A D | upd78f0730.c | 270 struct tty_struct *tty = port->port.tty; in upd78f0730_dtr_rts() local 312 if (C_BAUD(tty) == B0) in upd78f0730_set_termios() 323 switch (C_CSIZE(tty)) { in upd78f0730_set_termios() 330 tty->termios.c_cflag |= CS8; in upd78f0730_set_termios() 339 if (C_PARENB(tty)) { in upd78f0730_set_termios() 340 if (C_PARODD(tty)) { in upd78f0730_set_termios() 348 if (C_CMSPAR(tty)) { in upd78f0730_set_termios() 357 if (C_CSTOPB(tty)) { in upd78f0730_set_termios() 365 if (C_CRTSCTS(tty)) { in upd78f0730_set_termios() 369 if (I_IXOFF(tty) || I_IXON(tty)) { in upd78f0730_set_termios() [all …]
|
| A D | xr_serial.c | 661 if (C_CRTSCTS(tty) && C_BAUD(tty) != B0 && !rs485_enabled) { in xr_set_flow_mode() 725 if (C_PARENB(tty)) { in xr21v141x_set_line_settings() 727 if (C_PARODD(tty)) in xr21v141x_set_line_settings() 732 if (C_PARODD(tty)) in xr21v141x_set_line_settings() 739 if (C_CSTOPB(tty)) in xr21v141x_set_line_settings() 768 if (C_CSTOPB(tty)) in xr_cdc_set_line_coding() 773 if (C_PARENB(tty)) { in xr_cdc_set_line_coding() 775 if (C_PARODD(tty)) in xr_cdc_set_line_coding() 780 if (C_PARODD(tty)) in xr_cdc_set_line_coding() 790 (C_CSIZE(tty) == CS5 || C_CSIZE(tty) == CS6)) { in xr_cdc_set_line_coding() [all …]
|
| /drivers/mmc/core/ |
| A D | sdio_uart.c | 425 tty->flow.stopped || tty->hw_stopped) { in sdio_uart_transmit_chars() 427 tty_kref_put(tty); in sdio_uart_transmit_chars() 439 tty_wakeup(tty); in sdio_uart_transmit_chars() 443 tty_kref_put(tty); in sdio_uart_transmit_chars() 473 if (tty && C_CRTSCTS(tty)) { in sdio_uart_check_modem_status() 488 tty_kref_put(tty); in sdio_uart_check_modem_status() 627 if (C_BAUD(tty)) in sdio_uart_activate() 630 if (C_CRTSCTS(tty)) in sdio_uart_activate() 812 if (!I_IXOFF(tty) && !C_CRTSCTS(tty)) in sdio_uart_throttle() 818 if (I_IXOFF(tty)) { in sdio_uart_throttle() [all …]
|
| /drivers/net/hamradio/ |
| A D | 6pack.c | 144 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_xmit_on_air() 150 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_xmit_on_air() 211 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_encaps() 217 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_encaps() 511 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in resync_tnc() 512 sp->tty->ops->write(sp->tty, &resync_cmd, 1); in resync_tnc() 525 sp->tty->ops->write(sp->tty, &inbyte, 1); in tnc_init() 579 sp->tty = tty; in sixpack_open() 856 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in decode_prio_command() 868 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in decode_prio_command() [all …]
|
| /drivers/net/caif/ |
| A D | caif_serial.c | 70 struct tty_struct *tty; member 154 ser = tty->disc_data; in ldisc_receive() 196 struct tty_struct *tty; in handle_tx() local 200 tty = ser->tty; in handle_tx() 222 tty_wr = tty->ops->write(tty, skb->data, len); in handle_tx() 276 ser = tty->disc_data; in ldisc_tx_wakeup() 278 WARN_ON(ser->tty != tty); in ldisc_tx_wakeup() 330 ser->tty = tty_kref_get(tty); in ldisc_open() 332 debugfs_init(ser, tty); in ldisc_open() 334 tty->disc_data = ser; in ldisc_open() [all …]
|
| /drivers/tty/hvc/ |
| A D | hvc_console.c | 377 if (C_BAUD(tty)) in hvc_open() 407 if (C_HUPCL(tty)) in hvc_close() 573 if (!tty) in hvc_set_winsz() 581 tty_kref_put(tty); in hvc_set_winsz() 662 if (tty == NULL) in __hvc_poll() 690 tty_hangup(tty); in __hvc_poll() 745 tty_wakeup(tty); in __hvc_poll() 757 tty_kref_put(tty); in __hvc_poll() 1007 if (tty) { in hvc_remove() 1008 tty_vhangup(tty); in hvc_remove() [all …]
|