Searched refs:tty (Results 1 - 25 of 471) sorted by relevance

1234567891011>>

/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/char/
H A Dn_tty.c40 #include <linux/tty.h>
94 static inline void put_tty_queue_nolock(unsigned char c, struct tty_struct *tty) argument
96 if (tty->read_cnt < N_TTY_BUF_SIZE) {
97 tty->read_buf[tty->read_head] = c;
98 tty->read_head = (tty->read_head + 1) & (N_TTY_BUF_SIZE-1);
99 tty->read_cnt++;
103 static inline void put_tty_queue(unsigned char c, struct tty_struct *tty) argument
110 spin_lock_irqsave(&tty
120 check_unthrottle(struct tty_struct * tty) argument
133 reset_buffer_flags(struct tty_struct *tty) argument
148 n_tty_flush_buffer(struct tty_struct * tty) argument
165 n_tty_chars_in_buffer(struct tty_struct *tty) argument
186 opost(unsigned char c, struct tty_struct *tty) argument
249 opost_block(struct tty_struct * tty, const unsigned char * inbuf, unsigned int nr) argument
311 put_char(unsigned char c, struct tty_struct *tty) argument
318 echo_char(unsigned char c, struct tty_struct *tty) argument
328 finish_erasing(struct tty_struct *tty) argument
337 eraser(unsigned char c, struct tty_struct *tty) argument
367 echo_char(KILL_CHAR(tty), tty); local
400 echo_char(ERASE_CHAR(tty), tty); local
453 isig(int sig, struct tty_struct *tty, int flush) argument
464 n_tty_receive_break(struct tty_struct *tty) argument
480 n_tty_receive_overrun(struct tty_struct *tty) argument
493 n_tty_receive_parity_error(struct tty_struct *tty, unsigned char c) argument
510 n_tty_receive_char(struct tty_struct *tty, unsigned char c) argument
694 n_tty_receive_room(struct tty_struct *tty) argument
718 n_tty_write_wakeup(struct tty_struct *tty) argument
728 n_tty_receive_buf(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) argument
809 n_tty_set_termios(struct tty_struct *tty, struct termios * old) argument
874 n_tty_close(struct tty_struct *tty) argument
883 n_tty_open(struct tty_struct *tty) argument
902 input_available_p(struct tty_struct *tty, int amt) argument
921 copy_from_read_buf(struct tty_struct *tty, unsigned char **b, size_t *nr) argument
948 read_chan(struct tty_struct *tty, struct file *file, unsigned char *buf, size_t nr) argument
1142 write_chan(struct tty_struct * tty, struct file * file, const unsigned char * buf, size_t nr) argument
1214 normal_poll(struct tty_struct * tty, struct file * file, poll_table *wait) argument
[all...]
H A Dtty_io.c8 * 'tty_io.c' gives an orthogonal feeling to tty's, be they consoles
17 * dynamically allocated only when the tty is open.
20 * between the high-level tty routines (tty_io.c and tty_ioctl.c) and
21 * the low-level tty routines (serial.c, pty.c, console.c). This
32 * Added functionality to the OPOST tty handling. No delays, but all
76 #include <linux/tty.h>
121 struct termios tty_std_termios; /* for the benefit of tty drivers */
122 struct tty_driver *tty_drivers; /* linked list of tty drivers */
131 * redirect is the pseudo-tty that console output
136 static void initialize_tty_struct(struct tty_struct *tty);
180 struct tty_struct *tty; local
188 free_tty_struct(struct tty_struct *tty) argument
197 _tty_make_name(struct tty_struct *tty, const char *name, char *buf) argument
213 tty_name(struct tty_struct *tty, char *buf) argument
218 tty_paranoia_check(struct tty_struct *tty, kdev_t device, const char *routine) argument
239 check_tty_count(struct tty_struct *tty, const char *routine) argument
283 tty_set_ldisc(struct tty_struct *tty, int ldisc) argument
365 tty_check_change(struct tty_struct * tty) argument
440 struct tty_struct *tty = (struct tty_struct *) data; local
538 tty_hangup(struct tty_struct * tty) argument
548 tty_vhangup(struct tty_struct * tty) argument
578 struct tty_struct *tty = current->tty; local
610 stop_tty(struct tty_struct *tty) argument
624 start_tty(struct tty_struct *tty) argument
646 struct tty_struct * tty; local
679 do_tty_write( ssize_t (write)struct tty_struct *, struct file *, const unsigned char *, size_t), struct tty_struct *tty, struct file *file, const unsigned char *buf, size_t count) argument
735 struct tty_struct * tty; local
787 struct tty_struct *tty, *o_tty; local
991 release_mem(struct tty_struct *tty, int idx) argument
1031 struct tty_struct *tty, *o_tty; local
1270 struct tty_struct *tty; local
1421 struct tty_struct * tty; local
1434 struct tty_struct * tty; local
1460 tiocsti(struct tty_struct *tty, char * arg) argument
1472 tiocgwinsz(struct tty_struct *tty, struct winsize * arg) argument
1479 tiocswinsz(struct tty_struct *tty, struct tty_struct *real_tty, struct winsize * arg) argument
1497 tioccons(struct inode *inode, struct tty_struct *tty, struct tty_struct *real_tty) argument
1528 tiocsctty(struct tty_struct *tty, int arg) argument
1567 tiocgpgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *arg) argument
1578 tiocspgrp(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *arg) argument
1601 tiocgsid(struct tty_struct *tty, struct tty_struct *real_tty, pid_t *arg) argument
1614 tiocttygstruct(struct tty_struct *tty, struct tty_struct *arg) argument
1621 tiocsetd(struct tty_struct *tty, int *arg) argument
1630 send_break(struct tty_struct *tty, int duration) argument
1643 tty_generic_brk(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg) argument
1664 struct tty_struct *tty, *real_tty; local
1848 do_SAK(struct tty_struct *tty) argument
1862 struct tty_struct *tty = (struct tty_struct *) private_; local
1915 tty_get_baud_rate(struct tty_struct *tty) argument
1941 tty_flip_buffer_push(struct tty_struct *tty) argument
1952 initialize_tty_struct(struct tty_struct *tty) argument
1977 tty_default_put_char(struct tty_struct *tty, unsigned char ch) argument
[all...]
H A Dtty_ioctl.c17 #include <linux/tty.h>
39 void tty_wait_until_sent(struct tty_struct * tty, long timeout) argument
46 printk(KERN_DEBUG "%s wait until sent...\n", tty_name(tty, buf));
48 if (!tty->driver.chars_in_buffer)
50 add_wait_queue(&tty->write_wait, &wait);
55 printk(KERN_DEBUG "waiting %s...(%d)\n", tty_name(tty, buf),
56 tty->driver.chars_in_buffer(tty));
61 if (!tty->driver.chars_in_buffer(tty))
95 change_termios(struct tty_struct * tty, struct termios * new_termios) argument
141 set_termios(struct tty_struct * tty, unsigned long arg, int opt) argument
173 get_termio(struct tty_struct * tty, struct termio * termio) argument
180 inq_canon(struct tty_struct * tty) argument
205 get_sgflags(struct tty_struct * tty) argument
223 get_sgttyb(struct tty_struct * tty, struct sgttyb * sgttyb) argument
261 set_sgttyb(struct tty_struct * tty, struct sgttyb * sgttyb) argument
282 get_tchars(struct tty_struct * tty, struct tchars * tchars) argument
295 set_tchars(struct tty_struct * tty, struct tchars * tchars) argument
312 get_ltchars(struct tty_struct * tty, struct ltchars * ltchars) argument
325 set_ltchars(struct tty_struct * tty, struct ltchars * ltchars) argument
345 send_prio_char(struct tty_struct *tty, char ch) argument
360 n_tty_ioctl(struct tty_struct * tty, struct file * file, unsigned int cmd, unsigned long arg) argument
[all...]
H A Dpty.c20 #include <linux/tty.h>
71 static void pty_close(struct tty_struct * tty, struct file * filp) argument
73 if (!tty)
75 if (tty->driver.subtype == PTY_TYPE_MASTER) {
76 if (tty->count > 1)
77 printk("master pty_close: count = %d!!\n", tty->count);
79 if (tty->count > 2)
82 wake_up_interruptible(&tty->read_wait);
83 wake_up_interruptible(&tty->write_wait);
84 tty
117 pty_unthrottle(struct tty_struct * tty) argument
141 pty_write(struct tty_struct * tty, int from_user, const unsigned char *buf, int count) argument
190 pty_write_room(struct tty_struct *tty) argument
217 pty_chars_in_buffer(struct tty_struct *tty) argument
244 pty_get_device_number(struct tty_struct *tty, unsigned int *value) argument
253 pty_set_lock(struct tty_struct *tty, int * arg) argument
265 pty_bsd_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg) argument
280 pty_unix98_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg) argument
296 pty_flush_buffer(struct tty_struct *tty) argument
312 pty_open(struct tty_struct *tty, struct file * filp) argument
351 pty_set_termios(struct tty_struct *tty, struct termios *old_termios) argument
[all...]
H A Ddz.c40 #include <linux/tty.h>
114 * tty->stopped. They enable or disable transmitter interrupts,
119 static void dz_stop(struct tty_struct *tty) argument
124 if (tty == 0)
127 info = (struct dz_serial *) tty->driver_data;
136 static void dz_start(struct tty_struct *tty) argument
138 struct dz_serial *info = (struct dz_serial *) tty->driver_data;
195 struct tty_struct *tty = 0; local
216 tty = info->tty; /* no
387 struct tty_struct *tty = info->tty; local
412 struct tty_struct *tty = info->tty;; local
644 dz_flush_chars(struct tty_struct *tty) argument
668 dz_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count) argument
755 dz_write_room(struct tty_struct *tty) argument
773 dz_chars_in_buffer(struct tty_struct *tty) argument
787 dz_flush_buffer(struct tty_struct *tty) argument
809 dz_throttle(struct tty_struct *tty) argument
817 dz_unthrottle(struct tty_struct *tty) argument
829 dz_send_xchar(struct tty_struct *tty, char ch) argument
948 dz_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg) argument
1008 dz_set_termios(struct tty_struct *tty, struct termios *old_termios) argument
1034 dz_close(struct tty_struct *tty, struct file *filp) argument
1127 dz_hangup(struct tty_struct *tty) argument
1145 block_til_ready(struct tty_struct *tty, struct file *filp, struct dz_serial *info) argument
1243 dz_open(struct tty_struct *tty, struct file *filp) argument
[all...]
H A Dn_hdlc.c16 * This module implements the tty line discipline N_HDLC for use with
17 * tty device drivers that support bit-synchronous HDLC communications.
21 * 1. tty write calls represent one complete transmit frame of data
34 * the tty flip buffer and call the line discipline receive
40 * tty read calls.
42 * 3. tty read calls returns an entire frame of data or nothing.
46 * of the tty flags
53 * These conventions allow the standard tty programming interface
100 #include <linux/tty.h>
102 #include <linux/string.h> /* used in new tty driver
160 struct tty_struct *tty; /* ptr to TTY structure */ member in struct:n_hdlc
226 struct tty_struct *tty = n_hdlc2tty (n_hdlc); local
278 n_hdlc_tty_close(struct tty_struct *tty) argument
318 n_hdlc_tty_open(struct tty_struct *tty) argument
375 n_hdlc_send_frames(struct n_hdlc *n_hdlc, struct tty_struct *tty) argument
470 n_hdlc_tty_wakeup(struct tty_struct *tty) argument
498 n_hdlc_tty_room(struct tty_struct *tty) argument
519 n_hdlc_tty_receive(struct tty_struct *tty, const __u8 * data, char *flags, int count) argument
592 n_hdlc_tty_read(struct tty_struct *tty, struct file *file, __u8 * buf, rw_count_t nr) argument
672 n_hdlc_tty_write(struct tty_struct *tty, struct file *file, const __u8 * data, rw_count_t count) argument
757 n_hdlc_tty_ioctl(struct tty_struct *tty, struct file * file, unsigned int cmd, unsigned long arg) argument
822 n_hdlc_tty_poll(struct tty_struct *tty, struct file *filp, poll_table * wait) argument
[all...]
H A Dsx.h132 #define O_OTHER(tty) \
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...]
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/linux/
H A Dtty.h5 * 'tty.h' defines some structures used by tty_io.c and some defines.
31 * Note: don't mess with NR_PTYS until you understand the tty minor
133 * This is the flip buffer used for the tty driver. The buffer is
134 * located in the tty structure, and is used as a high speed interface
135 * between the tty driver and the tty line discipline.
165 #define INTR_CHAR(tty) ((tty)->termios->c_cc[VINTR])
166 #define QUIT_CHAR(tty) ((tty)
[all...]
H A Dtty_flip.h10 _INLINE_ void tty_insert_flip_char(struct tty_struct *tty, argument
13 if (tty->flip.count < TTY_FLIPBUF_SIZE) {
14 tty->flip.count++;
15 *tty->flip.flag_buf_ptr++ = flag;
16 *tty->flip.char_buf_ptr++ = ch;
20 _INLINE_ void tty_schedule_flip(struct tty_struct *tty) argument
22 queue_task(&tty->flip.tqueue, &tq_timer);
H A Dtty_driver.h5 * This structure defines the interface between the low-level tty
6 * driver and the tty routines. The following routines can be
10 * int (*open)(struct tty_struct * tty, struct file * filp);
12 * This routine is called when a particular tty device is opened.
16 * void (*close)(struct tty_struct * tty, struct file * filp);
18 * This routine is called when a particular tty device is closed.
20 * int (*write)(struct tty_struct * tty, int from_user,
24 * characters to the tty device. The characters may come from
29 * void (*put_char)(struct tty_struct *tty, unsigned char ch);
32 * character to the tty devic
[all...]
H A Dtty_ldisc.h5 * This structure defines the interface between the tty line discipline
6 * implementation and the tty routines. The following routines can be
13 * with the tty. The line discipline can use this as an
19 * shutdown, either because the tty is being closed or because
20 * the tty is being changed to use a new line discipline
22 * void (*flush_buffer)(struct tty_struct *tty);
28 * ssize_t (*chars_in_buffer)(struct tty_struct *tty);
34 * ssize_t (*read)(struct tty_struct * tty, struct file * file,
38 * the tty. The line discipline will return whatever characters
42 * ssize_t (*write)(struct tty_struct * tty, struc
[all...]
H A Dgeneric_serial.h47 struct tty_struct *tty; member in struct:gs_port
81 void gs_put_char(struct tty_struct *tty, unsigned char ch);
82 int gs_write(struct tty_struct *tty, int from_user,
84 int gs_write_room(struct tty_struct *tty);
85 int gs_chars_in_buffer(struct tty_struct *tty);
86 void gs_flush_buffer(struct tty_struct *tty);
87 void gs_flush_chars(struct tty_struct *tty);
88 void gs_stop(struct tty_struct *tty);
89 void gs_start(struct tty_struct *tty);
90 void gs_hangup(struct tty_struct *tty);
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/linux/
H A Dtty.h5 * 'tty.h' defines some structures used by tty_io.c and some defines.
31 * Note: don't mess with NR_PTYS until you understand the tty minor
133 * This is the flip buffer used for the tty driver. The buffer is
134 * located in the tty structure, and is used as a high speed interface
135 * between the tty driver and the tty line discipline.
165 #define INTR_CHAR(tty) ((tty)->termios->c_cc[VINTR])
166 #define QUIT_CHAR(tty) ((tty)
[all...]
H A Dtty_flip.h10 _INLINE_ void tty_insert_flip_char(struct tty_struct *tty, argument
13 if (tty->flip.count < TTY_FLIPBUF_SIZE) {
14 tty->flip.count++;
15 *tty->flip.flag_buf_ptr++ = flag;
16 *tty->flip.char_buf_ptr++ = ch;
20 _INLINE_ void tty_schedule_flip(struct tty_struct *tty) argument
22 queue_task(&tty->flip.tqueue, &tq_timer);
H A Dtty_driver.h5 * This structure defines the interface between the low-level tty
6 * driver and the tty routines. The following routines can be
10 * int (*open)(struct tty_struct * tty, struct file * filp);
12 * This routine is called when a particular tty device is opened.
16 * void (*close)(struct tty_struct * tty, struct file * filp);
18 * This routine is called when a particular tty device is closed.
20 * int (*write)(struct tty_struct * tty, int from_user,
24 * characters to the tty device. The characters may come from
29 * void (*put_char)(struct tty_struct *tty, unsigned char ch);
32 * character to the tty devic
[all...]
H A Dtty_ldisc.h5 * This structure defines the interface between the tty line discipline
6 * implementation and the tty routines. The following routines can be
13 * with the tty. The line discipline can use this as an
19 * shutdown, either because the tty is being closed or because
20 * the tty is being changed to use a new line discipline
22 * void (*flush_buffer)(struct tty_struct *tty);
28 * ssize_t (*chars_in_buffer)(struct tty_struct *tty);
34 * ssize_t (*read)(struct tty_struct * tty, struct file * file,
38 * the tty. The line discipline will return whatever characters
42 * ssize_t (*write)(struct tty_struct * tty, struc
[all...]
H A Dgeneric_serial.h47 struct tty_struct *tty; member in struct:gs_port
81 void gs_put_char(struct tty_struct *tty, unsigned char ch);
82 int gs_write(struct tty_struct *tty, int from_user,
84 int gs_write_room(struct tty_struct *tty);
85 int gs_chars_in_buffer(struct tty_struct *tty);
86 void gs_flush_buffer(struct tty_struct *tty);
87 void gs_flush_chars(struct tty_struct *tty);
88 void gs_stop(struct tty_struct *tty);
89 void gs_start(struct tty_struct *tty);
90 void gs_hangup(struct tty_struct *tty);
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/s390/char/
H A Dctrlchar.h12 #include <linux/tty.h>
15 extern char *ctrlchar_handle(const char *buf, int len, struct tty_struct *tty);
H A Dhwc_tty.c15 #include <linux/tty.h>
27 #define HWC_TTY_PRINT_HEADER "hwc tty driver: "
33 struct tty_struct *tty; member in struct:__anon2108
58 hwc_tty_open (struct tty_struct *tty, argument
62 if (MINOR (tty->device) - tty->driver.minor_start)
65 tty->driver_data = &hwc_tty_data;
67 hwc_tty_data.tty = tty;
68 tty
78 hwc_tty_close(struct tty_struct *tty, struct file *filp) argument
95 hwc_tty_write_room(struct tty_struct *tty) argument
104 hwc_tty_write(struct tty_struct *tty, int from_user, const unsigned char *buf, int count) argument
120 hwc_tty_put_char(struct tty_struct *tty, unsigned char ch) argument
136 hwc_tty_flush_chars(struct tty_struct *tty) argument
147 hwc_tty_chars_in_buffer(struct tty_struct *tty) argument
156 hwc_tty_flush_buffer(struct tty_struct *tty) argument
162 hwc_tty_ioctl( struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg) argument
188 struct tty_struct *tty = hwc_tty_data.tty; local
[all...]
H A Dctrlchar.c12 #include <linux/tty.h>
28 ctrlchar_handle_sysrq(struct tty_struct *tty) { argument
29 handle_sysrq(ctrlchar_sysrq_key, NULL, NULL, tty);
50 * @param tty The tty struct for this console.
54 char *ctrlchar_handle(const char *buf, int len, struct tty_struct *tty) { argument
69 ctrlchar_tq.data = tty;
78 ret = INTR_CHAR(tty);
84 ret = EOF_CHAR(tty);
90 ret = SUSP_CHAR(tty);
[all...]
/asus-wl-520gu-7.0.1.45/src/router/busybox/
H A Dtty.c3 * Mini tty implementation for busybox
31 char *tty; local
37 tty = ttyname(0);
38 if (tty)
39 puts(tty);
41 puts("not a tty");
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/char/rio/
H A Drio_linux.h54 #define O_OTHER(tty) \
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...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/irda/ircomm/
H A DMakefile12 list-multi := ircomm.o ircomm-tty.o
14 ircomm-tty-objs := ircomm_tty.o ircomm_tty_attach.o ircomm_tty_ioctl.o ircomm_param.o
16 obj-$(CONFIG_IRCOMM) += ircomm.o ircomm-tty.o
23 ircomm-tty.o: $(ircomm-tty-objs)
24 $(LD) $(LD_RFLAG) -r -o $@ $(ircomm-tty-objs)
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/char/joystick/
H A Dserport.c10 * This is a module that converts a tty line into a much simpler
40 #include <linux/tty.h>
43 struct tty_struct *tty; member in struct:serport
55 return -(serport->tty->driver.write(serport->tty, 0, &data, 1) != 1);
71 * discipline on a tty. It looks for the Mag, and if found, registers
75 static int serport_ldisc_open(struct tty_struct *tty) argument
88 serport->tty = tty;
89 tty
106 serport_ldisc_close(struct tty_struct *tty) argument
119 serport_ldisc_receive(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) argument
134 serport_ldisc_room(struct tty_struct *tty) argument
145 serport_ldisc_read(struct tty_struct * tty, struct file * file, unsigned char * buf, size_t nr) argument
178 serport_ldisc_ioctl(struct tty_struct * tty, struct file * file, unsigned int cmd, unsigned long arg) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/net/wan/8253x/
H A D8253xsyn.c20 #include <linux/tty.h>
39 struct tty_struct *tty = (struct tty_struct *) private_; local
45 if(tty)
47 port = (struct sab_port *)tty->driver_data;
58 if (test_bit(TTY_DONT_FLIP, &tty->flags))
60 queue_task(&tty->flip.tqueue, &tq_timer);
70 (*tty->ldisc.receive_buf)(tty, cp, 0, count);
76 void sab8253x_flush_charsS(struct tty_struct *tty) argument
78 struct sab_port *port = (struct sab_port *)tty
102 sab8253x_stopS(struct tty_struct *tty) argument
114 sab8253x_startS(struct tty_struct *tty) argument
129 struct tty_struct *tty = port->tty; local
261 struct tty_struct *tty = port->tty; local
535 sab8253x_set_termiosS(struct tty_struct *tty, struct termios *old_termios) argument
740 sab8253x_writeS(struct tty_struct * tty, int from_user, const unsigned char *buf, int count) argument
867 sab8253x_throttleS(struct tty_struct * tty) argument
887 sab8253x_unthrottleS(struct tty_struct * tty) argument
907 sab8253x_send_xcharS(struct tty_struct *tty, char ch) argument
960 sab8253x_breakS(struct tty_struct *tty, int break_state) argument
970 sab8253x_closeS(struct tty_struct *tty, struct file * filp) argument
1091 sab8253x_hangupS(struct tty_struct *tty) argument
1119 sab8253x_openS(struct tty_struct *tty, struct file * filp) argument
[all...]

Completed in 2031 milliseconds

1234567891011>>