Home
last modified time | relevance | path

Searched refs:tty_struct (Results 1 – 25 of 171) sorted by relevance

1234567

/linux/include/linux/
H A Dtty.h188 struct tty_struct { struct
229 struct tty_struct *link; argument
247 struct tty_struct *tty; argument
321 static inline bool tty_io_nonblock(struct tty_struct *tty, struct file *file) in tty_io_nonblock()
327 static inline bool tty_io_error(struct tty_struct *tty) in tty_io_error()
332 static inline bool tty_throttled(struct tty_struct *tty) in tty_throttled()
338 void tty_kref_put(struct tty_struct *tty);
339 struct pid *tty_get_pgrp(struct tty_struct *tty);
342 dev_t tty_devnum(struct tty_struct *tty);
344 struct tty_struct *get_current_tty(void);
[all …]
H A Dtty_driver.h14 struct tty_struct;
443 struct tty_struct * (*lookup)(struct tty_driver *driver,
445 int (*install)(struct tty_driver *driver, struct tty_struct *tty);
446 void (*remove)(struct tty_driver *driver, struct tty_struct *tty);
447 int (*open)(struct tty_struct * tty, struct file * filp);
448 void (*close)(struct tty_struct * tty, struct file * filp);
449 void (*shutdown)(struct tty_struct *tty);
450 void (*cleanup)(struct tty_struct *tty);
451 ssize_t (*write)(struct tty_struct *tty, const u8 *buf, size_t count);
452 int (*put_char)(struct tty_struct *tty, u8 ch);
[all …]
H A Dtty_ldisc.h5 struct tty_struct;
237 int (*open)(struct tty_struct *tty);
238 void (*close)(struct tty_struct *tty);
239 void (*flush_buffer)(struct tty_struct *tty);
240 ssize_t (*read)(struct tty_struct *tty, struct file *file, u8 *buf,
242 ssize_t (*write)(struct tty_struct *tty, struct file *file,
244 int (*ioctl)(struct tty_struct *tty, unsigned int cmd,
246 int (*compat_ioctl)(struct tty_struct *tty, unsigned int cmd,
248 void (*set_termios)(struct tty_struct *tty, const struct ktermios *old);
249 __poll_t (*poll)(struct tty_struct *tty, struct file *file,
[all …]
H A Dtty_port.h14 struct tty_struct;
37 int (*activate)(struct tty_port *port, struct tty_struct *tty);
103 struct tty_struct *tty;
104 struct tty_struct *itty;
229 struct tty_struct *tty_port_tty_get(struct tty_port *port);
230 void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty);
237 int tty_port_block_til_ready(struct tty_port *port, struct tty_struct *tty,
239 int tty_port_close_start(struct tty_port *port, struct tty_struct *tty,
241 void tty_port_close_end(struct tty_port *port, struct tty_struct *tty);
242 void tty_port_close(struct tty_port *port, struct tty_struct *tty,
[all …]
H A Dselection.h14 struct tty_struct;
19 struct tty_struct *tty);
20 int set_selection_kernel(struct tiocl_selection *v, struct tty_struct *tty);
21 int paste_selection(struct tty_struct *tty);
24 void mouse_report(struct tty_struct *tty, int butt, int mrx, int mry);
/linux/drivers/tty/
H A Dtty.h50 static inline void __tty_set_flow_change(struct tty_struct *tty, in __tty_set_flow_change()
56 static inline void tty_set_flow_change(struct tty_struct *tty, in tty_set_flow_change()
63 int tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout);
64 void tty_ldisc_unlock(struct tty_struct *tty);
66 int __tty_check_change(struct tty_struct *tty, int sig);
67 int tty_check_change(struct tty_struct *tty);
68 void __stop_tty(struct tty_struct *tty);
69 void __start_tty(struct tty_struct *tty);
70 void tty_write_unlock(struct tty_struct *tty);
71 int tty_write_lock(struct tty_struct *tty, bool ndelay);
[all …]
H A Dtty_ldisc.c139 static struct tty_ldisc *tty_ldisc_get(struct tty_struct *tty, int disc) in tty_ldisc_get()
239 struct tty_ldisc *tty_ldisc_ref_wait(struct tty_struct *tty) in tty_ldisc_ref_wait()
259 struct tty_ldisc *tty_ldisc_ref(struct tty_struct *tty) in tty_ldisc_ref()
287 __tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout) in __tty_ldisc_lock()
293 __tty_ldisc_lock_nested(struct tty_struct *tty, unsigned long timeout) in __tty_ldisc_lock_nested()
299 static inline void __tty_ldisc_unlock(struct tty_struct *tty) in __tty_ldisc_unlock()
304 int tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout) in tty_ldisc_lock()
320 void tty_ldisc_unlock(struct tty_struct *tty) in tty_ldisc_unlock()
329 tty_ldisc_lock_pair_timeout(struct tty_struct *tty, struct tty_struct *tty2, in tty_ldisc_lock_pair_timeout()
364 static void tty_ldisc_lock_pair(struct tty_struct *tty, struct tty_struct *tty2) in tty_ldisc_lock_pair()
[all …]
H A Dpty.c47 static void pty_close(struct tty_struct *tty, struct file *filp) in pty_close()
91 static void pty_unthrottle(struct tty_struct *tty) in pty_unthrottle()
109 static ssize_t pty_write(struct tty_struct *tty, const u8 *buf, size_t c) in pty_write()
111 struct tty_struct *to = tty->link; in pty_write()
127 static unsigned int pty_write_room(struct tty_struct *tty) in pty_write_room()
135 static int pty_set_lock(struct tty_struct *tty, int __user *arg) in pty_set_lock()
148 static int pty_get_lock(struct tty_struct *tty, int __user *arg) in pty_get_lock()
156 static int pty_set_pktmode(struct tty_struct *tty, int __user *arg) in pty_set_pktmode()
180 static int pty_get_pktmode(struct tty_struct *tty, int __user *arg) in pty_get_pktmode()
188 static int pty_signal(struct tty_struct *tty, int sig) in pty_signal()
[all …]
H A Dtty_io.c159 static void release_tty(struct tty_struct *tty, int idx);
169 static void free_tty_struct(struct tty_struct *tty) in free_tty_struct()
177 static inline struct tty_struct *file_tty(struct file *file) in file_tty()
196 void tty_add_file(struct tty_struct *tty, struct file *file) in tty_add_file()
227 struct tty_struct *tty = priv->tty; in tty_del_file()
244 const char *tty_name(const struct tty_struct *tty) in tty_name()
252 const char *tty_driver_name(const struct tty_struct *tty) in tty_driver_name()
259 static int tty_paranoia_check(struct tty_struct *tty, struct inode *inode, in tty_paranoia_check()
273 static void check_tty_count(struct tty_struct *tty, const char *routine) in check_tty_count()
453 struct tty_struct *tty = file_tty(file); in tty_show_fdinfo()
[all …]
H A Dtty_jobctrl.c33 int __tty_check_change(struct tty_struct *tty, int sig) in __tty_check_change()
69 int tty_check_change(struct tty_struct *tty) in tty_check_change()
78 struct tty_struct *tty; in proc_clear_tty()
98 static void __proc_set_tty(struct tty_struct *tty) in __proc_set_tty()
122 static void proc_set_tty(struct tty_struct *tty) in proc_set_tty()
132 void tty_open_proc_set_tty(struct file *filp, struct tty_struct *tty) in tty_open_proc_set_tty()
160 struct tty_struct *get_current_tty(void) in get_current_tty()
162 struct tty_struct *tty; in get_current_tty()
196 int tty_signal_session_leader(struct tty_struct *tty, int exit_session) in tty_signal_session_leader()
267 struct tty_struct *tty; in disassociate_ctty()
[all …]
H A Dtty_mutex.c15 void tty_lock(struct tty_struct *tty) in tty_lock()
22 int tty_lock_interruptible(struct tty_struct *tty) in tty_lock_interruptible()
33 void tty_unlock(struct tty_struct *tty) in tty_unlock()
40 void tty_lock_slave(struct tty_struct *tty) in tty_lock_slave()
46 void tty_unlock_slave(struct tty_struct *tty) in tty_unlock_slave()
52 void tty_set_lock_subclass(struct tty_struct *tty) in tty_set_lock_subclass()
H A Dn_tty.c155 static void zero_buffer(const struct tty_struct *tty, u8 *buffer, size_t size) in zero_buffer()
161 static void tty_copy(const struct tty_struct *tty, void *to, size_t tail, in tty_copy()
193 static void n_tty_kick_worker(const struct tty_struct *tty) in n_tty_kick_worker()
213 static ssize_t chars_in_buffer(const struct tty_struct *tty) in chars_in_buffer()
228 static void n_tty_write_wakeup(struct tty_struct *tty) in n_tty_write_wakeup()
234 static void n_tty_check_throttle(struct tty_struct *tty) in n_tty_check_throttle()
255 static void n_tty_check_unthrottle(struct tty_struct *tty) in n_tty_check_unthrottle()
325 static void n_tty_packet_mode_flush(struct tty_struct *tty) in n_tty_packet_mode_flush()
347 static void n_tty_flush_buffer(struct tty_struct *tty) in n_tty_flush_buffer()
378 static inline int is_continuation(u8 c, const struct tty_struct *tty) in is_continuation()
[all …]
H A Dtty_ioctl.c48 unsigned int tty_chars_in_buffer(struct tty_struct *tty) in tty_chars_in_buffer()
66 unsigned int tty_write_room(struct tty_struct *tty) in tty_write_room()
82 void tty_driver_flush_buffer(struct tty_struct *tty) in tty_driver_flush_buffer()
101 void tty_unthrottle(struct tty_struct *tty) in tty_unthrottle()
123 bool tty_throttle_safe(struct tty_struct *tty) in tty_throttle_safe()
151 bool tty_unthrottle_safe(struct tty_struct *tty) in tty_unthrottle_safe()
179 void tty_wait_until_sent(struct tty_struct *tty, long timeout) in tty_wait_until_sent()
202 static void unset_locked_termios(struct tty_struct *tty, const struct ktermios *old) in unset_locked_termios()
319 int tty_set_termios(struct tty_struct *tty, struct ktermios *new_termios) in tty_set_termios()
444 static int set_termios(struct tty_struct *tty, void __user *arg, int opt) in set_termios()
[all …]
H A Dtty_port.c26 struct tty_struct *tty; in tty_port_default_receive_buf()
47 struct tty_struct *tty; in tty_port_default_lookahead_buf()
299 struct tty_struct *tty_port_tty_get(struct tty_port *port) in tty_port_tty_get()
314 void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty) in tty_port_tty_set()
332 static void tty_port_shutdown(struct tty_port *port, struct tty_struct *tty) in tty_port_shutdown()
365 struct tty_struct *tty; in tty_port_hangup()
386 struct tty_struct *tty = scoped_tty(); in __tty_port_tty_hangup()
480 struct tty_struct *tty, struct file *filp) in tty_port_block_til_ready()
564 static void tty_port_drain_delay(struct tty_port *port, struct tty_struct *tty) in tty_port_drain_delay()
594 struct tty_struct *tty, struct file *filp) in tty_port_close_start()
[all …]
H A Dn_hdlc.c141 struct tty_struct *tty_for_write_work;
161 static void flush_rx_queue(struct tty_struct *tty) in flush_rx_queue()
170 static void flush_tx_queue(struct tty_struct *tty) in flush_tx_queue()
196 static void n_hdlc_tty_close(struct tty_struct *tty) in n_hdlc_tty_close()
224 static int n_hdlc_tty_open(struct tty_struct *tty) in n_hdlc_tty_open()
266 static void n_hdlc_send_frames(struct n_hdlc *n_hdlc, struct tty_struct *tty) in n_hdlc_send_frames()
342 struct tty_struct *tty = n_hdlc->tty_for_write_work; in n_hdlc_tty_write_work()
353 static void n_hdlc_tty_wakeup(struct tty_struct *tty) in n_hdlc_tty_wakeup()
370 static void n_hdlc_tty_receive(struct tty_struct *tty, const u8 *data, in n_hdlc_tty_receive()
424 static ssize_t n_hdlc_tty_read(struct tty_struct *tty, struct file *file, in n_hdlc_tty_read()
[all …]
H A Damiserial.c96 static void change_speed(struct tty_struct *tty, struct serial_state *info,
98 static void rs_wait_until_sent(struct tty_struct *tty, int timeout);
133 static void rs_stop(struct tty_struct *tty) in rs_stop()
150 static void rs_start(struct tty_struct *tty) in rs_start()
441 static int rs_startup(struct tty_struct *tty, struct serial_state *info) in rs_startup()
516 static void rs_shutdown(struct tty_struct *tty, struct serial_state *info) in rs_shutdown()
566 static void change_speed(struct tty_struct *tty, struct serial_state *info, in change_speed()
697 static int rs_put_char(struct tty_struct *tty, u8 ch) in rs_put_char()
721 static void rs_flush_chars(struct tty_struct *tty) in rs_flush_chars()
742 static ssize_t rs_write(struct tty_struct * tty, const u8 *buf, size_t count) in rs_write()
[all …]
/linux/include/linux/usb/
H A Dserial.h269 int (*open)(struct tty_struct *tty, struct usb_serial_port *port);
271 int (*write)(struct tty_struct *tty, struct usb_serial_port *port,
274 unsigned int (*write_room)(struct tty_struct *tty);
275 int (*ioctl)(struct tty_struct *tty,
277 void (*get_serial)(struct tty_struct *tty, struct serial_struct *ss);
278 int (*set_serial)(struct tty_struct *tty, struct serial_struct *ss);
279 void (*set_termios)(struct tty_struct *tty, struct usb_serial_port *port,
281 int (*break_ctl)(struct tty_struct *tty, int break_state);
282 unsigned int (*chars_in_buffer)(struct tty_struct *tty);
283 void (*wait_until_sent)(struct tty_struct *tty, long timeout);
[all …]
/linux/arch/um/drivers/
H A Dline.h59 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 ssize_t line_write(struct tty_struct *tty, const u8 *buf, size_t len);
68 extern unsigned int line_chars_in_buffer(struct tty_struct *tty);
69 extern void line_flush_buffer(struct tty_struct *tty);
70 extern void line_flush_chars(struct tty_struct *tty);
71 extern unsigned int line_write_room(struct tty_struct *tty);
[all …]
H A Dline.c50 unsigned int line_write_room(struct tty_struct *tty) in line_write_room()
63 unsigned int line_chars_in_buffer(struct tty_struct *tty) in line_chars_in_buffer()
168 void line_flush_buffer(struct tty_struct *tty) in line_flush_buffer()
182 void line_flush_chars(struct tty_struct *tty) in line_flush_chars()
187 ssize_t line_write(struct tty_struct *tty, const u8 *buf, size_t len) in line_write()
214 void line_throttle(struct tty_struct *tty) in line_throttle()
222 void line_unthrottle(struct tty_struct *tty) in line_unthrottle()
285 static int line_activate(struct tty_port *port, struct tty_struct *tty) in line_activate()
305 static void unregister_winch(struct tty_struct *tty);
309 struct tty_struct *tty = tty_port_tty_get(port); in line_destruct()
[all …]
/linux/drivers/accessibility/speakup/
H A Dspk_ttyio.c22 static struct tty_struct *speakup_tty;
47 static int spk_ttyio_ldisc_open(struct tty_struct *tty) in spk_ttyio_ldisc_open()
69 static void spk_ttyio_ldisc_close(struct tty_struct *tty) in spk_ttyio_ldisc_close()
74 static size_t spk_ttyio_receive_buf2(struct tty_struct *tty, const u8 *cp, in spk_ttyio_receive_buf2()
135 static inline void get_termios(struct tty_struct *tty, in get_termios()
146 struct tty_struct *tty; in spk_ttyio_initialise_ldisc()
226 struct tty_struct *tty = in_synth->dev; in spk_ttyio_out()
272 struct tty_struct *tty = in_synth->dev; in spk_ttyio_send_xchar()
280 struct tty_struct *tty = in_synth->dev; in spk_ttyio_tiocmset()
293 struct tty_struct *tty = in_synth->dev; in ttyio_in()
[all …]
H A Dselection.c22 struct tty_struct *tty;
30 struct tty_struct *tty; in __speakup_set_selection()
62 int speakup_set_selection(struct tty_struct *tty) in speakup_set_selection()
94 struct tty_struct *tty; in speakup_cancel_selection()
110 struct tty_struct *tty = xchg(&ssw->tty, NULL); in __speakup_paste_selection()
121 int speakup_paste_selection(struct tty_struct *tty) in speakup_paste_selection()
135 struct tty_struct *tty; in speakup_cancel_paste()
/linux/drivers/usb/serial/
H A Dusb-wwan.h10 extern int usb_wwan_open(struct tty_struct *tty, struct usb_serial_port *port);
14 extern unsigned int usb_wwan_write_room(struct tty_struct *tty);
15 extern int usb_wwan_tiocmget(struct tty_struct *tty);
16 extern int usb_wwan_tiocmset(struct tty_struct *tty,
18 extern int usb_wwan_write(struct tty_struct *tty, struct usb_serial_port *port,
20 extern unsigned int usb_wwan_chars_in_buffer(struct tty_struct *tty);
H A Dkobil_sct.c52 static int kobil_open(struct tty_struct *tty, struct usb_serial_port *port);
54 static int kobil_write(struct tty_struct *tty, struct usb_serial_port *port,
56 static unsigned int kobil_write_room(struct tty_struct *tty);
57 static int kobil_ioctl(struct tty_struct *tty,
59 static int kobil_tiocmget(struct tty_struct *tty);
60 static int kobil_tiocmset(struct tty_struct *tty,
64 static void kobil_set_termios(struct tty_struct *tty,
67 static void kobil_init_termios(struct tty_struct *tty);
169 static void kobil_init_termios(struct tty_struct *tty) in kobil_init_termios()
178 static int kobil_open(struct tty_struct *tty, struct usb_serial_port *port) in kobil_open()
[all …]
/linux/drivers/tty/serdev/
H A Dserdev-ttyport.c15 struct tty_struct *tty;
50 struct tty_struct *tty; in ttyport_write_wakeup()
78 struct tty_struct *tty = serport->tty; in ttyport_write_buf()
90 struct tty_struct *tty = serport->tty; in ttyport_write_flush()
98 struct tty_struct *tty; in ttyport_open()
147 struct tty_struct *tty = serport->tty; in ttyport_close()
162 struct tty_struct *tty = serport->tty; in ttyport_set_baudrate()
176 struct tty_struct *tty = serport->tty; in ttyport_set_flow_control()
191 struct tty_struct *tty = serport->tty; in ttyport_set_parity()
213 struct tty_struct *tty = serport->tty; in ttyport_wait_until_sent()
[all …]
/linux/drivers/input/serio/
H A Dserport.c32 struct tty_struct *tty;
74 static int serport_ldisc_open(struct tty_struct *tty) in serport_ldisc_open()
100 static void serport_ldisc_close(struct tty_struct *tty) in serport_ldisc_close()
113 static void serport_ldisc_receive(struct tty_struct *tty, const u8 *cp, in serport_ldisc_receive()
152 static ssize_t serport_ldisc_read(struct tty_struct * tty, struct file * file, in serport_ldisc_read()
189 static void serport_set_type(struct tty_struct *tty, unsigned long type) in serport_set_type()
202 static int serport_ldisc_ioctl(struct tty_struct *tty, unsigned int cmd, in serport_ldisc_ioctl()
220 static int serport_ldisc_compat_ioctl(struct tty_struct *tty, in serport_ldisc_compat_ioctl()
238 static void serport_ldisc_hangup(struct tty_struct *tty) in serport_ldisc_hangup()
248 static void serport_ldisc_write_wakeup(struct tty_struct * tty) in serport_ldisc_write_wakeup()

1234567