Home
last modified time | relevance | path

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

1234

/linux/include/linux/
H A Dtty_driver.h14 struct tty_struct;
454 struct tty_struct * (*lookup)(struct tty_driver *driver,
456 int (*install)(struct tty_driver *driver, struct tty_struct *tty);
457 void (*remove)(struct tty_driver *driver, struct tty_struct *tty);
458 int (*open)(struct tty_struct * tty, struct file * filp);
459 void (*close)(struct tty_struct * tty, struct file * filp);
460 void (*shutdown)(struct tty_struct *tty);
461 void (*cleanup)(struct tty_struct *tty);
462 ssize_t (*write)(struct tty_struct *tty, const u8 *buf, size_t count);
463 int (*put_char)(struct tty_struct *tty, u8 ch);
[all …]
H A Dtty.h189 struct tty_struct { struct
230 struct tty_struct *link; argument
249 struct tty_struct *tty; argument
323 static inline bool tty_io_nonblock(struct tty_struct *tty, struct file *file) in tty_io_nonblock()
329 static inline bool tty_io_error(struct tty_struct *tty) in tty_io_error()
334 static inline bool tty_throttled(struct tty_struct *tty) in tty_throttled()
340 void tty_kref_put(struct tty_struct *tty);
341 struct pid *tty_get_pgrp(struct tty_struct *tty);
344 dev_t tty_devnum(struct tty_struct *tty);
346 struct tty_struct *get_current_tty(void);
[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;
242 struct tty_struct *tty_port_tty_get(struct tty_port *port);
243 void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty);
251 int tty_port_block_til_ready(struct tty_port *port, struct tty_struct *tty,
253 int tty_port_close_start(struct tty_port *port, struct tty_struct *tty,
255 void tty_port_close_end(struct tty_port *port, struct tty_struct *tty);
256 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_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_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()
320 struct tty_struct *tty_port_tty_get(struct tty_port *port) in tty_port_tty_get()
335 void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty) in tty_port_tty_set()
343 static void tty_port_shutdown_locked(struct tty_port *port, struct tty_struct *tty) in tty_port_shutdown_locked()
375 static void tty_port_shutdown(struct tty_port *port, struct tty_struct *tty) in tty_port_shutdown()
393 struct tty_struct *tty; in tty_port_hangup()
421 struct tty_struct *tty = scoped_tty(); in tty_port_tty_hangup()
435 struct tty_struct *tty; in tty_port_tty_vhangup()
530 struct tty_struct *tty, struct file *filp) in tty_port_block_til_ready()
[all …]
H A Dttynull.c17 static int ttynull_open(struct tty_struct *tty, struct file *filp) in ttynull_open()
22 static void ttynull_close(struct tty_struct *tty, struct file *filp) in ttynull_close()
27 static void ttynull_hangup(struct tty_struct *tty) in ttynull_hangup()
32 static ssize_t ttynull_write(struct tty_struct *tty, const u8 *buf, in ttynull_write()
38 static unsigned int ttynull_write_room(struct tty_struct *tty) in ttynull_write_room()
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 …]
H A Drpmsg_tty.c50 static int rpmsg_tty_install(struct tty_driver *driver, struct tty_struct *tty) in rpmsg_tty_install()
61 static void rpmsg_tty_cleanup(struct tty_struct *tty) in rpmsg_tty_cleanup()
66 static int rpmsg_tty_open(struct tty_struct *tty, struct file *filp) in rpmsg_tty_open()
71 static void rpmsg_tty_close(struct tty_struct *tty, struct file *filp) in rpmsg_tty_close()
76 static ssize_t rpmsg_tty_write(struct tty_struct *tty, const u8 *buf, in rpmsg_tty_write()
105 static unsigned int rpmsg_tty_write_room(struct tty_struct *tty) in rpmsg_tty_write_room()
117 static void rpmsg_tty_hangup(struct tty_struct *tty) in rpmsg_tty_hangup()
H A Dmoxa.c431 static int moxa_open(struct tty_struct *, struct file *);
432 static void moxa_close(struct tty_struct *, struct file *);
433 static ssize_t moxa_write(struct tty_struct *, const u8 *, size_t);
434 static unsigned int moxa_write_room(struct tty_struct *);
435 static void moxa_flush_buffer(struct tty_struct *);
436 static unsigned int moxa_chars_in_buffer(struct tty_struct *);
437 static void moxa_set_termios(struct tty_struct *, const struct ktermios *);
438 static void moxa_stop(struct tty_struct *);
439 static void moxa_start(struct tty_struct *);
440 static void moxa_hangup(struct tty_struct *);
[all …]
/linux/include/linux/usb/
H A Dserial.h270 int (*open)(struct tty_struct *tty, struct usb_serial_port *port);
272 int (*write)(struct tty_struct *tty, struct usb_serial_port *port,
275 unsigned int (*write_room)(struct tty_struct *tty);
276 int (*ioctl)(struct tty_struct *tty,
278 void (*get_serial)(struct tty_struct *tty, struct serial_struct *ss);
279 int (*set_serial)(struct tty_struct *tty, struct serial_struct *ss);
280 void (*set_termios)(struct tty_struct *tty, struct usb_serial_port *port,
282 int (*break_ctl)(struct tty_struct *tty, int break_state);
283 unsigned int (*chars_in_buffer)(struct tty_struct *tty);
284 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/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);
/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 …]
/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()
/linux/net/nfc/nci/
H A Duart.c74 struct tty_struct *tty = nu->tty; in nci_uart_write_work()
105 static int nci_uart_set_driver(struct tty_struct *tty, unsigned int driver) in nci_uart_set_driver()
151 static int nci_uart_tty_open(struct tty_struct *tty) in nci_uart_tty_open()
173 static void nci_uart_tty_close(struct tty_struct *tty) in nci_uart_tty_close()
205 static void nci_uart_tty_wakeup(struct tty_struct *tty) in nci_uart_tty_wakeup()
298 static void nci_uart_tty_receive(struct tty_struct *tty, const u8 *data, in nci_uart_tty_receive()
325 static int nci_uart_tty_ioctl(struct tty_struct *tty, unsigned int cmd, in nci_uart_tty_ioctl()
347 static ssize_t nci_uart_tty_read(struct tty_struct *tty, struct file *file, in nci_uart_tty_read()
354 static ssize_t nci_uart_tty_write(struct tty_struct *tty, struct file *file, in nci_uart_tty_write()
/linux/arch/m68k/emu/
H A Dnfcon.c64 static int nfcon_tty_open(struct tty_struct *tty, struct file *filp) in nfcon_tty_open()
69 static void nfcon_tty_close(struct tty_struct *tty, struct file *filp) in nfcon_tty_close()
73 static ssize_t nfcon_tty_write(struct tty_struct *tty, const u8 *buf, in nfcon_tty_write()
80 static int nfcon_tty_put_char(struct tty_struct *tty, u8 ch) in nfcon_tty_put_char()
88 static unsigned int nfcon_tty_write_room(struct tty_struct *tty) in nfcon_tty_write_room()
/linux/drivers/tty/hvc/
H A Dhvc_console.c320 static void hvc_unthrottle(struct tty_struct *tty) in hvc_unthrottle()
325 static int hvc_install(struct tty_driver *driver, struct tty_struct *tty) in hvc_install()
347 static int hvc_open(struct tty_struct *tty, struct file * filp) in hvc_open()
389 static void hvc_close(struct tty_struct *tty, struct file * filp) in hvc_close()
432 static void hvc_cleanup(struct tty_struct *tty) in hvc_cleanup()
439 static void hvc_hangup(struct tty_struct *tty) in hvc_hangup()
499 static ssize_t hvc_write(struct tty_struct *tty, const u8 *buf, size_t count) in hvc_write()
567 struct tty_struct *tty; in hvc_set_winsz()
589 static unsigned int hvc_write_room(struct tty_struct *tty) in hvc_write_room()
599 static unsigned int hvc_chars_in_buffer(struct tty_struct *tty) in hvc_chars_in_buffer()
[all …]
/linux/drivers/char/
H A Dttyprintk.c86 static int tpk_open(struct tty_struct *tty, struct file *filp) in tpk_open()
96 static void tpk_close(struct tty_struct *tty, struct file *filp) in tpk_close()
106 static ssize_t tpk_write(struct tty_struct *tty, const u8 *buf, size_t count) in tpk_write()
123 static unsigned int tpk_write_room(struct tty_struct *tty) in tpk_write_room()
131 static void tpk_hangup(struct tty_struct *tty) in tpk_hangup()
/linux/drivers/staging/greybus/
H A Duart.c382 static int gb_tty_install(struct tty_driver *driver, struct tty_struct *tty) in gb_tty_install()
402 static int gb_tty_open(struct tty_struct *tty, struct file *file) in gb_tty_open()
409 static void gb_tty_close(struct tty_struct *tty, struct file *file) in gb_tty_close()
416 static void gb_tty_cleanup(struct tty_struct *tty) in gb_tty_cleanup()
423 static void gb_tty_hangup(struct tty_struct *tty) in gb_tty_hangup()
430 static ssize_t gb_tty_write(struct tty_struct *tty, const u8 *buf, size_t count) in gb_tty_write()
442 static unsigned int gb_tty_write_room(struct tty_struct *tty) in gb_tty_write_room()
459 static unsigned int gb_tty_chars_in_buffer(struct tty_struct *tty) in gb_tty_chars_in_buffer()
474 static int gb_tty_break_ctl(struct tty_struct *tty, int state) in gb_tty_break_ctl()
481 static void gb_tty_set_termios(struct tty_struct *tty, in gb_tty_set_termios()
[all …]

1234