/linux-master/include/linux/ |
H A D | tty_ldisc.h | 5 struct tty_struct; 64 * @open: [TTY] ``int ()(struct tty_struct *tty)`` 76 * @close: [TTY] ``void ()(struct tty_struct *tty)`` 85 * @flush_buffer: [TTY] ``void ()(struct tty_struct *tty)`` 93 * @read: [TTY] ``ssize_t ()(struct tty_struct *tty, struct file *file, u8 *buf, 104 * @write: [TTY] ``ssize_t ()(struct tty_struct *tty, struct file *file, 115 * @ioctl: [TTY] ``int ()(struct tty_struct *tty, unsigned int cmd, 127 * @compat_ioctl: [TTY] ``int ()(struct tty_struct *tty, unsigned int cmd, 139 * @set_termios: [TTY] ``void ()(struct tty_struct *tty, const struct ktermios *old)`` 146 * @poll: [TTY] ``int ()(struct tty_struct *tt [all...] |
H A D | tty.h | 122 * struct tty_struct - state associated with a tty while open 192 struct tty_struct { struct 235 struct tty_struct *link; 254 struct tty_struct *tty; 262 * These bits are used in the :c:member:`tty_struct.flags` field. 326 static inline bool tty_io_nonblock(struct tty_struct *tty, struct file *file) 332 static inline bool tty_io_error(struct tty_struct *tty) 337 static inline bool tty_throttled(struct tty_struct *tty) 343 void tty_kref_put(struct tty_struct *tty); 344 struct pid *tty_get_pgrp(struct tty_struct *tt [all...] |
H A D | tty_driver.h | 14 struct tty_struct; 22 * @lookup: ``struct tty_struct *()(struct tty_driver *self, struct file *, 31 * @install: ``int ()(struct tty_driver *self, struct tty_struct *tty)`` 38 * @remove: ``void ()(struct tty_driver *self, struct tty_struct *tty)`` 45 * @open: ``int ()(struct tty_struct *tty, struct file *)`` 53 * @close: ``void ()(struct tty_struct *tty, struct file *)`` 63 * @shutdown: ``void ()(struct tty_struct *tty)`` 69 * @cleanup: ``void ()(struct tty_struct *tty)`` 75 * @write: ``ssize_t ()(struct tty_struct *tty, const u8 *buf, size_t count)`` 87 * @put_char: ``int ()(struct tty_struct *tt [all...] |
H A D | devpts_fs.h | 34 int ptm_open_peer(struct file *master, struct tty_struct *tty, int flags); 38 ptm_open_peer(struct file *master, struct tty_struct *tty, int flags)
|
H A D | selection.h | 14 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);
|
H A D | tty_port.h | 14 struct tty_struct; 37 int (*activate)(struct tty_port *port, struct tty_struct *tty); 55 * @tty: back pointer to &struct tty_struct, valid only if the tty is open. Use 57 * @itty: internal back pointer to &struct tty_struct. Avoid this. It should be 103 struct tty_struct *tty; 104 struct tty_struct *itty; 232 struct tty_struct *tty_port_tty_get(struct tty_port *port); 233 void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty); 240 int tty_port_block_til_ready(struct tty_port *port, struct tty_struct *tty, 242 int tty_port_close_start(struct tty_port *port, struct tty_struct *tt [all...] |
/linux-master/drivers/tty/ |
H A D | tty.h | 50 static inline void __tty_set_flow_change(struct tty_struct *tty, 56 static inline void tty_set_flow_change(struct tty_struct *tty, 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 *tt [all...] |
H A D | tty_mutex.c | 15 void tty_lock(struct tty_struct *tty) 22 int tty_lock_interruptible(struct tty_struct *tty) 33 void tty_unlock(struct tty_struct *tty) 40 void tty_lock_slave(struct tty_struct *tty) 46 void tty_unlock_slave(struct tty_struct *tty) 52 void tty_set_lock_subclass(struct tty_struct *tty)
|
H A D | ttynull.c | 17 static int ttynull_open(struct tty_struct *tty, struct file *filp) 22 static void ttynull_close(struct tty_struct *tty, struct file *filp) 27 static void ttynull_hangup(struct tty_struct *tty) 32 static ssize_t ttynull_write(struct tty_struct *tty, const u8 *buf, 38 static unsigned int ttynull_write_room(struct tty_struct *tty)
|
H A D | n_null.c | 13 static ssize_t n_null_read(struct tty_struct *tty, struct file *file, u8 *buf, 19 static ssize_t n_null_write(struct tty_struct *tty, struct file *file,
|
H A D | tty_ldisc.c | 139 static struct tty_ldisc *tty_ldisc_get(struct tty_struct *tty, int disc) 239 struct tty_ldisc *tty_ldisc_ref_wait(struct tty_struct *tty) 259 struct tty_ldisc *tty_ldisc_ref(struct tty_struct *tty) 287 __tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout) 293 __tty_ldisc_lock_nested(struct tty_struct *tty, unsigned long timeout) 299 static inline void __tty_ldisc_unlock(struct tty_struct *tty) 304 int tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout) 320 void tty_ldisc_unlock(struct tty_struct *tty) 329 tty_ldisc_lock_pair_timeout(struct tty_struct *tty, struct tty_struct *tty [all...] |
H A D | tty_jobctrl.c | 33 int __tty_check_change(struct tty_struct *tty, int sig) 69 int tty_check_change(struct tty_struct *tty) 78 struct tty_struct *tty; 98 static void __proc_set_tty(struct tty_struct *tty) 122 static void proc_set_tty(struct tty_struct *tty) 132 void tty_open_proc_set_tty(struct file *filp, struct tty_struct *tty) 160 struct tty_struct *get_current_tty(void) 162 struct tty_struct *tty; 196 int tty_signal_session_leader(struct tty_struct *tty, int exit_session) 267 struct tty_struct *tt [all...] |
H A D | tty_io.c | 13 * tty_struct and tty_queue structures. Previously there was an array 14 * of 256 tty_struct's which was statically allocated, and the 159 static void release_tty(struct tty_struct *tty, int idx); 169 static void free_tty_struct(struct tty_struct *tty) 177 static inline struct tty_struct *file_tty(struct file *file) 196 void tty_add_file(struct tty_struct *tty, struct file *file) 227 struct tty_struct *tty = priv->tty; 244 const char *tty_name(const struct tty_struct *tty) 252 const char *tty_driver_name(const struct tty_struct *tty) 259 static int tty_paranoia_check(struct tty_struct *tt [all...] |
H A D | pty.c | 47 static void pty_close(struct tty_struct *tty, struct file *filp) 93 static void pty_unthrottle(struct tty_struct *tty) 111 static ssize_t pty_write(struct tty_struct *tty, const u8 *buf, size_t c) 113 struct tty_struct *to = tty->link; 129 static unsigned int pty_write_room(struct tty_struct *tty) 137 static int pty_set_lock(struct tty_struct *tty, int __user *arg) 150 static int pty_get_lock(struct tty_struct *tty, int __user *arg) 158 static int pty_set_pktmode(struct tty_struct *tty, int __user *arg) 180 static int pty_get_pktmode(struct tty_struct *tty, int __user *arg) 188 static int pty_signal(struct tty_struct *tt [all...] |
/linux-master/arch/um/drivers/ |
H A 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 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 *tt [all...] |
/linux-master/drivers/usb/serial/ |
H A D | usb-wwan.h | 10 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 D | kobil_sct.c | 52 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); 155 static void kobil_init_termios(struct tty_struct *tty) 165 static int kobil_open(struct tty_struct *tt [all...] |
/linux-master/include/linux/usb/ |
H A D | serial.h | 269 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 *tt [all...] |
/linux-master/drivers/s390/char/ |
H A D | ctrlchar.h | 15 ctrlchar_handle(const unsigned char *buf, int len, struct tty_struct *tty);
|
/linux-master/drivers/accessibility/speakup/ |
H A D | selection.c | 22 struct tty_struct *tty; 30 struct tty_struct *tty; 62 int speakup_set_selection(struct tty_struct *tty) 94 struct tty_struct *tty; 110 struct tty_struct *tty = xchg(&ssw->tty, NULL); 121 int speakup_paste_selection(struct tty_struct *tty) 135 struct tty_struct *tty;
|
H A D | spk_ttyio.c | 22 static struct tty_struct *speakup_tty; 47 static int spk_ttyio_ldisc_open(struct tty_struct *tty) 69 static void spk_ttyio_ldisc_close(struct tty_struct *tty) 74 static size_t spk_ttyio_receive_buf2(struct tty_struct *tty, const u8 *cp, 135 static inline void get_termios(struct tty_struct *tty, 146 struct tty_struct *tty; 226 struct tty_struct *tty = in_synth->dev; 272 struct tty_struct *tty = in_synth->dev; 280 struct tty_struct *tty = in_synth->dev; 293 struct tty_struct *tt [all...] |
/linux-master/drivers/pps/clients/ |
H A D | pps-ldisc.c | 16 static void pps_tty_dcd_change(struct tty_struct *tty, bool active) 39 static int (*alias_n_tty_open)(struct tty_struct *tty); 41 static int pps_tty_open(struct tty_struct *tty) 81 static void (*alias_n_tty_close)(struct tty_struct *tty); 83 static void pps_tty_close(struct tty_struct *tty)
|
/linux-master/arch/m68k/emu/ |
H A D | nfcon.c | 64 static int nfcon_tty_open(struct tty_struct *tty, struct file *filp) 69 static void nfcon_tty_close(struct tty_struct *tty, struct file *filp) 73 static ssize_t nfcon_tty_write(struct tty_struct *tty, const u8 *buf, 80 static int nfcon_tty_put_char(struct tty_struct *tty, u8 ch) 88 static unsigned int nfcon_tty_write_room(struct tty_struct *tty)
|
/linux-master/drivers/tty/serdev/ |
H A D | serdev-ttyport.c | 15 struct tty_struct *tty; 50 struct tty_struct *tty; 78 struct tty_struct *tty = serport->tty; 90 struct tty_struct *tty = serport->tty; 98 struct tty_struct *tty = serport->tty; 106 struct tty_struct *tty; 155 struct tty_struct *tty = serport->tty; 170 struct tty_struct *tty = serport->tty; 184 struct tty_struct *tty = serport->tty; 199 struct tty_struct *tt [all...] |
/linux-master/drivers/input/serio/ |
H A D | serport.c | 32 struct tty_struct *tty; 78 static int serport_ldisc_open(struct tty_struct *tty) 104 static void serport_ldisc_close(struct tty_struct *tty) 117 static void serport_ldisc_receive(struct tty_struct *tty, const u8 *cp, 160 static ssize_t serport_ldisc_read(struct tty_struct * tty, struct file * file, 197 static void serport_set_type(struct tty_struct *tty, unsigned long type) 210 static int serport_ldisc_ioctl(struct tty_struct *tty, unsigned int cmd, 228 static int serport_ldisc_compat_ioctl(struct tty_struct *tty, 246 static void serport_ldisc_hangup(struct tty_struct *tty) 258 static void serport_ldisc_write_wakeup(struct tty_struct * tt [all...] |