/linux-master/drivers/tty/ |
H A D | mips_ejtag_fdc.c | 26 #include <linux/tty.h> 419 struct tty_struct *tty; local 464 /* If we've made more data available, wake up tty */ 466 tty = tty_port_tty_get(&dport->port); 467 if (tty) { 468 tty_wakeup(tty); 469 tty_kref_put(tty); 573 /* Read out the FDC word, decode it, and pass to tty layer */ 696 struct tty_struct *tty) 762 struct tty_struct *tty) 695 mips_ejtag_fdc_tty_port_activate(struct tty_port *port, struct tty_struct *tty) argument 761 mips_ejtag_fdc_tty_install(struct tty_driver *driver, struct tty_struct *tty) argument 770 mips_ejtag_fdc_tty_open(struct tty_struct *tty, struct file *filp) argument 775 mips_ejtag_fdc_tty_close(struct tty_struct *tty, struct file *filp) argument 780 mips_ejtag_fdc_tty_hangup(struct tty_struct *tty) argument 799 mips_ejtag_fdc_tty_write(struct tty_struct *tty, const u8 *buf, size_t total) argument 843 mips_ejtag_fdc_tty_write_room(struct tty_struct *tty) argument 857 mips_ejtag_fdc_tty_chars_in_buffer(struct tty_struct *tty) argument [all...] |
H A D | tty_baudrate.c | 9 #include <linux/tty.h> 11 #include "tty.h" 15 * Routine which returns the baud rate of the tty 201 * tty_encode_baud_rate - set baud rate of the tty 202 * @tty: terminal device 206 * Update the current termios data for the tty with the new speed 207 * settings. The caller must hold the termios_rwsem for the tty in 211 void tty_encode_baud_rate(struct tty_struct *tty, speed_t ibaud, speed_t obaud) argument 213 tty_termios_encode_baud_rate(&tty->termios, ibaud, obaud);
|
/linux-master/drivers/usb/serial/ |
H A D | oti6858.c | 40 #include <linux/tty.h> 119 static int oti6858_open(struct tty_struct *tty, struct usb_serial_port *port); 121 static void oti6858_set_termios(struct tty_struct *tty, 124 static void oti6858_init_termios(struct tty_struct *tty); 128 static int oti6858_write(struct tty_struct *tty, struct usb_serial_port *port, 130 static unsigned int oti6858_write_room(struct tty_struct *tty); 131 static unsigned int oti6858_chars_in_buffer(struct tty_struct *tty); 132 static int oti6858_tiocmget(struct tty_struct *tty); 133 static int oti6858_tiocmset(struct tty_struct *tty, 356 static int oti6858_write(struct tty_struct *tty, struc argument 367 oti6858_write_room(struct tty_struct *tty) argument 380 oti6858_chars_in_buffer(struct tty_struct *tty) argument 393 oti6858_init_termios(struct tty_struct *tty) argument 398 oti6858_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument 500 oti6858_open(struct tty_struct *tty, struct usb_serial_port *port) argument 579 oti6858_tiocmset(struct tty_struct *tty, unsigned int set, unsigned int clear) argument 609 oti6858_tiocmget(struct tty_struct *tty) argument [all...] |
H A D | keyspan_pda.c | 17 #include <linux/tty.h> 221 static void keyspan_pda_rx_throttle(struct tty_struct *tty) argument 223 struct usb_serial_port *port = tty->driver_data; 236 static void keyspan_pda_rx_unthrottle(struct tty_struct *tty) argument 238 struct usb_serial_port *port = tty->driver_data; 302 static int keyspan_pda_break_ctl(struct tty_struct *tty, int break_state) argument 304 struct usb_serial_port *port = tty->driver_data; 327 static void keyspan_pda_set_termios(struct tty_struct *tty, argument 350 * HW flow control is dictated by the tty->termios.c_cflags & CRTSCTS 355 speed = tty_get_baud_rate(tty); 408 keyspan_pda_tiocmget(struct tty_struct *tty) argument 430 keyspan_pda_tiocmset(struct tty_struct *tty, unsigned int set, unsigned int clear) argument 539 keyspan_pda_write(struct tty_struct *tty, struct usb_serial_port *port, const unsigned char *buf, int count) argument 569 keyspan_pda_open(struct tty_struct *tty, struct usb_serial_port *port) argument [all...] |
H A D | ark3116.c | 23 #include <linux/tty.h> 190 static void ark3116_set_termios(struct tty_struct *tty, argument 196 struct ktermios *termios = &tty->termios; 198 int bps = tty_get_baud_rate(tty); 286 if (I_IXOFF(tty) || I_IXON(tty)) { 311 static int ark3116_open(struct tty_struct *tty, struct usb_serial_port *port) argument 322 result = usb_serial_generic_open(tty, port); 359 if (tty) 360 ark3116_set_termios(tty, por 374 ark3116_tiocmget(struct tty_struct *tty) argument 400 ark3116_tiocmset(struct tty_struct *tty, unsigned set, unsigned clr) argument 436 ark3116_break_ctl(struct tty_struct *tty, int break_state) argument [all...] |
H A D | f81534.c | 25 #include <linux/tty.h> 557 struct tty_struct *tty, u32 baudrate, u32 old_baudrate, u8 lcr) 570 tty_encode_baud_rate(tty, 0, 0); 576 tty_encode_baud_rate(tty, baudrate, baudrate); 659 static int f81534_break_ctl(struct tty_struct *tty, int break_state) argument 661 struct usb_serial_port *port = tty->driver_data; 950 static void f81534_set_termios(struct tty_struct *tty, argument 959 if (C_BAUD(tty) == B0) 964 if (C_PARENB(tty)) { 967 if (!C_PARODD(tty)) 556 f81534_set_port_config(struct usb_serial_port *port, struct tty_struct *tty, u32 baudrate, u32 old_baudrate, u8 lcr) argument 1005 struct tty_struct *tty; local 1066 f81534_open(struct tty_struct *tty, struct usb_serial_port *port) argument 1133 f81534_get_serial_info(struct tty_struct *tty, struct serial_struct *ss) argument 1425 f81534_tiocmget(struct tty_struct *tty) argument 1453 f81534_tiocmset(struct tty_struct *tty, unsigned int set, unsigned int clear) argument 1469 f81534_write(struct tty_struct *tty, struct usb_serial_port *port, const u8 *buf, int count) argument [all...] |
H A D | io_ti.c | 20 #include <linux/tty.h> 223 static void edge_set_termios(struct tty_struct *tty, 226 static void edge_send(struct usb_serial_port *port, struct tty_struct *tty); 1554 struct tty_struct *tty; local 1577 tty = tty_port_tty_get(&edge_port->port->port); 1579 if (tty && C_CRTSCTS(tty)) { 1581 tty_wakeup(tty); 1583 tty_kref_put(tty); 1808 struct tty_struct *tty; local 1834 edge_open(struct tty_struct *tty, struct usb_serial_port *port) argument 2001 edge_write(struct tty_struct *tty, struct usb_serial_port *port, const unsigned char *data, int count) argument 2023 edge_send(struct usb_serial_port *port, struct tty_struct *tty) argument 2073 edge_write_room(struct tty_struct *tty) argument 2093 edge_chars_in_buffer(struct tty_struct *tty) argument 2122 edge_throttle(struct tty_struct *tty) argument 2149 edge_unthrottle(struct tty_struct *tty) argument 2213 change_port_settings(struct tty_struct *tty, struct edgeport_port *edge_port, const struct ktermios *old_termios) argument 2354 edge_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument 2366 edge_tiocmset(struct tty_struct *tty, unsigned int set, unsigned int clear) argument 2397 edge_tiocmget(struct tty_struct *tty) argument 2424 edge_break(struct tty_struct *tty, int break_state) argument [all...] |
H A D | quatech2.c | 15 #include <linux/tty.h> 255 static void qt2_set_termios(struct tty_struct *tty, argument 261 struct ktermios *termios = &tty->termios; 278 baud = tty_get_baud_rate(tty); 299 if (I_IXOFF(tty) || I_IXON(tty)) { 300 u16 x = ((u16) (START_CHAR(tty) << 8) | (u16) (STOP_CHAR(tty))); 314 static int qt2_open(struct tty_struct *tty, struct usb_serial_port *port) argument 377 if (tty) 703 qt2_tiocmget(struct tty_struct *tty) argument 735 qt2_tiocmset(struct tty_struct *tty, unsigned int set, unsigned int clear) argument 744 qt2_break_ctl(struct tty_struct *tty, int break_state) argument 855 qt2_write_room(struct tty_struct *tty) argument 876 qt2_write(struct tty_struct *tty, struct usb_serial_port *port, const unsigned char *buf, int count) argument [all...] |
H A D | mos7840.c | 15 #include <linux/tty.h> 507 * this function is called by the tty driver when a port is opened 512 static int mos7840_open(struct tty_struct *tty, struct usb_serial_port *port) argument 728 * this function is called by the tty driver when it wants to know how many 733 static unsigned int mos7840_chars_in_buffer(struct tty_struct *tty) argument 735 struct usb_serial_port *port = tty->driver_data; 756 * this function is called by the tty driver when a port is closed 790 static int mos7840_break(struct tty_struct *tty, int break_state) argument 792 struct usb_serial_port *port = tty->driver_data; 811 * this function is called by the tty drive 815 mos7840_write_room(struct tty_struct *tty) argument 844 mos7840_write(struct tty_struct *tty, struct usb_serial_port *port, const unsigned char *data, int count) argument 937 mos7840_throttle(struct tty_struct *tty) argument 966 mos7840_unthrottle(struct tty_struct *tty) argument 990 mos7840_tiocmget(struct tty_struct *tty) argument 1017 mos7840_tiocmset(struct tty_struct *tty, unsigned int set, unsigned int clear) argument 1191 mos7840_change_port_settings(struct tty_struct *tty, struct moschip_port *mos7840_port, const struct ktermios *old_termios) argument 1333 mos7840_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument 1366 mos7840_get_lsr_info(struct tty_struct *tty, unsigned int __user *value) argument 1386 mos7840_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) argument [all...] |
H A D | io_edgeport.c | 32 #include <linux/tty.h> 282 static void change_port_settings(struct tty_struct *tty, 653 /* tell the tty driver that something 793 /* tell the tty driver that something has changed */ 804 * Driver tty interface functions 809 * this function is called by the tty driver when a port is opened 813 static int edge_open(struct tty_struct *tty, struct usb_serial_port *port) argument 1048 * this function is called by the tty driver when a port is closed 1107 * this function is called by the tty driver when data should be written 1112 static int edge_write(struct tty_struct *tty, struc argument 1323 edge_write_room(struct tty_struct *tty) argument 1346 edge_chars_in_buffer(struct tty_struct *tty) argument 1370 edge_throttle(struct tty_struct *tty) argument 1408 edge_unthrottle(struct tty_struct *tty) argument 1443 edge_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument 1491 edge_tiocmset(struct tty_struct *tty, unsigned int set, unsigned int clear) argument 1520 edge_tiocmget(struct tty_struct *tty) argument 1544 edge_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) argument 1563 edge_break(struct tty_struct *tty, int break_state) argument 1751 struct tty_struct *tty; local 2330 change_port_settings(struct tty_struct *tty, struct edgeport_port *edge_port, const struct ktermios *old_termios) argument [all...] |
H A D | usb_wwan.c | 26 #include <linux/tty.h> 91 int usb_wwan_tiocmget(struct tty_struct *tty) argument 93 struct usb_serial_port *port = tty->driver_data; 110 int usb_wwan_tiocmset(struct tty_struct *tty, argument 113 struct usb_serial_port *port = tty->driver_data; 137 int usb_wwan_write(struct tty_struct *tty, struct usb_serial_port *port, argument 282 unsigned int usb_wwan_write_room(struct tty_struct *tty) argument 284 struct usb_serial_port *port = tty->driver_data; 303 unsigned int usb_wwan_chars_in_buffer(struct tty_struct *tty) argument 305 struct usb_serial_port *port = tty 325 usb_wwan_open(struct tty_struct *tty, struct usb_serial_port *port) argument [all...] |
/linux-master/drivers/staging/gdm724x/ |
H A D | gdm_tty.h | 8 #include <linux/tty.h>
|
/linux-master/drivers/misc/ibmasm/ |
H A D | uart.c | 12 #include <linux/tty.h>
|
/linux-master/drivers/net/slip/ |
H A D | slip.h | 56 struct tty_struct *tty; /* ptr to TTY structure */ member in struct:slip
|
/linux-master/drivers/s390/char/ |
H A D | keyboard.h | 9 #include <linux/tty.h>
|
H A D | sclp_vt220.c | 18 #include <linux/tty.h> 59 /* Structures and data needed to register tty driver */ 461 * characters to the tty device. The characters may come from 466 sclp_vt220_write(struct tty_struct *tty, const u8 *buf, size_t count) argument 550 * This routine is called when a particular tty device is opened. 553 sclp_vt220_open(struct tty_struct *tty, struct file *filp) argument 555 if (tty->count == 1) { 556 tty_port_tty_set(&sclp_vt220_port, tty); 557 if (!tty->winsize.ws_row && !tty 569 sclp_vt220_close(struct tty_struct *tty, struct file *filp) argument 582 sclp_vt220_put_char(struct tty_struct *tty, u8 ch) argument 592 sclp_vt220_flush_chars(struct tty_struct *tty) argument 607 sclp_vt220_write_room(struct tty_struct *tty) argument 627 sclp_vt220_chars_in_buffer(struct tty_struct *tty) argument 650 sclp_vt220_flush_buffer(struct tty_struct *tty) argument [all...] |
/linux-master/arch/um/drivers/ |
H A D | ssl.c | 7 #include <linux/tty.h> 87 static int ssl_install(struct tty_driver *driver, struct tty_struct *tty) argument 89 return line_install(driver, tty, &serial_lines[tty->index]);
|
H A D | stdio_console.c | 7 #include <linux/tty.h> 51 .device_name = "tty", 93 static int con_install(struct tty_driver *driver, struct tty_struct *tty) argument 95 return line_install(driver, tty, &vts[tty->index]); 138 .name = "tty", 191 if (!strncmp(str, "sole=", 5)) /* console= option specifies tty */
|
/linux-master/Documentation/arch/s390/ |
H A D | config3270.sh | 16 P=/proc/tty/driver/tty3270 20 TTY=$SUBD/tty 28 ADDNOTE=\\"# Additional mingettys for the 3270/tty* driver, tub3270 ---\\"
|
/linux-master/drivers/usb/class/ |
H A D | cdc-acm.c | 27 #include <linux/tty.h> 54 static void acm_tty_set_termios(struct tty_struct *tty, 323 if ((difference & USB_CDC_SERIAL_STATE_DCD) && acm->port.tty) { 324 struct tty_ldisc *ld = tty_ldisc_ref(acm->port.tty); 327 ld->ops->dcd_change(acm->port.tty, newctrl & USB_CDC_SERIAL_STATE_DCD); 629 static int acm_tty_install(struct tty_driver *driver, struct tty_struct *tty) argument 634 acm = acm_get_by_minor(tty->index); 638 retval = tty_standard_install(driver, tty); 647 tty->termios.c_lflag &= ~ECHO; 649 tty 658 acm_tty_open(struct tty_struct *tty, struct file *filp) argument 685 acm_port_activate(struct tty_port *port, struct tty_struct *tty) argument 782 acm_tty_cleanup(struct tty_struct *tty) argument 789 acm_tty_hangup(struct tty_struct *tty) argument 796 acm_tty_close(struct tty_struct *tty, struct file *filp) argument 803 acm_tty_write(struct tty_struct *tty, const u8 *buf, size_t count) argument 857 acm_tty_write_room(struct tty_struct *tty) argument 867 acm_tty_flush_buffer(struct tty_struct *tty) argument 880 acm_tty_chars_in_buffer(struct tty_struct *tty) argument 895 acm_tty_throttle(struct tty_struct *tty) argument 902 acm_tty_unthrottle(struct tty_struct *tty) argument 914 acm_tty_break_ctl(struct tty_struct *tty, int state) argument 929 acm_tty_tiocmget(struct tty_struct *tty) argument 941 acm_tty_tiocmset(struct tty_struct *tty, unsigned int set, unsigned int clear) argument 960 get_serial_info(struct tty_struct *tty, struct serial_struct *ss) argument 972 set_serial_info(struct tty_struct *tty, struct serial_struct *ss) argument 1041 acm_tty_get_icount(struct tty_struct *tty, struct serial_icounter_struct *icount) argument 1057 acm_tty_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) argument 1078 acm_tty_set_termios(struct tty_struct *tty, const struct ktermios *termios_old) argument 1561 struct tty_struct *tty; local [all...] |
/linux-master/drivers/tty/vt/ |
H A D | vt_ioctl.c | 15 #include <linux/tty.h> 283 static int vt_k_ioctl(struct tty_struct *tty, unsigned int cmd, argument 286 struct vc_data *vc = tty->driver_data; 402 tty_ldisc_flush(tty); 735 int vt_ioctl(struct tty_struct *tty, argument 738 struct vc_data *vc = tty->driver_data; 745 * to be the owner of the tty, or have CAP_SYS_TTY_CONFIG. 748 if (current->signal->tty == tty || capable(CAP_SYS_TTY_CONFIG)) 751 ret = vt_k_ioctl(tty, cm 981 struct tty_struct *tty; local 1057 vt_compat_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) argument [all...] |
H A D | vt.c | 77 #include <linux/tty.h> 147 static void con_flush_chars(struct tty_struct *tty); 212 * Unfortunately, we need to delay tty echo when we're currently writing to the 240 * /sys/class/tty/tty0/ 928 /* printk("redraw_screen: tty %d not allocated ??\n", new_console+1); */ 1118 * vc_do_resize - resizing method for the tty 1119 * @tty: tty being resized 1126 * the caller passes a tty structure then update the termios winsize 1130 * ctrl.lock of the tty IF 1132 vc_do_resize(struct tty_struct *tty, struct vc_data *vc, unsigned int cols, unsigned int lines, bool from_user) argument 1309 vt_resize(struct tty_struct *tty, struct winsize *ws) argument 1823 cursor_report(struct vc_data *vc, struct tty_struct *tty) argument 1834 status_report(struct tty_struct *tty) argument 1841 respond_ID(struct tty_struct *tty) argument 1849 mouse_report(struct tty_struct *tty, int butt, int mrx, int mry) argument 2242 handle_ascii(struct tty_struct *tty, struct vc_data *vc, u8 c) argument 2311 handle_esc(struct tty_struct *tty, struct vc_data *vc, u8 c) argument 2381 csi_DEC(struct tty_struct *tty, struct vc_data *vc, u8 c) argument 2419 csi_ECMA(struct tty_struct *tty, struct vc_data *vc, u8 c) argument 2558 do_con_trol(struct tty_struct *tty, struct vc_data *vc, u8 c) argument 3042 do_con_write(struct tty_struct *tty, const u8 *buf, int count) argument 3331 tioclinux(struct tty_struct *tty, unsigned long arg) argument 3430 con_write(struct tty_struct *tty, const u8 *buf, size_t count) argument 3440 con_put_char(struct tty_struct *tty, u8 ch) argument 3445 con_write_room(struct tty_struct *tty) argument 3457 con_throttle(struct tty_struct *tty) argument 3461 con_unthrottle(struct tty_struct *tty) argument 3471 con_stop(struct tty_struct *tty) argument 3485 con_start(struct tty_struct *tty) argument 3496 con_flush_chars(struct tty_struct *tty) argument 3511 con_install(struct tty_driver *driver, struct tty_struct *tty) argument 3551 con_open(struct tty_struct *tty, struct file *filp) argument 3558 con_close(struct tty_struct *tty, struct file *filp) argument 3563 con_shutdown(struct tty_struct *tty) argument 3572 con_cleanup(struct tty_struct *tty) argument [all...] |
/linux-master/drivers/tty/ipwireless/ |
H A D | network.c | 32 #include "tty.h" 43 /* tty context connected with IPW console */ 323 struct ipw_tty *tty = local 327 * If it's associated with a tty (other than the RAS channel 328 * when we're online), then send the data to that tty. The RAS 332 if (tty) 333 ipwireless_tty_notify_control_line_change(tty, 373 struct ipw_tty *tty = network->associated_ttys[channel_idx][i]; local 375 if (!tty) 379 * If it's associated with a tty (othe 451 ipwireless_associate_network_tty(struct ipw_network *network, unsigned int channel_idx, struct ipw_tty *tty) argument [all...] |
/linux-master/drivers/leds/trigger/ |
H A D | Makefile | 18 obj-$(CONFIG_LEDS_TRIGGER_TTY) += ledtrig-tty.o
|
/linux-master/drivers/net/usb/ |
H A D | hso.c | 49 #include <linux/tty.h> 291 static int hso_serial_tiocmset(struct tty_struct *tty, 1081 static void _hso_serial_set_termios(struct tty_struct *tty) argument 1083 struct hso_serial *serial = tty->driver_data; 1086 pr_err("%s: no tty structures", __func__); 1095 tty->termios.c_iflag &= ~IXON; /* disable enable XON/XOFF flow control */ 1097 tty->termios.c_cflag &= 1103 tty->termios.c_cflag |= CS8; /* character size 8 bits */ 1106 tty_encode_baud_rate(tty, 115200, 115200); 1226 static void hso_unthrottle(struct tty_struct *tty) argument 1234 hso_serial_open(struct tty_struct *tty, struct file *filp) argument 1288 hso_serial_close(struct tty_struct *tty, struct file *filp) argument 1324 hso_serial_write(struct tty_struct *tty, const u8 *buf, size_t count) argument 1351 hso_serial_write_room(struct tty_struct *tty) argument 1365 hso_serial_cleanup(struct tty_struct *tty) argument 1376 hso_serial_set_termios(struct tty_struct *tty, const struct ktermios *old) argument 1399 hso_serial_chars_in_buffer(struct tty_struct *tty) argument 1582 hso_get_count(struct tty_struct *tty, struct serial_icounter_struct *icount) argument 1613 hso_serial_tiocmget(struct tty_struct *tty) argument 1644 hso_serial_tiocmset(struct tty_struct *tty, unsigned int set, unsigned int clear) argument 1689 hso_serial_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) argument 1993 struct tty_struct *tty; local [all...] |