/linux-master/drivers/usb/serial/ |
H A D | kobil_sct.c | 25 #include <linux/tty.h> 52 static int kobil_open(struct tty_struct *tty, struct usb_serial_port *port); 54 static int kobil_write(struct tty_struct *tty, struct usb_serial_port *port, 56 static unsigned int kobil_write_room(struct tty_struct *tty); 57 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, 64 static void kobil_set_termios(struct tty_struct *tty, 67 static void kobil_init_termios(struct tty_struct *tty); 155 static void kobil_init_termios(struct tty_struct *tty) argument 165 kobil_open(struct tty_struct *tty, struct usb_serial_port *port) argument 293 kobil_write(struct tty_struct *tty, struct usb_serial_port *port, const unsigned char *buf, int count) argument 362 kobil_write_room(struct tty_struct *tty) argument 369 kobil_tiocmget(struct tty_struct *tty) argument 417 kobil_tiocmset(struct tty_struct *tty, unsigned int set, unsigned int clear) argument 477 kobil_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old) argument 535 kobil_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) argument [all...] |
H A D | xr_serial.c | 18 #include <linux/tty.h> 107 static void xr21v141x_set_line_settings(struct tty_struct *tty, 137 void (*set_line_settings)(struct tty_struct *tty, 438 static int xr_tiocmget(struct tty_struct *tty) argument 440 struct usb_serial_port *port = tty->driver_data; 492 static int xr_tiocmset(struct tty_struct *tty, argument 495 struct usb_serial_port *port = tty->driver_data; 508 static int xr_break_ctl(struct tty_struct *tty, int break_state) argument 510 struct usb_serial_port *port = tty->driver_data; 561 static int xr21v141x_set_baudrate(struct tty_struct *tty, struc argument 627 xr_set_flow_mode(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument 690 xr21v141x_set_line_settings(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument 749 xr_cdc_set_line_coding(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument 846 xr_get_rs485_config(struct tty_struct *tty, struct serial_rs485 __user *argp) argument 862 xr_set_rs485_config(struct tty_struct *tty, struct serial_rs485 __user *argp) argument 884 xr_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) argument 898 xr_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument 916 xr_open(struct tty_struct *tty, struct usb_serial_port *port) argument [all...] |
H A D | empeg.c | 18 #include <linux/tty.h> 35 static void empeg_init_termios(struct tty_struct *tty); 78 static void empeg_init_termios(struct tty_struct *tty) argument 80 struct ktermios *termios = &tty->termios; 83 * The empeg-car player wants these particular tty settings. 86 * no point in support for changes to the tty settings. 119 tty_encode_baud_rate(tty, 115200, 115200);
|
H A D | mct_u232.c | 23 #include <linux/tty.h> 43 static int mct_u232_open(struct tty_struct *tty, struct usb_serial_port *port); 47 static void mct_u232_set_termios(struct tty_struct *tty, 50 static int mct_u232_break_ctl(struct tty_struct *tty, int break_state); 51 static int mct_u232_tiocmget(struct tty_struct *tty); 52 static int mct_u232_tiocmset(struct tty_struct *tty, 54 static void mct_u232_throttle(struct tty_struct *tty); 55 static void mct_u232_unthrottle(struct tty_struct *tty); 175 static int mct_u232_set_baud_rate(struct tty_struct *tty, argument 199 tty_encode_baud_rate(tty, spee 412 mct_u232_open(struct tty_struct *tty, struct usb_serial_port *port) argument 595 mct_u232_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument 680 mct_u232_break_ctl(struct tty_struct *tty, int break_state) argument 698 mct_u232_tiocmget(struct tty_struct *tty) argument 712 mct_u232_tiocmset(struct tty_struct *tty, unsigned int set, unsigned int clear) argument 737 mct_u232_throttle(struct tty_struct *tty) argument 755 mct_u232_unthrottle(struct tty_struct *tty) argument [all...] |
H A D | cypress_m8.c | 27 #include <linux/tty.h> 119 static int cypress_open(struct tty_struct *tty, struct usb_serial_port *port); 122 static int cypress_write(struct tty_struct *tty, struct usb_serial_port *port, 125 static unsigned int cypress_write_room(struct tty_struct *tty); 126 static void cypress_earthmate_init_termios(struct tty_struct *tty); 127 static void cypress_set_termios(struct tty_struct *tty, 130 static int cypress_tiocmget(struct tty_struct *tty); 131 static int cypress_tiocmset(struct tty_struct *tty, 133 static unsigned int cypress_chars_in_buffer(struct tty_struct *tty); 134 static void cypress_throttle(struct tty_struct *tty); 291 cypress_serial_control(struct tty_struct *tty, struct usb_serial_port *port, speed_t baud_rate, int data_bits, int stop_bits, int parity_enable, int parity_type, int reset, int cypress_request_type) argument 578 cypress_open(struct tty_struct *tty, struct usb_serial_port *port) argument 657 cypress_write(struct tty_struct *tty, struct usb_serial_port *port, const unsigned char *buf, int count) argument 793 cypress_write_room(struct tty_struct *tty) argument 809 cypress_tiocmget(struct tty_struct *tty) argument 835 cypress_tiocmset(struct tty_struct *tty, unsigned int set, unsigned int clear) argument 857 cypress_earthmate_init_termios(struct tty_struct *tty) argument 862 cypress_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument 960 cypress_chars_in_buffer(struct tty_struct *tty) argument 976 cypress_throttle(struct tty_struct *tty) argument 987 cypress_unthrottle(struct tty_struct *tty) argument 1017 struct tty_struct *tty; local [all...] |
H A D | usb_debug.c | 10 #include <linux/tty.h> 50 static int usb_debug_break_ctl(struct tty_struct *tty, int break_state) argument 52 struct usb_serial_port *port = tty->driver_data; 58 ret = usb_serial_generic_write(tty, port, USB_DEBUG_BRK, USB_DEBUG_BRK_SIZE);
|
H A D | ch341.c | 16 #include <linux/tty.h> 107 static void ch341_set_termios(struct tty_struct *tty, 447 static int ch341_open(struct tty_struct *tty, struct usb_serial_port *port) argument 452 if (tty) 453 ch341_set_termios(tty, port, NULL); 469 r = usb_serial_generic_open(tty, port); 482 * tty->termios contains the new setting to be used. 484 static void ch341_set_termios(struct tty_struct *tty, argument 495 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) 498 baud_rate = tty_get_baud_rate(tty); 565 ch341_simulate_break(struct tty_struct *tty, int break_state) argument 633 ch341_break_ctl(struct tty_struct *tty, int break_state) argument 680 ch341_tiocmset(struct tty_struct *tty, unsigned int set, unsigned int clear) argument 707 struct tty_struct *tty; local 781 ch341_tiocmget(struct tty_struct *tty) argument [all...] |
H A D | wishbone-serial.c | 10 #include <linux/tty.h> 45 static int wishbone_serial_open(struct tty_struct *tty, argument 58 retval = usb_serial_generic_open(tty, port);
|
H A D | whiteheat.c | 18 #include <linux/tty.h> 79 static int whiteheat_open(struct tty_struct *tty, 82 static void whiteheat_get_serial(struct tty_struct *tty, 84 static void whiteheat_set_termios(struct tty_struct *tty, 87 static int whiteheat_tiocmget(struct tty_struct *tty); 88 static int whiteheat_tiocmset(struct tty_struct *tty, 90 static int whiteheat_break_ctl(struct tty_struct *tty, int break_state); 158 static void firm_setup_port(struct tty_struct *tty); 352 static int whiteheat_open(struct tty_struct *tty, struct usb_serial_port *port) argument 374 if (tty) 402 whiteheat_tiocmget(struct tty_struct *tty) argument 417 whiteheat_tiocmset(struct tty_struct *tty, unsigned int set, unsigned int clear) argument 439 whiteheat_get_serial(struct tty_struct *tty, struct serial_struct *ss) argument 445 whiteheat_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument 452 whiteheat_break_ctl(struct tty_struct *tty, int break_state) argument 616 firm_setup_port(struct tty_struct *tty) argument [all...] |
/linux-master/arch/m68k/include/asm/ |
H A D | virt.h | 16 struct virt_booter_device_data tty; member in struct:virt_booter_data
|
/linux-master/lib/ |
H A D | bust_spinlocks.c | 15 #include <linux/tty.h>
|
/linux-master/drivers/staging/greybus/ |
H A D | uart.c | 21 #include <linux/tty.h> 189 * the port the tty layer may be waiting for credits 281 static int send_line_coding(struct gb_tty *tty) argument 283 return gb_operation_sync(tty->connection, GB_UART_TYPE_SET_LINE_CODING, 284 &tty->line_coding, sizeof(tty->line_coding), 382 static int gb_tty_install(struct tty_driver *driver, struct tty_struct *tty) argument 387 gb_tty = get_gb_by_minor(tty->index); 391 retval = tty_standard_install(driver, tty); 395 tty 402 gb_tty_open(struct tty_struct *tty, struct file *file) argument 409 gb_tty_close(struct tty_struct *tty, struct file *file) argument 416 gb_tty_cleanup(struct tty_struct *tty) argument 423 gb_tty_hangup(struct tty_struct *tty) argument 430 gb_tty_write(struct tty_struct *tty, const u8 *buf, size_t count) argument 442 gb_tty_write_room(struct tty_struct *tty) argument 459 gb_tty_chars_in_buffer(struct tty_struct *tty) argument 474 gb_tty_break_ctl(struct tty_struct *tty, int state) argument 481 gb_tty_set_termios(struct tty_struct *tty, const struct ktermios *termios_old) argument 524 gb_tty_tiocmget(struct tty_struct *tty) argument 536 gb_tty_tiocmset(struct tty_struct *tty, unsigned int set, unsigned int clear) argument 555 gb_tty_throttle(struct tty_struct *tty) argument 574 gb_tty_unthrottle(struct tty_struct *tty) argument 593 get_serial_info(struct tty_struct *tty, struct serial_struct *ss) argument 608 set_serial_info(struct tty_struct *tty, struct serial_struct *ss) argument 674 gb_tty_get_icount(struct tty_struct *tty, struct serial_icounter_struct *icount) argument 690 gb_tty_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) argument 720 gb_tty_port_activate(struct tty_port *port, struct tty_struct *tty) argument 917 struct tty_struct *tty; local [all...] |
/linux-master/include/linux/ |
H A D | selection.h | 19 struct tty_struct *tty); 20 int set_selection_kernel(struct tiocl_selection *v, struct tty_struct *tty); 21 int paste_selection(struct tty_struct *tty); 24 void mouse_report(struct tty_struct *tty, int butt, int mrx, int mry);
|
/linux-master/drivers/tty/ |
H A D | goldfish.c | 11 #include <linux/tty.h> 22 /* Goldfish tty register's offsets */ 30 /* Goldfish tty commands */ 102 dev_err(qtty->dev, "tty: DMA mapping error.\n"); 150 static int goldfish_tty_activate(struct tty_port *port, struct tty_struct *tty) argument 165 static int goldfish_tty_open(struct tty_struct *tty, struct file *filp) argument 167 struct goldfish_tty *qtty = &goldfish_ttys[tty->index]; 168 return tty_port_open(&qtty->port, tty, filp); 171 static void goldfish_tty_close(struct tty_struct *tty, struct file *filp) argument 173 tty_port_close(tty 176 goldfish_tty_hangup(struct tty_struct *tty) argument 181 goldfish_tty_write(struct tty_struct *tty, const u8 *buf, size_t count) argument 188 goldfish_tty_write_room(struct tty_struct *tty) argument 193 goldfish_tty_chars_in_buffer(struct tty_struct *tty) argument 239 struct tty_driver *tty; local [all...] |
H A D | tty_audit.c | 12 #include <linux/tty.h> 13 #include "tty.h" 99 tty_audit_log("tty", buf->dev, buf->data, buf->valid); 137 void tty_audit_tiocsti(const struct tty_struct *tty, u8 ch) argument 141 dev = MKDEV(tty->driver->major, tty->driver->minor_start) + tty->index; 152 * Returns 0 if success, -EPERM if tty audit is disabled 200 * Audit @data of @size from @tty, if necessary. 202 void tty_audit_add_data(const struct tty_struct *tty, cons argument [all...] |
/linux-master/arch/alpha/kernel/ |
H A D | srmcons.c | 17 #include <linux/tty.h> 83 if (port->tty) 114 * Check for pending input iff a tty port was provided 129 srmcons_write(struct tty_struct *tty, const u8 *buf, size_t count) argument 134 srmcons_do_write(tty->port, buf, count); 141 srmcons_write_room(struct tty_struct *tty) argument 147 srmcons_open(struct tty_struct *tty, struct file *filp) argument 155 if (!port->tty) { 156 tty->driver_data = srmconsp; 157 tty 168 srmcons_close(struct tty_struct *tty, struct file *filp) argument [all...] |
/linux-master/drivers/net/hamradio/ |
H A D | 6pack.c | 23 #include <linux/tty.h> 87 struct tty_struct *tty; /* ptr to TTY structure */ member in struct:sixpack 150 sp->tty->ops->write(sp->tty, &sp->led_state, 1); 152 actual = sp->tty->ops->write(sp->tty, sp->xbuff, sp->status2); 156 sp->tty->ops->write(sp->tty, &sp->led_state, 1); 191 set_bit(TTY_DO_WRITE_WAKEUP, &sp->tty->flags); 217 sp->tty 372 sp_get(struct tty_struct *tty) argument 395 sixpack_write_wakeup(struct tty_struct *tty) argument 430 sixpack_receive_buf(struct tty_struct *tty, const u8 *cp, const u8 *fp, size_t count) argument 545 sixpack_open(struct tty_struct *tty) argument 649 sixpack_close(struct tty_struct *tty) argument 686 sixpack_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) argument [all...] |
/linux-master/drivers/net/slip/ |
H A D | slip.c | 31 * Dmitry Gorodchanin : Code cleanup. Reduce tty driver 59 * Vitaly E. Lavrov : Sane behaviour on tty hangup. 60 * Alexey Kuznetsov : Cleanup interfaces to tty & netdevice 76 #include <linux/tty.h> 172 if (sl->tty == NULL) { 261 if (sl->tty == NULL) 408 set_bit(TTY_DO_WRITE_WAKEUP, &sl->tty->flags); 409 actual = sl->tty->ops->write(sl->tty, sl->xbuff, count); 421 /* Write out any remaining transmit buffer. Scheduled when tty i 454 slip_write_wakeup(struct tty_struct *tty) argument 688 slip_receive_buf(struct tty_struct *tty, const u8 *cp, const u8 *fp, size_t count) argument 788 slip_open(struct tty_struct *tty) argument 884 slip_close(struct tty_struct *tty) argument 910 slip_hangup(struct tty_struct *tty) argument 1075 slip_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) argument [all...] |
/linux-master/drivers/misc/ti-st/ |
H A D | st_core.c | 12 #include <linux/tty.h> 48 * This is a wrapper function to tty->ops->write_room. 54 if (unlikely(st_gdata == NULL || st_gdata->tty == NULL)) { 55 pr_err("tty unavailable to perform write"); 59 return tty_write_room(st_gdata->tty); 68 * to tty->ops->write 73 struct tty_struct *tty; local 74 if (unlikely(st_gdata == NULL || st_gdata->tty == NULL)) { 75 pr_err("tty unavailable to perform write"); 78 tty 720 st_tty_open(struct tty_struct *tty) argument 748 st_tty_close(struct tty_struct *tty) argument 794 st_tty_receive(struct tty_struct *tty, const u8 *data, const u8 *tty_flags, size_t count) argument 814 st_tty_wakeup(struct tty_struct *tty) argument 829 st_tty_flush_buffer(struct tty_struct *tty) argument [all...] |
/linux-master/arch/m68k/emu/ |
H A D | nfcon.c | 12 #include <linux/tty.h> 64 static int nfcon_tty_open(struct tty_struct *tty, struct file *filp) argument 69 static void nfcon_tty_close(struct tty_struct *tty, struct file *filp) argument 73 static ssize_t nfcon_tty_write(struct tty_struct *tty, const u8 *buf, argument 80 static int nfcon_tty_put_char(struct tty_struct *tty, u8 ch) argument 88 static unsigned int nfcon_tty_write_room(struct tty_struct *tty) argument 151 pr_err("failed to register nfcon tty driver\n");
|
/linux-master/drivers/usb/host/ |
H A D | xhci-dbgtty.c | 3 * xhci-dbgtty.c - tty glue for xHCI debug capability 11 #include <linux/tty.h> 70 if (do_tty_wake && port->port.tty) 71 tty_wakeup(port->port.tty); 85 if (!port->port.tty) 181 static int dbc_tty_install(struct tty_driver *driver, struct tty_struct *tty) argument 186 port = idr_find(&dbc_tty_minors, tty->index); 192 tty->driver_data = port; 194 return tty_port_install(&port->port, driver, tty); 197 static int dbc_tty_open(struct tty_struct *tty, struc argument 204 dbc_tty_close(struct tty_struct *tty, struct file *file) argument 211 dbc_tty_write(struct tty_struct *tty, const u8 *buf, size_t count) argument 226 dbc_tty_put_char(struct tty_struct *tty, u8 ch) argument 239 dbc_tty_flush_chars(struct tty_struct *tty) argument 249 dbc_tty_write_room(struct tty_struct *tty) argument 262 dbc_tty_chars_in_buffer(struct tty_struct *tty) argument 275 dbc_tty_unthrottle(struct tty_struct *tty) argument 300 struct tty_struct *tty; local 370 dbc_port_activate(struct tty_port *_port, struct tty_struct *tty) argument [all...] |
/linux-master/drivers/net/can/slcan/ |
H A D | slcan-core.c | 2 * slcan.c - serial line CAN interface driver (using tty line discipline) 48 #include <linux/tty.h> 84 struct tty_struct *tty; /* ptr to TTY structure */ member in struct:slcan 455 /* parse tty input stream */ 536 set_bit(TTY_DO_WRITE_WAKEUP, &sl->tty->flags); 537 actual = sl->tty->ops->write(sl->tty, sl->xbuff, pos - sl->xbuff); 542 /* Write out any remaining transmit buffer. Scheduled when tty is writable */ 559 clear_bit(TTY_DO_WRITE_WAKEUP, &sl->tty->flags); 569 clear_bit(TTY_DO_WRITE_WAKEUP, &sl->tty 584 slcan_write_wakeup(struct tty_struct *tty) argument 777 slcan_receive_buf(struct tty_struct *tty, const u8 *cp, const u8 *fp, size_t count) argument 803 slcan_open(struct tty_struct *tty) argument 862 slcan_close(struct tty_struct *tty) argument 885 slcan_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) argument [all...] |
/linux-master/drivers/net/ppp/ |
H A D | ppp_synctty.c | 3 * PPP synchronous tty channel driver for Linux. 5 * This is a ppp channel driver that can be used with tty device drivers 34 #include <linux/tty.h> 53 struct tty_struct *tty; member in struct:syncppp 122 * We have a potential race on dereferencing tty->disc_data, 123 * because the tty layer provides no locking at all - thus one 125 * calls ppp_synctty_close, which zeroes tty->disc_data and 127 * way to fix this is to use a rwlock in the tty struct, but for now 134 static struct syncppp *sp_get(struct tty_struct *tty) argument 139 ap = tty 156 ppp_sync_open(struct tty_struct *tty) argument 214 ppp_sync_close(struct tty_struct *tty) argument 248 ppp_sync_hangup(struct tty_struct *tty) argument 258 ppp_sync_read(struct tty_struct *tty, struct file *file, u8 *buf, size_t count, void **cookie, unsigned long offset) argument 269 ppp_sync_write(struct tty_struct *tty, struct file *file, const u8 *buf, size_t count) argument 276 ppp_synctty_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) argument 325 ppp_sync_receive(struct tty_struct *tty, const u8 *buf, const u8 *cflags, size_t count) argument 343 ppp_sync_wakeup(struct tty_struct *tty) argument 585 struct tty_struct *tty = ap->tty; local [all...] |
/linux-master/drivers/accessibility/speakup/ |
H A D | buffers.c | 31 if (vc_cons[i].d && vc_cons[i].d->port.tty) 32 start_tty(vc_cons[i].d->port.tty); 42 if (vc_cons[i].d && vc_cons[i].d->port.tty) 43 stop_tty(vc_cons[i].d->port.tty);
|
/linux-master/drivers/leds/trigger/ |
H A D | ledtrig-tty.c | 8 #include <linux/tty.h> 18 struct tty_struct *tty; member in struct:ledtrig_tty_data 101 tty_kref_put(trigger_data->tty); 102 trigger_data->tty = NULL; 208 /* try to get the tty corresponding to $ttyname */ 209 if (!trigger_data->tty) { 211 struct tty_struct *tty; local 222 tty = tty_kopen_shared(devno); 223 if (IS_ERR(tty) || !tty) [all...] |