/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
|
H A D | tty_port.rst | 24 .. kernel-doc:: drivers/tty/tty_port.c 31 .. kernel-doc:: drivers/tty/tty_port.c 39 .. kernel-doc:: drivers/tty/tty_port.c 45 .. kernel-doc:: drivers/tty/tty_port.c 52 .. kernel-doc:: drivers/tty/tty_port.c
|
/openbmc/linux/drivers/usb/serial/ |
H A D | ssu100.c | 221 struct ktermios *termios = &tty->termios; in ssu100_set_termios() 236 baud = tty_get_baud_rate(tty); in ssu100_set_termios() 263 if (I_IXOFF(tty) || I_IXON(tty)) { in ssu100_set_termios() 264 u16 x = ((u16)(START_CHAR(tty) << 8) | (u16)(STOP_CHAR(tty))); in ssu100_set_termios() 314 if (tty) in ssu100_open() 315 ssu100_set_termios(tty, port, &tty->termios); in ssu100_open() 317 return usb_serial_generic_open(tty, port); in ssu100_open() 348 static int ssu100_tiocmget(struct tty_struct *tty) in ssu100_tiocmget() argument 350 struct usb_serial_port *port = tty->driver_data; in ssu100_tiocmget() 379 static int ssu100_tiocmset(struct tty_struct *tty, in ssu100_tiocmset() argument [all …]
|
H A D | cp210x.c | 787 if (tty) in cp210x_open() 1167 if (I_IXON(tty) || I_IXOFF(tty)) { in cp210x_set_flow_control() 1209 if (C_CRTSCTS(tty)) { in cp210x_set_flow_control() 1225 if (I_IXOFF(tty)) { in cp210x_set_flow_control() 1234 if (I_IXON(tty)) in cp210x_set_flow_control() 1294 if (C_PARENB(tty)) { in cp210x_set_termios() 1295 if (C_CMSPAR(tty)) { in cp210x_set_termios() 1296 if (C_PARODD(tty)) in cp210x_set_termios() 1301 if (C_PARODD(tty)) in cp210x_set_termios() 1308 if (C_CSTOPB(tty)) in cp210x_set_termios() [all …]
|
H A D | keyspan_pda.c | 223 struct usb_serial_port *port = tty->driver_data; in keyspan_pda_rx_throttle() 238 struct usb_serial_port *port = tty->driver_data; in keyspan_pda_rx_unthrottle() 304 struct usb_serial_port *port = tty->driver_data; in keyspan_pda_break_ctl() 355 speed = tty_get_baud_rate(tty); in keyspan_pda_set_termios() 367 tty_termios_copy_hw(&tty->termios, old_termios); in keyspan_pda_set_termios() 368 tty_encode_baud_rate(tty, speed, speed); in keyspan_pda_set_termios() 408 static int keyspan_pda_tiocmget(struct tty_struct *tty) in keyspan_pda_tiocmget() argument 410 struct usb_serial_port *port = tty->driver_data; in keyspan_pda_tiocmget() 430 static int keyspan_pda_tiocmset(struct tty_struct *tty, in keyspan_pda_tiocmset() argument 433 struct usb_serial_port *port = tty->driver_data; in keyspan_pda_tiocmset() [all …]
|
H A D | opticon.c | 128 static int opticon_open(struct tty_struct *tty, struct usb_serial_port *port) in opticon_open() argument 144 res = usb_serial_generic_open(tty, port); in opticon_open() 190 static int opticon_write(struct tty_struct *tty, struct usb_serial_port *port, in opticon_write() argument 268 static unsigned int opticon_write_room(struct tty_struct *tty) in opticon_write_room() argument 270 struct usb_serial_port *port = tty->driver_data; in opticon_write_room() 290 static unsigned int opticon_chars_in_buffer(struct tty_struct *tty) in opticon_chars_in_buffer() argument 292 struct usb_serial_port *port = tty->driver_data; in opticon_chars_in_buffer() 304 static int opticon_tiocmget(struct tty_struct *tty) in opticon_tiocmget() argument 306 struct usb_serial_port *port = tty->driver_data; in opticon_tiocmget() 322 static int opticon_tiocmset(struct tty_struct *tty, in opticon_tiocmset() argument [all …]
|
H A D | ark3116.c | 196 struct ktermios *termios = &tty->termios; in ark3116_set_termios() 198 int bps = tty_get_baud_rate(tty); in ark3116_set_termios() 286 if (I_IXOFF(tty) || I_IXON(tty)) { in ark3116_set_termios() 322 result = usb_serial_generic_open(tty, port); in ark3116_open() 359 if (tty) in ark3116_open() 360 ark3116_set_termios(tty, port, NULL); in ark3116_open() 374 static int ark3116_tiocmget(struct tty_struct *tty) in ark3116_tiocmget() argument 376 struct usb_serial_port *port = tty->driver_data; in ark3116_tiocmget() 400 static int ark3116_tiocmset(struct tty_struct *tty, in ark3116_tiocmset() argument 403 struct usb_serial_port *port = tty->driver_data; in ark3116_tiocmset() [all …]
|
H A D | mos7720.c | 1134 if (I_IXOFF(tty)) { in mos7720_throttle() 1135 unsigned char stop_char = STOP_CHAR(tty); in mos7720_throttle() 1142 if (C_CRTSCTS(tty)) { in mos7720_throttle() 1164 if (I_IXOFF(tty)) { in mos7720_unthrottle() 1165 unsigned char start_char = START_CHAR(tty); in mos7720_unthrottle() 1172 if (C_CRTSCTS(tty)) { in mos7720_unthrottle() 1387 cflag = tty->termios.c_cflag; in change_port_settings() 1462 baud = tty_get_baud_rate(tty); in change_port_settings() 1481 tty_encode_baud_rate(tty, baud, baud); in change_port_settings() 1543 count = mos7720_chars_in_buffer(tty); in get_lsr_info() [all …]
|
H A D | ir-usb.c | 48 static int ir_write(struct tty_struct *tty, struct usb_serial_port *port, 50 static unsigned int ir_write_room(struct tty_struct *tty); 53 static void ir_set_termios(struct tty_struct *tty, 259 static int ir_write(struct tty_struct *tty, struct usb_serial_port *port, in ir_write() argument 343 static unsigned int ir_write_room(struct tty_struct *tty) in ir_write_room() argument 345 struct usb_serial_port *port = tty->driver_data; in ir_write_room() 379 static void ir_set_termios(struct tty_struct *tty, in ir_set_termios() argument 390 baud = tty_get_baud_rate(tty); in ir_set_termios() 437 tty_termios_copy_hw(&tty->termios, old_termios); in ir_set_termios() 438 tty_encode_baud_rate(tty, baud, baud); in ir_set_termios()
|
H A D | io_ti.c | 1579 if (tty && C_CRTSCTS(tty)) { in handle_new_msr() 1581 tty_wakeup(tty); in handle_new_msr() 1583 tty_kref_put(tty); in handle_new_msr() 1831 tty_kref_put(tty); in edge_bulk_out_callback() 1859 if (tty) in edge_open() 1860 edge_set_termios(tty, port, &tty->termios); in edge_open() 2069 if (tty) in edge_send() 2070 tty_wakeup(tty); in edge_send() 2132 if (I_IXOFF(tty)) { in edge_throttle() 2144 if (C_CRTSCTS(tty)) in edge_throttle() [all …]
|
H A D | empeg.c | 35 static void empeg_init_termios(struct tty_struct *tty); 78 static void empeg_init_termios(struct tty_struct *tty) in empeg_init_termios() argument 80 struct ktermios *termios = &tty->termios; in empeg_init_termios() 119 tty_encode_baud_rate(tty, 115200, 115200); in empeg_init_termios()
|
/openbmc/linux/drivers/s390/char/ |
H A D | ctrlchar.c | 49 ctrlchar_handle(const unsigned char *buf, int len, struct tty_struct *tty) in ctrlchar_handle() argument 73 return INTR_CHAR(tty) | CTRLCHAR_CTRL; in ctrlchar_handle() 75 return EOF_CHAR(tty) | CTRLCHAR_CTRL; in ctrlchar_handle() 77 return SUSP_CHAR(tty) | CTRLCHAR_CTRL; in ctrlchar_handle()
|
H A D | con3270.c | 1023 if (!tty) in tty3270_resize() 1028 tty_kref_put(tty); in tty3270_resize() 1046 if (tty) { in tty3270_release() 1049 tty_hangup(tty); in tty3270_release() 1051 tty_kref_put(tty); in tty3270_release() 1205 tty->driver_data = tp; in tty3270_install() 1230 if (tty->count > 1) in tty3270_close() 1811 tp = tty->driver_data; in tty3270_write() 1829 tp = tty->driver_data; in tty3270_put_char() 1844 tp = tty->driver_data; in tty3270_flush_chars() [all …]
|
H A D | sclp_vt220.c | 555 if (tty->count == 1) { in sclp_vt220_open() 556 tty_port_tty_set(&sclp_vt220_port, tty); in sclp_vt220_open() 557 if (!tty->winsize.ws_row && !tty->winsize.ws_col) { in sclp_vt220_open() 558 tty->winsize.ws_row = 24; in sclp_vt220_open() 559 tty->winsize.ws_col = 80; in sclp_vt220_open() 571 if (tty->count == 1) in sclp_vt220_close() 582 sclp_vt220_put_char(struct tty_struct *tty, u8 ch) in sclp_vt220_put_char() argument 592 sclp_vt220_flush_chars(struct tty_struct *tty) in sclp_vt220_flush_chars() argument 607 sclp_vt220_write_room(struct tty_struct *tty) in sclp_vt220_write_room() argument 627 sclp_vt220_chars_in_buffer(struct tty_struct *tty) in sclp_vt220_chars_in_buffer() argument [all …]
|
/openbmc/linux/drivers/nfc/nfcmrvl/ |
H A D | uart.c | 96 struct device *dev = nu->tty->dev; in nfcmrvl_nci_uart_open() 149 if (priv->config.break_control && nu->tty->ops->break_ctl) { in nfcmrvl_nci_uart_tx_start() 150 nu->tty->ops->break_ctl(nu->tty, 0); in nfcmrvl_nci_uart_tx_start() 167 if (priv->config.break_control && nu->tty->ops->break_ctl) { in nfcmrvl_nci_uart_tx_done() 168 nu->tty->ops->break_ctl(nu->tty, -1); in nfcmrvl_nci_uart_tx_done()
|
/openbmc/linux/arch/xtensa/platforms/iss/ |
H A D | console.c | 40 static int rs_open(struct tty_struct *tty, struct file * filp) in rs_open() argument 42 if (tty->count == 1) in rs_open() 48 static void rs_close(struct tty_struct *tty, struct file * filp) in rs_close() argument 50 if (tty->count == 1) in rs_close() 55 static ssize_t rs_write(struct tty_struct * tty, const u8 *buf, size_t count) in rs_write() argument 84 static unsigned int rs_write_room(struct tty_struct *tty) in rs_write_room() argument
|
/openbmc/linux/drivers/tty/ |
H A D | mips_ejtag_fdc.c | 419 struct tty_struct *tty; in mips_ejtag_fdc_put_chan() local 467 if (tty) { in mips_ejtag_fdc_put_chan() 468 tty_wakeup(tty); in mips_ejtag_fdc_put_chan() 469 tty_kref_put(tty); in mips_ejtag_fdc_put_chan() 696 struct tty_struct *tty) in mips_ejtag_fdc_tty_port_activate() argument 762 struct tty_struct *tty) in mips_ejtag_fdc_tty_install() argument 766 tty->driver_data = &priv->ports[tty->index]; in mips_ejtag_fdc_tty_install() 767 return tty_port_install(&priv->ports[tty->index].port, driver, tty); in mips_ejtag_fdc_tty_install() 772 return tty_port_open(tty->port, tty, filp); in mips_ejtag_fdc_tty_open() 777 return tty_port_close(tty->port, tty, filp); in mips_ejtag_fdc_tty_close() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-core/plymouth/plymouth/ |
H A D | 0001-Make-full-path-to-systemd-tty-ask-password-agent-con.patch | 4 Subject: [PATCH] Make full path to systemd-tty-ask-password-agent configurable 27 - systemd_ask_password_agent = find_program('systemd-tty-ask-password-agent') 28 + systemd_ask_password_agent = get_option('systemd-tty-ask-password-agent') 40 +option('systemd-tty-ask-password-agent', 42 + value: '/bin/systemd-tty-ask-password-agent', 43 + description: 'Path of systemd-tty-ask-password-agent',
|
/openbmc/obmc-console/conf/ |
H A D | server.ttyVUART0.conf.in | 3 upstream-tty = ttyVUART0 4 local-tty = ttyS0 5 local-tty-baud = 115200
|
/openbmc/obmc-console/ |
H A D | console-dbus.c | 48 rc = handler->baudrate(handler, console->tty.uart.baud); in tty_change_baudrate() 81 assert(console->tty.type == TTY_DEVICE_UART); in set_baud_handler() 82 console->tty.uart.baud = speed; in set_baud_handler() 101 assert(console->tty.type == TTY_DEVICE_UART); in get_baud_handler() 102 baudrate = parse_baud_to_int(console->tty.uart.baud); in get_baud_handler() 104 warnx("Invalid baud rate: '%d'", console->tty.uart.baud); in get_baud_handler() 189 if (console->tty.type == TTY_DEVICE_UART) { in dbus_init()
|
/openbmc/openbmc/poky/meta/recipes-core/readline/readline/ |
H A D | readline82-008.patch | 57 to get the tty settings. */ 59 ! set_winsize (tty) 60 ! int tty; 64 to get the tty settings. */ 66 ! set_winsize (int tty)
|
/openbmc/linux/include/linux/ |
H A D | selection.h | 19 struct tty_struct *tty); 21 struct tty_struct *tty); 22 extern int paste_selection(struct tty_struct *tty); 25 extern void mouse_report(struct tty_struct * tty, int butt, int mrx, int mry);
|
/openbmc/linux/Documentation/networking/caif/ |
H A D | caif.rst | 59 /sys/kernel/debug/caif_serial/<tty-name>/ 68 * tty_status: Prints the bit-mask tty status information 70 - 0x01 - tty->warned is on. 71 - 0x04 - tty->packed is on. 72 - 0x08 - tty->flow.tco_stopped is on. 73 - 0x10 - tty->hw_stopped is on. 74 - 0x20 - tty->flow.stopped is on. 80 $od --format=x1 /sys/kernel/debug/caif_serial/<tty>/last_rx_msg. 128 The host is not able to send the message from UART, the tty has not been 131 - if /sys/kernel/debug/caif_serial/<tty>/tty_status is non-zero there
|
/openbmc/linux/drivers/tty/vt/ |
H A D | selection.c | 179 struct tty_struct *tty) in set_selection_user() argument 186 return set_selection_kernel(&v, tty); in set_selection_user() 318 struct tty_struct *tty) in vc_selection() argument 336 mouse_report(tty, v->sel_mode & TIOCL_SELBUTTONMASK, v->xs, in vc_selection() 354 int set_selection_kernel(struct tiocl_selection *v, struct tty_struct *tty) in set_selection_kernel() argument 360 ret = vc_selection(vc_cons[fg_console].d, v, tty); in set_selection_kernel() 375 int paste_selection(struct tty_struct *tty) in paste_selection() argument 377 struct vc_data *vc = tty->driver_data; in paste_selection() 388 ld = tty_ldisc_ref_wait(tty); in paste_selection() 401 if (tty_throttled(tty)) { in paste_selection()
|
H A D | vt_ioctl.c | 286 struct vc_data *vc = tty->driver_data; in vt_k_ioctl() 402 tty_ldisc_flush(tty); in vt_k_ioctl() 736 int vt_ioctl(struct tty_struct *tty, in vt_ioctl() argument 749 if (current->signal->tty == tty || capable(CAP_SYS_TTY_CONFIG)) in vt_ioctl() 762 return tioclinux(tty, arg); in vt_ioctl() 983 struct tty_struct *tty; in vc_SAK() local 989 tty = vc->port.tty; in vc_SAK() 994 if (tty) in vc_SAK() 995 __do_SAK(tty); in vc_SAK() 1072 if (current->signal->tty == tty || capable(CAP_SYS_TTY_CONFIG)) in vt_compat_ioctl() [all …]
|