Home
last modified time | relevance | path

Searched refs:tty (Results 1 – 25 of 372) sorted by relevance

12345678910>>...15

/linux/include/linux/
A Dtty.h62 #define I_INPCK(tty) _I_FLAG((tty), INPCK) argument
64 #define I_INLCR(tty) _I_FLAG((tty), INLCR) argument
65 #define I_IGNCR(tty) _I_FLAG((tty), IGNCR) argument
66 #define I_ICRNL(tty) _I_FLAG((tty), ICRNL) argument
67 #define I_IUCLC(tty) _I_FLAG((tty), IUCLC) argument
68 #define I_IXON(tty) _I_FLAG((tty), IXON) argument
69 #define I_IXANY(tty) _I_FLAG((tty), IXANY) argument
70 #define I_IXOFF(tty) _I_FLAG((tty), IXOFF) argument
89 #define C_BAUD(tty) _C_FLAG((tty), CBAUD) argument
101 #define L_ISIG(tty) _L_FLAG((tty), ISIG) argument
[all …]
A Dtty_driver.h254 void (*shutdown)(struct tty_struct *tty);
255 void (*cleanup)(struct tty_struct *tty);
256 int (*write)(struct tty_struct * tty,
262 int (*ioctl)(struct tty_struct *tty,
267 void (*throttle)(struct tty_struct * tty);
269 void (*stop)(struct tty_struct *tty);
270 void (*start)(struct tty_struct *tty);
271 void (*hangup)(struct tty_struct *tty);
277 int (*tiocmget)(struct tty_struct *tty);
278 int (*tiocmset)(struct tty_struct *tty,
[all …]
/linux/drivers/tty/
A Dtty_ldisc.c27 #define tty_ldisc_debug(tty, f, args...) tty_debug(tty, f, ##args) argument
174 ld->tty = tty; in tty_ldisc_get()
588 tty->ops->set_ldisc(tty); in tty_set_ldisc()
629 tty_ldisc_close(tty, tty->ldisc); in tty_ldisc_kill()
645 tty->termios = tty->driver->init_termios; in tty_reset_termios()
679 tty_ldisc_close(tty, tty->ldisc); in tty_ldisc_reinit()
686 retval = tty_ldisc_open(tty, tty->ldisc); in tty_ldisc_reinit()
714 tty_ldisc_debug(tty, "%p: hangup\n", tty->ldisc); in tty_ldisc_hangup()
745 if (tty_ldisc_reinit(tty, tty->termios.c_line) < 0 && in tty_ldisc_hangup()
766 int retval = tty_ldisc_open(tty, tty->ldisc); in tty_ldisc_setup()
[all …]
A Dn_tty.c795 tty->ops->flush_chars(tty); in commit_echoes()
812 tty->ops->flush_chars(tty); in process_echoes()
997 if (!L_ECHOK(tty) || !L_ECHOKE(tty) || !L_ECHOE(tty)) { in eraser()
1292 if (tty->flow.stopped && !tty->flow.tco_stopped && I_IXON(tty) && I_IXANY(tty)) { in n_tty_receive_char_special()
1324 if (c == REPRINT_CHAR(tty) && L_ECHO(tty) && L_IEXTEN(tty)) { in n_tty_receive_char_special()
1401 if (tty->flow.stopped && !tty->flow.tco_stopped && I_IXON(tty) && I_IXANY(tty)) { in n_tty_receive_char()
1581 tty->ops->flush_chars(tty); in __receive_buf()
1749 if (I_ISTRIP(tty) || I_IUCLC(tty) || I_IGNCR(tty) || in n_tty_set_termios()
1750 I_ICRNL(tty) || I_INLCR(tty) || L_ICANON(tty) || in n_tty_set_termios()
1751 I_IXON(tty) || L_ISIG(tty) || L_ECHO(tty) || in n_tty_set_termios()
[all …]
A Dtty_io.c201 priv->tty = tty; in tty_add_file()
255 if (!tty || !tty->driver) in tty_driver_name()
470 if (tty && tty->ops && tty->ops->show_fdinfo) in tty_show_fdinfo()
662 tty->ops->hangup(tty); in __tty_hangup()
770 tty->ops->stop(tty); in __stop_tty()
805 tty->ops->start(tty); in __start_tty()
1099 if (!tty || !tty->ops->write || tty_io_error(tty)) in file_tty_write()
1446 tty->port->itty = tty; in tty_init_dev()
1544 tty->ops->cleanup(tty); in release_one_tty()
1605 tty->ops->shutdown(tty); in release_tty()
[all …]
A Dtty_ioctl.c60 return tty->ops->chars_in_buffer(tty); in tty_chars_in_buffer()
79 return tty->ops->write_room(tty); in tty_write_room()
95 tty->ops->flush_buffer(tty); in tty_driver_flush_buffer()
117 tty->ops->unthrottle(tty); in tty_unthrottle()
147 tty->ops->throttle(tty); in tty_throttle_safe()
178 tty->ops->unthrottle(tty); in tty_unthrottle_safe()
213 tty->ops->wait_until_sent(tty, timeout); in tty_wait_until_sent()
358 tty->ops->set_termios(tty, &old_termios); in tty_set_termios()
668 tty->ops->set_termios(tty, &old); in tty_change_softcar()
886 retval = tty_send_xchar(tty, STOP_CHAR(tty)); in n_tty_ioctl_helper()
[all …]
A Dpty.c36 # define tty_debug_hangup(tty, f, args...) tty_debug(tty, f, ##args) argument
64 if (!tty->link) in pty_close()
205 if (tty->link) { in pty_signal()
232 if (!tty || !tty->link) in pty_open()
256 if (tty->link && tty->link->ctrl.packet) { in pty_set_termios()
336 if (tty->link && tty->link->ctrl.packet) { in pty_start()
349 if (tty->link && tty->link->ctrl.packet) { in pty_stop()
429 tty->count++; in pty_common_install()
724 if (!tty) in pts_unix98_lookup()
726 return tty; in pts_unix98_lookup()
[all …]
A Dtty_jobctrl.c39 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()
306 tty = tty_kref_get(current->signal->tty); in disassociate_ctty()
309 if (tty) { in disassociate_ctty()
469 if (tty == real_tty && current->signal->tty != real_tty) in tiocgpgrp()
[all …]
A Dtty.h9 #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
49 tty->flow_change = val; in __tty_set_flow_change()
54 tty->flow_change = val; in tty_set_flow_change()
63 void __stop_tty(struct tty_struct *tty);
[all …]
A Dtty_mutex.c17 if (WARN(tty->magic != TTY_MAGIC, "L Bad %p\n", tty)) in tty_lock()
19 tty_kref_get(tty); in tty_lock()
28 if (WARN(tty->magic != TTY_MAGIC, "L Bad %p\n", tty)) in tty_lock_interruptible()
30 tty_kref_get(tty); in tty_lock_interruptible()
33 tty_kref_put(tty); in tty_lock_interruptible()
39 if (WARN(tty->magic != TTY_MAGIC, "U Bad %p\n", tty)) in tty_unlock()
42 tty_kref_put(tty); in tty_unlock()
48 if (tty && tty != tty->link) in tty_lock_slave()
49 tty_lock(tty); in tty_lock_slave()
54 if (tty && tty != tty->link) in tty_unlock_slave()
[all …]
A Dtty_port.c32 if (!tty) in tty_port_default_receive_buf()
50 if (tty) { in tty_port_default_wakeup()
51 tty_wakeup(tty); in tty_port_default_wakeup()
52 tty_kref_put(tty); in tty_port_default_wakeup()
290 tty = tty_kref_get(port->tty); in tty_port_tty_get()
292 return tty; in tty_port_tty_get()
310 port->tty = tty_kref_get(tty); in tty_port_tty_set()
327 if (tty && C_HUPCL(tty)) in tty_port_shutdown()
353 tty = port->tty; in tty_port_hangup()
354 if (tty) in tty_port_hangup()
[all …]
A Damiserial.c339 if (port->tty) in check_modem_status()
492 if (C_BAUD(tty)) in startup()
659 if (I_BRKINT(tty) || I_PARMRK(tty)) in change_speed()
813 tty_wakeup(tty); in rs_flush_buffer()
861 rs_send_xchar(tty, STOP_CHAR(tty)); in rs_throttle()
883 rs_send_xchar(tty, START_CHAR(tty)); in rs_unthrottle()
903 tty_lock(tty); in get_serial_info()
929 tty_lock(tty); in set_serial_info()
1195 if (!C_CRTSCTS(tty) || !tty_throttled(tty)) in rs_set_termios()
1205 rs_start(tty); in rs_set_termios()
[all …]
A D.built-in.a.cmd1tty/built-in.a := echo >/dev/null; rm -f drivers/tty/built-in.a; /usr/bin/ccache /home/test/worksp…
A Dn_hdlc.c210 tty->disc_data = NULL; in n_hdlc_tty_close()
250 n_hdlc->tty_for_write_work = tty; in n_hdlc_tty_open()
251 tty->disc_data = n_hdlc; in n_hdlc_tty_open()
252 tty->receive_room = 65536; in n_hdlc_tty_open()
258 tty_driver_flush_buffer(tty); in n_hdlc_tty_open()
297 actual = tty->ops->write(tty, tbuf->buf, tbuf->count); in n_hdlc_send_frames()
355 n_hdlc_send_frames(n_hdlc, tty); in n_hdlc_tty_write_work()
426 if (tty->fasync != NULL) in n_hdlc_tty_receive()
586 n_hdlc_send_frames(n_hdlc, tty); in n_hdlc_tty_write()
649 flush_tx_queue(tty); in n_hdlc_tty_ioctl()
[all …]
A Dmxser.c548 tty_wakeup(tty); in mxser_handle_cts()
570 if (mxser_set_baud(tty, tty_get_baud_rate(tty))) { in mxser_change_speed()
650 if (I_INPCK(tty)) in mxser_change_speed()
652 if (I_BRKINT(tty) || I_PARMRK(tty)) in mxser_change_speed()
874 tty_wakeup(tty); in mxser_flush_buffer()
1358 mxser_stoprx(tty); in mxser_throttle()
1428 mxser_start(tty); in mxser_set_termios()
1441 mxser_start(tty); in mxser_set_termios()
1590 do_SAK(tty); in mxser_receive_chars_old()
1668 tty_wakeup(tty); in mxser_transmit_chars()
[all …]
A Dvcc.c278 if (WARN_ON(!tty || !tty->port)) in vcc_rx_check()
295 if (WARN_ON(!tty || !tty->port)) in vcc_rx()
312 tty = port->tty; in vcc_ldc_read()
313 if (!tty) { in vcc_ldc_read()
412 struct tty_struct *tty = port->tty; in vcc_tx_timer() local
415 if (tty) in vcc_tx_timer()
682 if (port->tty) in vcc_remove()
696 if (port->tty) { in vcc_remove()
755 return tty_port_open(tty->port, tty, vcc_file); in vcc_open()
768 tty_port_close(tty->port, tty, vcc_file); in vcc_close()
[all …]
/linux/drivers/tty/ipwireless/
A Dtty.c92 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 …]
/linux/drivers/tty/serdev/
A Dserdev-ttyport.c80 struct tty_struct *tty = serport->tty; in ttyport_write_buf() local
92 struct tty_struct *tty = serport->tty; in ttyport_write_flush() local
100 struct tty_struct *tty = serport->tty; in ttyport_write_room() local
115 serport->tty = tty; in ttyport_open()
146 tty->ops->close(tty, NULL); in ttyport_open()
157 struct tty_struct *tty = serport->tty; in ttyport_close() local
163 tty->ops->close(tty, NULL); in ttyport_close()
172 struct tty_struct *tty = serport->tty; in ttyport_set_baudrate() local
186 struct tty_struct *tty = serport->tty; in ttyport_set_flow_control() local
201 struct tty_struct *tty = serport->tty; in ttyport_set_parity() local
[all …]
/linux/drivers/accessibility/speakup/
A Dspk_ttyio.c156 if (IS_ERR(tty)) in spk_ttyio_initialise_ldisc()
160 ret = tty->ops->open(tty, NULL); in spk_ttyio_initialise_ldisc()
185 tty_unlock(tty); in spk_ttyio_initialise_ldisc()
204 tty_lock(tty); in spk_ttyio_initialise_ldisc()
206 tty->ops->close(tty, NULL); in spk_ttyio_initialise_ldisc()
233 ret = tty->ops->write(tty, &ch, 1); in spk_ttyio_out()
276 tty->ops->send_xchar(tty, ch); in spk_ttyio_send_xchar()
284 tty->ops->tiocmset(tty, set, clear); in spk_ttyio_tiocmset()
337 tty->ops->flush_buffer(tty); in spk_ttyio_flush_buffer()
357 tty_lock(tty); in spk_ttyio_release()
[all …]
A Dselection.c39 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 …]
/linux/net/nfc/nci/
A Duart.c74 struct tty_struct *tty = nu->tty; in nci_uart_write_work() local
87 len = tty->ops->write(tty, skb->data, skb->len); in nci_uart_write_work()
121 nu->tty = tty; in nci_uart_set_driver()
122 tty->disc_data = nu; in nci_uart_set_driver()
156 if (!tty->ops->write) in nci_uart_tty_open()
159 tty->disc_data = NULL; in nci_uart_tty_open()
189 nu->tty = NULL; in nci_uart_tty_close()
214 if (tty != nu->tty) in nci_uart_tty_wakeup()
303 if (!nu || tty != nu->tty) in nci_uart_tty_receive()
310 tty_unthrottle(tty); in nci_uart_tty_receive()
[all …]
/linux/drivers/tty/serial/
A D.built-in.a.cmd1tty/serial/built-in.a := echo >/dev/null; rm -f drivers/tty/serial/built-in.a; /usr/bin/ccache /ho…
/linux/drivers/tty/serial/8250/
A D.built-in.a.cmd1tty/serial/8250/built-in.a := echo >/dev/null; rm -f drivers/tty/serial/8250/built-in.a; /usr/bin/…
/linux/drivers/bluetooth/
A Dhci_ldisc.c148 struct tty_struct *tty = hu->tty; in hci_uart_write_work() local
163 len = tty->ops->write(tty, skb->data, skb->len); in hci_uart_write_work()
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
332 status = tty->driver->ops->tiocmget(tty); in hci_uart_set_flow_control()
345 status = tty->driver->ops->tiocmget(tty); in hci_uart_set_flow_control()
375 struct tty_struct *tty = hu->tty; in hci_uart_set_baudrate() local
386 tty->termios.c_ispeed, tty->termios.c_ospeed); in hci_uart_set_baudrate()
498 hu->tty = tty; in hci_uart_tty_open()
579 if (tty != hu->tty) in hci_uart_tty_wakeup()
[all …]
/linux/drivers/usb/serial/
A Dupd78f0730.c267 struct tty_struct *tty = port->port.tty; in upd78f0730_dtr_rts() local
309 if (C_BAUD(tty) == B0) in upd78f0730_set_termios()
320 switch (C_CSIZE(tty)) { in upd78f0730_set_termios()
327 tty->termios.c_cflag |= CS8; in upd78f0730_set_termios()
336 if (C_PARENB(tty)) { in upd78f0730_set_termios()
337 if (C_PARODD(tty)) { in upd78f0730_set_termios()
345 if (C_CMSPAR(tty)) { in upd78f0730_set_termios()
354 if (C_CSTOPB(tty)) { in upd78f0730_set_termios()
362 if (C_CRTSCTS(tty)) { in upd78f0730_set_termios()
366 if (I_IXOFF(tty) || I_IXON(tty)) { in upd78f0730_set_termios()
[all …]

Completed in 62 milliseconds

12345678910>>...15