/openbmc/linux/drivers/usb/serial/ |
H A D | usb-wwan.h | 10 extern int usb_wwan_open(struct tty_struct *tty, struct usb_serial_port *port); 14 extern unsigned int usb_wwan_write_room(struct tty_struct *tty); 15 extern int usb_wwan_tiocmget(struct tty_struct *tty); 16 extern int usb_wwan_tiocmset(struct tty_struct *tty, 18 extern int usb_wwan_write(struct tty_struct *tty, struct usb_serial_port *port, 20 extern unsigned int usb_wwan_chars_in_buffer(struct tty_struct *tty);
|
H A D | whiteheat.c | 79 static int whiteheat_open(struct tty_struct *tty, 374 if (tty) in whiteheat_open() 375 firm_setup_port(tty); in whiteheat_open() 381 retval = usb_serial_generic_open(tty, port); in whiteheat_open() 449 firm_setup_port(tty); in whiteheat_set_termios() 621 unsigned int cflag = tty->termios.c_cflag; in firm_setup_port() 665 if (I_IXOFF(tty)) in firm_setup_port() 671 port_settings.xon = START_CHAR(tty); in firm_setup_port() 672 port_settings.xoff = STOP_CHAR(tty); in firm_setup_port() 676 baud = tty_get_baud_rate(tty); in firm_setup_port() [all …]
|
H A D | f81232.c | 201 struct tty_struct *tty; in f81232_read_msr() local 229 if (tty) { in f81232_read_msr() 233 tty_kref_put(tty); in f81232_read_msr() 502 tty_encode_baud_rate(tty, 0, 0); in f81232_set_baudrate() 623 if (C_BAUD(tty) == B0) in f81232_set_termios() 638 if (C_PARENB(tty)) { in f81232_set_termios() 641 if (!C_PARODD(tty)) in f81232_set_termios() 644 if (C_CMSPAR(tty)) in f81232_set_termios() 648 if (C_CSTOPB(tty)) in f81232_set_termios() 709 if (tty) in f81232_open() [all …]
|
H A D | digi_acceleport.c | 658 unsigned int iflag = tty->termios.c_iflag; in digi_set_termios() 673 baud = tty_get_baud_rate(tty); in digi_set_termios() 682 if (!C_CRTSCTS(tty) || !tty_throttled(tty)) in digi_set_termios() 720 tty->termios.c_cflag &= ~CMSPAR; in digi_set_termios() 838 tty_encode_baud_rate(tty, baud, baud); in digi_set_termios() 1098 if (tty) { in digi_open() 1451 struct tty_struct *tty; in digi_read_oob_callback() local 1481 tty = tty_port_tty_get(&port->port); in digi_read_oob_callback() 1484 if (tty) in digi_read_oob_callback() 1485 rts = C_CRTSCTS(tty); in digi_read_oob_callback() [all …]
|
H A D | belkin_sa.c | 41 static int belkin_sa_open(struct tty_struct *tty, 50 static int belkin_sa_tiocmget(struct tty_struct *tty); 51 static int belkin_sa_tiocmset(struct tty_struct *tty, 146 static int belkin_sa_open(struct tty_struct *tty, in belkin_sa_open() argument 157 retval = usb_serial_generic_open(tty, port); in belkin_sa_open() 291 struct ktermios *termios = &tty->termios; in belkin_sa_set_termios() 322 baud = tty_get_baud_rate(tty); in belkin_sa_set_termios() 332 tty_encode_baud_rate(tty, baud, baud); in belkin_sa_set_termios() 404 struct usb_serial_port *port = tty->driver_data; in belkin_sa_break_ctl() 419 struct usb_serial_port *port = tty->driver_data; in belkin_sa_tiocmget() [all …]
|
H A D | pl2303.c | 780 if (!I_IXON(tty) || I_IXANY(tty)) in pl2303_enable_xonxoff() 783 if (START_CHAR(tty) != 0x11 || STOP_CHAR(tty) != 0x13) in pl2303_enable_xonxoff() 826 if (C_CSTOPB(tty)) { in pl2303_set_termios() 843 if (C_PARENB(tty)) { in pl2303_set_termios() 849 if (C_PARODD(tty)) { in pl2303_set_termios() 850 if (C_CMSPAR(tty)) { in pl2303_set_termios() 858 if (C_CMSPAR(tty)) { in pl2303_set_termios() 904 if (C_CRTSCTS(tty)) { in pl2303_set_termios() 981 if (tty) in pl2303_open() 1136 if (tty) { in pl2303_update_line_status() [all …]
|
H A D | mxuport.c | 779 if (I_IXOFF(tty) || I_IXON(tty)) { in mxuport_set_termios_flow() 806 if (C_CRTSCTS(tty)) in mxuport_set_termios_flow() 812 if (C_BAUD(tty)) { in mxuport_set_termios_flow() 815 if (C_CRTSCTS(tty)) in mxuport_set_termios_flow() 859 switch (C_CSIZE(tty)) { in mxuport_set_termios() 876 if (C_PARENB(tty)) { in mxuport_set_termios() 877 if (C_CMSPAR(tty)) { in mxuport_set_termios() 878 if (C_PARODD(tty)) in mxuport_set_termios() 883 if (C_PARODD(tty)) in mxuport_set_termios() 893 if (C_CSTOPB(tty)) in mxuport_set_termios() [all …]
|
H A D | oti6858.c | 133 static int oti6858_tiocmset(struct tty_struct *tty, 369 struct usb_serial_port *port = tty->driver_data; in oti6858_write_room() 382 struct usb_serial_port *port = tty->driver_data; in oti6858_chars_in_buffer() 395 tty_encode_baud_rate(tty, 38400, 38400); in oti6858_init_termios() 409 cflag = tty->termios.c_cflag; in oti6858_set_termios() 439 br = tty_get_baud_rate(tty); in oti6858_set_termios() 450 tty_encode_baud_rate(tty, real_br, real_br); in oti6858_set_termios() 551 if (tty) in oti6858_open() 552 oti6858_set_termios(tty, port, NULL); in oti6858_open() 583 struct usb_serial_port *port = tty->driver_data; in oti6858_tiocmset() [all …]
|
H A D | usb_debug.c | 50 static int usb_debug_break_ctl(struct tty_struct *tty, int break_state) in usb_debug_break_ctl() argument 52 struct usb_serial_port *port = tty->driver_data; in usb_debug_break_ctl() 58 ret = usb_serial_generic_write(tty, port, USB_DEBUG_BRK, USB_DEBUG_BRK_SIZE); in usb_debug_break_ctl() 79 static void usb_debug_init_termios(struct tty_struct *tty) in usb_debug_init_termios() argument 81 tty->termios.c_lflag &= ~(ECHO | ECHONL); in usb_debug_init_termios()
|
/openbmc/linux/drivers/usb/gadget/function/ |
H A D | u_serial.c | 314 struct tty_struct *tty; in gs_start_rx() local 317 tty = port->port.tty; in gs_start_rx() 318 if (!tty) in gs_start_rx() 364 struct tty_struct *tty; in gs_rx_push() local 371 tty = port->port.tty; in gs_rx_push() 378 if (tty && tty_throttled(tty)) in gs_rx_push() 625 port_num, tty, file); in gs_open() 636 tty->driver_data = port; in gs_open() 637 port->port.tty = tty; in gs_open() 727 port->port.tty = NULL; in gs_close() [all …]
|
/openbmc/linux/drivers/tty/ |
H A D | synclink_gt.c | 571 if (!tty) in ldisc_receive_buf() 606 info->port.tty = tty; in open() 722 if (!C_CRTSCTS(tty) || !tty_throttled(tty)) in set_termios() 762 if (!count || tty->flow.stopped || tty->hw_stopped) in write() 1272 send_xchar(tty, STOP_CHAR(tty)); in throttle() 1296 send_xchar(tty, START_CHAR(tty)); in unthrottle() 1904 struct tty_struct *tty = info->port.tty; in bh_transmit() local 1907 if (tty) in bh_transmit() 2236 if (info->port.tty && (info->port.tty->flow.stopped || info->port.tty->hw_stopped)) { in isr_txeom() 2490 if (I_BRKINT(info->port.tty) || I_PARMRK(info->port.tty)) in change_params() [all …]
|
H A D | n_gsm.c | 1546 if (tty) { in gsm_process_modem() 1714 if (tty) { in gsm_control_modem() 2419 if (tty) { in gsm_dlci_data() 2722 if (tty) { in gsm_dlci_release() 3514 return gsm->tty->ops->write(gsm->tty, data, len); in gsmld_output() 3548 if (gsm->tty) in gsmld_write_task() 3570 gsm->tty = tty_kref_get(tty); in gsmld_attach_gsm() 3586 WARN_ON(tty != gsm->tty); in gsmld_detach_gsm() 3590 gsm->tty = NULL; in gsmld_detach_gsm() 3777 ret = tty->ops->write(tty, buf, nr); in gsmld_write() [all …]
|
H A D | nozomi.c | 376 return tty ? ndevs[tty->index / MAX_PORT] : NULL; in get_dc_by_tty() 781 if (tty && tty_throttled(tty)) { in receive_data() 817 tty_kref_put(tty); in receive_data() 1539 tty->driver_data = port; in ntty_install() 1545 tty->driver_data = NULL; in ntty_cleanup() 1680 set_rts(tty, 1); in ntty_tiocmset() 1682 set_rts(tty, 0); in ntty_tiocmset() 1685 set_dtr(tty, 1); in ntty_tiocmset() 1687 set_dtr(tty, 0); in ntty_tiocmset() 1762 set_rts(tty, 1); in ntty_unthrottle() [all …]
|
H A D | moxa.c | 1459 port = tty->index; in moxa_open() 1478 tty->driver_data = ch; in moxa_open() 1483 moxa_set_tty_param(tty, &tty->termios); in moxa_open() 1523 if (tty->flow.stopped) in moxa_write_room() 1538 tty_wakeup(tty); in moxa_flush_buffer() 1672 if (tty) { in moxa_poll_port() 1676 tty_wakeup(tty); in moxa_poll_port() 1681 tty_wakeup(tty); in moxa_poll_port() 1710 if (tty && (intr & IntrBreak) && !I_IGNBRK(tty)) { /* BREAK */ in moxa_poll_port() 1718 tty_kref_put(tty); in moxa_poll_port() [all …]
|
/openbmc/linux/drivers/net/can/ |
H A D | can327.c | 80 struct tty_struct *tty; member 141 written = elm->tty->ops->write(elm->tty, elm->txbuf, len); in can327_send() 144 elm->tty->name); in can327_send() 751 if (!elm->tty) { in can327_netdev_open() 962 written = elm->tty->ops->write(elm->tty, elm->txhead, in can327_ldisc_tx_worker() 966 elm->tty->name); in can327_ldisc_tx_worker() 1015 if (!tty->ops->write) in can327_ldisc_open() 1039 elm->tty = tty; in can327_ldisc_open() 1040 tty->disc_data = elm; in can327_ldisc_open() 1076 tty->disc_data = NULL; in can327_ldisc_close() [all …]
|
/openbmc/linux/drivers/tty/hvc/ |
H A D | hvsi.c | 236 if (tty && !C_CLOCAL(tty)) in hvsi_recv_control() 237 tty_hangup(tty); in hvsi_recv_control() 479 struct tty_struct *tty; in hvsi_interrupt() local 485 tty = tty_port_tty_get(&hp->port); in hvsi_interrupt() 499 if (tty && hp->n_throttle && !tty_throttled(tty)) { in hvsi_interrupt() 507 tty_kref_put(tty); in hvsi_interrupt() 707 hp = &hvsi_ports[tty->index]; in hvsi_open() 709 tty->driver_data = hp; in hvsi_open() 715 tty_port_tty_set(&hp->port, tty); in hvsi_open() 764 struct hvsi_struct *hp = tty->driver_data; in hvsi_close() [all …]
|
/openbmc/linux/drivers/s390/char/ |
H A D | sclp_tty.c | 66 tty_port_tty_set(&sclp_port, tty); in sclp_tty_open() 67 tty->driver_data = NULL; in sclp_tty_open() 75 if (tty->count > 1) in sclp_tty_close() 90 sclp_tty_write_room (struct tty_struct *tty) in sclp_tty_write_room() argument 253 sclp_tty_put_char(struct tty_struct *tty, u8 ch) in sclp_tty_put_char() argument 268 sclp_tty_flush_chars(struct tty_struct *tty) in sclp_tty_flush_chars() argument 284 sclp_tty_chars_in_buffer(struct tty_struct *tty) in sclp_tty_chars_in_buffer() argument 304 sclp_tty_flush_buffer(struct tty_struct *tty) in sclp_tty_flush_buffer() argument 325 if (tty == NULL) in sclp_tty_input() 327 cchar = ctrlchar_handle(buf, count, tty); in sclp_tty_input() [all …]
|
/openbmc/linux/drivers/tty/ipwireless/ |
H A D | tty.h | 37 void ipwireless_tty_free(struct ipw_tty *tty); 38 void ipwireless_tty_received(struct ipw_tty *tty, unsigned char *data, 40 int ipwireless_tty_is_modem(struct ipw_tty *tty); 41 void ipwireless_tty_notify_control_line_change(struct ipw_tty *tty,
|
/openbmc/linux/include/linux/ |
H A D | tty_port.h | 37 int (*activate)(struct tty_port *port, struct tty_struct *tty); 103 struct tty_struct *tty; member 233 void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty); 240 int tty_port_block_til_ready(struct tty_port *port, struct tty_struct *tty, 242 int tty_port_close_start(struct tty_port *port, struct tty_struct *tty, 244 void tty_port_close_end(struct tty_port *port, struct tty_struct *tty); 245 void tty_port_close(struct tty_port *port, struct tty_struct *tty, 248 struct tty_struct *tty); 249 int tty_port_open(struct tty_port *port, struct tty_struct *tty,
|
/openbmc/linux/sound/soc/ti/ |
H A D | ams-delta.c | 281 static int cx81801_open(struct tty_struct *tty) in cx81801_open() argument 292 tty->disc_data = cx20442_codec; in cx81801_open() 294 ret = v253_ops.open(tty); in cx81801_open() 297 tty->disc_data = NULL; in cx81801_open() 303 static void cx81801_close(struct tty_struct *tty) in cx81801_close() argument 316 v253_ops.close(tty); in cx81801_close() 335 static void cx81801_hangup(struct tty_struct *tty) in cx81801_hangup() argument 337 cx81801_close(tty); in cx81801_hangup() 357 v253_ops.receive_buf(tty, cp, fp, count); in cx81801_receive() 371 v253_ops.receive_buf(tty, cp, fp, count); in cx81801_receive() [all …]
|
/openbmc/openbmc/meta-facebook/meta-minerva/recipes-phosphor/console/obmc-console/ |
H A D | 80-minerva-obmc-console-uart.rules | 1 SUBSYSTEM=="tty", ATTRS{iomem_base}=="0x1E790000", ENV{SYSTEMD_WANTS}="obmc-console@ttyS5", TAG+="s… 3 SUBSYSTEM=="tty", ATTRS{bInterfaceNumber}=="03", SYMLINK+="ttyPOE" 4 SUBSYSTEM=="tty", ATTRS{bInterfaceNumber}=="02", SYMLINK+="ttyRS485-1" 5 SUBSYSTEM=="tty", ATTRS{bInterfaceNumber}=="01", SYMLINK+="ttyRS485-0"
|
/openbmc/openbmc/poky/meta/files/ |
H A D | device_table-minimal.txt | 12 /dev/console c 662 root tty 5 1 - - - 31 /dev/tty c 662 root tty 5 0 - - - 32 /dev/tty c 666 root tty 4 0 0 1 8 33 /dev/ttyS c 640 root tty 4 64 0 1 2
|
/openbmc/linux/drivers/net/mctp/ |
H A D | mctp-serial.c | 55 struct tty_struct *tty; member 104 return dev->tty->ops->write(dev->tty, buf, len); in write_chunk() 222 clear_bit(TTY_DO_WRITE_WAKEUP, &dev->tty->flags); in mctp_serial_tx_work() 252 set_bit(TTY_DO_WRITE_WAKEUP, &dev->tty->flags); in mctp_serial_tx() 262 struct mctp_serial *dev = tty->disc_data; in mctp_serial_tty_write_wakeup() 396 struct mctp_serial *dev = tty->disc_data; in mctp_serial_tty_receive_buf() 448 if (!tty->ops->write) in mctp_serial_open() 465 dev->tty = tty; in mctp_serial_open() 476 tty->receive_room = 64 * 1024; in mctp_serial_open() 477 tty->disc_data = dev; in mctp_serial_open() [all …]
|
/openbmc/linux/drivers/usb/class/ |
H A D | cdc-acm.c | 634 acm = acm_get_by_minor(tty->index); in acm_tty_install() 647 tty->termios.c_lflag &= ~ECHO; in acm_tty_install() 649 tty->driver_data = acm; in acm_tty_install() 660 struct acm *acm = tty->driver_data; in acm_tty_open() 710 acm_tty_set_termios(tty, NULL); in acm_port_activate() 784 struct acm *acm = tty->driver_data; in acm_tty_cleanup() 1096 if (C_BAUD(tty) == B0) { in acm_tty_set_termios() 1561 struct tty_struct *tty; in acm_disconnect() local 1589 if (tty) { in acm_disconnect() 1590 tty_vhangup(tty); in acm_disconnect() [all …]
|
/openbmc/linux/Documentation/driver-api/tty/ |
H A D | tty_buffer.rst | 9 Here, we document functions for taking care of tty buffer and their flipping. 17 .. kernel-doc:: drivers/tty/tty_buffer.c 30 .. kernel-doc:: drivers/tty/tty_buffer.c 40 .. kernel-doc:: drivers/tty/tty_buffer.c 48 .. kernel-doc:: drivers/tty/tty_buffer.c
|