Home
last modified time | relevance | path

Searched refs:tty (Results 51 – 75 of 383) sorted by relevance

12345678910>>...16

/openbmc/linux/drivers/tty/serial/
H A Dserial_core.c365 if (tty) in uart_shutdown()
383 if (!tty || C_HUPCL(tty)) in uart_shutdown()
593 uart_start(tty); in uart_flush_chars()
751 uart_send_xchar(tty, STOP_CHAR(tty)); in uart_throttle()
780 uart_send_xchar(tty, START_CHAR(tty)); in uart_unthrottle()
1765 tty_port_close(tty->port, tty, filp); in uart_close()
2522 struct tty_struct *tty = port->tty; in uart_resume_port() local
2526 if (tty) in uart_resume_port()
3263 if (tty) { in serial_core_remove_one_port()
3476 struct tty_struct *tty = port->tty; in uart_handle_dcd_change() local
[all …]
H A Dkgdb_nmi.c247 tty->driver_data = priv; in kgdb_nmi_tty_install()
249 ret = tty_port_install(&priv->port, drv, tty); in kgdb_nmi_tty_install()
261 static void kgdb_nmi_tty_cleanup(struct tty_struct *tty) in kgdb_nmi_tty_cleanup() argument
263 struct kgdb_nmi_tty_priv *priv = tty->driver_data; in kgdb_nmi_tty_cleanup()
265 tty->driver_data = NULL; in kgdb_nmi_tty_cleanup()
272 struct kgdb_nmi_tty_priv *priv = tty->driver_data; in kgdb_nmi_tty_open()
276 ret = tty_port_open(&priv->port, tty, file); in kgdb_nmi_tty_open()
285 struct kgdb_nmi_tty_priv *priv = tty->driver_data; in kgdb_nmi_tty_close()
291 tty_port_close(&priv->port, tty, file); in kgdb_nmi_tty_close()
294 static void kgdb_nmi_tty_hangup(struct tty_struct *tty) in kgdb_nmi_tty_hangup() argument
[all …]
/openbmc/linux/drivers/misc/ti-st/
H A Dst_core.c73 struct tty_struct *tty; in st_int_write() local
78 tty = st_gdata->tty; in st_int_write()
83 return tty->ops->write(tty, data, count); in st_int_write()
672 if (st_gdata->tty) { in st_unregister()
674 stop_tty(st_gdata->tty); in st_unregister()
726 st_gdata->tty = tty; in st_tty_open()
727 tty->disc_data = st_gdata; in st_tty_open()
734 tty->receive_room = 65536; in st_tty_open()
736 tty_ldisc_flush(tty); in st_tty_open()
775 st_gdata->tty = NULL; in st_tty_close()
[all …]
/openbmc/linux/drivers/net/slip/
H A Dslip.c409 actual = sl->tty->ops->write(sl->tty, sl->xbuff, count);
444 actual = sl->tty->ops->write(sl->tty, sl->xhead, sl->xleft);
538 if (sl->tty)
821 sl->tty = tty;
860 sl->tty = NULL;
889 if (!sl || sl->magic != SLIP_MAGIC || sl->tty != tty)
894 sl->tty = NULL;
1200 if (!sl->tty) {
1249 if (sl->tty != current->signal->tty &&
1356 if (sl->tty) {
[all …]
/openbmc/linux/drivers/usb/serial/
H A Dkobil_sct.c57 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,
158 tty->termios.c_lflag = 0; in kobil_init_termios()
162 tty->termios.c_oflag &= ~ONLCR; in kobil_init_termios()
484 int c_cflag = tty->termios.c_cflag; in kobil_set_termios()
491 tty_termios_copy_hw(&tty->termios, old); in kobil_set_termios()
495 speed = tty_get_baud_rate(tty); in kobil_set_termios()
516 tty->termios.c_cflag &= ~CMSPAR; in kobil_set_termios()
517 tty_encode_baud_rate(tty, speed, speed); in kobil_set_termios()
[all …]
H A Dti_usb_3410_5052.c680 if (tty) in ti_open()
681 ti_set_termios(tty, port, &tty->termios); in ti_open()
715 if (tty) in ti_open()
716 ti_set_termios(tty, port, &tty->termios); in ti_open()
875 if (I_IXOFF(tty) || C_CRTSCTS(tty)) in ti_throttle()
887 if (I_IXOFF(tty) || C_CRTSCTS(tty)) { in ti_unthrottle()
948 if (C_CSTOPB(tty)) in ti_set_termios()
962 if (I_IXOFF(tty) || I_IXON(tty)) { in ti_set_termios()
966 if (I_IXOFF(tty)) in ti_set_termios()
971 if (I_IXON(tty)) in ti_set_termios()
[all …]
H A Dmct_u232.c52 static int mct_u232_tiocmset(struct tty_struct *tty,
199 tty_encode_baud_rate(tty, speed, speed); in mct_u232_set_baud_rate()
230 if (port && C_CRTSCTS(tty)) in mct_u232_set_baud_rate()
437 if (tty && C_BAUD(tty)) in mct_u232_open()
569 tty = tty_port_tty_get(&port->port); in mct_u232_read_int_callback()
582 tty_kref_put(tty); in mct_u232_read_int_callback()
601 struct ktermios *termios = &tty->termios; in mct_u232_set_termios()
628 mct_u232_set_baud_rate(tty, serial, port, tty_get_baud_rate(tty)); in mct_u232_set_termios()
682 struct usb_serial_port *port = tty->driver_data; in mct_u232_break_ctl()
700 struct usb_serial_port *port = tty->driver_data; in mct_u232_tiocmget()
[all …]
H A Dusb-serial.c216 int idx = tty->index; in serial_install()
240 serial->type->init_termios(tty); in serial_install()
242 tty->driver_data = port; in serial_install()
329 tty_port_close(&port->port, tty, filp); in serial_close()
355 tty->driver_data = NULL; in serial_cleanup()
426 port->serial->type->throttle(tty); in serial_throttle()
436 port->serial->type->unthrottle(tty); in serial_unthrottle()
1181 struct tty_struct *tty; in usb_serial_disconnect() local
1197 if (tty) { in usb_serial_disconnect()
1198 tty_vhangup(tty); in usb_serial_disconnect()
[all …]
H A Dcypress_m8.c369 tty_encode_baud_rate(tty, in cypress_serial_control()
603 if (tty) in cypress_open()
877 cflag = tty->termios.c_cflag; in cypress_set_termios()
907 cypress_serial_control(tty, port, tty_get_baud_rate(tty), in cypress_set_termios()
954 cypress_write(tty, port, NULL, 0); in cypress_set_termios()
1017 struct tty_struct *tty; in cypress_read_int_callback() local
1054 tty = tty_port_tty_get(&port->port); in cypress_read_int_callback()
1055 if (!tty) { in cypress_read_int_callback()
1111 if (tty && !C_CLOCAL(tty) && !(priv->current_status & UART_CD)) { in cypress_read_int_callback()
1113 tty_hangup(tty); in cypress_read_int_callback()
[all …]
H A Dgeneric.c235 struct usb_serial_port *port = tty->driver_data; in usb_serial_generic_write_room()
252 struct usb_serial_port *port = tty->driver_data; in usb_serial_generic_chars_in_buffer()
270 struct usb_serial_port *port = tty->driver_data; in usb_serial_generic_wait_until_sent()
275 bps = tty_get_baud_rate(tty); in usb_serial_generic_wait_until_sent()
476 struct usb_serial_port *port = tty->driver_data; in usb_serial_generic_throttle()
611 struct tty_struct *tty, unsigned int status) in usb_serial_handle_dcd_change() argument
615 if (tty) { in usb_serial_handle_dcd_change()
616 struct tty_ldisc *ld = tty_ldisc_ref(tty); in usb_serial_handle_dcd_change()
620 ld->ops->dcd_change(tty, status); in usb_serial_handle_dcd_change()
627 else if (tty && !C_CLOCAL(tty)) in usb_serial_handle_dcd_change()
[all …]
H A Dch341.c452 if (tty) in ch341_open()
502 switch (C_CSIZE(tty)) { in ch341_set_termios()
517 if (C_PARENB(tty)) { in ch341_set_termios()
519 if (C_PARODD(tty) == 0) in ch341_set_termios()
521 if (C_CMSPAR(tty)) in ch341_set_termios()
525 if (C_CSTOPB(tty)) in ch341_set_termios()
542 if (C_BAUD(tty) == B0) in ch341_set_termios()
585 r = tty_put_char(tty, '\0'); in ch341_simulate_break()
707 struct tty_struct *tty; in ch341_update_status() local
737 if (tty) { in ch341_update_status()
[all …]
/openbmc/linux/drivers/net/can/slcan/
H A Dslcan-core.c537 actual = sl->tty->ops->write(sl->tty, sl->xbuff, pos - sl->xbuff); in slcan_encaps()
575 actual = sl->tty->ops->write(sl->tty, sl->xhead, sl->xleft); in slcan_transmit()
586 struct slcan *sl = tty->disc_data; in slcan_write_wakeup()
606 if (!sl->tty) { in slcan_netdev_xmit()
631 if (!sl->tty) { in slcan_transmit_cmd()
638 actual = sl->tty->ops->write(sl->tty, sl->xbuff, n); in slcan_transmit_cmd()
812 if (!tty->ops->write) in slcan_open()
840 sl->tty = tty; in slcan_open()
841 tty->disc_data = sl; in slcan_open()
876 tty->disc_data = NULL; in slcan_close()
[all …]
/openbmc/linux/drivers/ipack/devices/
H A Dipoctal.c74 channel = dev_get_drvdata(tty->dev); in ipoctal_port_activate()
94 res = tty_standard_install(driver, tty); in ipoctal_install()
98 tty->driver_data = channel; in ipoctal_install()
110 struct ipoctal_channel *channel = tty->driver_data; in ipoctal_open()
135 struct ipoctal_channel *channel = tty->driver_data; in ipoctal_close()
137 tty_port_close(&channel->tty_port, tty, filp); in ipoctal_close()
144 struct ipoctal_channel *channel = tty->driver_data; in ipoctal_get_icount()
508 cflag = tty->termios.c_cflag; in ipoctal_set_termios()
525 tty->termios.c_cflag = (cflag & ~CSIZE) | CS8; in ipoctal_set_termios()
539 tty->termios.c_cflag &= ~CMSPAR; in ipoctal_set_termios()
[all …]
/openbmc/linux/arch/alpha/kernel/
H A Dsrmcons.c83 if (port->tty) in srmcons_receive_chars()
138 srmcons_do_write(tty->port, (const char *) buf, count); in srmcons_write()
145 srmcons_write_room(struct tty_struct *tty) in srmcons_write_room() argument
151 srmcons_open(struct tty_struct *tty, struct file *filp) in srmcons_open() argument
159 if (!port->tty) { in srmcons_open()
160 tty->driver_data = srmconsp; in srmcons_open()
161 tty->port = port; in srmcons_open()
162 port->tty = tty; /* XXX proper refcounting */ in srmcons_open()
174 struct srmcons_private *srmconsp = tty->driver_data; in srmcons_close()
180 if (tty->count == 1) { in srmcons_close()
[all …]
/openbmc/u-boot/tools/
H A Dkwboot.c297 rc = tcflush(tty, TCIOFLUSH); in kwboot_bootmsg()
433 tcflush(tty, TCIOFLUSH); in kwboot_xmodem()
509 kwboot_terminal(int tty) in kwboot_terminal() argument
542 FD_SET(tty, &rfds); in kwboot_terminal()
543 nfds = nfds < tty ? tty : nfds; in kwboot_terminal()
554 if (FD_ISSET(tty, &rfds)) { in kwboot_terminal()
719 tty = -1; in main()
801 if (tty < 0) { in main()
847 rc = kwboot_terminal(tty); in main()
856 if (tty >= 0) in main()
[all …]
/openbmc/linux/drivers/s390/char/
H A Dcon3215.c340 tty_wakeup(tty); in raw3215_next_io()
351 struct tty_struct *tty; in raw3215_irq() local
361 raw3215_next_io(raw, tty); in raw3215_irq()
371 raw3215_next_io(raw, tty); in raw3215_irq()
431 raw3215_next_io(raw, tty); in raw3215_irq()
446 tty_kref_put(tty); in raw3215_irq()
962 raw = raw3215[tty->index]; in tty3215_install()
966 tty->driver_data = raw; in tty3215_install()
1000 tty->closing = 1; in tty3215_close()
1003 tty->closing = 0; in tty3215_close()
[all …]
/openbmc/linux/drivers/tty/hvc/
H A Dhvcs.c528 struct tty_struct *tty = hvcsd->port.tty; in hvcs_try_write() local
548 if (tty) { in hvcs_try_write()
549 tty_wakeup(tty); in hvcs_try_write()
558 struct tty_struct *tty; in hvcs_io() local
566 tty = hvcsd->port.tty; in hvcs_io()
570 if (!tty || tty_throttled(tty)) { in hvcs_io()
819 if (tty) { in hvcs_remove()
820 tty_vhangup(tty); in hvcs_remove()
821 tty_kref_put(tty); in hvcs_remove()
1091 hvcsd->port.tty = tty; in hvcs_install()
[all …]
/openbmc/linux/drivers/char/
H A Dttyprintk.c86 static int tpk_open(struct tty_struct *tty, struct file *filp) in tpk_open() argument
88 tty->driver_data = &tpk_port; in tpk_open()
90 return tty_port_open(&tpk_port.port, tty, filp); in tpk_open()
96 static void tpk_close(struct tty_struct *tty, struct file *filp) in tpk_close() argument
98 struct ttyprintk_port *tpkp = tty->driver_data; in tpk_close()
100 tty_port_close(&tpkp->port, tty, filp); in tpk_close()
106 static ssize_t tpk_write(struct tty_struct *tty, const u8 *buf, size_t count) in tpk_write() argument
108 struct ttyprintk_port *tpkp = tty->driver_data; in tpk_write()
123 static unsigned int tpk_write_room(struct tty_struct *tty) in tpk_write_room() argument
131 static void tpk_hangup(struct tty_struct *tty) in tpk_hangup() argument
[all …]
/openbmc/linux/drivers/isdn/capi/
H A Dcapi.c311 if (tty) { in capincci_free_minor()
312 tty_vhangup(tty); in capincci_free_minor()
313 tty_kref_put(tty); in capincci_free_minor()
328 if (tty) { in capincci_minor_opencount()
329 count = tty->count; in capincci_minor_opencount()
330 tty_kref_put(tty); in capincci_minor_opencount()
415 if (!tty) { in handle_recv_skb()
475 tty_kref_put(tty); in handle_recv_skb()
499 if (!tty) in handle_minor_send()
504 tty_kref_put(tty); in handle_minor_send()
[all …]
/openbmc/linux/drivers/net/ppp/
H A Dppp_async.c42 struct tty_struct *tty; member
137 ap = tty->disc_data; in ap_get()
170 ap->tty = tty; in ppp_asynctty_open()
196 tty->disc_data = ap; in ppp_asynctty_open()
220 ap = tty->disc_data; in ppp_asynctty_close()
221 tty->disc_data = NULL; in ppp_asynctty_close()
346 tty_unthrottle(tty); in ppp_asynctty_receive()
644 struct tty_struct *tty = ap->tty; in ppp_async_push() local
665 sent = tty->ops->write(tty, ap->optr, avail); in ppp_async_push()
906 start_tty(ap->tty); in ppp_async_input()
[all …]
/openbmc/linux/drivers/net/hamradio/
H A Dmkiss.c510 actual = ax->tty->ops->write(ax->tty, ax->xbuff, count); in ax_encaps()
563 if (ax->tty == NULL) in ax_open_dev()
575 if (ax->tty == NULL) in ax_open()
624 if (ax->tty) in ax_close()
672 ax = tty->disc_data; in mkiss_get()
713 ax->tty = tty; in mkiss_open()
714 tty->disc_data = ax; in mkiss_open()
778 ax = tty->disc_data; in mkiss_close()
803 ax->tty = NULL; in mkiss_close()
905 tty_unthrottle(tty); in mkiss_receive_buf()
[all …]
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-tty1 What: /sys/class/tty/console/active
12 What: /sys/class/tty/tty<x>/active
21 What: /sys/class/tty/ttyS<x>/uartclk
32 What: /sys/class/tty/ttyS<x>/type
41 What: /sys/class/tty/ttyS<x>/line
50 What: /sys/class/tty/ttyS<x>/port
59 What: /sys/class/tty/ttyS<x>/irq
68 What: /sys/class/tty/ttyS<x>/flags
113 What: /sys/class/tty/ttyS<x>/io_type
123 What: /sys/class/tty/ttyS<x>/iomem_base
[all …]
/openbmc/linux/drivers/tty/
H A Dtty_audit.c137 void tty_audit_tiocsti(const struct tty_struct *tty, u8 ch) in tty_audit_tiocsti() argument
141 dev = MKDEV(tty->driver->major, tty->driver->minor_start) + tty->index; in tty_audit_tiocsti()
202 void tty_audit_add_data(const struct tty_struct *tty, const void *data, in tty_audit_add_data() argument
207 bool icanon = L_ICANON(tty); in tty_audit_add_data()
217 if (tty->driver->type == TTY_DRIVER_TYPE_PTY in tty_audit_add_data()
218 && tty->driver->subtype == PTY_TYPE_MASTER) in tty_audit_add_data()
221 if ((~audit_tty & AUDIT_TTY_LOG_PASSWD) && icanon && !L_ECHO(tty)) in tty_audit_add_data()
229 dev = MKDEV(tty->driver->major, tty->driver->minor_start) + tty->index; in tty_audit_add_data()
H A Dttynull.c17 static int ttynull_open(struct tty_struct *tty, struct file *filp) in ttynull_open() argument
19 return tty_port_open(&ttynull_port, tty, filp); in ttynull_open()
22 static void ttynull_close(struct tty_struct *tty, struct file *filp) in ttynull_close() argument
24 tty_port_close(&ttynull_port, tty, filp); in ttynull_close()
27 static void ttynull_hangup(struct tty_struct *tty) in ttynull_hangup() argument
32 static ssize_t ttynull_write(struct tty_struct *tty, const u8 *buf, in ttynull_write() argument
38 static unsigned int ttynull_write_room(struct tty_struct *tty) in ttynull_write_room() argument
/openbmc/obmc-console/conf/
H A D80-obmc-console-uart.rules.in1 SUBSYSTEM=="tty", ATTRS{iomem_base}=="0x1E787000", ENV{SYSTEMD_WANTS}="obmc-console@ttyVUART0", SYM…
2 SUBSYSTEM=="tty", ATTRS{iomem_base}=="0x1E788000", ENV{SYSTEMD_WANTS}="obmc-console@ttyVUART1", SYM…
3 SUBSYSTEM=="tty", ATTRS{iomem_base}=="0x1E783000", ENV{SYSTEMD_WANTS}="obmc-console@ttyS0", TAG+="s…
4 SUBSYSTEM=="tty", ATTRS{iomem_base}=="0x1E78D000", ENV{SYSTEMD_WANTS}="obmc-console@ttyS1", TAG+="s…
5 SUBSYSTEM=="tty", ATTRS{iomem_base}=="0x1E78E000", ENV{SYSTEMD_WANTS}="obmc-console@ttyS2", TAG+="s…
6 SUBSYSTEM=="tty", ATTRS{iomem_base}=="0x1E78F000", ENV{SYSTEMD_WANTS}="obmc-console@ttyS3", TAG+="s…

12345678910>>...16