/linux-4.1.27/include/linux/ |
D | tty.h | 104 #define INTR_CHAR(tty) ((tty)->termios.c_cc[VINTR]) argument 105 #define QUIT_CHAR(tty) ((tty)->termios.c_cc[VQUIT]) argument 106 #define ERASE_CHAR(tty) ((tty)->termios.c_cc[VERASE]) argument 107 #define KILL_CHAR(tty) ((tty)->termios.c_cc[VKILL]) argument 108 #define EOF_CHAR(tty) ((tty)->termios.c_cc[VEOF]) argument 109 #define TIME_CHAR(tty) ((tty)->termios.c_cc[VTIME]) argument 110 #define MIN_CHAR(tty) ((tty)->termios.c_cc[VMIN]) argument 111 #define SWTC_CHAR(tty) ((tty)->termios.c_cc[VSWTC]) argument 112 #define START_CHAR(tty) ((tty)->termios.c_cc[VSTART]) argument 113 #define STOP_CHAR(tty) ((tty)->termios.c_cc[VSTOP]) argument [all …]
|
D | tty_driver.h | 254 int (*install)(struct tty_driver *driver, struct tty_struct *tty); 255 void (*remove)(struct tty_driver *driver, struct tty_struct *tty); 256 int (*open)(struct tty_struct * tty, struct file * filp); 257 void (*close)(struct tty_struct * tty, struct file * filp); 258 void (*shutdown)(struct tty_struct *tty); 259 void (*cleanup)(struct tty_struct *tty); 260 int (*write)(struct tty_struct * tty, 262 int (*put_char)(struct tty_struct *tty, unsigned char ch); 263 void (*flush_chars)(struct tty_struct *tty); 264 int (*write_room)(struct tty_struct *tty); [all …]
|
D | tty_ldisc.h | 190 void (*flush_buffer)(struct tty_struct *tty); 191 ssize_t (*chars_in_buffer)(struct tty_struct *tty); 192 ssize_t (*read)(struct tty_struct *tty, struct file *file, 194 ssize_t (*write)(struct tty_struct *tty, struct file *file, 196 int (*ioctl)(struct tty_struct *tty, struct file *file, 198 long (*compat_ioctl)(struct tty_struct *tty, struct file *file, 200 void (*set_termios)(struct tty_struct *tty, struct ktermios *old); 203 int (*hangup)(struct tty_struct *tty); 212 void (*fasync)(struct tty_struct *tty, int on); 223 struct tty_struct *tty; member
|
D | selection.h | 19 extern int set_selection(const struct tiocl_selection __user *sel, struct tty_struct *tty); 20 extern int paste_selection(struct tty_struct *tty); 23 extern void mouse_report(struct tty_struct * tty, int butt, int mrx, int mry);
|
D | serial_core.h | 399 struct tty_struct *tty = port->state->port.tty; in uart_tx_stopped() local 400 if (tty->stopped || port->hw_stopped) in uart_tx_stopped() 467 do_SAK(state->port.tty); in uart_handle_break()
|
D | n_r3964.h | 150 struct tty_struct *tty; member
|
/linux-4.1.27/drivers/tty/ |
D | tty_ldisc.c | 25 #define tty_ldisc_debug(tty, f, args...) ({ \ argument 27 printk(KERN_DEBUG "%s: %s: " f, __func__, tty_name(tty, __b), ##args); \ 30 #define tty_ldisc_debug(tty, f, args...) argument 154 static struct tty_ldisc *tty_ldisc_get(struct tty_struct *tty, int disc) in tty_ldisc_get() argument 181 ld->tty = tty; in tty_ldisc_get() 265 struct tty_ldisc *tty_ldisc_ref_wait(struct tty_struct *tty) in tty_ldisc_ref_wait() argument 267 ldsem_down_read(&tty->ldisc_sem, MAX_SCHEDULE_TIMEOUT); in tty_ldisc_ref_wait() 268 WARN_ON(!tty->ldisc); in tty_ldisc_ref_wait() 269 return tty->ldisc; in tty_ldisc_ref_wait() 282 struct tty_ldisc *tty_ldisc_ref(struct tty_struct *tty) in tty_ldisc_ref() argument [all …]
|
D | n_tty.c | 156 static inline int tty_put_user(struct tty_struct *tty, unsigned char x, in tty_put_user() argument 159 struct n_tty_data *ldata = tty->disc_data; in tty_put_user() 161 tty_audit_add_data(tty, &x, 1, ldata->icanon); in tty_put_user() 165 static inline int tty_copy_to_user(struct tty_struct *tty, in tty_copy_to_user() argument 170 struct n_tty_data *ldata = tty->disc_data; in tty_copy_to_user() 172 tty_audit_add_data(tty, from, n, ldata->icanon); in tty_copy_to_user() 188 static void n_tty_kick_worker(struct tty_struct *tty) in n_tty_kick_worker() argument 190 struct n_tty_data *ldata = tty->disc_data; in n_tty_kick_worker() 196 WARN_RATELIMIT(tty->port->itty == NULL, in n_tty_kick_worker() 202 WARN_RATELIMIT(test_bit(TTY_LDISC_HALTED, &tty->flags), in n_tty_kick_worker() [all …]
|
D | tty_io.c | 155 static void release_tty(struct tty_struct *tty, int idx); 166 void free_tty_struct(struct tty_struct *tty) in free_tty_struct() argument 168 if (!tty) in free_tty_struct() 170 put_device(tty->dev); in free_tty_struct() 171 kfree(tty->write_buf); in free_tty_struct() 172 tty->magic = 0xDEADDEAD; in free_tty_struct() 173 kfree(tty); in free_tty_struct() 178 return ((struct tty_file_private *)file->private_data)->tty; in file_tty() 195 void tty_add_file(struct tty_struct *tty, struct file *file) in tty_add_file() argument 199 priv->tty = tty; in tty_add_file() [all …]
|
D | pty.c | 36 static void pty_close(struct tty_struct *tty, struct file *filp) in pty_close() argument 38 BUG_ON(!tty); in pty_close() 39 if (tty->driver->subtype == PTY_TYPE_MASTER) in pty_close() 40 WARN_ON(tty->count > 1); in pty_close() 42 if (test_bit(TTY_IO_ERROR, &tty->flags)) in pty_close() 44 if (tty->count > 2) in pty_close() 47 set_bit(TTY_IO_ERROR, &tty->flags); in pty_close() 48 wake_up_interruptible(&tty->read_wait); in pty_close() 49 wake_up_interruptible(&tty->write_wait); in pty_close() 50 spin_lock_irq(&tty->ctrl_lock); in pty_close() [all …]
|
D | tty_ioctl.c | 49 int tty_chars_in_buffer(struct tty_struct *tty) in tty_chars_in_buffer() argument 51 if (tty->ops->chars_in_buffer) in tty_chars_in_buffer() 52 return tty->ops->chars_in_buffer(tty); in tty_chars_in_buffer() 69 int tty_write_room(struct tty_struct *tty) in tty_write_room() argument 71 if (tty->ops->write_room) in tty_write_room() 72 return tty->ops->write_room(tty); in tty_write_room() 85 void tty_driver_flush_buffer(struct tty_struct *tty) in tty_driver_flush_buffer() argument 87 if (tty->ops->flush_buffer) in tty_driver_flush_buffer() 88 tty->ops->flush_buffer(tty); in tty_driver_flush_buffer() 102 void tty_throttle(struct tty_struct *tty) in tty_throttle() argument [all …]
|
D | tty_mutex.c | 13 void __lockfunc tty_lock(struct tty_struct *tty) in tty_lock() argument 15 if (tty->magic != TTY_MAGIC) { in tty_lock() 16 pr_err("L Bad %p\n", tty); in tty_lock() 20 tty_kref_get(tty); in tty_lock() 21 mutex_lock(&tty->legacy_mutex); in tty_lock() 25 void __lockfunc tty_unlock(struct tty_struct *tty) in tty_unlock() argument 27 if (tty->magic != TTY_MAGIC) { in tty_unlock() 28 pr_err("U Bad %p\n", tty); in tty_unlock() 32 mutex_unlock(&tty->legacy_mutex); in tty_unlock() 33 tty_kref_put(tty); in tty_unlock() [all …]
|
D | tty_port.c | 173 struct tty_struct *tty; in tty_port_tty_get() local 176 tty = tty_kref_get(port->tty); in tty_port_tty_get() 178 return tty; in tty_port_tty_get() 191 void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty) in tty_port_tty_set() argument 196 tty_kref_put(port->tty); in tty_port_tty_set() 197 port->tty = tty_kref_get(tty); in tty_port_tty_set() 202 static void tty_port_shutdown(struct tty_port *port, struct tty_struct *tty) in tty_port_shutdown() argument 213 if (tty && C_HUPCL(tty)) in tty_port_shutdown() 235 struct tty_struct *tty; in tty_port_hangup() local 241 tty = port->tty; in tty_port_hangup() [all …]
|
D | n_hdlc.c | 148 struct tty_struct *tty; member 180 static ssize_t n_hdlc_tty_read(struct tty_struct *tty, struct file *file, 182 static ssize_t n_hdlc_tty_write(struct tty_struct *tty, struct file *file, 184 static int n_hdlc_tty_ioctl(struct tty_struct *tty, struct file *file, 186 static unsigned int n_hdlc_tty_poll(struct tty_struct *tty, struct file *filp, 188 static int n_hdlc_tty_open(struct tty_struct *tty); 189 static void n_hdlc_tty_close(struct tty_struct *tty); 190 static void n_hdlc_tty_receive(struct tty_struct *tty, const __u8 *cp, 192 static void n_hdlc_tty_wakeup(struct tty_struct *tty); 196 #define tty2n_hdlc(tty) ((struct n_hdlc *) ((tty)->disc_data)) argument [all …]
|
D | amiserial.c | 48 tty->name, (info->tport.flags), serial_driver->refcount,info->count,tty->count,s) 122 static void change_speed(struct tty_struct *tty, struct serial_state *info, 124 static void rs_wait_until_sent(struct tty_struct *tty, int timeout); 187 static void rs_stop(struct tty_struct *tty) in rs_stop() argument 189 struct serial_state *info = tty->driver_data; in rs_stop() 192 if (serial_paranoia_check(info, tty->name, "rs_stop")) in rs_stop() 207 static void rs_start(struct tty_struct *tty) in rs_start() argument 209 struct serial_state *info = tty->driver_data; in rs_start() 212 if (serial_paranoia_check(info, tty->name, "rs_start")) in rs_start() 316 do_SAK(info->tport.tty); in receive_chars() [all …]
|
D | isicom.c | 178 static void isicom_start(struct tty_struct *tty); 408 struct tty_struct *tty; in isicom_tx() local 435 tty = tty_port_tty_get(&port->port); in isicom_tx() 436 if (tty == NULL) in isicom_tx() 446 if (txcount <= 0 || tty->stopped || tty->hw_stopped) in isicom_tx() 499 tty_wakeup(tty); in isicom_tx() 503 tty_kref_put(tty); in isicom_tx() 519 struct tty_struct *tty; in isicom_interrupt() local 562 tty = tty_port_tty_get(&port->port); in isicom_interrupt() 563 if (tty == NULL) { in isicom_interrupt() [all …]
|
D | goldfish.c | 93 static int goldfish_tty_activate(struct tty_port *port, struct tty_struct *tty) in goldfish_tty_activate() argument 108 static int goldfish_tty_open(struct tty_struct *tty, struct file *filp) in goldfish_tty_open() argument 110 struct goldfish_tty *qtty = &goldfish_ttys[tty->index]; in goldfish_tty_open() 111 return tty_port_open(&qtty->port, tty, filp); in goldfish_tty_open() 114 static void goldfish_tty_close(struct tty_struct *tty, struct file *filp) in goldfish_tty_close() argument 116 tty_port_close(tty->port, tty, filp); in goldfish_tty_close() 119 static void goldfish_tty_hangup(struct tty_struct *tty) in goldfish_tty_hangup() argument 121 tty_port_hangup(tty->port); in goldfish_tty_hangup() 124 static int goldfish_tty_write(struct tty_struct *tty, const unsigned char *buf, in goldfish_tty_write() argument 127 goldfish_tty_do_write(tty->index, buf, count); in goldfish_tty_write() [all …]
|
D | n_tracerouter.c | 71 static int n_tracerouter_open(struct tty_struct *tty) in n_tracerouter_open() argument 78 tr_data->kref_tty = tty_kref_get(tty); in n_tracerouter_open() 83 tty->disc_data = tr_data; in n_tracerouter_open() 84 tty->receive_room = RECEIVE_ROOM; in n_tracerouter_open() 85 tty_driver_flush_buffer(tty); in n_tracerouter_open() 99 static void n_tracerouter_close(struct tty_struct *tty) in n_tracerouter_close() argument 101 struct tracerouter_data *tptr = tty->disc_data; in n_tracerouter_close() 105 tty_driver_flush_buffer(tty); in n_tracerouter_close() 109 tty->disc_data = NULL; in n_tracerouter_close() 130 static ssize_t n_tracerouter_read(struct tty_struct *tty, struct file *file, in n_tracerouter_read() argument [all …]
|
D | mxser.c | 571 static int mxser_set_baud(struct tty_struct *tty, long newspd) in mxser_set_baud() argument 573 struct mxser_port *info = tty->driver_data; in mxser_set_baud() 585 tty_encode_baud_rate(tty, 134, 134); in mxser_set_baud() 591 tty_encode_baud_rate(tty, baud, baud); in mxser_set_baud() 617 if (C_BAUD(tty) == BOTHER) { in mxser_set_baud() 638 static int mxser_change_speed(struct tty_struct *tty, in mxser_change_speed() argument 641 struct mxser_port *info = tty->driver_data; in mxser_change_speed() 646 cflag = tty->termios.c_cflag; in mxser_change_speed() 650 if (mxser_set_baud_method[tty->index] == 0) in mxser_change_speed() 651 mxser_set_baud(tty, tty_get_baud_rate(tty)); in mxser_change_speed() [all …]
|
D | n_tracesink.c | 74 static int n_tracesink_open(struct tty_struct *tty) in n_tracesink_open() argument 80 this_tty = tty_kref_get(tty); in n_tracesink_open() 84 tty->disc_data = this_tty; in n_tracesink_open() 85 tty_driver_flush_buffer(tty); in n_tracesink_open() 100 static void n_tracesink_close(struct tty_struct *tty) in n_tracesink_close() argument 103 tty_driver_flush_buffer(tty); in n_tracesink_close() 106 tty->disc_data = NULL; in n_tracesink_close() 127 static ssize_t n_tracesink_read(struct tty_struct *tty, struct file *file, in n_tracesink_read() argument 151 static ssize_t n_tracesink_write(struct tty_struct *tty, struct file *file, in n_tracesink_write() argument
|
D | tty_audit.c | 142 void tty_audit_tiocsti(struct tty_struct *tty, char ch) in tty_audit_tiocsti() argument 155 major = tty->driver->major; in tty_audit_tiocsti() 156 minor = tty->driver->minor_start + tty->index; in tty_audit_tiocsti() 219 static struct tty_audit_buf *tty_audit_buf_get(struct tty_struct *tty, in tty_audit_buf_get() argument 237 buf2 = tty_audit_buf_alloc(tty->driver->major, in tty_audit_buf_get() 238 tty->driver->minor_start + tty->index, in tty_audit_buf_get() 268 void tty_audit_add_data(struct tty_struct *tty, const void *data, in tty_audit_add_data() argument 282 if (!audit_log_tty_passwd && icanon && !L_ECHO(tty)) in tty_audit_add_data() 285 if (tty->driver->type == TTY_DRIVER_TYPE_PTY in tty_audit_add_data() 286 && tty->driver->subtype == PTY_TYPE_MASTER) in tty_audit_add_data() [all …]
|
D | n_gsm.c | 195 struct tty_struct *tty; /* The tty our ldisc is bound to */ member 1027 static void gsm_process_modem(struct tty_struct *tty, struct gsm_dlci *dlci, in gsm_process_modem() argument 1067 if (tty) { in gsm_process_modem() 1069 if (!(tty->termios.c_cflag & CLOCAL)) in gsm_process_modem() 1070 tty_hangup(tty); in gsm_process_modem() 1097 struct tty_struct *tty; in gsm_control_modem() local 1130 tty = tty_port_tty_get(&dlci->port); in gsm_control_modem() 1131 gsm_process_modem(tty, dlci, modem, clen); in gsm_control_modem() 1132 if (tty) { in gsm_control_modem() 1133 tty_wakeup(tty); in gsm_control_modem() [all …]
|
D | metag_da.c | 232 struct tty_struct *tty; in put_channel_data() local 261 tty = tty_port_tty_get(&dport->port); in put_channel_data() 262 if (tty) { in put_channel_data() 263 tty_wakeup(tty); in put_channel_data() 264 tty_kref_put(tty); in put_channel_data() 341 static int dashtty_port_activate(struct tty_port *port, struct tty_struct *tty) in dashtty_port_activate() argument 419 static int dashtty_install(struct tty_driver *driver, struct tty_struct *tty) in dashtty_install() argument 421 return tty_port_install(&dashtty_ports[tty->index].port, driver, tty); in dashtty_install() 424 static int dashtty_open(struct tty_struct *tty, struct file *filp) in dashtty_open() argument 426 return tty_port_open(tty->port, tty, filp); in dashtty_open() [all …]
|
D | rocket.c | 230 static void rp_wait_until_sent(struct tty_struct *tty, int timeout); 231 static void rp_flush_buffer(struct tty_struct *tty); 234 static void rp_start(struct tty_struct *tty); 427 struct tty_struct *tty; in rp_do_transmit() local 435 tty = tty_port_tty_get(&info->port); in rp_do_transmit() 437 if (tty == NULL) { in rp_do_transmit() 448 if (tty->stopped) in rp_do_transmit() 470 tty_wakeup(tty); in rp_do_transmit() 472 wake_up_interruptible(&tty->poll_wait); in rp_do_transmit() 477 tty_kref_put(tty); in rp_do_transmit() [all …]
|
D | n_r3964.c | 131 static int r3964_open(struct tty_struct *tty); 132 static void r3964_close(struct tty_struct *tty); 133 static ssize_t r3964_read(struct tty_struct *tty, struct file *file, 135 static ssize_t r3964_write(struct tty_struct *tty, struct file *file, 137 static int r3964_ioctl(struct tty_struct *tty, struct file *file, 139 static void r3964_set_termios(struct tty_struct *tty, struct ktermios *old); 140 static unsigned int r3964_poll(struct tty_struct *tty, struct file *file, 142 static void r3964_receive_buf(struct tty_struct *tty, const unsigned char *cp, 373 struct tty_struct *tty = pInfo->tty; in put_char() local 375 tty_put_char(tty, ch); in put_char() [all …]
|
D | cyclades.c | 90 static void cy_send_xchar(struct tty_struct *tty, char ch); 486 struct tty_struct *tty = in cyy_chip_rx() local 488 if (tty) { in cyy_chip_rx() 489 do_SAK(tty); in cyy_chip_rx() 490 tty_kref_put(tty); in cyy_chip_rx() 572 struct tty_struct *tty; in cyy_chip_tx() local 590 tty = tty_port_tty_get(&info->port); in cyy_chip_tx() 591 if (tty == NULL) { in cyy_chip_tx() 638 if (tty->stopped || tty->hw_stopped) { in cyy_chip_tx() 673 tty_wakeup(tty); in cyy_chip_tx() [all …]
|
D | synclinkmp.c | 506 static int open(struct tty_struct *tty, struct file * filp); 507 static void close(struct tty_struct *tty, struct file * filp); 508 static void hangup(struct tty_struct *tty); 509 static void set_termios(struct tty_struct *tty, struct ktermios *old_termios); 511 static int write(struct tty_struct *tty, const unsigned char *buf, int count); 512 static int put_char(struct tty_struct *tty, unsigned char ch); 513 static void send_xchar(struct tty_struct *tty, char ch); 514 static void wait_until_sent(struct tty_struct *tty, int timeout); 515 static int write_room(struct tty_struct *tty); 516 static void flush_chars(struct tty_struct *tty); [all …]
|
D | synclink_gt.c | 141 static int open(struct tty_struct *tty, struct file * filp); 142 static void close(struct tty_struct *tty, struct file * filp); 143 static void hangup(struct tty_struct *tty); 144 static void set_termios(struct tty_struct *tty, struct ktermios *old_termios); 146 static int write(struct tty_struct *tty, const unsigned char *buf, int count); 147 static int put_char(struct tty_struct *tty, unsigned char ch); 148 static void send_xchar(struct tty_struct *tty, char ch); 149 static void wait_until_sent(struct tty_struct *tty, int timeout); 150 static int write_room(struct tty_struct *tty); 151 static void flush_chars(struct tty_struct *tty); [all …]
|
D | nozomi.c | 418 static inline struct nozomi *get_dc_by_tty(const struct tty_struct *tty) in get_dc_by_tty() argument 420 return tty ? ndevs[tty->index / MAX_PORT] : NULL; in get_dc_by_tty() 423 static inline struct port *get_port_by_tty(const struct tty_struct *tty) in get_port_by_tty() argument 425 struct nozomi *ndev = get_dc_by_tty(tty); in get_port_by_tty() 426 return ndev ? &ndev->port[tty->index % MAX_PORT] : NULL; in get_port_by_tty() 823 struct tty_struct *tty = tty_port_tty_get(&port->port); in receive_data() local 829 if (tty && test_bit(TTY_THROTTLED, &tty->flags)) { in receive_data() 865 tty_kref_put(tty); in receive_data() 1562 static void set_rts(const struct tty_struct *tty, int rts) in set_rts() argument 1564 struct port *port = get_port_by_tty(tty); in set_rts() [all …]
|
D | bfin_jtag_comm.c | 74 struct tty_struct *tty = tty_port_tty_get(&port); in bfin_jc_emudat_manager() local 76 if (tty == NULL && circ_empty(&bfin_jc_write_buf)) { in bfin_jc_emudat_manager() 87 tty_kref_put(tty); in bfin_jc_emudat_manager() 128 if (tty) in bfin_jc_emudat_manager() 129 tty_wakeup(tty); in bfin_jc_emudat_manager() 133 tty_kref_put(tty); in bfin_jc_emudat_manager() 141 bfin_jc_open(struct tty_struct *tty, struct file *filp) in bfin_jc_open() argument 148 tty_port_tty_set(&port, tty); in bfin_jc_open() 154 bfin_jc_close(struct tty_struct *tty, struct file *filp) in bfin_jc_close() argument 185 bfin_jc_write(struct tty_struct *tty, const unsigned char *buf, int count) in bfin_jc_write() argument [all …]
|
D | moxa.c | 203 static int moxa_tiocmget(struct tty_struct *tty); 204 static int moxa_tiocmset(struct tty_struct *tty, 291 static int moxa_ioctl(struct tty_struct *tty, in moxa_ioctl() argument 294 struct moxa_port *ch = tty->driver_data; in moxa_ioctl() 298 if (tty->index == MAX_PORTS) { in moxa_ioctl() 399 static int moxa_break_ctl(struct tty_struct *tty, int state) in moxa_break_ctl() argument 401 struct moxa_port *port = tty->driver_data; in moxa_break_ctl() 1168 static int moxa_open(struct tty_struct *tty, struct file *filp) in moxa_open() argument 1174 port = tty->index; in moxa_open() 1193 tty->driver_data = ch; in moxa_open() [all …]
|
D | synclink.c | 822 static int tiocmget(struct tty_struct *tty); 823 static int tiocmset(struct tty_struct *tty, 910 static void mgsl_wait_until_sent(struct tty_struct *tty, int timeout); 956 static void ldisc_receive_buf(struct tty_struct *tty, in ldisc_receive_buf() argument 960 if (!tty) in ldisc_receive_buf() 962 ld = tty_ldisc_ref(tty); in ldisc_receive_buf() 965 ld->ops->receive_buf(tty, data, flags, count); in ldisc_receive_buf() 975 static void mgsl_stop(struct tty_struct *tty) in mgsl_stop() argument 977 struct mgsl_struct *info = tty->driver_data; in mgsl_stop() 980 if (mgsl_paranoia_check(info, tty->name, "mgsl_stop")) in mgsl_stop() [all …]
|
D | tty_buffer.c | 213 void tty_buffer_flush(struct tty_struct *tty, struct tty_ldisc *ld) in tty_buffer_flush() argument 215 struct tty_port *port = tty->port; in tty_buffer_flush() 229 ld->ops->flush_buffer(tty); in tty_buffer_flush() 406 receive_buf(struct tty_struct *tty, struct tty_buffer *head, int count) in receive_buf() argument 408 struct tty_ldisc *disc = tty->ldisc; in receive_buf() 416 count = disc->ops->receive_buf2(tty, p, f, count); in receive_buf() 418 count = min_t(int, count, tty->receive_room); in receive_buf() 420 disc->ops->receive_buf(tty, p, f, count); in receive_buf() 443 struct tty_struct *tty; in flush_to_ldisc() local 446 tty = port->itty; in flush_to_ldisc() [all …]
|
D | mips_ejtag_fdc.c | 421 struct tty_struct *tty; in mips_ejtag_fdc_put_chan() local 468 tty = tty_port_tty_get(&dport->port); in mips_ejtag_fdc_put_chan() 469 if (tty) { in mips_ejtag_fdc_put_chan() 470 tty_wakeup(tty); in mips_ejtag_fdc_put_chan() 471 tty_kref_put(tty); in mips_ejtag_fdc_put_chan() 698 struct tty_struct *tty) in mips_ejtag_fdc_tty_port_activate() argument 764 struct tty_struct *tty) in mips_ejtag_fdc_tty_install() argument 768 tty->driver_data = &priv->ports[tty->index]; in mips_ejtag_fdc_tty_install() 769 return tty_port_install(&priv->ports[tty->index].port, driver, tty); in mips_ejtag_fdc_tty_install() 772 static int mips_ejtag_fdc_tty_open(struct tty_struct *tty, struct file *filp) in mips_ejtag_fdc_tty_open() argument [all …]
|
/linux-4.1.27/drivers/tty/ipwireless/ |
D | tty.c | 90 struct ipw_tty *tty = get_tty(linux_tty->index); in ipw_open() local 92 if (!tty) in ipw_open() 95 mutex_lock(&tty->ipw_tty_mutex); in ipw_open() 96 if (tty->port.count == 0) in ipw_open() 97 tty->tx_bytes_queued = 0; in ipw_open() 99 tty->port.count++; in ipw_open() 101 tty->port.tty = linux_tty; in ipw_open() 102 linux_tty->driver_data = tty; in ipw_open() 103 tty->port.low_latency = 1; in ipw_open() 105 if (tty->tty_type == TTYTYPE_MODEM) in ipw_open() [all …]
|
D | tty.h | 36 void ipwireless_tty_free(struct ipw_tty *tty); 37 void ipwireless_tty_received(struct ipw_tty *tty, unsigned char *data, 39 int ipwireless_tty_is_modem(struct ipw_tty *tty); 40 void ipwireless_tty_notify_control_line_change(struct ipw_tty *tty,
|
D | network.c | 322 struct ipw_tty *tty = in ipwireless_network_notify_control_line_change() local 331 if (tty) in ipwireless_network_notify_control_line_change() 332 ipwireless_tty_notify_control_line_change(tty, in ipwireless_network_notify_control_line_change() 372 struct ipw_tty *tty = network->associated_ttys[channel_idx][i]; in ipwireless_network_packet_received() local 374 if (!tty) in ipwireless_network_packet_received() 386 && ipwireless_tty_is_modem(tty)) { in ipwireless_network_packet_received() 411 ipwireless_tty_received(tty, data, length); in ipwireless_network_packet_received() 452 struct ipw_tty *tty) in ipwireless_associate_network_tty() argument 458 network->associated_ttys[channel_idx][i] = tty; in ipwireless_associate_network_tty()
|
D | main.c | 199 ipw->tty = ipwireless_tty_create(ipw->hardware, ipw->network); in config_ipwireless() 200 if (!ipw->tty) in config_ipwireless() 297 if (ipw->tty != NULL) in ipwireless_detach() 298 ipwireless_tty_free(ipw->tty); in ipwireless_detach()
|
D | Makefile | 7 ipwireless-y := hardware.o main.o network.o tty.o
|
D | main.h | 59 struct ipw_tty *tty; member
|
D | network.h | 42 unsigned int channel_idx, struct ipw_tty *tty);
|
/linux-4.1.27/drivers/net/irda/ |
D | irtty-sir.c | 67 return tty_chars_in_buffer(priv->tty); in irtty_chars_in_buffer() 90 struct tty_struct *tty; in irtty_wait_until_sent() local 95 tty = priv->tty; in irtty_wait_until_sent() 96 if (tty->ops->wait_until_sent) { in irtty_wait_until_sent() 97 tty->ops->wait_until_sent(tty, msecs_to_jiffies(100)); in irtty_wait_until_sent() 117 struct tty_struct *tty; in irtty_change_speed() local 124 tty = priv->tty; in irtty_change_speed() 126 down_write(&tty->termios_rwsem); in irtty_change_speed() 127 old_termios = tty->termios; in irtty_change_speed() 128 cflag = tty->termios.c_cflag; in irtty_change_speed() [all …]
|
D | irtty-sir.h | 29 struct tty_struct *tty; member
|
/linux-4.1.27/drivers/tty/serial/ |
D | 68328serial.c | 141 static void change_speed(struct m68k_serial *info, struct tty_struct *tty); 212 static void rs_stop(struct tty_struct *tty) in rs_stop() argument 214 struct m68k_serial *info = (struct m68k_serial *)tty->driver_data; in rs_stop() 218 if (serial_paranoia_check(info, tty->name, "rs_stop")) in rs_stop() 244 static void rs_start(struct tty_struct *tty) in rs_start() argument 246 struct m68k_serial *info = (struct m68k_serial *)tty->driver_data; in rs_start() 250 if (serial_paranoia_check(info, tty->name, "rs_start")) in rs_start() 311 static void transmit_chars(struct m68k_serial *info, struct tty_struct *tty) in transmit_chars() argument 322 if ((info->xmit_cnt <= 0) || !tty || tty->stopped) { in transmit_chars() 350 struct tty_struct *tty = tty_port_tty_get(&info->tport); in rs_interrupt() local [all …]
|
D | msm_smd_tty.c | 57 struct tty_struct *tty; in smd_tty_notify() local 62 tty = tty_port_tty_get(&info->port); in smd_tty_notify() 63 if (!tty) in smd_tty_notify() 67 if (test_bit(TTY_THROTTLED, &tty->flags)) in smd_tty_notify() 87 tty_wakeup(tty); in smd_tty_notify() 88 tty_kref_put(tty); in smd_tty_notify() 91 static int smd_tty_port_activate(struct tty_port *tport, struct tty_struct *tty) in smd_tty_port_activate() argument 99 if (smd_tty_channels[i].id == tty->index) { in smd_tty_port_activate() 113 tty->driver_data = info; in smd_tty_port_activate() 129 static int smd_tty_open(struct tty_struct *tty, struct file *f) in smd_tty_open() argument [all …]
|
D | serial_core.c | 54 static void uart_change_speed(struct tty_struct *tty, struct uart_state *state, 56 static void uart_wait_until_sent(struct tty_struct *tty, int timeout); 79 tty_wakeup(state->port.tty); in uart_write_wakeup() 82 static void uart_stop(struct tty_struct *tty) in uart_stop() argument 84 struct uart_state *state = tty->driver_data; in uart_stop() 93 static void __uart_start(struct tty_struct *tty) in __uart_start() argument 95 struct uart_state *state = tty->driver_data; in __uart_start() 102 static void uart_start(struct tty_struct *tty) in uart_start() argument 104 struct uart_state *state = tty->driver_data; in uart_start() 109 __uart_start(tty); in uart_start() [all …]
|
D | kgdb_nmi.c | 211 static int kgdb_nmi_tty_activate(struct tty_port *port, struct tty_struct *tty) in kgdb_nmi_tty_activate() argument 237 static int kgdb_nmi_tty_install(struct tty_driver *drv, struct tty_struct *tty) in kgdb_nmi_tty_install() argument 250 tty->driver_data = priv; in kgdb_nmi_tty_install() 252 ret = tty_port_install(&priv->port, drv, tty); in kgdb_nmi_tty_install() 264 static void kgdb_nmi_tty_cleanup(struct tty_struct *tty) in kgdb_nmi_tty_cleanup() argument 266 struct kgdb_nmi_tty_priv *priv = tty->driver_data; in kgdb_nmi_tty_cleanup() 268 tty->driver_data = NULL; in kgdb_nmi_tty_cleanup() 273 static int kgdb_nmi_tty_open(struct tty_struct *tty, struct file *file) in kgdb_nmi_tty_open() argument 275 struct kgdb_nmi_tty_priv *priv = tty->driver_data; in kgdb_nmi_tty_open() 279 ret = tty_port_open(&priv->port, tty, file); in kgdb_nmi_tty_open() [all …]
|
D | crisv10.c | 160 static void rs_throttle(struct tty_struct * tty); 161 static void rs_wait_until_sent(struct tty_struct *tty, int timeout); 162 static int rs_write(struct tty_struct *tty, 165 static int e100_write_rs485(struct tty_struct *tty, 951 tcflag_t cflags = info->port.tty->termios.c_cflag; in update_char_time() 1363 e100_enable_rs485(struct tty_struct *tty, struct serial_rs485 *r) in e100_enable_rs485() argument 1365 struct e100_serial * info = (struct e100_serial *)tty->driver_data; in e100_enable_rs485() 1397 e100_write_rs485(struct tty_struct *tty, in e100_write_rs485() argument 1400 struct e100_serial * info = (struct e100_serial *)tty->driver_data; in e100_write_rs485() 1410 count = rs_write(tty, buf, count); in e100_write_rs485() [all …]
|
D | ifx6x60.c | 299 static int ifx_spi_tiocmget(struct tty_struct *tty) in ifx_spi_tiocmget() argument 302 struct ifx_spi_device *ifx_dev = tty->driver_data; in ifx_spi_tiocmget() 325 static int ifx_spi_tiocmset(struct tty_struct *tty, in ifx_spi_tiocmset() argument 328 struct ifx_spi_device *ifx_dev = tty->driver_data; in ifx_spi_tiocmset() 353 static int ifx_spi_open(struct tty_struct *tty, struct file *filp) in ifx_spi_open() argument 355 return tty_port_open(&saved_ifx_dev->tty_port, tty, filp); in ifx_spi_open() 366 static void ifx_spi_close(struct tty_struct *tty, struct file *filp) in ifx_spi_close() argument 368 struct ifx_spi_device *ifx_dev = tty->driver_data; in ifx_spi_close() 369 tty_port_close(&ifx_dev->tty_port, tty, filp); in ifx_spi_close() 499 static int ifx_spi_write(struct tty_struct *tty, const unsigned char *buf, in ifx_spi_write() argument [all …]
|
D | serial-tegra.c | 510 struct tty_port *tty) in tegra_uart_handle_rx_pio() argument 525 if (!uart_handle_sysrq_char(&tup->uport, ch) && tty) in tegra_uart_handle_rx_pio() 526 tty_insert_flip_char(tty, ch, flag); in tegra_uart_handle_rx_pio() 533 struct tty_port *tty, int count) in tegra_uart_copy_rx_to_tty() argument 538 if (!tty) { in tegra_uart_copy_rx_to_tty() 544 copied = tty_insert_flip_string(tty, in tegra_uart_copy_rx_to_tty() 559 struct tty_struct *tty = tty_port_tty_get(&tup->uport.state->port); in tegra_uart_rx_dma_complete() local 575 if (tty) { in tegra_uart_rx_dma_complete() 579 tty_kref_put(tty); in tegra_uart_rx_dma_complete() 594 struct tty_struct *tty = tty_port_tty_get(&tup->uport.state->port); in tegra_uart_handle_rx_dma() local [all …]
|
D | tilegx.c | 66 struct tty_struct *tty) in receive_chars() argument 72 struct tty_port *port = tty->port; in receive_chars() 88 struct tty_struct *tty = tty_port_tty_get(port); in handle_receive() local 91 if (!tty) in handle_receive() 95 receive_chars(tile_uart, tty); in handle_receive() 104 receive_chars(tile_uart, tty); in handle_receive() 109 tty_kref_put(tty); in handle_receive()
|
D | xilinx_uartps.c | 1219 struct tty_struct *tty; in cdns_uart_suspend() local 1224 tty = tty_port_tty_get(&port->state->port); in cdns_uart_suspend() 1225 if (tty) { in cdns_uart_suspend() 1226 tty_dev = tty->dev; in cdns_uart_suspend() 1228 tty_kref_put(tty); in cdns_uart_suspend() 1271 struct tty_struct *tty; in cdns_uart_resume() local 1276 tty = tty_port_tty_get(&port->state->port); in cdns_uart_resume() 1277 if (tty) { in cdns_uart_resume() 1278 tty_dev = tty->dev; in cdns_uart_resume() 1280 tty_kref_put(tty); in cdns_uart_resume()
|
D | samsung.c | 365 struct tty_port *tty, int count) in s3c24xx_uart_copy_rx_to_tty() argument 377 if (!tty) { in s3c24xx_uart_copy_rx_to_tty() 381 copied = tty_insert_flip_string(tty, in s3c24xx_uart_copy_rx_to_tty() 395 struct tty_port *tty = &port->state->port; in uart_rx_drain_fifo() local 409 tty_insert_flip_char(tty, ch, TTY_NORMAL); in uart_rx_drain_fifo() 412 tty_flip_buffer_push(tty); in uart_rx_drain_fifo() 483 struct tty_struct *tty = tty_port_tty_get(&ourport->port.state->port); in s3c24xx_serial_rx_dma_complete() local 498 if (tty) { in s3c24xx_serial_rx_dma_complete() 500 tty_kref_put(tty); in s3c24xx_serial_rx_dma_complete() 583 struct tty_struct *tty = tty_port_tty_get(&ourport->port.state->port); in s3c24xx_serial_rx_chars_dma() local [all …]
|
/linux-4.1.27/net/irda/ircomm/ |
D | ircomm_tty.c | 54 struct tty_struct *tty); 55 static int ircomm_tty_open(struct tty_struct *tty, struct file *filp); 56 static void ircomm_tty_close(struct tty_struct * tty, struct file *filp); 57 static int ircomm_tty_write(struct tty_struct * tty, 59 static int ircomm_tty_write_room(struct tty_struct *tty); 60 static void ircomm_tty_throttle(struct tty_struct *tty); 61 static void ircomm_tty_unthrottle(struct tty_struct *tty); 62 static int ircomm_tty_chars_in_buffer(struct tty_struct *tty); 63 static void ircomm_tty_flush_buffer(struct tty_struct *tty); 64 static void ircomm_tty_send_xchar(struct tty_struct *tty, char ch); [all …]
|
D | ircomm_tty_ioctl.c | 54 struct tty_struct *tty) in ircomm_tty_change_speed() argument 62 cflag = tty->termios.c_cflag; in ircomm_tty_change_speed() 81 baud = tty_get_baud_rate(tty); in ircomm_tty_change_speed() 109 if (I_INPCK(self->tty)) in ircomm_tty_change_speed() 111 if (I_BRKINT(driver->tty) || I_PARMRK(driver->tty)) in ircomm_tty_change_speed() 118 if (I_IGNPAR(driver->tty)) in ircomm_tty_change_speed() 121 if (I_IGNBRK(self->tty)) { in ircomm_tty_change_speed() 127 if (I_IGNPAR(self->tty)) in ircomm_tty_change_speed() 145 void ircomm_tty_set_termios(struct tty_struct *tty, in ircomm_tty_set_termios() argument 148 struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) tty->driver_data; in ircomm_tty_set_termios() [all …]
|
D | ircomm_tty_attach.c | 129 struct tty_struct *tty; in ircomm_tty_attach_cable() local 141 tty = tty_port_tty_get(&self->port); in ircomm_tty_attach_cable() 142 if (tty) { in ircomm_tty_attach_cable() 143 tty->hw_stopped = 1; in ircomm_tty_attach_cable() 144 tty_kref_put(tty); in ircomm_tty_attach_cable() 395 struct tty_struct *tty; in ircomm_tty_disconnect_indication() local 400 tty = tty_port_tty_get(&self->port); in ircomm_tty_disconnect_indication() 401 if (!tty) in ircomm_tty_disconnect_indication() 408 tty->hw_stopped = 1; in ircomm_tty_disconnect_indication() 412 tty_kref_put(tty); in ircomm_tty_disconnect_indication() [all …]
|
D | Makefile | 5 obj-$(CONFIG_IRCOMM) += ircomm.o ircomm-tty.o 8 ircomm-tty-y := ircomm_tty.o ircomm_tty_attach.o ircomm_tty_ioctl.o ircomm_param.o
|
/linux-4.1.27/arch/ia64/hp/sim/ |
D | simserial.c | 108 static int rs_put_char(struct tty_struct *tty, unsigned char ch) in rs_put_char() argument 110 struct serial_state *info = tty->driver_data; in rs_put_char() 127 static void transmit_chars(struct tty_struct *tty, struct serial_state *info, in transmit_chars() argument 145 if (info->xmit.head == info->xmit.tail || tty->stopped) { in transmit_chars() 148 info->xmit.head, info->xmit.tail, tty->stopped); in transmit_chars() 178 static void rs_flush_chars(struct tty_struct *tty) in rs_flush_chars() argument 180 struct serial_state *info = tty->driver_data; in rs_flush_chars() 182 if (info->xmit.head == info->xmit.tail || tty->stopped || in rs_flush_chars() 186 transmit_chars(tty, info, NULL); in rs_flush_chars() 189 static int rs_write(struct tty_struct * tty, in rs_write() argument [all …]
|
/linux-4.1.27/drivers/input/serio/ |
D | serport.c | 36 struct tty_struct *tty; member 51 return -(serport->tty->ops->write(serport->tty, &data, 1) != 1); in serport_serio_write() 85 static int serport_ldisc_open(struct tty_struct *tty) in serport_ldisc_open() argument 96 serport->tty = tty; in serport_ldisc_open() 100 tty->disc_data = serport; in serport_ldisc_open() 101 tty->receive_room = 256; in serport_ldisc_open() 102 set_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in serport_ldisc_open() 111 static void serport_ldisc_close(struct tty_struct *tty) in serport_ldisc_close() argument 113 struct serport *serport = (struct serport *) tty->disc_data; in serport_ldisc_close() 124 static void serport_ldisc_receive(struct tty_struct *tty, const unsigned char *cp, char *fp, int co… in serport_ldisc_receive() argument [all …]
|
/linux-4.1.27/drivers/isdn/gigaset/ |
D | interface.c | 116 static int if_open(struct tty_struct *tty, struct file *filp) in if_open() argument 121 tty->driver->minor_start, tty->index, __func__); in if_open() 123 cs = gigaset_get_cs_by_tty(tty); in if_open() 131 tty->driver_data = cs; in if_open() 136 tty_port_tty_set(&cs->port, tty); in if_open() 144 static void if_close(struct tty_struct *tty, struct file *filp) in if_close() argument 146 struct cardstate *cs = tty->driver_data; in if_close() 169 static int if_ioctl(struct tty_struct *tty, in if_ioctl() argument 172 struct cardstate *cs = tty->driver_data; in if_ioctl() 236 static int if_tiocmget(struct tty_struct *tty) in if_tiocmget() argument [all …]
|
D | ser-gigaset.c | 47 struct tty_struct *tty; member 65 struct tty_struct *tty = cs->hw.ser->tty; in write_modem() local 70 if (!tty || !tty->driver || !skb) in write_modem() 79 set_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in write_modem() 80 if (tty->ops->write) in write_modem() 81 sent = tty->ops->write(tty, skb->data, skb->len); in write_modem() 107 struct tty_struct *tty = cs->hw.ser->tty; in send_cb() local 112 if (!tty || !tty->driver) in send_cb() 120 set_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in send_cb() 121 sent = tty->ops->write(tty, cb->buf + cb->offset, cb->len); in send_cb() [all …]
|
/linux-4.1.27/drivers/bluetooth/ |
D | hci_ldisc.c | 140 struct tty_struct *tty = hu->tty; in hci_uart_write_work() local 154 set_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in hci_uart_write_work() 155 len = tty->ops->write(tty, skb->data, skb->len); in hci_uart_write_work() 220 struct tty_struct *tty = hu->tty; in hci_uart_flush() local 222 BT_DBG("hdev %p tty %p", hdev, tty); in hci_uart_flush() 229 tty_ldisc_flush(tty); in hci_uart_flush() 230 tty_driver_flush_buffer(tty); in hci_uart_flush() 326 static int hci_uart_tty_open(struct tty_struct *tty) in hci_uart_tty_open() argument 330 BT_DBG("tty %p", tty); in hci_uart_tty_open() 334 if (tty->ops->write == NULL) in hci_uart_tty_open() [all …]
|
D | hci_ath.c | 53 static int ath_wakeup_ar3k(struct tty_struct *tty) in ath_wakeup_ar3k() argument 55 int status = tty->driver->ops->tiocmget(tty); in ath_wakeup_ar3k() 61 tty->driver->ops->tiocmget(tty); in ath_wakeup_ar3k() 62 tty->driver->ops->tiocmset(tty, 0x00, TIOCM_RTS); in ath_wakeup_ar3k() 66 tty->driver->ops->tiocmget(tty); in ath_wakeup_ar3k() 67 tty->driver->ops->tiocmset(tty, TIOCM_RTS, 0x00); in ath_wakeup_ar3k() 70 status = tty->driver->ops->tiocmget(tty); in ath_wakeup_ar3k() 79 struct tty_struct *tty; in ath_hci_uart_work() local 84 tty = hu->tty; in ath_hci_uart_work() 88 status = ath_wakeup_ar3k(tty); in ath_hci_uart_work()
|
D | hci_uart.h | 71 struct tty_struct *tty; member
|
/linux-4.1.27/drivers/tty/hvc/ |
D | hvc_console.c | 311 static void hvc_unthrottle(struct tty_struct *tty) in hvc_unthrottle() argument 316 static int hvc_install(struct tty_driver *driver, struct tty_struct *tty) in hvc_install() argument 322 if (!(hp = hvc_get_by_index(tty->index))) in hvc_install() 325 tty->driver_data = hp; in hvc_install() 327 rc = tty_port_install(&hp->port, driver, tty); in hvc_install() 337 static int hvc_open(struct tty_struct *tty, struct file * filp) in hvc_open() argument 339 struct hvc_struct *hp = tty->driver_data; in hvc_open() 352 tty_port_tty_set(&hp->port, tty); in hvc_open() 365 tty->driver_data = NULL; in hvc_open() 370 if (C_BAUD(tty)) in hvc_open() [all …]
|
D | hvcs.c | 308 static void hvcs_unthrottle(struct tty_struct *tty); 309 static void hvcs_throttle(struct tty_struct *tty); 312 static int hvcs_write(struct tty_struct *tty, 314 static int hvcs_write_room(struct tty_struct *tty); 315 static int hvcs_chars_in_buffer(struct tty_struct *tty); 329 static int hvcs_open(struct tty_struct *tty, struct file *filp); 330 static void hvcs_close(struct tty_struct *tty, struct file *filp); 331 static void hvcs_hangup(struct tty_struct * tty); 518 static void hvcs_unthrottle(struct tty_struct *tty) in hvcs_unthrottle() argument 520 struct hvcs_struct *hvcsd = tty->driver_data; in hvcs_unthrottle() [all …]
|
D | hvsi.c | 239 struct tty_struct *tty, struct hvsi_struct **to_handshake) in hvsi_recv_control() argument 249 if (tty && !C_CLOCAL(tty)) in hvsi_recv_control() 250 tty_hangup(tty); in hvsi_recv_control() 399 static int hvsi_load_chunk(struct hvsi_struct *hp, struct tty_struct *tty, in hvsi_load_chunk() argument 442 hvsi_recv_control(hp, packet, tty, handshake); in hvsi_load_chunk() 490 struct tty_struct *tty; in hvsi_interrupt() local 496 tty = tty_port_tty_get(&hp->port); in hvsi_interrupt() 500 again = hvsi_load_chunk(hp, tty, &handshake); in hvsi_interrupt() 510 if (tty && hp->n_throttle && !test_bit(TTY_THROTTLED, &tty->flags)) { in hvsi_interrupt() 518 tty_kref_put(tty); in hvsi_interrupt() [all …]
|
D | hvsi_lib.c | 378 pv->tty = tty_port_tty_get(&hp->port); in hvsilib_open() 401 if (!pv->tty || (pv->tty->termios.c_cflag & HUPCL)) in hvsilib_close() 408 tty_kref_put(pv->tty); in hvsilib_close() 409 pv->tty = NULL; in hvsilib_close()
|
/linux-4.1.27/arch/um/drivers/ |
D | line.h | 59 extern void line_close(struct tty_struct *tty, struct file * filp); 60 extern int line_open(struct tty_struct *tty, struct file *filp); 61 extern int line_install(struct tty_driver *driver, struct tty_struct *tty, 63 extern void line_cleanup(struct tty_struct *tty); 64 extern void line_hangup(struct tty_struct *tty); 67 extern int line_write(struct tty_struct *tty, const unsigned char *buf, 69 extern int line_put_char(struct tty_struct *tty, unsigned char ch); 70 extern void line_set_termios(struct tty_struct *tty, struct ktermios * old); 71 extern int line_chars_in_buffer(struct tty_struct *tty); 72 extern void line_flush_buffer(struct tty_struct *tty); [all …]
|
D | line.c | 49 int line_write_room(struct tty_struct *tty) in line_write_room() argument 51 struct line *line = tty->driver_data; in line_write_room() 62 int line_chars_in_buffer(struct tty_struct *tty) in line_chars_in_buffer() argument 64 struct line *line = tty->driver_data; in line_chars_in_buffer() 167 void line_flush_buffer(struct tty_struct *tty) in line_flush_buffer() argument 169 struct line *line = tty->driver_data; in line_flush_buffer() 181 void line_flush_chars(struct tty_struct *tty) in line_flush_chars() argument 183 line_flush_buffer(tty); in line_flush_chars() 186 int line_put_char(struct tty_struct *tty, unsigned char ch) in line_put_char() argument 188 return line_write(tty, &ch, sizeof(ch)); in line_put_char() [all …]
|
D | stdio_console.c | 95 static int con_install(struct tty_driver *driver, struct tty_struct *tty) in con_install() argument 97 return line_install(driver, tty, &vts[tty->index]); in con_install()
|
D | ssl.c | 90 static int ssl_install(struct tty_driver *driver, struct tty_struct *tty) in ssl_install() argument 92 return line_install(driver, tty, &serial_lines[tty->index]); in ssl_install()
|
D | Makefile | 57 obj-$(CONFIG_TTY_CHAN) += tty.o 64 USER_OBJS := fd.o null.o pty.o tty.o xterm.o slip_common.o pcap_user.o vde_user.o
|
/linux-4.1.27/drivers/staging/dgnc/ |
D | dgnc_tty.c | 90 static int dgnc_tty_open(struct tty_struct *tty, struct file *file); 91 static void dgnc_tty_close(struct tty_struct *tty, struct file *file); 92 static int dgnc_block_til_ready(struct tty_struct *tty, struct file *file, struct channel_t *ch); 93 static int dgnc_tty_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg); 94 static int dgnc_tty_digigeta(struct tty_struct *tty, struct digi_t __user *retinfo); 95 static int dgnc_tty_digiseta(struct tty_struct *tty, struct digi_t __user *new_info); 96 static int dgnc_tty_write_room(struct tty_struct *tty); 97 static int dgnc_tty_put_char(struct tty_struct *tty, unsigned char c); 98 static int dgnc_tty_chars_in_buffer(struct tty_struct *tty); 99 static void dgnc_tty_start(struct tty_struct *tty); [all …]
|
D | dgnc_cls.c | 42 static int cls_drain(struct tty_struct *tty, uint seconds); 43 static void cls_param(struct tty_struct *tty); 433 static void cls_param(struct tty_struct *tty) in cls_param() argument 445 if (!tty || tty->magic != TTY_MAGIC) in cls_param() 448 un = (struct un_t *) tty->driver_data; in cls_param() 912 static int cls_drain(struct tty_struct *tty, uint seconds) in cls_drain() argument 918 if (!tty || tty->magic != TTY_MAGIC) in cls_drain() 921 un = (struct un_t *) tty->driver_data; in cls_drain()
|
D | dgnc_neo.c | 45 static int neo_drain(struct tty_struct *tty, uint seconds); 46 static void neo_param(struct tty_struct *tty); 595 static void neo_param(struct tty_struct *tty) in neo_param() argument 607 if (!tty || tty->magic != TTY_MAGIC) in neo_param() 610 un = (struct un_t *) tty->driver_data; in neo_param() 1314 static int neo_drain(struct tty_struct *tty, uint seconds) in neo_drain() argument 1321 if (!tty || tty->magic != TTY_MAGIC) in neo_drain() 1324 un = (struct un_t *) tty->driver_data; in neo_drain()
|
D | dgnc_driver.h | 126 int (*drain)(struct tty_struct *tty, uint seconds); 127 void (*param)(struct tty_struct *tty);
|
/linux-4.1.27/drivers/mmc/card/ |
D | sdio_uart.c | 434 struct tty_struct *tty; in sdio_uart_transmit_chars() local 445 tty = tty_port_tty_get(&port->port); in sdio_uart_transmit_chars() 447 if (tty == NULL || !kfifo_len(xmit) || in sdio_uart_transmit_chars() 448 tty->stopped || tty->hw_stopped) { in sdio_uart_transmit_chars() 450 tty_kref_put(tty); in sdio_uart_transmit_chars() 462 tty_wakeup(tty); in sdio_uart_transmit_chars() 466 tty_kref_put(tty); in sdio_uart_transmit_chars() 472 struct tty_struct *tty; in sdio_uart_check_modem_status() local 495 tty = tty_port_tty_get(&port->port); in sdio_uart_check_modem_status() 496 if (tty && (tty->termios.c_cflag & CRTSCTS)) { in sdio_uart_check_modem_status() [all …]
|
/linux-4.1.27/drivers/ipack/devices/ |
D | ipoctal.c | 74 static int ipoctal_port_activate(struct tty_port *port, struct tty_struct *tty) in ipoctal_port_activate() argument 78 channel = dev_get_drvdata(tty->dev); in ipoctal_port_activate() 89 static int ipoctal_open(struct tty_struct *tty, struct file *file) in ipoctal_open() argument 91 struct ipoctal_channel *channel = dev_get_drvdata(tty->dev); in ipoctal_open() 92 struct ipoctal *ipoctal = chan_to_ipoctal(channel, tty->index); in ipoctal_open() 95 tty->driver_data = channel; in ipoctal_open() 100 err = tty_port_open(&channel->tty_port, tty, file); in ipoctal_open() 125 static void ipoctal_close(struct tty_struct *tty, struct file *filp) in ipoctal_close() argument 127 struct ipoctal_channel *channel = tty->driver_data; in ipoctal_close() 129 tty_port_close(&channel->tty_port, tty, filp); in ipoctal_close() [all …]
|
/linux-4.1.27/drivers/net/hamradio/ |
D | 6pack.c | 87 struct tty_struct *tty; /* ptr to TTY structure */ member 149 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_xmit_on_air() 151 actual = sp->tty->ops->write(sp->tty, sp->xbuff, sp->status2); in sp_xmit_on_air() 155 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_xmit_on_air() 195 set_bit(TTY_DO_WRITE_WAKEUP, &sp->tty->flags); in sp_encaps() 221 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_encaps() 223 actual = sp->tty->ops->write(sp->tty, sp->xbuff, count); in sp_encaps() 227 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_encaps() 269 if (sp->tty == NULL) in sp_open_dev() 280 if (sp->tty) { in sp_close() [all …]
|
D | mkiss.c | 51 struct tty_struct *tty; /* ptr to TTY structure */ member 517 set_bit(TTY_DO_WRITE_WAKEUP, &ax->tty->flags); in ax_encaps() 518 actual = ax->tty->ops->write(ax->tty, ax->xbuff, count); in ax_encaps() 551 (tty_chars_in_buffer(ax->tty) || ax->xleft) ? in ax_xmit() 555 clear_bit(TTY_DO_WRITE_WAKEUP, &ax->tty->flags); in ax_xmit() 571 if (ax->tty == NULL) in ax_open_dev() 583 if (ax->tty == NULL) in ax_open() 632 if (ax->tty) in ax_close() 633 clear_bit(TTY_DO_WRITE_WAKEUP, &ax->tty->flags); in ax_close() 675 static struct mkiss *mkiss_get(struct tty_struct *tty) in mkiss_get() argument [all …]
|
/linux-4.1.27/include/linux/usb/ |
D | serial.h | 256 int (*open)(struct tty_struct *tty, struct usb_serial_port *port); 258 int (*write)(struct tty_struct *tty, struct usb_serial_port *port, 261 int (*write_room)(struct tty_struct *tty); 262 int (*ioctl)(struct tty_struct *tty, 264 void (*set_termios)(struct tty_struct *tty, 266 void (*break_ctl)(struct tty_struct *tty, int break_state); 267 int (*chars_in_buffer)(struct tty_struct *tty); 268 void (*wait_until_sent)(struct tty_struct *tty, long timeout); 270 void (*throttle)(struct tty_struct *tty); 271 void (*unthrottle)(struct tty_struct *tty); [all …]
|
/linux-4.1.27/drivers/net/caif/ |
D | caif_serial.c | 70 struct tty_struct *tty; member 85 static void ldisc_tx_wakeup(struct tty_struct *tty); 90 ser->tty->stopped << 5 | in update_tty_status() 91 ser->tty->flow_stopped << 3 | in update_tty_status() 92 ser->tty->packet << 2 | in update_tty_status() 93 ser->tty->port->low_latency << 1; in update_tty_status() 95 static inline void debugfs_init(struct ser_device *ser, struct tty_struct *tty) in debugfs_init() argument 98 debugfs_create_dir(tty->name, debugfsdir); in debugfs_init() 146 static inline void debugfs_init(struct ser_device *ser, struct tty_struct *tty) in debugfs_init() argument 168 static void ldisc_receive(struct tty_struct *tty, const u8 *data, in ldisc_receive() argument [all …]
|
/linux-4.1.27/drivers/net/can/ |
D | slcan.c | 83 struct tty_struct *tty; /* ptr to TTY structure */ member 305 set_bit(TTY_DO_WRITE_WAKEUP, &sl->tty->flags); in slc_encaps() 306 actual = sl->tty->ops->write(sl->tty, sl->xbuff, pos - sl->xbuff); in slc_encaps() 320 if (!sl->tty || sl->magic != SLCAN_MAGIC || !netif_running(sl->dev)) { in slcan_transmit() 329 clear_bit(TTY_DO_WRITE_WAKEUP, &sl->tty->flags); in slcan_transmit() 335 actual = sl->tty->ops->write(sl->tty, sl->xhead, sl->xleft); in slcan_transmit() 345 static void slcan_write_wakeup(struct tty_struct *tty) in slcan_write_wakeup() argument 347 struct slcan *sl = tty->disc_data; in slcan_write_wakeup() 366 if (sl->tty == NULL) { in slc_xmit() 391 if (sl->tty) { in slc_close() [all …]
|
/linux-4.1.27/net/bluetooth/rfcomm/ |
D | tty.c | 111 static int rfcomm_dev_activate(struct tty_port *port, struct tty_struct *tty) in rfcomm_dev_activate() argument 118 set_bit(TTY_IO_ERROR, &tty->flags); in rfcomm_dev_activate() 320 struct device *tty; in rfcomm_dev_add() local 330 tty = tty_port_register_device(&dev->port, rfcomm_tty_driver, in rfcomm_dev_add() 332 if (IS_ERR(tty)) { in rfcomm_dev_add() 334 return PTR_ERR(tty); in rfcomm_dev_add() 337 dev->tty_dev = tty; in rfcomm_dev_add() 442 struct tty_struct *tty; in __rfcomm_release_dev() local 468 tty = tty_port_tty_get(&dev->port); in __rfcomm_release_dev() 469 if (tty) { in __rfcomm_release_dev() [all …]
|
D | Makefile | 8 rfcomm-$(CONFIG_BT_RFCOMM_TTY) += tty.o
|
/linux-4.1.27/drivers/usb/serial/ |
D | console.c | 70 struct tty_struct *tty = NULL; in usb_console_setup() local 137 tty = kzalloc(sizeof(*tty), GFP_KERNEL); in usb_console_setup() 138 if (!tty) { in usb_console_setup() 142 kref_init(&tty->kref); in usb_console_setup() 143 tty->driver = usb_serial_tty_driver; in usb_console_setup() 144 tty->index = co->index; in usb_console_setup() 145 init_ldsem(&tty->ldisc_sem); in usb_console_setup() 146 INIT_LIST_HEAD(&tty->tty_files); in usb_console_setup() 147 kref_get(&tty->driver->kref); in usb_console_setup() 148 __module_get(tty->driver->owner); in usb_console_setup() [all …]
|
D | usb-serial.c | 179 static int serial_install(struct tty_driver *driver, struct tty_struct *tty) in serial_install() argument 181 int idx = tty->index; in serial_install() 198 retval = tty_port_install(&port->port, driver, tty); in serial_install() 206 serial->type->init_termios(tty); in serial_install() 208 tty->driver_data = port; in serial_install() 222 static int serial_port_activate(struct tty_port *tport, struct tty_struct *tty) in serial_port_activate() argument 233 retval = port->serial->type->open(tty, port); in serial_port_activate() 242 static int serial_open(struct tty_struct *tty, struct file *filp) in serial_open() argument 244 struct usb_serial_port *port = tty->driver_data; in serial_open() 246 dev_dbg(tty->dev, "%s\n", __func__); in serial_open() [all …]
|
D | cypress_m8.c | 126 static int cypress_open(struct tty_struct *tty, struct usb_serial_port *port); 129 static int cypress_write(struct tty_struct *tty, struct usb_serial_port *port, 132 static int cypress_write_room(struct tty_struct *tty); 133 static void cypress_set_termios(struct tty_struct *tty, 135 static int cypress_tiocmget(struct tty_struct *tty); 136 static int cypress_tiocmset(struct tty_struct *tty, 138 static int cypress_chars_in_buffer(struct tty_struct *tty); 139 static void cypress_throttle(struct tty_struct *tty); 140 static void cypress_unthrottle(struct tty_struct *tty); 295 static int cypress_serial_control(struct tty_struct *tty, in cypress_serial_control() argument [all …]
|
D | kobil_sct.c | 56 static int kobil_open(struct tty_struct *tty, struct usb_serial_port *port); 58 static int kobil_write(struct tty_struct *tty, struct usb_serial_port *port, 60 static int kobil_write_room(struct tty_struct *tty); 61 static int kobil_ioctl(struct tty_struct *tty, 63 static int kobil_tiocmget(struct tty_struct *tty); 64 static int kobil_tiocmset(struct tty_struct *tty, 68 static void kobil_set_termios(struct tty_struct *tty, 70 static void kobil_init_termios(struct tty_struct *tty); 159 static void kobil_init_termios(struct tty_struct *tty) in kobil_init_termios() argument 162 tty->termios.c_lflag = 0; in kobil_init_termios() [all …]
|
D | mct_u232.c | 47 static int mct_u232_open(struct tty_struct *tty, struct usb_serial_port *port); 51 static void mct_u232_set_termios(struct tty_struct *tty, 53 static void mct_u232_break_ctl(struct tty_struct *tty, int break_state); 54 static int mct_u232_tiocmget(struct tty_struct *tty); 55 static int mct_u232_tiocmset(struct tty_struct *tty, 57 static void mct_u232_throttle(struct tty_struct *tty); 58 static void mct_u232_unthrottle(struct tty_struct *tty); 178 static int mct_u232_set_baud_rate(struct tty_struct *tty, in mct_u232_set_baud_rate() argument 202 tty_encode_baud_rate(tty, speed, speed); in mct_u232_set_baud_rate() 233 if (port && C_CRTSCTS(tty)) in mct_u232_set_baud_rate() [all …]
|
D | usb-wwan.h | 9 extern int usb_wwan_open(struct tty_struct *tty, struct usb_serial_port *port); 13 extern int usb_wwan_write_room(struct tty_struct *tty); 14 extern int usb_wwan_tiocmget(struct tty_struct *tty); 15 extern int usb_wwan_tiocmset(struct tty_struct *tty, 17 extern int usb_wwan_ioctl(struct tty_struct *tty, 19 extern int usb_wwan_write(struct tty_struct *tty, struct usb_serial_port *port, 21 extern int usb_wwan_chars_in_buffer(struct tty_struct *tty);
|
D | ti_usb_3410_5052.c | 93 static int ti_open(struct tty_struct *tty, struct usb_serial_port *port); 95 static int ti_write(struct tty_struct *tty, struct usb_serial_port *port, 97 static int ti_write_room(struct tty_struct *tty); 98 static int ti_chars_in_buffer(struct tty_struct *tty); 100 static void ti_throttle(struct tty_struct *tty); 101 static void ti_unthrottle(struct tty_struct *tty); 102 static int ti_ioctl(struct tty_struct *tty, 104 static void ti_set_termios(struct tty_struct *tty, 106 static int ti_tiocmget(struct tty_struct *tty); 107 static int ti_tiocmset(struct tty_struct *tty, [all …]
|
D | f81232.c | 138 struct tty_struct *tty; in f81232_read_msr() local 165 tty = tty_port_tty_get(&port->port); in f81232_read_msr() 166 if (tty) { in f81232_read_msr() 167 usb_serial_handle_dcd_change(port, tty, in f81232_read_msr() 170 tty_kref_put(tty); in f81232_read_msr() 338 static void f81232_break_ctl(struct tty_struct *tty, int break_state) in f81232_break_ctl() argument 439 static void f81232_set_termios(struct tty_struct *tty, in f81232_set_termios() argument 447 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) in f81232_set_termios() 450 if (C_BAUD(tty) == B0) in f81232_set_termios() 455 baudrate = tty_get_baud_rate(tty); in f81232_set_termios() [all …]
|
D | generic.c | 80 int usb_serial_generic_open(struct tty_struct *tty, struct usb_serial_port *port) in usb_serial_generic_open() argument 191 int usb_serial_generic_write(struct tty_struct *tty, in usb_serial_generic_write() argument 211 int usb_serial_generic_write_room(struct tty_struct *tty) in usb_serial_generic_write_room() argument 213 struct usb_serial_port *port = tty->driver_data; in usb_serial_generic_write_room() 228 int usb_serial_generic_chars_in_buffer(struct tty_struct *tty) in usb_serial_generic_chars_in_buffer() argument 230 struct usb_serial_port *port = tty->driver_data; in usb_serial_generic_chars_in_buffer() 246 void usb_serial_generic_wait_until_sent(struct tty_struct *tty, long timeout) in usb_serial_generic_wait_until_sent() argument 248 struct usb_serial_port *port = tty->driver_data; in usb_serial_generic_wait_until_sent() 253 bps = tty_get_baud_rate(tty); in usb_serial_generic_wait_until_sent() 438 void usb_serial_generic_throttle(struct tty_struct *tty) in usb_serial_generic_throttle() argument [all …]
|
D | pl2303.c | 401 static void pl2303_encode_baud_rate(struct tty_struct *tty, in pl2303_encode_baud_rate() argument 410 baud = tty_get_baud_rate(tty); in pl2303_encode_baud_rate() 428 tty_encode_baud_rate(tty, baud, baud); in pl2303_encode_baud_rate() 478 static void pl2303_set_termios(struct tty_struct *tty, in pl2303_set_termios() argument 489 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) in pl2303_set_termios() 496 tty->termios = *old_termios; in pl2303_set_termios() 502 switch (C_CSIZE(tty)) { in pl2303_set_termios() 519 pl2303_encode_baud_rate(tty, port, &buf[0]); in pl2303_set_termios() 524 if (C_CSTOPB(tty)) { in pl2303_set_termios() 529 if (C_CSIZE(tty) == CS5) { in pl2303_set_termios() [all …]
|
D | kl5kusb105.c | 60 static int klsi_105_open(struct tty_struct *tty, struct usb_serial_port *port); 62 static void klsi_105_set_termios(struct tty_struct *tty, 64 static int klsi_105_tiocmget(struct tty_struct *tty); 252 static int klsi_105_open(struct tty_struct *tty, struct usb_serial_port *port) in klsi_105_open() argument 282 priv->termios.c_iflag = tty->termios.c_iflag; in klsi_105_open() 283 priv->termios.c_oflag = tty->termios.c_oflag; in klsi_105_open() 284 priv->termios.c_cflag = tty->termios.c_cflag; in klsi_105_open() 285 priv->termios.c_lflag = tty->termios.c_lflag; in klsi_105_open() 287 priv->termios.c_cc[i] = tty->termios.c_cc[i]; in klsi_105_open() 296 rc = usb_serial_generic_open(tty, port); in klsi_105_open() [all …]
|
D | spcp8x5.c | 280 static void spcp8x5_init_termios(struct tty_struct *tty) in spcp8x5_init_termios() argument 282 tty->termios = tty_std_termios; in spcp8x5_init_termios() 283 tty->termios.c_cflag = B115200 | CS8 | CREAD | HUPCL | CLOCAL; in spcp8x5_init_termios() 284 tty->termios.c_ispeed = 115200; in spcp8x5_init_termios() 285 tty->termios.c_ospeed = 115200; in spcp8x5_init_termios() 288 static void spcp8x5_set_termios(struct tty_struct *tty, in spcp8x5_set_termios() argument 294 unsigned int cflag = tty->termios.c_cflag; in spcp8x5_set_termios() 302 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) in spcp8x5_set_termios() 322 baud = tty_get_baud_rate(tty); in spcp8x5_set_termios() 392 static int spcp8x5_open(struct tty_struct *tty, struct usb_serial_port *port) in spcp8x5_open() argument [all …]
|
D | digi_acceleport.c | 220 static void digi_rx_throttle(struct tty_struct *tty); 221 static void digi_rx_unthrottle(struct tty_struct *tty); 222 static void digi_set_termios(struct tty_struct *tty, 224 static void digi_break_ctl(struct tty_struct *tty, int break_state); 225 static int digi_tiocmget(struct tty_struct *tty); 226 static int digi_tiocmset(struct tty_struct *tty, unsigned int set, 228 static int digi_write(struct tty_struct *tty, struct usb_serial_port *port, 231 static int digi_write_room(struct tty_struct *tty); 232 static int digi_chars_in_buffer(struct tty_struct *tty); 233 static int digi_open(struct tty_struct *tty, struct usb_serial_port *port); [all …]
|
D | oti6858.c | 122 static int oti6858_open(struct tty_struct *tty, struct usb_serial_port *port); 124 static void oti6858_set_termios(struct tty_struct *tty, 126 static void oti6858_init_termios(struct tty_struct *tty); 130 static int oti6858_write(struct tty_struct *tty, struct usb_serial_port *port, 132 static int oti6858_write_room(struct tty_struct *tty); 133 static int oti6858_chars_in_buffer(struct tty_struct *tty); 134 static int oti6858_tiocmget(struct tty_struct *tty); 135 static int oti6858_tiocmset(struct tty_struct *tty, 357 static int oti6858_write(struct tty_struct *tty, struct usb_serial_port *port, in oti6858_write() argument 368 static int oti6858_write_room(struct tty_struct *tty) in oti6858_write_room() argument [all …]
|
D | whiteheat.c | 89 static int whiteheat_open(struct tty_struct *tty, 92 static int whiteheat_ioctl(struct tty_struct *tty, 94 static void whiteheat_set_termios(struct tty_struct *tty, 96 static int whiteheat_tiocmget(struct tty_struct *tty); 97 static int whiteheat_tiocmset(struct tty_struct *tty, 99 static void whiteheat_break_ctl(struct tty_struct *tty, int break_state); 166 static void firm_setup_port(struct tty_struct *tty); 390 static int whiteheat_open(struct tty_struct *tty, struct usb_serial_port *port) in whiteheat_open() argument 412 if (tty) in whiteheat_open() 413 firm_setup_port(tty); in whiteheat_open() [all …]
|
D | cp210x.c | 32 static int cp210x_open(struct tty_struct *tty, struct usb_serial_port *); 464 static int cp210x_open(struct tty_struct *tty, struct usb_serial_port *port) in cp210x_open() argument 476 cp210x_get_termios(tty, port); in cp210x_open() 479 if (tty) in cp210x_open() 480 cp210x_change_speed(tty, port, NULL); in cp210x_open() 482 return usb_serial_generic_open(tty, port); in cp210x_open() 497 static void cp210x_get_termios(struct tty_struct *tty, in cp210x_get_termios() argument 502 if (tty) { in cp210x_get_termios() 503 cp210x_get_termios_port(tty->driver_data, in cp210x_get_termios() 504 &tty->termios.c_cflag, &baud); in cp210x_get_termios() [all …]
|
D | metro-usb.c | 182 static int metrousb_open(struct tty_struct *tty, struct usb_serial_port *port) in metrousb_open() argument 287 static void metrousb_throttle(struct tty_struct *tty) in metrousb_throttle() argument 289 struct usb_serial_port *port = tty->driver_data; in metrousb_throttle() 293 dev_dbg(tty->dev, "%s\n", __func__); in metrousb_throttle() 301 static int metrousb_tiocmget(struct tty_struct *tty) in metrousb_tiocmget() argument 304 struct usb_serial_port *port = tty->driver_data; in metrousb_tiocmget() 308 dev_dbg(tty->dev, "%s\n", __func__); in metrousb_tiocmget() 317 static int metrousb_tiocmset(struct tty_struct *tty, in metrousb_tiocmset() argument 320 struct usb_serial_port *port = tty->driver_data; in metrousb_tiocmset() 326 dev_dbg(tty->dev, "%s - set=%d, clear=%d\n", __func__, set, clear); in metrousb_tiocmset() [all …]
|
D | keyspan_pda.c | 200 static void keyspan_pda_rx_throttle(struct tty_struct *tty) in keyspan_pda_rx_throttle() argument 208 struct usb_serial_port *port = tty->driver_data; in keyspan_pda_rx_throttle() 214 static void keyspan_pda_rx_unthrottle(struct tty_struct *tty) in keyspan_pda_rx_unthrottle() argument 216 struct usb_serial_port *port = tty->driver_data; in keyspan_pda_rx_unthrottle() 283 static void keyspan_pda_break_ctl(struct tty_struct *tty, int break_state) in keyspan_pda_break_ctl() argument 285 struct usb_serial_port *port = tty->driver_data; in keyspan_pda_break_ctl() 308 static void keyspan_pda_set_termios(struct tty_struct *tty, in keyspan_pda_set_termios() argument 334 speed = tty_get_baud_rate(tty); in keyspan_pda_set_termios() 344 tty_termios_copy_hw(&tty->termios, old_termios); in keyspan_pda_set_termios() 345 tty_encode_baud_rate(tty, speed, speed); in keyspan_pda_set_termios() [all …]
|
D | belkin_sa.c | 45 static int belkin_sa_open(struct tty_struct *tty, 50 static void belkin_sa_set_termios(struct tty_struct *tty, 52 static void belkin_sa_break_ctl(struct tty_struct *tty, int break_state); 53 static int belkin_sa_tiocmget(struct tty_struct *tty); 54 static int belkin_sa_tiocmset(struct tty_struct *tty, 151 static int belkin_sa_open(struct tty_struct *tty, in belkin_sa_open() argument 162 retval = usb_serial_generic_open(tty, port); in belkin_sa_open() 281 static void belkin_sa_set_termios(struct tty_struct *tty, in belkin_sa_set_termios() argument 295 struct ktermios *termios = &tty->termios; in belkin_sa_set_termios() 326 baud = tty_get_baud_rate(tty); in belkin_sa_set_termios() [all …]
|
D | omninet.c | 34 static int omninet_open(struct tty_struct *tty, struct usb_serial_port *port); 37 static int omninet_write(struct tty_struct *tty, struct usb_serial_port *port, 39 static int omninet_write_room(struct tty_struct *tty); 130 static int omninet_open(struct tty_struct *tty, struct usb_serial_port *port) in omninet_open() argument 136 tty_port_tty_set(&wport->port, tty); in omninet_open() 138 return usb_serial_generic_open(tty, port); in omninet_open() 162 static int omninet_write(struct tty_struct *tty, struct usb_serial_port *port, in omninet_write() argument 213 static int omninet_write_room(struct tty_struct *tty) in omninet_write_room() argument 215 struct usb_serial_port *port = tty->driver_data; in omninet_write_room()
|
D | ssu100.c | 200 static void ssu100_set_termios(struct tty_struct *tty, in ssu100_set_termios() argument 205 struct ktermios *termios = &tty->termios; in ssu100_set_termios() 234 baud = tty_get_baud_rate(tty); in ssu100_set_termios() 261 if (I_IXOFF(tty) || I_IXON(tty)) { in ssu100_set_termios() 262 u16 x = ((u16)(START_CHAR(tty) << 8) | (u16)(STOP_CHAR(tty))); in ssu100_set_termios() 276 static int ssu100_open(struct tty_struct *tty, struct usb_serial_port *port) in ssu100_open() argument 310 if (tty) in ssu100_open() 311 ssu100_set_termios(tty, port, &tty->termios); in ssu100_open() 313 return usb_serial_generic_open(tty, port); in ssu100_open() 339 static int ssu100_ioctl(struct tty_struct *tty, in ssu100_ioctl() argument [all …]
|
D | ch341.c | 87 static void ch341_set_termios(struct tty_struct *tty, 310 static int ch341_open(struct tty_struct *tty, struct usb_serial_port *port) in ch341_open() argument 320 if (tty) in ch341_open() 321 ch341_set_termios(tty, port, NULL); in ch341_open() 331 r = usb_serial_generic_open(tty, port); in ch341_open() 339 static void ch341_set_termios(struct tty_struct *tty, in ch341_set_termios() argument 346 baud_rate = tty_get_baud_rate(tty); in ch341_set_termios() 370 static void ch341_break_ctl(struct tty_struct *tty, int break_state) in ch341_break_ctl() argument 374 struct usb_serial_port *port = tty->driver_data; in ch341_break_ctl() 413 static int ch341_tiocmset(struct tty_struct *tty, in ch341_tiocmset() argument [all …]
|
D | ark3116.c | 207 static void ark3116_init_termios(struct tty_struct *tty) in ark3116_init_termios() argument 209 struct ktermios *termios = &tty->termios; in ark3116_init_termios() 217 static void ark3116_set_termios(struct tty_struct *tty, in ark3116_set_termios() argument 223 struct ktermios *termios = &tty->termios; in ark3116_set_termios() 225 int bps = tty_get_baud_rate(tty); in ark3116_set_termios() 327 if (I_IXOFF(tty) || I_IXON(tty)) { in ark3116_set_termios() 353 static int ark3116_open(struct tty_struct *tty, struct usb_serial_port *port) in ark3116_open() argument 364 result = usb_serial_generic_open(tty, port); in ark3116_open() 395 if (tty) in ark3116_open() 396 ark3116_set_termios(tty, port, NULL); in ark3116_open() [all …]
|
D | mxuport.c | 295 static void mxuport_throttle(struct tty_struct *tty) in mxuport_throttle() argument 297 struct usb_serial_port *port = tty->driver_data; in mxuport_throttle() 313 static void mxuport_unthrottle(struct tty_struct *tty) in mxuport_unthrottle() argument 316 struct usb_serial_port *port = tty->driver_data; in mxuport_unthrottle() 709 static int mxuport_tiocmset(struct tty_struct *tty, unsigned int set, in mxuport_tiocmset() argument 712 struct usb_serial_port *port = tty->driver_data; in mxuport_tiocmset() 741 static int mxuport_tiocmget(struct tty_struct *tty) in mxuport_tiocmget() argument 744 struct usb_serial_port *port = tty->driver_data; in mxuport_tiocmget() 773 static int mxuport_set_termios_flow(struct tty_struct *tty, in mxuport_set_termios_flow() argument 778 u8 xon = START_CHAR(tty); in mxuport_set_termios_flow() [all …]
|
D | io_ti.c | 204 static void edge_set_termios(struct tty_struct *tty, 206 static void edge_send(struct usb_serial_port *port, struct tty_struct *tty); 1433 struct tty_struct *tty; in handle_new_msr() local 1456 tty = tty_port_tty_get(&edge_port->port->port); in handle_new_msr() 1458 if (tty && C_CRTSCTS(tty)) { in handle_new_msr() 1460 tty_wakeup(tty); in handle_new_msr() 1462 tty_kref_put(tty); in handle_new_msr() 1680 struct tty_struct *tty; in edge_bulk_out_callback() local 1701 tty = tty_port_tty_get(&port->port); in edge_bulk_out_callback() 1702 edge_send(port, tty); in edge_bulk_out_callback() [all …]
|
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() 180 static int opticon_write(struct tty_struct *tty, struct usb_serial_port *port, in opticon_write() argument 263 static int opticon_write_room(struct tty_struct *tty) in opticon_write_room() argument 265 struct usb_serial_port *port = tty->driver_data; in opticon_write_room() 285 static int opticon_tiocmget(struct tty_struct *tty) in opticon_tiocmget() argument 287 struct usb_serial_port *port = tty->driver_data; in opticon_tiocmget() 303 static int opticon_tiocmset(struct tty_struct *tty, in opticon_tiocmset() argument 306 struct usb_serial_port *port = tty->driver_data; in opticon_tiocmset() 360 static int opticon_ioctl(struct tty_struct *tty, in opticon_ioctl() argument [all …]
|
D | io_edgeport.c | 197 static int edge_open(struct tty_struct *tty, struct usb_serial_port *port); 199 static int edge_write(struct tty_struct *tty, struct usb_serial_port *port, 201 static int edge_write_room(struct tty_struct *tty); 202 static int edge_chars_in_buffer(struct tty_struct *tty); 203 static void edge_throttle(struct tty_struct *tty); 204 static void edge_unthrottle(struct tty_struct *tty); 205 static void edge_set_termios(struct tty_struct *tty, 208 static int edge_ioctl(struct tty_struct *tty, 210 static void edge_break(struct tty_struct *tty, int break_state); 211 static int edge_tiocmget(struct tty_struct *tty); [all …]
|
D | quatech2.c | 266 static void qt2_set_termios(struct tty_struct *tty, in qt2_set_termios() argument 272 struct ktermios *termios = &tty->termios; in qt2_set_termios() 303 baud = tty_get_baud_rate(tty); in qt2_set_termios() 324 if (I_IXOFF(tty) || I_IXON(tty)) { in qt2_set_termios() 325 u16 x = ((u16) (START_CHAR(tty) << 8) | (u16) (STOP_CHAR(tty))); in qt2_set_termios() 339 static int qt2_open(struct tty_struct *tty, struct usb_serial_port *port) in qt2_open() argument 400 if (tty) in qt2_open() 401 qt2_set_termios(tty, port, &tty->termios); in qt2_open() 484 static int qt2_ioctl(struct tty_struct *tty, in qt2_ioctl() argument 487 struct usb_serial_port *port = tty->driver_data; in qt2_ioctl() [all …]
|
D | empeg.c | 38 static void empeg_init_termios(struct tty_struct *tty); 81 static void empeg_init_termios(struct tty_struct *tty) in empeg_init_termios() argument 83 struct ktermios *termios = &tty->termios; in empeg_init_termios() 122 tty_encode_baud_rate(tty, 115200, 115200); in empeg_init_termios()
|
D | mos7720.c | 993 static int mos7720_open(struct tty_struct *tty, struct usb_serial_port *port) in mos7720_open() argument 1099 static int mos7720_chars_in_buffer(struct tty_struct *tty) in mos7720_chars_in_buffer() argument 1101 struct usb_serial_port *port = tty->driver_data; in mos7720_chars_in_buffer() 1153 static void mos7720_break(struct tty_struct *tty, int break_state) in mos7720_break() argument 1155 struct usb_serial_port *port = tty->driver_data; in mos7720_break() 1182 static int mos7720_write_room(struct tty_struct *tty) in mos7720_write_room() argument 1184 struct usb_serial_port *port = tty->driver_data; in mos7720_write_room() 1204 static int mos7720_write(struct tty_struct *tty, struct usb_serial_port *port, in mos7720_write() argument 1273 static void mos7720_throttle(struct tty_struct *tty) in mos7720_throttle() argument 1275 struct usb_serial_port *port = tty->driver_data; in mos7720_throttle() [all …]
|
D | ir-usb.c | 52 static int ir_open(struct tty_struct *tty, struct usb_serial_port *port); 56 static void ir_set_termios(struct tty_struct *tty, 255 static int ir_open(struct tty_struct *tty, struct usb_serial_port *port) in ir_open() argument 263 return usb_serial_generic_open(tty, port); in ir_open() 317 static void ir_set_termios(struct tty_struct *tty, in ir_set_termios() argument 326 baud = tty_get_baud_rate(tty); in ir_set_termios() 373 tty_termios_copy_hw(&tty->termios, old_termios); in ir_set_termios() 374 tty_encode_baud_rate(tty, baud, baud); in ir_set_termios()
|
D | usb_debug.c | 40 static void usb_debug_break_ctl(struct tty_struct *tty, int break_state) in usb_debug_break_ctl() argument 42 struct usb_serial_port *port = tty->driver_data; in usb_debug_break_ctl() 45 usb_serial_generic_write(tty, port, USB_DEBUG_BRK, USB_DEBUG_BRK_SIZE); in usb_debug_break_ctl()
|
D | symbolserial.c | 95 static int symbol_open(struct tty_struct *tty, struct usb_serial_port *port) in symbol_open() argument 120 static void symbol_throttle(struct tty_struct *tty) in symbol_throttle() argument 122 struct usb_serial_port *port = tty->driver_data; in symbol_throttle() 130 static void symbol_unthrottle(struct tty_struct *tty) in symbol_unthrottle() argument 132 struct usb_serial_port *port = tty->driver_data; in symbol_unthrottle()
|
D | mos7840.c | 845 static int mos7840_open(struct tty_struct *tty, struct usb_serial_port *port) in mos7840_open() argument 1124 static int mos7840_chars_in_buffer(struct tty_struct *tty) in mos7840_chars_in_buffer() argument 1126 struct usb_serial_port *port = tty->driver_data; in mos7840_chars_in_buffer() 1221 static void mos7840_break(struct tty_struct *tty, int break_state) in mos7840_break() argument 1223 struct usb_serial_port *port = tty->driver_data; in mos7840_break() 1260 static int mos7840_write_room(struct tty_struct *tty) in mos7840_write_room() argument 1262 struct usb_serial_port *port = tty->driver_data; in mos7840_write_room() 1296 static int mos7840_write(struct tty_struct *tty, struct usb_serial_port *port, in mos7840_write() argument 1401 static void mos7840_throttle(struct tty_struct *tty) in mos7840_throttle() argument 1403 struct usb_serial_port *port = tty->driver_data; in mos7840_throttle() [all …]
|
D | iuu_phoenix.c | 121 static int iuu_tiocmset(struct tty_struct *tty, in iuu_tiocmset() argument 124 struct usb_serial_port *port = tty->driver_data; in iuu_tiocmset() 150 static int iuu_tiocmget(struct tty_struct *tty) in iuu_tiocmget() argument 152 struct usb_serial_port *port = tty->driver_data; in iuu_tiocmget() 704 static int iuu_uart_write(struct tty_struct *tty, struct usb_serial_port *port, in iuu_uart_write() argument 887 static void iuu_set_termios(struct tty_struct *tty, in iuu_set_termios() argument 892 unsigned int cflag = tty->termios.c_cflag; in iuu_set_termios() 901 baud = tty->termios.c_ospeed; in iuu_set_termios() 932 tty_termios_copy_hw(&tty->termios, old_termios); in iuu_set_termios() 936 tty_encode_baud_rate(tty, baud, baud); in iuu_set_termios() [all …]
|
D | usb_wwan.c | 58 int usb_wwan_tiocmget(struct tty_struct *tty) in usb_wwan_tiocmget() argument 60 struct usb_serial_port *port = tty->driver_data; in usb_wwan_tiocmget() 77 int usb_wwan_tiocmset(struct tty_struct *tty, in usb_wwan_tiocmset() argument 80 struct usb_serial_port *port = tty->driver_data; in usb_wwan_tiocmset() 115 tmp.baud_base = tty_get_baud_rate(port->port.tty); in get_serial_info() 157 int usb_wwan_ioctl(struct tty_struct *tty, in usb_wwan_ioctl() argument 160 struct usb_serial_port *port = tty->driver_data; in usb_wwan_ioctl() 181 int usb_wwan_write(struct tty_struct *tty, struct usb_serial_port *port, in usb_wwan_write() argument 322 int usb_wwan_write_room(struct tty_struct *tty) in usb_wwan_write_room() argument 324 struct usb_serial_port *port = tty->driver_data; in usb_wwan_write_room() [all …]
|
D | ftdi_sio.c | 1039 static int ftdi_open(struct tty_struct *tty, struct usb_serial_port *port); 1044 static void ftdi_set_termios(struct tty_struct *tty, 1046 static int ftdi_tiocmget(struct tty_struct *tty); 1047 static int ftdi_tiocmset(struct tty_struct *tty, 1049 static int ftdi_ioctl(struct tty_struct *tty, 1051 static void ftdi_break_ctl(struct tty_struct *tty, int break_state); 1231 static __u32 get_ftdi_divisor(struct tty_struct *tty, in get_ftdi_divisor() argument 1270 baud = tty_get_baud_rate(tty); in get_ftdi_divisor() 1365 tty_encode_baud_rate(tty, baud, baud); in get_ftdi_divisor() 1369 static int change_speed(struct tty_struct *tty, struct usb_serial_port *port) in change_speed() argument [all …]
|
D | cyberjack.c | 55 static int cyberjack_open(struct tty_struct *tty, 58 static int cyberjack_write(struct tty_struct *tty, 60 static int cyberjack_write_room(struct tty_struct *tty); 138 static int cyberjack_open(struct tty_struct *tty, in cyberjack_open() argument 164 static int cyberjack_write(struct tty_struct *tty, in cyberjack_write() argument 249 static int cyberjack_write_room(struct tty_struct *tty) in cyberjack_write_room() argument
|
D | wishbone-serial.c | 49 static int wishbone_serial_open(struct tty_struct *tty, in wishbone_serial_open() argument 62 retval = usb_serial_generic_open(tty, port); in wishbone_serial_open()
|
D | keyspan.h | 38 static int keyspan_open (struct tty_struct *tty, 47 static int keyspan_write_room (struct tty_struct *tty); 49 static int keyspan_write (struct tty_struct *tty, 58 static void keyspan_set_termios (struct tty_struct *tty, 61 static void keyspan_break_ctl (struct tty_struct *tty, 63 static int keyspan_tiocmget (struct tty_struct *tty); 64 static int keyspan_tiocmset (struct tty_struct *tty,
|
D | navman.c | 69 static int navman_open(struct tty_struct *tty, struct usb_serial_port *port) in navman_open() argument 90 static int navman_write(struct tty_struct *tty, struct usb_serial_port *port, in navman_write() argument
|
D | sierra.c | 380 static int sierra_tiocmget(struct tty_struct *tty) in sierra_tiocmget() argument 382 struct usb_serial_port *port = tty->driver_data; in sierra_tiocmget() 398 static int sierra_tiocmset(struct tty_struct *tty, in sierra_tiocmset() argument 401 struct usb_serial_port *port = tty->driver_data; in sierra_tiocmset() 453 static int sierra_write(struct tty_struct *tty, struct usb_serial_port *port, in sierra_write() argument 655 static int sierra_write_room(struct tty_struct *tty) in sierra_write_room() argument 657 struct usb_serial_port *port = tty->driver_data; in sierra_write_room() 674 static int sierra_chars_in_buffer(struct tty_struct *tty) in sierra_chars_in_buffer() argument 676 struct usb_serial_port *port = tty->driver_data; in sierra_chars_in_buffer() 809 static int sierra_open(struct tty_struct *tty, struct usb_serial_port *port) in sierra_open() argument
|
D | keyspan.c | 131 static void keyspan_break_ctl(struct tty_struct *tty, int break_state) in keyspan_break_ctl() argument 133 struct usb_serial_port *port = tty->driver_data; in keyspan_break_ctl() 147 static void keyspan_set_termios(struct tty_struct *tty, in keyspan_set_termios() argument 157 cflag = tty->termios.c_cflag; in keyspan_set_termios() 162 baud_rate = tty_get_baud_rate(tty); in keyspan_set_termios() 172 tty_encode_baud_rate(tty, baud_rate, baud_rate); in keyspan_set_termios() 178 tty->termios.c_cflag &= ~CMSPAR; in keyspan_set_termios() 183 static int keyspan_tiocmget(struct tty_struct *tty) in keyspan_tiocmget() argument 185 struct usb_serial_port *port = tty->driver_data; in keyspan_tiocmget() 199 static int keyspan_tiocmset(struct tty_struct *tty, in keyspan_tiocmset() argument [all …]
|
D | garmin_gps.c | 921 static int garmin_open(struct tty_struct *tty, struct usb_serial_port *port) in garmin_open() argument 1056 static int garmin_write(struct tty_struct *tty, struct usb_serial_port *port, in garmin_write() argument 1128 static int garmin_write_room(struct tty_struct *tty) in garmin_write_room() argument 1130 struct usb_serial_port *port = tty->driver_data; in garmin_write_room() 1331 static void garmin_throttle(struct tty_struct *tty) in garmin_throttle() argument 1333 struct usb_serial_port *port = tty->driver_data; in garmin_throttle() 1344 static void garmin_unthrottle(struct tty_struct *tty) in garmin_unthrottle() argument 1346 struct usb_serial_port *port = tty->driver_data; in garmin_unthrottle()
|
D | ipw.c | 136 static int ipw_open(struct tty_struct *tty, struct usb_serial_port *port) in ipw_open() argument 169 usb_wwan_open(tty, port); in ipw_open()
|
D | ipaq.c | 34 static int ipaq_open(struct tty_struct *tty, 518 static int ipaq_open(struct tty_struct *tty, in ipaq_open() argument 550 return usb_serial_generic_open(tty, port); in ipaq_open()
|
D | visor.c | 39 static int visor_open(struct tty_struct *tty, struct usb_serial_port *port); 227 static int visor_open(struct tty_struct *tty, struct usb_serial_port *port) in visor_open() argument 238 result = usb_serial_generic_open(tty, port); in visor_open()
|
/linux-4.1.27/drivers/staging/gdm724x/ |
D | gdm_tty.c | 71 static int gdm_tty_install(struct tty_driver *driver, struct tty_struct *tty) in gdm_tty_install() argument 80 if (!strcmp(tty->driver->driver_name, DRIVER_STRING[i])) { in gdm_tty_install() 81 j = tty->index; in gdm_tty_install() 98 ret = tty_standard_install(driver, tty); in gdm_tty_install() 105 tty->driver_data = gdm; in gdm_tty_install() 111 static int gdm_tty_open(struct tty_struct *tty, struct file *filp) in gdm_tty_open() argument 113 struct gdm *gdm = tty->driver_data; in gdm_tty_open() 115 return tty_port_open(&gdm->port, tty, filp); in gdm_tty_open() 118 static void gdm_tty_cleanup(struct tty_struct *tty) in gdm_tty_cleanup() argument 120 struct gdm *gdm = tty->driver_data; in gdm_tty_cleanup() [all …]
|
D | Kconfig | 10 It exposes 4 network devices to be used per PDN and 2 tty devices to be
|
D | TODO | 12 - fix up static tty port allocation to be dynamic
|
/linux-4.1.27/drivers/char/pcmcia/ |
D | synclink_cs.c | 366 static void tx_start(MGSLPC_INFO *info, struct tty_struct *tty); 402 static bool rx_get_frame(MGSLPC_INFO *info, struct tty_struct *tty); 413 static void bh_transmit(MGSLPC_INFO *info, struct tty_struct *tty); 419 static int tiocmget(struct tty_struct *tty); 420 static int tiocmset(struct tty_struct *tty, 424 static int set_params(MGSLPC_INFO *info, MGSL_PARAMS __user *new_params, struct tty_struct *tty); 427 static int set_txenable(MGSLPC_INFO *info, int enable, struct tty_struct *tty); 466 static void mgslpc_change_params(MGSLPC_INFO *info, struct tty_struct *tty); 467 static void mgslpc_wait_until_sent(struct tty_struct *tty, int timeout); 495 static void ldisc_receive_buf(struct tty_struct *tty, in ldisc_receive_buf() argument [all …]
|
/linux-4.1.27/drivers/pps/clients/ |
D | pps-ldisc.c | 32 static void pps_tty_dcd_change(struct tty_struct *tty, unsigned int status) in pps_tty_dcd_change() argument 39 pps = pps_lookup_dev(tty); in pps_tty_dcd_change() 55 static int (*alias_n_tty_open)(struct tty_struct *tty); 57 static int pps_tty_open(struct tty_struct *tty) in pps_tty_open() argument 60 struct tty_driver *drv = tty->driver; in pps_tty_open() 61 int index = tty->index + drv->name_base; in pps_tty_open() 79 pps->lookup_cookie = tty; in pps_tty_open() 82 ret = alias_n_tty_open(tty); in pps_tty_open() 97 static void (*alias_n_tty_close)(struct tty_struct *tty); 99 static void pps_tty_close(struct tty_struct *tty) in pps_tty_close() argument [all …]
|
/linux-4.1.27/drivers/net/ppp/ |
D | ppp_synctty.c | 56 struct tty_struct *tty; member 137 static struct syncppp *sp_get(struct tty_struct *tty) in sp_get() argument 142 ap = tty->disc_data; in sp_get() 159 ppp_sync_open(struct tty_struct *tty) in ppp_sync_open() argument 165 if (tty->ops->write == NULL) in ppp_sync_open() 174 ap->tty = tty; in ppp_sync_open() 192 speed = tty_get_baud_rate(tty); in ppp_sync_open() 198 tty->disc_data = ap; in ppp_sync_open() 199 tty->receive_room = 65536; in ppp_sync_open() 217 ppp_sync_close(struct tty_struct *tty) in ppp_sync_close() argument [all …]
|
D | ppp_async.c | 46 struct tty_struct *tty; member 136 static struct asyncppp *ap_get(struct tty_struct *tty) in ap_get() argument 141 ap = tty->disc_data; in ap_get() 159 ppp_asynctty_open(struct tty_struct *tty) in ppp_asynctty_open() argument 165 if (tty->ops->write == NULL) in ppp_asynctty_open() 174 ap->tty = tty; in ppp_asynctty_open() 194 speed = tty_get_baud_rate(tty); in ppp_asynctty_open() 200 tty->disc_data = ap; in ppp_asynctty_open() 201 tty->receive_room = 65536; in ppp_asynctty_open() 219 ppp_asynctty_close(struct tty_struct *tty) in ppp_asynctty_close() argument [all …]
|
/linux-4.1.27/drivers/misc/ti-st/ |
D | st_core.c | 67 struct tty_struct *tty; in st_get_uart_wr_room() local 68 if (unlikely(st_gdata == NULL || st_gdata->tty == NULL)) { in st_get_uart_wr_room() 72 tty = st_gdata->tty; in st_get_uart_wr_room() 73 return tty->ops->write_room(tty); in st_get_uart_wr_room() 86 struct tty_struct *tty; in st_int_write() local 87 if (unlikely(st_gdata == NULL || st_gdata->tty == NULL)) { in st_int_write() 91 tty = st_gdata->tty; in st_int_write() 96 return tty->ops->write(tty, data, count); in st_int_write() 485 set_bit(TTY_DO_WRITE_WAKEUP, &st_data->tty->flags); in st_tx_wakeup() 668 if (st_gdata->tty) { in st_unregister() [all …]
|
D | st_kim.c | 538 struct tty_struct *tty = kim_gdata->core_data->tty; in st_kim_stop() local 549 if (tty) { /* can be called before ldisc is installed */ in st_kim_stop() 551 tty_ldisc_flush(tty); in st_kim_stop() 552 tty_driver_flush_buffer(tty); in st_kim_stop()
|
/linux-4.1.27/drivers/net/wan/ |
D | x25_asy.c | 247 set_bit(TTY_DO_WRITE_WAKEUP, &sl->tty->flags); in x25_asy_encaps() 248 actual = sl->tty->ops->write(sl->tty, sl->xbuff, count); in x25_asy_encaps() 259 static void x25_asy_write_wakeup(struct tty_struct *tty) in x25_asy_write_wakeup() argument 262 struct x25_asy *sl = tty->disc_data; in x25_asy_write_wakeup() 272 clear_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in x25_asy_write_wakeup() 277 actual = tty->ops->write(tty, sl->xhead, sl->xleft); in x25_asy_write_wakeup() 292 (tty_chars_in_buffer(sl->tty) || sl->xleft) ? in x25_asy_timeout() 295 clear_bit(TTY_DO_WRITE_WAKEUP, &sl->tty->flags); in x25_asy_timeout() 381 if (netif_queue_stopped(sl->dev) || sl->tty == NULL) { in x25_asy_data_transmit() 456 if (sl->tty == NULL) in x25_asy_open() [all …]
|
D | x25_asy.h | 22 struct tty_struct *tty; /* ptr to TTY structure */ member
|
/linux-4.1.27/drivers/staging/speakup/ |
D | selection.c | 52 int speakup_set_selection(struct tty_struct *tty) in speakup_set_selection() argument 77 dev_warn(tty->dev, in speakup_set_selection() 131 struct tty_struct *tty; member 138 struct tty_struct *tty = xchg(&spw->tty, NULL); in __speakup_paste_selection() local 139 struct vc_data *vc = (struct vc_data *) tty->driver_data; in __speakup_paste_selection() 144 ld = tty_ldisc_ref(tty); in __speakup_paste_selection() 152 if (test_bit(TTY_THROTTLED, &tty->flags)) { in __speakup_paste_selection() 167 tty_kref_put(tty); in __speakup_paste_selection() 175 int speakup_paste_selection(struct tty_struct *tty) in speakup_paste_selection() argument 177 if (cmpxchg(&speakup_paste_work.tty, NULL, tty) != NULL) in speakup_paste_selection() [all …]
|
D | buffers.c | 30 if ((vc_cons[i].d != NULL) && (vc_cons[i].d->port.tty != NULL)) in speakup_start_ttys() 31 start_tty(vc_cons[i].d->port.tty); in speakup_start_ttys() 41 if ((vc_cons[i].d != NULL) && (vc_cons[i].d->port.tty != NULL)) in speakup_stop_ttys() 42 stop_tty(vc_cons[i].d->port.tty); in speakup_stop_ttys()
|
D | speakup.h | 78 extern int speakup_set_selection(struct tty_struct *tty); 79 extern int speakup_paste_selection(struct tty_struct *tty);
|
/linux-4.1.27/arch/xtensa/platforms/iss/ |
D | console.c | 56 static int rs_open(struct tty_struct *tty, struct file * filp) in rs_open() argument 58 tty->port = &serial_port; in rs_open() 60 if (tty->count == 1) { in rs_open() 81 static void rs_close(struct tty_struct *tty, struct file * filp) in rs_close() argument 84 if (tty->count == 1) in rs_close() 90 static int rs_write(struct tty_struct * tty, in rs_write() argument 124 static int rs_put_char(struct tty_struct *tty, unsigned char ch) in rs_put_char() argument 126 return rs_write(tty, &ch, 1); in rs_put_char() 129 static void rs_flush_chars(struct tty_struct *tty) in rs_flush_chars() argument 133 static int rs_write_room(struct tty_struct *tty) in rs_write_room() argument [all …]
|
/linux-4.1.27/arch/alpha/kernel/ |
D | srmcons.c | 82 if (port->tty) in srmcons_receive_chars() 132 srmcons_write(struct tty_struct *tty, in srmcons_write() argument 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_chars_in_buffer(struct tty_struct *tty) in srmcons_chars_in_buffer() argument 157 srmcons_open(struct tty_struct *tty, struct file *filp) in srmcons_open() argument 165 if (!port->tty) { in srmcons_open() 166 tty->driver_data = srmconsp; in srmcons_open() 167 tty->port = port; in srmcons_open() 168 port->tty = tty; /* XXX proper refcounting */ in srmcons_open() [all …]
|
/linux-4.1.27/drivers/isdn/capi/ |
D | capi.c | 303 struct tty_struct *tty; in capincci_free_minor() local 306 tty = tty_port_tty_get(&mp->port); in capincci_free_minor() 307 if (tty) { in capincci_free_minor() 308 tty_vhangup(tty); in capincci_free_minor() 309 tty_kref_put(tty); in capincci_free_minor() 320 struct tty_struct *tty; in capincci_minor_opencount() local 323 tty = tty_port_tty_get(&mp->port); in capincci_minor_opencount() 324 if (tty) { in capincci_minor_opencount() 325 count = tty->count; in capincci_minor_opencount() 326 tty_kref_put(tty); in capincci_minor_opencount() [all …]
|
/linux-4.1.27/drivers/s390/char/ |
D | con3215.c | 341 struct tty_struct *tty; in raw3215_wakeup() local 343 tty = tty_port_tty_get(&raw->port); in raw3215_wakeup() 344 if (tty) { in raw3215_wakeup() 345 tty_wakeup(tty); in raw3215_wakeup() 346 tty_kref_put(tty); in raw3215_wakeup() 353 static void raw3215_next_io(struct raw3215_info *raw, struct tty_struct *tty) in raw3215_next_io() argument 357 if (tty && RAW3215_BUFFER_SIZE - raw->count >= RAW3215_MIN_SPACE) in raw3215_next_io() 369 struct tty_struct *tty; in raw3215_irq() local 375 tty = tty_port_tty_get(&raw->port); in raw3215_irq() 379 raw3215_next_io(raw, tty); in raw3215_irq() [all …]
|
D | tty3270.c | 804 struct tty_struct *tty; in tty3270_resize_work() local 831 tty = tty_port_tty_get(&tp->port); in tty3270_resize_work() 832 if (!tty) in tty3270_resize_work() 836 tty_do_resize(tty, &ws); in tty3270_resize_work() 857 struct tty_struct *tty = tty_port_tty_get(&tp->port); in tty3270_release() local 859 if (tty) { in tty3270_release() 860 tty->driver_data = NULL; in tty3270_release() 862 tty_hangup(tty); in tty3270_release() 864 tty_kref_put(tty); in tty3270_release() 908 static int tty3270_install(struct tty_driver *driver, struct tty_struct *tty) in tty3270_install() argument [all …]
|
D | sclp_tty.c | 64 sclp_tty_open(struct tty_struct *tty, struct file *filp) in sclp_tty_open() argument 66 tty_port_tty_set(&sclp_port, tty); in sclp_tty_open() 67 tty->driver_data = NULL; in sclp_tty_open() 74 sclp_tty_close(struct tty_struct *tty, struct file *filp) in sclp_tty_close() argument 76 if (tty->count > 1) in sclp_tty_close() 91 sclp_tty_write_room (struct tty_struct *tty) in sclp_tty_write_room() argument 238 sclp_tty_write(struct tty_struct *tty, const unsigned char *buf, int count) in sclp_tty_write() argument 258 sclp_tty_put_char(struct tty_struct *tty, unsigned char ch) in sclp_tty_put_char() argument 273 sclp_tty_flush_chars(struct tty_struct *tty) in sclp_tty_flush_chars() argument 289 sclp_tty_chars_in_buffer(struct tty_struct *tty) in sclp_tty_chars_in_buffer() argument [all …]
|
D | ctrlchar.c | 41 ctrlchar_handle(const unsigned char *buf, int len, struct tty_struct *tty) in ctrlchar_handle() argument 65 return INTR_CHAR(tty) | CTRLCHAR_CTRL; in ctrlchar_handle() 67 return EOF_CHAR(tty) | CTRLCHAR_CTRL; in ctrlchar_handle() 69 return SUSP_CHAR(tty) | CTRLCHAR_CTRL; in ctrlchar_handle()
|
D | sclp_vt220.c | 471 sclp_vt220_write(struct tty_struct *tty, const unsigned char *buf, int count) in sclp_vt220_write() argument 510 sclp_vt220_open(struct tty_struct *tty, struct file *filp) in sclp_vt220_open() argument 512 if (tty->count == 1) { in sclp_vt220_open() 513 tty_port_tty_set(&sclp_vt220_port, tty); in sclp_vt220_open() 515 if (!tty->winsize.ws_row && !tty->winsize.ws_col) { in sclp_vt220_open() 516 tty->winsize.ws_row = 24; in sclp_vt220_open() 517 tty->winsize.ws_col = 80; in sclp_vt220_open() 527 sclp_vt220_close(struct tty_struct *tty, struct file *filp) in sclp_vt220_close() argument 529 if (tty->count == 1) in sclp_vt220_close() 540 sclp_vt220_put_char(struct tty_struct *tty, unsigned char ch) in sclp_vt220_put_char() argument [all …]
|
D | fs3270.c | 441 struct tty_struct *tty = get_current_tty(); in fs3270_open() local 442 if (!tty || tty->driver->major != IBM_TTY3270_MAJOR) { in fs3270_open() 443 tty_kref_put(tty); in fs3270_open() 446 minor = tty->index; in fs3270_open() 447 tty_kref_put(tty); in fs3270_open()
|
D | ctrlchar.h | 12 ctrlchar_handle(const unsigned char *buf, int len, struct tty_struct *tty);
|
D | keyboard.c | 459 struct tty_struct *tty; in kbd_ioctl() local 470 tty = tty_port_tty_get(kbd->port); in kbd_ioctl() 472 perm = current->signal->tty == tty || capable(CAP_SYS_TTY_CONFIG); in kbd_ioctl() 473 tty_kref_put(tty); in kbd_ioctl()
|
/linux-4.1.27/drivers/net/slip/ |
D | slip.c | 171 if (sl->tty == NULL) { in sl_alloc_bufs() 260 if (sl->tty == NULL) 407 set_bit(TTY_DO_WRITE_WAKEUP, &sl->tty->flags); 408 actual = sl->tty->ops->write(sl->tty, sl->xbuff, count); 428 if (!sl->tty || sl->magic != SLIP_MAGIC || !netif_running(sl->dev)) { 437 clear_bit(TTY_DO_WRITE_WAKEUP, &sl->tty->flags); 443 actual = sl->tty->ops->write(sl->tty, sl->xhead, sl->xleft); 453 static void slip_write_wakeup(struct tty_struct *tty) argument 455 struct slip *sl = tty->disc_data; 480 (tty_chars_in_buffer(sl->tty) || sl->xleft) ? [all …]
|
D | slip.h | 53 struct tty_struct *tty; /* ptr to TTY structure */ member
|
/linux-4.1.27/sound/soc/codecs/ |
D | cx20442.c | 217 static int v253_open(struct tty_struct *tty) in v253_open() argument 222 if (!tty->ops->write) in v253_open() 226 if (!tty->disc_data) in v253_open() 229 if (tty->ops->write(tty, v253_init, len) != len) { in v253_open() 236 tty->disc_data = NULL; in v253_open() 241 static void v253_close(struct tty_struct *tty) in v253_close() argument 243 struct snd_soc_codec *codec = tty->disc_data; in v253_close() 246 tty->disc_data = NULL; in v253_close() 260 static int v253_hangup(struct tty_struct *tty) in v253_hangup() argument 262 v253_close(tty); in v253_hangup() [all …]
|
/linux-4.1.27/drivers/usb/gadget/function/ |
D | u_serial.c | 417 if (do_tty_wake && port->port.tty) in gs_start_tx() 418 tty_wakeup(port->port.tty); in gs_start_tx() 437 struct tty_struct *tty; in gs_start_rx() local 440 tty = port->port.tty; in gs_start_rx() 441 if (!tty) in gs_start_rx() 486 struct tty_struct *tty; in gs_rx_push() local 493 tty = port->port.tty; in gs_rx_push() 500 if (tty && test_bit(TTY_THROTTLED, &tty->flags)) in gs_rx_push() 566 if (!list_empty(queue) && tty) { in gs_rx_push() 567 if (!test_bit(TTY_THROTTLED, &tty->flags)) { in gs_rx_push() [all …]
|
/linux-4.1.27/drivers/char/ |
D | ttyprintk.c | 97 static int tpk_open(struct tty_struct *tty, struct file *filp) in tpk_open() argument 99 tty->driver_data = &tpk_port; in tpk_open() 101 return tty_port_open(&tpk_port.port, tty, filp); in tpk_open() 107 static void tpk_close(struct tty_struct *tty, struct file *filp) in tpk_close() argument 109 struct ttyprintk_port *tpkp = tty->driver_data; in tpk_close() 116 tty_port_close(&tpkp->port, tty, filp); in tpk_close() 122 static int tpk_write(struct tty_struct *tty, in tpk_write() argument 125 struct ttyprintk_port *tpkp = tty->driver_data; in tpk_write() 140 static int tpk_write_room(struct tty_struct *tty) in tpk_write_room() argument 148 static int tpk_ioctl(struct tty_struct *tty, in tpk_ioctl() argument [all …]
|
/linux-4.1.27/Documentation/ABI/testing/ |
D | sysfs-tty | 1 What: /sys/class/tty/console/active 12 What: /sys/class/tty/tty0/active 21 What: /sys/class/tty/ttyS0/uartclk 32 What: /sys/class/tty/ttyS0/type 36 Shows the current tty type for this port. 41 What: /sys/class/tty/ttyS0/line 45 Shows the current tty line number for this port. 50 What: /sys/class/tty/ttyS0/port 54 Shows the current tty port I/O address for this port. 59 What: /sys/class/tty/ttyS0/irq [all …]
|
/linux-4.1.27/drivers/staging/fwserial/ |
D | fwserial.c | 309 struct tty_struct *tty; in fwtty_update_port_status() local 329 tty = tty_port_tty_get(&port->port); in fwtty_update_port_status() 330 if (tty && !C_CLOCAL(tty)) { in fwtty_update_port_status() 336 tty_kref_put(tty); in fwtty_update_port_status() 340 tty = tty_port_tty_get(&port->port); in fwtty_update_port_status() 341 if (tty && C_CRTSCTS(tty)) { in fwtty_update_port_status() 342 if (tty->hw_stopped) { in fwtty_update_port_status() 344 tty->hw_stopped = 0; in fwtty_update_port_status() 352 tty->hw_stopped = 1; in fwtty_update_port_status() 355 tty_kref_put(tty); in fwtty_update_port_status() [all …]
|
/linux-4.1.27/Documentation/serial/ |
D | tty.txt | 4 Your guide to the ancient and twisted locking policies of the tty layer and 32 discipline. The reference count of the tty_ldisc structure within a tty 44 discipline for this tty will occur until it 51 ldisc code for this tty. Can sleep. 53 hangup() - Called when the tty line is hung up. 54 The line discipline should cease I/O to the tty. 60 by the tty layer for the ldisc. May sleep. 71 current data is in the tty. Called under the 83 ioctl() - Called when an ioctl is handed to the tty layer 87 compat_ioctl() - Called when a 32 bit ioctl is handed to the tty layer [all …]
|
D | 00-INDEX | 10 - GSM 0710 tty multiplexer howto. 15 tty.txt 16 - guide to the locking policies of the tty layer.
|
/linux-4.1.27/sound/soc/omap/ |
D | ams-delta.c | 279 static int cx81801_open(struct tty_struct *tty) in cx81801_open() argument 290 tty->disc_data = cx20442_codec; in cx81801_open() 292 ret = v253_ops.open(tty); in cx81801_open() 295 tty->disc_data = NULL; in cx81801_open() 301 static void cx81801_close(struct tty_struct *tty) in cx81801_close() argument 303 struct snd_soc_codec *codec = tty->disc_data; in cx81801_close() 314 v253_ops.close(tty); in cx81801_close() 331 static int cx81801_hangup(struct tty_struct *tty) in cx81801_hangup() argument 333 cx81801_close(tty); in cx81801_hangup() 338 static void cx81801_receive(struct tty_struct *tty, in cx81801_receive() argument [all …]
|
/linux-4.1.27/drivers/misc/ |
D | pti.c | 421 static int pti_tty_driver_open(struct tty_struct *tty, struct file *filp) in pti_tty_driver_open() argument 430 return tty_port_open(tty->port, tty, filp); in pti_tty_driver_open() 444 static void pti_tty_driver_close(struct tty_struct *tty, struct file *filp) in pti_tty_driver_close() argument 446 tty_port_close(tty->port, tty, filp); in pti_tty_driver_close() 461 static int pti_tty_install(struct tty_driver *driver, struct tty_struct *tty) in pti_tty_install() argument 463 int idx = tty->index; in pti_tty_install() 465 int ret = tty_standard_install(driver, tty); in pti_tty_install() 481 tty->driver_data = pti_tty_data; in pti_tty_install() 493 static void pti_tty_cleanup(struct tty_struct *tty) in pti_tty_cleanup() argument 495 struct pti_tty *pti_tty_data = tty->driver_data; in pti_tty_cleanup() [all …]
|
/linux-4.1.27/include/net/irda/ |
D | ircomm_tty.h | 103 void ircomm_tty_start(struct tty_struct *tty); 106 int ircomm_tty_tiocmget(struct tty_struct *tty); 107 int ircomm_tty_tiocmset(struct tty_struct *tty, unsigned int set, 109 int ircomm_tty_ioctl(struct tty_struct *tty, unsigned int cmd, 111 void ircomm_tty_set_termios(struct tty_struct *tty,
|
/linux-4.1.27/arch/parisc/kernel/ |
D | pdc_cons.c | 98 static int pdc_console_tty_open(struct tty_struct *tty, struct file *filp) in pdc_console_tty_open() argument 100 tty_port_tty_set(&tty_port, tty); in pdc_console_tty_open() 106 static void pdc_console_tty_close(struct tty_struct *tty, struct file *filp) in pdc_console_tty_close() argument 108 if (tty->count == 1) { in pdc_console_tty_close() 114 static int pdc_console_tty_write(struct tty_struct *tty, const unsigned char *buf, int count) in pdc_console_tty_write() argument 120 static int pdc_console_tty_write_room(struct tty_struct *tty) in pdc_console_tty_write_room() argument 125 static int pdc_console_tty_chars_in_buffer(struct tty_struct *tty) in pdc_console_tty_chars_in_buffer() argument
|
/linux-4.1.27/drivers/isdn/i4l/ |
D | isdn_tty.c | 299 struct tty_struct *tty = info->port.tty; in isdn_tty_tint() local 303 tty_wakeup(tty); in isdn_tty_tint() 704 isdn_tty_flush_buffer(info->port.tty); in isdn_tty_modem_hup() 1010 if (!port->tty) in isdn_tty_change_speed() 1012 cflag = port->tty->termios.c_cflag; in isdn_tty_change_speed() 1018 port->tty->termios.c_cflag &= ~CBAUDEX; in isdn_tty_change_speed() 1066 if (info->port.tty) in isdn_tty_startup() 1067 clear_bit(TTY_IO_ERROR, &info->port.tty->flags); in isdn_tty_startup() 1093 if (!info->port.tty || (info->port.tty->termios.c_cflag & HUPCL)) { in isdn_tty_shutdown() 1103 if (info->port.tty) in isdn_tty_shutdown() [all …]
|
/linux-4.1.27/drivers/staging/comedi/drivers/ |
D | serial2002.c | 50 struct file *tty; member 413 serial2002_tty_setspeed(devpriv->tty, devpriv->speed); in serial2002_setup_subdevs() 414 serial2002_poll_channel(devpriv->tty, 31); in serial2002_setup_subdevs() 416 struct serial_data data = serial2002_read(devpriv->tty, 1000); in serial2002_setup_subdevs() 542 if (devpriv->tty) { in serial2002_setup_subdevs() 543 filp_close(devpriv->tty, NULL); in serial2002_setup_subdevs() 544 devpriv->tty = NULL; in serial2002_setup_subdevs() 558 devpriv->tty = filp_open(port, O_RDWR, 0); in serial2002_open() 559 if (IS_ERR(devpriv->tty)) { in serial2002_open() 560 result = (int)PTR_ERR(devpriv->tty); in serial2002_open() [all …]
|
/linux-4.1.27/Documentation/networking/caif/ |
D | README | 44 /sys/kernel/debug/caif_serial/<tty-name>/ 52 * tty_status: Prints the bit-mask tty status information 53 - 0x01 - tty->warned is on. 54 - 0x02 - tty->low_latency is on. 55 - 0x04 - tty->packed is on. 56 - 0x08 - tty->flow_stopped is on. 57 - 0x10 - tty->hw_stopped is on. 58 - 0x20 - tty->stopped is on. 62 $od --format=x1 /sys/kernel/debug/caif_serial/<tty>/last_rx_msg. 101 The host is not able to send the message from UART, the tty has not been [all …]
|
/linux-4.1.27/drivers/usb/class/ |
D | cdc-acm.c | 63 static void acm_tty_set_termios(struct tty_struct *tty, 494 static int acm_tty_install(struct tty_driver *driver, struct tty_struct *tty) in acm_tty_install() argument 499 dev_dbg(tty->dev, "%s\n", __func__); in acm_tty_install() 501 acm = acm_get_by_index(tty->index); in acm_tty_install() 505 retval = tty_standard_install(driver, tty); in acm_tty_install() 509 tty->driver_data = acm; in acm_tty_install() 518 static int acm_tty_open(struct tty_struct *tty, struct file *filp) in acm_tty_open() argument 520 struct acm *acm = tty->driver_data; in acm_tty_open() 522 dev_dbg(tty->dev, "%s\n", __func__); in acm_tty_open() 524 return tty_port_open(&acm->port, tty, filp); in acm_tty_open() [all …]
|
/linux-4.1.27/drivers/staging/dgap/ |
D | dgap.c | 3067 static int dgap_block_til_ready(struct tty_struct *tty, struct file *file, in dgap_block_til_ready() argument 3076 if (!tty || tty->magic != TTY_MAGIC || !file || !ch || in dgap_block_til_ready() 3080 un = tty->driver_data; in dgap_block_til_ready() 3128 if (tty->flags & (1 << TTY_IO_ERROR)) in dgap_block_til_ready() 3198 static void dgap_tty_flush_buffer(struct tty_struct *tty) in dgap_tty_flush_buffer() argument 3207 if (!tty || tty->magic != TTY_MAGIC) in dgap_tty_flush_buffer() 3210 un = tty->driver_data; in dgap_tty_flush_buffer() 3240 if (waitqueue_active(&tty->write_wait)) in dgap_tty_flush_buffer() 3241 wake_up_interruptible(&tty->write_wait); in dgap_tty_flush_buffer() 3242 tty_wakeup(tty); in dgap_tty_flush_buffer() [all …]
|
/linux-4.1.27/arch/m68k/emu/ |
D | nfcon.c | 64 static int nfcon_tty_open(struct tty_struct *tty, struct file *filp) in nfcon_tty_open() argument 69 static void nfcon_tty_close(struct tty_struct *tty, struct file *filp) in nfcon_tty_close() argument 73 static int nfcon_tty_write(struct tty_struct *tty, const unsigned char *buf, in nfcon_tty_write() argument 80 static int nfcon_tty_put_char(struct tty_struct *tty, unsigned char ch) in nfcon_tty_put_char() argument 88 static int nfcon_tty_write_room(struct tty_struct *tty) in nfcon_tty_write_room() argument
|
/linux-4.1.27/drivers/tty/vt/ |
D | vt.c | 151 static void con_flush_chars(struct tty_struct *tty); 839 static int vc_do_resize(struct tty_struct *tty, struct vc_data *vc, in vc_do_resize() argument 935 if (tty) { in vc_do_resize() 943 tty_do_resize(tty, &ws); in vc_do_resize() 966 return vc_do_resize(vc->port.tty, vc, cols, rows); in vc_resize() 981 static int vt_resize(struct tty_struct *tty, struct winsize *ws) in vt_resize() argument 983 struct vc_data *vc = tty->driver_data; in vt_resize() 987 ret = vc_do_resize(tty, vc, ws->ws_col, ws->ws_row); in vt_resize() 1433 static void cursor_report(struct vc_data *vc, struct tty_struct *tty) in cursor_report() argument 1438 respond_string(buf, tty->port); in cursor_report() [all …]
|
D | selection.c | 159 int set_selection(const struct tiocl_selection __user *sel, struct tty_struct *tty) in set_selection() argument 194 mouse_report(tty, sel_mode & TIOCL_SELBUTTONMASK, xs, ys); in set_selection() 337 int paste_selection(struct tty_struct *tty) in paste_selection() argument 339 struct vc_data *vc = tty->driver_data; in paste_selection() 349 ld = tty_ldisc_ref_wait(tty); in paste_selection() 355 if (test_bit(TTY_THROTTLED, &tty->flags)) { in paste_selection()
|
D | vt_ioctl.c | 334 int vt_ioctl(struct tty_struct *tty, in vt_ioctl() argument 337 struct vc_data *vc = tty->driver_data; in vt_ioctl() 360 if (current->signal->tty == tty || capable(CAP_SYS_TTY_CONFIG)) in vt_ioctl() 365 ret = tioclinux(tty, arg); in vt_ioctl() 515 tty_ldisc_flush(tty); in vt_ioctl() 1070 struct tty_struct *tty; in vc_SAK() local 1076 tty = vc->port.tty; in vc_SAK() 1081 if (tty) in vc_SAK() 1082 __do_SAK(tty); in vc_SAK() 1196 long vt_compat_ioctl(struct tty_struct *tty, in vt_compat_ioctl() argument [all …]
|
D | keyboard.c | 492 struct tty_struct *tty = vc->port.tty; in fn_hold() local 494 if (rep || !tty) in fn_hold() 502 if (tty->stopped) in fn_hold() 503 start_tty(tty); in fn_hold() 505 stop_tty(tty); in fn_hold() 1231 struct tty_struct *tty; in kbd_keycode() local 1236 tty = vc->port.tty; in kbd_keycode() 1238 if (tty && (!tty->driver_data)) { in kbd_keycode() 1240 tty->driver_data = vc; in kbd_keycode() 1293 (tty && !L_ECHO(tty) && tty_chars_in_buffer(tty)))) { in kbd_keycode()
|
/linux-4.1.27/drivers/net/usb/ |
D | hso.c | 315 static int hso_serial_tiocmset(struct tty_struct *tty, 1109 static void _hso_serial_set_termios(struct tty_struct *tty, in _hso_serial_set_termios() argument 1112 struct hso_serial *serial = tty->driver_data; in _hso_serial_set_termios() 1124 tty->termios.c_iflag &= ~IXON; /* disable enable XON/XOFF flow control */ in _hso_serial_set_termios() 1126 tty->termios.c_cflag &= in _hso_serial_set_termios() 1132 tty->termios.c_cflag |= CS8; /* character size 8 bits */ in _hso_serial_set_termios() 1135 tty_encode_baud_rate(tty, 115200, 115200); in _hso_serial_set_termios() 1252 static void hso_unthrottle(struct tty_struct *tty) in hso_unthrottle() argument 1254 struct hso_serial *serial = tty->driver_data; in hso_unthrottle() 1260 static int hso_serial_open(struct tty_struct *tty, struct file *filp) in hso_serial_open() argument [all …]
|
/linux-4.1.27/Documentation/pti/ |
D | pti_intel_mid.txt | 19 pti.c and route any data stream from one /dev/tty node 20 to another /dev/tty node via kernel-space. This provides 38 can hook up n_tracerouter and n_tracesink to any tty on 45 on a tty port other than the default n_tty. 59 // in OS. Look at /proc/tty/ldiscs to get the right numbers from 90 // little cleaner shutdown on tty stack.
|
/linux-4.1.27/Documentation/powerpc/ |
D | hvcs.txt | 34 "hvcs". The IBM hvcs provides a tty driver interface to allow Linux user 58 The hvcs driver registers itself as a tty driver. The tty layer 60 requested by the registering driver. The hvcs driver asks the tty layer 106 tty devices as an example): 116 to the number of tty interfaces the registering driver requests. 140 The tty layer creates sysfs entries which contain the major and minor 150 | `-- tty 151 | |-- *other tty devices* 162 | |-- *other tty devices* 169 Pow5:/sys/class/tty/hvcs0/ # cat dev [all …]
|
/linux-4.1.27/arch/um/os-Linux/ |
D | Makefile | 7 registers.o sigio.o signal.o start_up.o time.o tty.o \ 14 tty.o umid.o util.o
|
/linux-4.1.27/Documentation/s390/ |
D | config3270.sh | 16 P=/proc/tty/driver/tty3270 20 TTY=$SUBD/tty
|
D | 3270.txt | 207 echo scrolltime=60 > /proc/tty/driver/tty3270 232 echo pf7=^z > /proc/tty/driver/tty3270 235 driver appends a newline character and sends it to the tty driver; 247 echo -e pa3=\\033k > /proc/tty/driver/tty3270 256 echo recallsize=100 > /proc/tty/driver/tty3270 260 echo pf24="mkdir foobar; cd foobar" > /proc/tty/driver/tty3270 264 echo -n pf24="mkdir foo; cd foo" > /proc/tty/driver/tty3270
|
/linux-4.1.27/kernel/ |
D | acct.c | 416 struct tty_struct *tty; in fill_ac() local 454 tty = current->signal->tty; /* Safe as we hold the siglock */ in fill_ac() 455 ac->ac_tty = tty ? old_encode_dev(tty_devnum(tty)) : 0; in fill_ac()
|
D | audit.c | 1865 char *tty; in audit_log_task_info() local 1874 if (tsk->signal && tsk->signal->tty && tsk->signal->tty->name) in audit_log_task_info() 1875 tty = tsk->signal->tty->name; in audit_log_task_info() 1877 tty = "(none)"; in audit_log_task_info() 1895 tty, audit_get_sessionid(tsk)); in audit_log_task_info()
|
/linux-4.1.27/Documentation/arm/SA1100/ |
D | serial_UART | 11 > tty device layer handles this just fine, so you don't have to worry about 44 - don't forget to add 'ttySA0', 'console', or the appropriate tty name
|
/linux-4.1.27/arch/cris/arch-v10/kernel/ |
D | debugport.c | 406 static int dummy_open(struct tty_struct *tty, struct file * filp) in dummy_open() argument 411 static void dummy_close(struct tty_struct *tty, struct file * filp) in dummy_close() argument 415 static int dummy_write(struct tty_struct * tty, in dummy_write() argument 421 static int dummy_write_room(struct tty_struct *tty) in dummy_write_room() argument
|
/linux-4.1.27/Documentation/isdn/ |
D | README | 79 128 tty-devices (64 cuix and 64 ttyIx) with integrated modem-emulator: 209 Bit 0: 0 = Use delayed tty-send-algorithm 210 1 = Direct tty-send. 288 calls and are NOT assigned to a specific tty or network interface. 290 interface and then for an opened tty which: 300 Only when a matching interface or tty is found is the call accepted 317 a network interface, the first tty gets a "RING" and so on. 337 43 for the ISDN-tty's. 338 44 for the ISDN-callout-tty's. 352 an AT&W0 is performed on any ISDN-tty. If the file already exists, [all …]
|
D | README.fax | 5 When enabled during kernel configuration, the tty emulator
|
/linux-4.1.27/drivers/isdn/ |
D | Kconfig | 28 connections and as dialin/out device. The isdn-tty's have a built 31 a daemon running. A reduced T.70 protocol is supported with tty's
|
/linux-4.1.27/Documentation/zh_CN/ |
D | magic-number.txt | 23 …(a)一个结构是否已经被攻击,或者(b)你已经给一个例行程序通过了一个错误的结构。后一种情况特别地有用---特别是当你通过一个空指针指向结构体的时候。tty源码,例如,经常通过特定驱动使用这种方法… 83 TTY_MAGIC 0x5401 tty_struct include/linux/tty.h 91 RFCOMM_TTY_MAGIC 0x6d02 net/bluetooth/rfcomm/tty.c
|
/linux-4.1.27/arch/powerpc/include/asm/ |
D | hvsi.h | 73 struct tty_struct *tty; /* tty structure */ member
|
/linux-4.1.27/drivers/tty/serial/jsm/ |
D | jsm_tty.c | 164 termios = &port->state->port.tty->termios; in jsm_tty_send_xchar() 251 termios = &port->state->port.tty->termios; in jsm_tty_open() 285 ts = &port->state->port.tty->termios; in jsm_tty_close() 542 tp = port->tty; in jsm_input()
|
/linux-4.1.27/Documentation/DocBook/ |
D | .device-drivers.xml.cmd | 2 …p.c sound/core/pcm_native.c sound/core/memalloc.c drivers/tty/serial/serial_core.c drivers/tty/ser…
|
/linux-4.1.27/Documentation/ |
D | magic-number.txt | 10 passing pointers to structures via a void * pointer. The tty code, 83 TTY_MAGIC 0x5401 tty_struct include/linux/tty.h 91 RFCOMM_TTY_MAGIC 0x6d02 net/bluetooth/rfcomm/tty.c
|
/linux-4.1.27/arch/um/ |
D | Kconfig.char | 49 bool "tty channel support" 53 (/dev/tty*) and the slave side of pseudo-terminals (/dev/ttyp* and
|