/linux-2.4.37.9/drivers/char/ |
D | n_tty.c | 94 static inline void put_tty_queue_nolock(unsigned char c, struct tty_struct *tty) in put_tty_queue_nolock() argument 96 if (tty->read_cnt < N_TTY_BUF_SIZE) { in put_tty_queue_nolock() 97 tty->read_buf[tty->read_head] = c; in put_tty_queue_nolock() 98 tty->read_head = (tty->read_head + 1) & (N_TTY_BUF_SIZE-1); in put_tty_queue_nolock() 99 tty->read_cnt++; in put_tty_queue_nolock() 103 static inline void put_tty_queue(unsigned char c, struct tty_struct *tty) in put_tty_queue() argument 110 spin_lock_irqsave(&tty->read_lock, flags); in put_tty_queue() 111 put_tty_queue_nolock(c, tty); in put_tty_queue() 112 spin_unlock_irqrestore(&tty->read_lock, flags); in put_tty_queue() 127 static void check_unthrottle(struct tty_struct * tty) in check_unthrottle() argument [all …]
|
D | tty_ioctl.c | 39 void tty_wait_until_sent(struct tty_struct * tty, long timeout) in tty_wait_until_sent() argument 46 printk(KERN_DEBUG "%s wait until sent...\n", tty_name(tty, buf)); in tty_wait_until_sent() 48 if (!tty->driver.chars_in_buffer) in tty_wait_until_sent() 50 add_wait_queue(&tty->write_wait, &wait); in tty_wait_until_sent() 55 printk(KERN_DEBUG "waiting %s...(%d)\n", tty_name(tty, buf), in tty_wait_until_sent() 56 tty->driver.chars_in_buffer(tty)); in tty_wait_until_sent() 61 if (!tty->driver.chars_in_buffer(tty)) in tty_wait_until_sent() 65 if (tty->driver.wait_until_sent) in tty_wait_until_sent() 66 tty->driver.wait_until_sent(tty, timeout); in tty_wait_until_sent() 69 remove_wait_queue(&tty->write_wait, &wait); in tty_wait_until_sent() [all …]
|
D | tty_io.c | 129 static void initialize_tty_struct(struct tty_struct *tty); 177 struct tty_struct *tty; in alloc_tty_struct() local 179 tty = kmalloc(sizeof(struct tty_struct), GFP_KERNEL); in alloc_tty_struct() 180 if (tty) in alloc_tty_struct() 181 memset(tty, 0, sizeof(struct tty_struct)); in alloc_tty_struct() 182 return tty; in alloc_tty_struct() 185 static inline void free_tty_struct(struct tty_struct *tty) in free_tty_struct() argument 187 kfree(tty); in free_tty_struct() 194 _tty_make_name(struct tty_struct *tty, const char *name, char *buf) in _tty_make_name() argument 196 int idx = (tty)?MINOR(tty->device) - tty->driver.minor_start:0; in _tty_make_name() [all …]
|
D | pty.c | 71 static void pty_close(struct tty_struct * tty, struct file * filp) in pty_close() argument 73 if (!tty) in pty_close() 75 if (tty->driver.subtype == PTY_TYPE_MASTER) { in pty_close() 76 if (tty->count > 1) in pty_close() 77 printk("master pty_close: count = %d!!\n", tty->count); in pty_close() 79 if (tty->count > 2) in pty_close() 82 wake_up_interruptible(&tty->read_wait); in pty_close() 83 wake_up_interruptible(&tty->write_wait); in pty_close() 84 tty->packet = 0; in pty_close() 85 if (!tty->link) in pty_close() [all …]
|
D | dz.c | 119 static void dz_stop(struct tty_struct *tty) in dz_stop() argument 124 if (tty == 0) in dz_stop() 127 info = (struct dz_serial *) tty->driver_data; in dz_stop() 136 static void dz_start(struct tty_struct *tty) in dz_start() argument 138 struct dz_serial *info = (struct dz_serial *) tty->driver_data; in dz_start() 195 struct tty_struct *tty = 0; in receive_chars() local 222 tty = info->tty; /* now tty points to the proper dev */ in receive_chars() 225 if (!tty) in receive_chars() 227 if (tty->flip.count >= TTY_FLIPBUF_SIZE) in receive_chars() 230 *tty->flip.char_buf_ptr = ch; in receive_chars() [all …]
|
D | n_hdlc.c | 160 struct tty_struct *tty; /* ptr to TTY structure */ member 205 static unsigned int n_hdlc_tty_poll (struct tty_struct *tty, struct file *filp, 209 static int n_hdlc_tty_room (struct tty_struct *tty); 210 static void n_hdlc_tty_receive (struct tty_struct *tty, 212 static void n_hdlc_tty_wakeup (struct tty_struct *tty); 216 #define tty2n_hdlc(tty) ((struct n_hdlc *) ((tty)->disc_data)) argument 217 #define n_hdlc2tty(n_hdlc) ((n_hdlc)->tty) 229 struct tty_struct *tty = n_hdlc2tty (n_hdlc); in n_hdlc_release() local 236 wake_up_interruptible (&tty->read_wait); in n_hdlc_release() 237 wake_up_interruptible (&tty->write_wait); in n_hdlc_release() [all …]
|
D | generic_serial.c | 62 void gs_put_char(struct tty_struct * tty, unsigned char ch) in gs_put_char() argument 69 if (!tty) return; in gs_put_char() 71 port = tty->driver_data; in gs_put_char() 104 int gs_write(struct tty_struct * tty, int from_user, in gs_write() argument 113 if (!tty) return 0; in gs_write() 115 port = tty->driver; in gs_write() 167 !tty->stopped && in gs_write() 168 !tty->hw_stopped && in gs_write() 184 int gs_write(struct tty_struct * tty, int from_user, in gs_write() argument 210 if (!tty) return -EIO; in gs_write() [all …]
|
D | pdc_console.c | 113 pdc_stop(struct tty_struct *tty) in pdc_stop() argument 118 pdc_start(struct tty_struct *tty) in pdc_start() argument 146 struct tty_struct *tty = info->tty; in receive_chars() local 158 if (tty->flip.count >= TTY_FLIPBUF_SIZE) in receive_chars() 161 *tty->flip.char_buf_ptr = ch; in receive_chars() 162 *tty->flip.flag_buf_ptr = 0; in receive_chars() 164 tty->flip.flag_buf_ptr++; in receive_chars() 165 tty->flip.char_buf_ptr++; in receive_chars() 166 tty->flip.count++; in receive_chars() 169 tty_flip_buffer_push(tty); in receive_chars() [all …]
|
D | sb1250_duart.c | 93 struct tty_struct *tty; member 175 struct tty_struct *tty = us->tty; in transmit_char_pio() local 182 if (us->outp_count <= 0 || tty->stopped || tty->hw_stopped) { in transmit_char_pio() 198 if (!us->outp_count || tty->stopped || in transmit_char_pio() 199 tty->hw_stopped || blocked) { in transmit_char_pio() 211 if ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && in transmit_char_pio() 212 tty->ldisc.write_wakeup) in transmit_char_pio() 213 tty->ldisc.write_wakeup(tty); in transmit_char_pio() 214 wake_up_interruptible(&tty->write_wait); in transmit_char_pio() 227 struct tty_struct *tty = us->tty; in duart_int() local [all …]
|
D | serial_txx927.c | 145 static void rs_wait_until_sent(struct tty_struct *tty, int timeout); 158 kdevname(tty->device), (info->flags), serial_refcount,info->count,tty->count,s) 259 static void rs_stop(struct tty_struct *tty) in rs_stop() argument 261 struct async_struct *info = (struct async_struct *)tty->driver_data; in rs_stop() 264 if (serial_paranoia_check(info, tty->device, "rs_stop")) in rs_stop() 275 static void rs_start(struct tty_struct *tty) in rs_start() argument 277 struct async_struct *info = (struct async_struct *)tty->driver_data; in rs_start() 280 if (serial_paranoia_check(info, tty->device, "rs_start")) in rs_start() 329 struct tty_struct *tty = info->tty; in receive_chars() local 337 if (tty->flip.count >= TTY_FLIPBUF_SIZE) in receive_chars() [all …]
|
D | riscom8.c | 376 struct tty_struct *tty; in rc_receive_exc() local 383 tty = port->tty; in rc_receive_exc() 384 if (tty->flip.count >= TTY_FLIPBUF_SIZE) { in rc_receive_exc() 417 *tty->flip.flag_buf_ptr++ = TTY_BREAK; in rc_receive_exc() 419 do_SAK(tty); in rc_receive_exc() 422 *tty->flip.flag_buf_ptr++ = TTY_PARITY; in rc_receive_exc() 425 *tty->flip.flag_buf_ptr++ = TTY_FRAME; in rc_receive_exc() 428 *tty->flip.flag_buf_ptr++ = TTY_OVERRUN; in rc_receive_exc() 431 *tty->flip.flag_buf_ptr++ = 0; in rc_receive_exc() 433 *tty->flip.char_buf_ptr++ = ch; in rc_receive_exc() [all …]
|
D | amiserial.c | 53 kdevname(tty->device), (info->flags), serial_refcount,info->count,tty->count,s) 124 static void rs_wait_until_sent(struct tty_struct *tty, int timeout); 208 static void rs_stop(struct tty_struct *tty) in rs_stop() argument 210 struct async_struct *info = (struct async_struct *)tty->driver_data; in rs_stop() 213 if (serial_paranoia_check(info, tty->device, "rs_stop")) in rs_stop() 228 static void rs_start(struct tty_struct *tty) in rs_start() argument 230 struct async_struct *info = (struct async_struct *)tty->driver_data; in rs_start() 233 if (serial_paranoia_check(info, tty->device, "rs_start")) in rs_start() 287 struct tty_struct *tty = info->tty; in receive_chars() local 305 if (tty->flip.count >= TTY_FLIPBUF_SIZE) in receive_chars() [all …]
|
D | sx.h | 132 #define O_OTHER(tty) \ argument 133 ((O_OLCUC(tty)) ||\ 134 (O_ONLCR(tty)) ||\ 135 (O_OCRNL(tty)) ||\ 136 (O_ONOCR(tty)) ||\ 137 (O_ONLRET(tty)) ||\ 138 (O_OFILL(tty)) ||\ 139 (O_OFDEL(tty)) ||\ 140 (O_NLDLY(tty)) ||\ 141 (O_CRDLY(tty)) ||\ [all …]
|
D | mux.c | 93 struct tty_struct *tty = info->tty; in mux_read_fifo() local 105 if (tty->flip.count >= TTY_FLIPBUF_SIZE) in mux_read_fifo() 108 *tty->flip.char_buf_ptr = data & 0xffu; in mux_read_fifo() 109 *tty->flip.flag_buf_ptr = 0; in mux_read_fifo() 118 *tty->flip.flag_buf_ptr = TTY_BREAK; in mux_read_fifo() 131 tty->flip.flag_buf_ptr++; in mux_read_fifo() 132 tty->flip.char_buf_ptr++; in mux_read_fifo() 133 tty->flip.count++; in mux_read_fifo() 136 tty_flip_buffer_push(tty); in mux_read_fifo() 151 if(info && info->tty && mux_drv_refcount) { in mux_drv_poll() [all …]
|
D | specialix.c | 158 #define SX_CRTSCTS(tty) C_CRTSCTS(tty) argument 641 struct tty_struct *tty; in sx_receive_exc() local 648 tty = port->tty; in sx_receive_exc() 649 if (tty->flip.count >= TTY_FLIPBUF_SIZE) { in sx_receive_exc() 682 *tty->flip.flag_buf_ptr++ = TTY_BREAK; in sx_receive_exc() 684 do_SAK(tty); in sx_receive_exc() 687 *tty->flip.flag_buf_ptr++ = TTY_PARITY; in sx_receive_exc() 690 *tty->flip.flag_buf_ptr++ = TTY_FRAME; in sx_receive_exc() 693 *tty->flip.flag_buf_ptr++ = TTY_OVERRUN; in sx_receive_exc() 696 *tty->flip.flag_buf_ptr++ = 0; in sx_receive_exc() [all …]
|
/linux-2.4.37.9/include/linux/ |
D | tty.h | 165 #define INTR_CHAR(tty) ((tty)->termios->c_cc[VINTR]) argument 166 #define QUIT_CHAR(tty) ((tty)->termios->c_cc[VQUIT]) argument 167 #define ERASE_CHAR(tty) ((tty)->termios->c_cc[VERASE]) argument 168 #define KILL_CHAR(tty) ((tty)->termios->c_cc[VKILL]) argument 169 #define EOF_CHAR(tty) ((tty)->termios->c_cc[VEOF]) argument 170 #define TIME_CHAR(tty) ((tty)->termios->c_cc[VTIME]) argument 171 #define MIN_CHAR(tty) ((tty)->termios->c_cc[VMIN]) argument 172 #define SWTC_CHAR(tty) ((tty)->termios->c_cc[VSWTC]) argument 173 #define START_CHAR(tty) ((tty)->termios->c_cc[VSTART]) argument 174 #define STOP_CHAR(tty) ((tty)->termios->c_cc[VSTOP]) argument [all …]
|
D | tty_driver.h | 148 int (*open)(struct tty_struct * tty, struct file * filp); 149 void (*close)(struct tty_struct * tty, struct file * filp); 150 int (*write)(struct tty_struct * tty, int from_user, 152 void (*put_char)(struct tty_struct *tty, unsigned char ch); 153 void (*flush_chars)(struct tty_struct *tty); 154 int (*write_room)(struct tty_struct *tty); 155 int (*chars_in_buffer)(struct tty_struct *tty); 156 int (*ioctl)(struct tty_struct *tty, struct file * file, 158 void (*set_termios)(struct tty_struct *tty, struct termios * old); 159 void (*throttle)(struct tty_struct * tty); [all …]
|
/linux-2.4.37.9/drivers/net/wan/8253x/ |
D | 8253xsyn.c | 39 struct tty_struct *tty = (struct tty_struct *) private_; in sab8253x_flush_to_ldiscS() local 45 if(tty) in sab8253x_flush_to_ldiscS() 47 port = (struct sab_port *)tty->driver_data; in sab8253x_flush_to_ldiscS() 58 if (test_bit(TTY_DONT_FLIP, &tty->flags)) in sab8253x_flush_to_ldiscS() 60 queue_task(&tty->flip.tqueue, &tq_timer); in sab8253x_flush_to_ldiscS() 70 (*tty->ldisc.receive_buf)(tty, cp, 0, count); in sab8253x_flush_to_ldiscS() 76 void sab8253x_flush_charsS(struct tty_struct *tty) in sab8253x_flush_charsS() argument 78 struct sab_port *port = (struct sab_port *)tty->driver_data; in sab8253x_flush_charsS() 80 if (sab8253x_serial_paranoia_check(port, tty->device, "sab8253x_flush_chars")) in sab8253x_flush_charsS() 85 if ((Sab8253xCountTransmit(port) <= 0) || tty->stopped || tty->hw_stopped) in sab8253x_flush_charsS() [all …]
|
/linux-2.4.37.9/drivers/s390/char/ |
D | hwc_tty.c | 33 struct tty_struct *tty; member 58 hwc_tty_open (struct tty_struct *tty, in hwc_tty_open() argument 62 if (MINOR (tty->device) - tty->driver.minor_start) in hwc_tty_open() 65 tty->driver_data = &hwc_tty_data; in hwc_tty_open() 67 hwc_tty_data.tty = tty; in hwc_tty_open() 68 tty->low_latency = 0; in hwc_tty_open() 78 hwc_tty_close (struct tty_struct *tty, in hwc_tty_close() argument 81 if (MINOR (tty->device) != tty->driver.minor_start) { in hwc_tty_close() 86 if (tty->count > 1) in hwc_tty_close() 89 hwc_tty_data.tty = NULL; in hwc_tty_close() [all …]
|
/linux-2.4.37.9/drivers/bluetooth/ |
D | hci_ldisc.c | 129 struct tty_struct *tty = hu->tty; in hci_uart_tx_wakeup() local 146 set_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in hci_uart_tx_wakeup() 147 len = tty->driver.write(tty, 0, skb->data, skb->len); in hci_uart_tx_wakeup() 183 struct tty_struct *tty = hu->tty; in hci_uart_flush() local 185 BT_DBG("hdev %p tty %p", hdev, tty); in hci_uart_flush() 191 tty_ldisc_flush(tty); in hci_uart_flush() 193 if (tty->driver.flush_buffer) in hci_uart_flush() 194 tty->driver.flush_buffer(tty); in hci_uart_flush() 218 struct tty_struct *tty; in hci_uart_send_frame() local 230 tty = hu->tty; in hci_uart_send_frame() [all …]
|
/linux-2.4.37.9/arch/ia64/drivers/ |
D | simserial.c | 123 static void rs_stop(struct tty_struct *tty) in rs_stop() argument 127 tty->stopped, tty->hw_stopped, tty->flow_stopped); in rs_stop() 132 static void rs_start(struct tty_struct *tty) in rs_start() argument 136 tty->stopped, tty->hw_stopped, tty->flow_stopped); in rs_start() 140 static void receive_chars(struct tty_struct *tty, struct pt_regs *regs) in receive_chars() argument 161 if (tty->flip.count >= TTY_FLIPBUF_SIZE) break; in receive_chars() 163 *tty->flip.char_buf_ptr = ch; in receive_chars() 165 *tty->flip.flag_buf_ptr = 0; in receive_chars() 167 tty->flip.flag_buf_ptr++; in receive_chars() 168 tty->flip.char_buf_ptr++; in receive_chars() [all …]
|
/linux-2.4.37.9/drivers/s390/net/ |
D | ctctty.c | 84 struct tty_struct *tty; /* Pointer to corresponding tty */ member 139 struct tty_struct *tty; in ctc_tty_try_read() local 141 if ((tty = info->tty)) { in ctc_tty_try_read() 143 c = TTY_FLIPBUF_SIZE - tty->flip.count; in ctc_tty_try_read() 146 memcpy(tty->flip.char_buf_ptr, skb->data, len); in ctc_tty_try_read() 147 memset(tty->flip.flag_buf_ptr, 0, len); in ctc_tty_try_read() 148 tty->flip.count += len; in ctc_tty_try_read() 149 tty->flip.char_buf_ptr += len; in ctc_tty_try_read() 150 tty->flip.flag_buf_ptr += len; in ctc_tty_try_read() 151 tty_flip_buffer_push(tty); in ctc_tty_try_read() [all …]
|
/linux-2.4.37.9/net/irda/ircomm/ |
D | ircomm_tty.c | 52 static int ircomm_tty_open(struct tty_struct *tty, struct file *filp); 53 static void ircomm_tty_close(struct tty_struct * tty, struct file *filp); 54 static int ircomm_tty_write(struct tty_struct * tty, int from_user, 56 static int ircomm_tty_write_room(struct tty_struct *tty); 57 static void ircomm_tty_throttle(struct tty_struct *tty); 58 static void ircomm_tty_unthrottle(struct tty_struct *tty); 59 static int ircomm_tty_chars_in_buffer(struct tty_struct *tty); 60 static void ircomm_tty_flush_buffer(struct tty_struct *tty); 61 static void ircomm_tty_send_xchar(struct tty_struct *tty, char ch); 62 static void ircomm_tty_wait_until_sent(struct tty_struct *tty, int timeout); [all …]
|
/linux-2.4.37.9/drivers/char/rio/ |
D | rio_linux.h | 54 #define O_OTHER(tty) \ argument 55 ((O_OLCUC(tty)) ||\ 56 (O_ONLCR(tty)) ||\ 57 (O_OCRNL(tty)) ||\ 58 (O_ONOCR(tty)) ||\ 59 (O_ONLRET(tty)) ||\ 60 (O_OFILL(tty)) ||\ 61 (O_OFDEL(tty)) ||\ 62 (O_NLDLY(tty)) ||\ 63 (O_CRDLY(tty)) ||\ [all …]
|
/linux-2.4.37.9/drivers/char/joystick/ |
D | serport.c | 43 struct tty_struct *tty; member 55 return -(serport->tty->driver.write(serport->tty, 0, &data, 1) != 1); in serport_serio_write() 75 static int serport_ldisc_open(struct tty_struct *tty) in serport_ldisc_open() argument 88 serport->tty = tty; in serport_ldisc_open() 89 tty->disc_data = serport; in serport_ldisc_open() 106 static void serport_ldisc_close(struct tty_struct *tty) in serport_ldisc_close() argument 108 struct serport *serport = (struct serport*) tty->disc_data; in serport_ldisc_close() 119 static void serport_ldisc_receive(struct tty_struct *tty, const unsigned char *cp, char *fp, int co… in serport_ldisc_receive() argument 121 struct serport *serport = (struct serport*) tty->disc_data; in serport_ldisc_receive() 134 static int serport_ldisc_room(struct tty_struct *tty) in serport_ldisc_room() argument [all …]
|