Home
last modified time | relevance | path

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

12345678

/Linux-v4.19/include/linux/
Dtty_driver.h249 struct tty_struct;
254 struct tty_struct * (*lookup)(struct tty_driver *driver,
256 int (*install)(struct tty_driver *driver, struct tty_struct *tty);
257 void (*remove)(struct tty_driver *driver, struct tty_struct *tty);
258 int (*open)(struct tty_struct * tty, struct file * filp);
259 void (*close)(struct tty_struct * tty, struct file * filp);
260 void (*shutdown)(struct tty_struct *tty);
261 void (*cleanup)(struct tty_struct *tty);
262 int (*write)(struct tty_struct * tty,
264 int (*put_char)(struct tty_struct *tty, unsigned char ch);
[all …]
Dtty.h218 int (*activate)(struct tty_port *port, struct tty_struct *tty);
230 struct tty_struct *tty; /* Back pointer */
231 struct tty_struct *itty; /* internal back ptr */
283 struct tty_struct { struct
321 struct tty_struct *link; argument
343 struct tty_struct *tty; argument
375 static inline void __tty_set_flow_change(struct tty_struct *tty, int val) in __tty_set_flow_change()
380 static inline void tty_set_flow_change(struct tty_struct *tty, int val) in tty_set_flow_change()
386 static inline bool tty_io_error(struct tty_struct *tty) in tty_io_error()
391 static inline bool tty_throttled(struct tty_struct *tty) in tty_throttled()
[all …]
Dtty_ldisc.h178 int (*open)(struct tty_struct *);
179 void (*close)(struct tty_struct *);
180 void (*flush_buffer)(struct tty_struct *tty);
181 ssize_t (*read)(struct tty_struct *tty, struct file *file,
183 ssize_t (*write)(struct tty_struct *tty, struct file *file,
185 int (*ioctl)(struct tty_struct *tty, struct file *file,
187 long (*compat_ioctl)(struct tty_struct *tty, struct file *file,
189 void (*set_termios)(struct tty_struct *tty, struct ktermios *old);
190 __poll_t (*poll)(struct tty_struct *, struct file *,
192 int (*hangup)(struct tty_struct *tty);
[all …]
Dselection.h14 struct tty_struct;
17 struct tty_struct;
20 extern int set_selection(const struct tiocl_selection __user *sel, struct tty_struct *tty);
21 extern int paste_selection(struct tty_struct *tty);
24 extern void mouse_report(struct tty_struct * tty, int butt, int mrx, int mry);
/Linux-v4.19/arch/um/drivers/
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 int line_write(struct tty_struct *tty, const unsigned char *buf,
69 extern int line_put_char(struct tty_struct *tty, unsigned char ch);
70 extern void line_set_termios(struct tty_struct *tty, struct ktermios * old);
71 extern int line_chars_in_buffer(struct tty_struct *tty);
72 extern void line_flush_buffer(struct tty_struct *tty);
[all …]
Dline.c50 int line_write_room(struct tty_struct *tty) in line_write_room()
63 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 int line_put_char(struct tty_struct *tty, unsigned char ch) in line_put_char()
192 int line_write(struct tty_struct *tty, const unsigned char *buf, int len) in line_write()
219 void line_set_termios(struct tty_struct *tty, struct ktermios * old) in line_set_termios()
224 void line_throttle(struct tty_struct *tty) in line_throttle()
232 void line_unthrottle(struct tty_struct *tty) in line_unthrottle()
293 static int line_activate(struct tty_port *port, struct tty_struct *tty) in line_activate()
[all …]
/Linux-v4.19/include/linux/usb/
Dserial.h280 int (*open)(struct tty_struct *tty, struct usb_serial_port *port);
282 int (*write)(struct tty_struct *tty, struct usb_serial_port *port,
285 int (*write_room)(struct tty_struct *tty);
286 int (*ioctl)(struct tty_struct *tty,
288 void (*set_termios)(struct tty_struct *tty,
290 void (*break_ctl)(struct tty_struct *tty, int break_state);
291 int (*chars_in_buffer)(struct tty_struct *tty);
292 void (*wait_until_sent)(struct tty_struct *tty, long timeout);
294 void (*throttle)(struct tty_struct *tty);
295 void (*unthrottle)(struct tty_struct *tty);
[all …]
/Linux-v4.19/drivers/tty/
Dtty_ldisc.c159 static struct tty_ldisc *tty_ldisc_get(struct tty_struct *tty, int disc) in tty_ldisc_get()
259 struct tty_ldisc *tty_ldisc_ref_wait(struct tty_struct *tty) in tty_ldisc_ref_wait()
280 struct tty_ldisc *tty_ldisc_ref(struct tty_struct *tty) in tty_ldisc_ref()
309 __tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout) in __tty_ldisc_lock()
315 __tty_ldisc_lock_nested(struct tty_struct *tty, unsigned long timeout) in __tty_ldisc_lock_nested()
321 static inline void __tty_ldisc_unlock(struct tty_struct *tty) in __tty_ldisc_unlock()
326 int tty_ldisc_lock(struct tty_struct *tty, unsigned long timeout) in tty_ldisc_lock()
337 void tty_ldisc_unlock(struct tty_struct *tty) in tty_ldisc_unlock()
344 tty_ldisc_lock_pair_timeout(struct tty_struct *tty, struct tty_struct *tty2, in tty_ldisc_lock_pair_timeout()
379 static void tty_ldisc_lock_pair(struct tty_struct *tty, struct tty_struct *tty2) in tty_ldisc_lock_pair()
[all …]
Dpty.c45 static void pty_close(struct tty_struct *tty, struct file *filp) in pty_close()
92 static void pty_unthrottle(struct tty_struct *tty) in pty_unthrottle()
110 static int pty_write(struct tty_struct *tty, const unsigned char *buf, int c) in pty_write()
112 struct tty_struct *to = tty->link; in pty_write()
138 static int pty_write_room(struct tty_struct *tty) in pty_write_room()
153 static int pty_chars_in_buffer(struct tty_struct *tty) in pty_chars_in_buffer()
159 static int pty_set_lock(struct tty_struct *tty, int __user *arg) in pty_set_lock()
171 static int pty_get_lock(struct tty_struct *tty, int __user *arg) in pty_get_lock()
178 static int pty_set_pktmode(struct tty_struct *tty, int __user *arg) in pty_set_pktmode()
200 static int pty_get_pktmode(struct tty_struct *tty, int __user *arg) in pty_get_pktmode()
[all …]
Dtty_jobctrl.c31 int __tty_check_change(struct tty_struct *tty, int sig) in __tty_check_change()
67 int tty_check_change(struct tty_struct *tty) in tty_check_change()
76 struct tty_struct *tty; in proc_clear_tty()
94 static void __proc_set_tty(struct tty_struct *tty) in __proc_set_tty()
118 static void proc_set_tty(struct tty_struct *tty) in proc_set_tty()
128 void tty_open_proc_set_tty(struct file *filp, struct tty_struct *tty) in tty_open_proc_set_tty()
156 struct tty_struct *get_current_tty(void) in get_current_tty()
158 struct tty_struct *tty; in get_current_tty()
191 int tty_signal_session_leader(struct tty_struct *tty, int exit_session) in tty_signal_session_leader()
259 struct tty_struct *tty; in disassociate_ctty()
[all …]
Dtty_io.c158 static void release_tty(struct tty_struct *tty, int idx);
169 static void free_tty_struct(struct tty_struct *tty) in free_tty_struct()
178 static inline struct tty_struct *file_tty(struct file *file) in file_tty()
197 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()
245 const char *tty_name(const struct tty_struct *tty) in tty_name()
254 const char *tty_driver_name(const struct tty_struct *tty) in tty_driver_name()
261 static int tty_paranoia_check(struct tty_struct *tty, struct inode *inode, in tty_paranoia_check()
280 static int check_tty_count(struct tty_struct *tty, const char *routine) in check_tty_count()
470 struct tty_struct *tty = file_tty(file); in tty_show_fdinfo()
[all …]
Dtty_mutex.c14 void tty_lock(struct tty_struct *tty) in tty_lock()
23 int tty_lock_interruptible(struct tty_struct *tty) in tty_lock_interruptible()
36 void tty_unlock(struct tty_struct *tty) in tty_unlock()
45 void tty_lock_slave(struct tty_struct *tty) in tty_lock_slave()
51 void tty_unlock_slave(struct tty_struct *tty) in tty_unlock_slave()
57 void tty_set_lock_subclass(struct tty_struct *tty) in tty_set_lock_subclass()
Dn_null.c13 static int n_null_open(struct tty_struct *tty) in n_null_open()
18 static void n_null_close(struct tty_struct *tty) in n_null_close()
22 static ssize_t n_null_read(struct tty_struct *tty, struct file *file, in n_null_read()
28 static ssize_t n_null_write(struct tty_struct *tty, struct file *file, in n_null_write()
34 static void n_null_receivebuf(struct tty_struct *tty, in n_null_receivebuf()
Dtty_ioctl.c56 int tty_chars_in_buffer(struct tty_struct *tty) in tty_chars_in_buffer()
76 int tty_write_room(struct tty_struct *tty) in tty_write_room()
92 void tty_driver_flush_buffer(struct tty_struct *tty) in tty_driver_flush_buffer()
109 void tty_throttle(struct tty_struct *tty) in tty_throttle()
134 void tty_unthrottle(struct tty_struct *tty) in tty_unthrottle()
157 int tty_throttle_safe(struct tty_struct *tty) in tty_throttle_safe()
188 int tty_unthrottle_safe(struct tty_struct *tty) in tty_unthrottle_safe()
218 void tty_wait_until_sent(struct tty_struct *tty, long timeout) in tty_wait_until_sent()
243 static void unset_locked_termios(struct tty_struct *tty, struct ktermios *old) in unset_locked_termios()
314 int tty_set_termios(struct tty_struct *tty, struct ktermios *new_termios) in tty_set_termios()
[all …]
Dn_hdlc.c145 struct tty_struct *tty;
146 struct tty_struct *backup_tty;
177 static ssize_t n_hdlc_tty_read(struct tty_struct *tty, struct file *file,
179 static ssize_t n_hdlc_tty_write(struct tty_struct *tty, struct file *file,
181 static int n_hdlc_tty_ioctl(struct tty_struct *tty, struct file *file,
183 static __poll_t n_hdlc_tty_poll(struct tty_struct *tty, struct file *filp,
185 static int n_hdlc_tty_open(struct tty_struct *tty);
186 static void n_hdlc_tty_close(struct tty_struct *tty);
187 static void n_hdlc_tty_receive(struct tty_struct *tty, const __u8 *cp,
189 static void n_hdlc_tty_wakeup(struct tty_struct *tty);
[all …]
Dn_tracerouter.c45 struct tty_struct *kref_tty;
61 static int n_tracerouter_open(struct tty_struct *tty) in n_tracerouter_open()
89 static void n_tracerouter_close(struct tty_struct *tty) in n_tracerouter_close()
120 static ssize_t n_tracerouter_read(struct tty_struct *tty, struct file *file, in n_tracerouter_read()
144 static ssize_t n_tracerouter_write(struct tty_struct *tty, struct file *file, in n_tracerouter_write()
161 static void n_tracerouter_receivebuf(struct tty_struct *tty, in n_tracerouter_receivebuf()
Dn_tty.c155 static int tty_copy_to_user(struct tty_struct *tty, void __user *to, in tty_copy_to_user()
189 static void n_tty_kick_worker(struct tty_struct *tty) in n_tty_kick_worker()
209 static ssize_t chars_in_buffer(struct tty_struct *tty) in chars_in_buffer()
230 static void n_tty_write_wakeup(struct tty_struct *tty) in n_tty_write_wakeup()
236 static void n_tty_check_throttle(struct tty_struct *tty) in n_tty_check_throttle()
260 static void n_tty_check_unthrottle(struct tty_struct *tty) in n_tty_check_unthrottle()
330 static void n_tty_packet_mode_flush(struct tty_struct *tty) in n_tty_packet_mode_flush()
356 static void n_tty_flush_buffer(struct tty_struct *tty) in n_tty_flush_buffer()
389 static inline int is_continuation(unsigned char c, struct tty_struct *tty) in is_continuation()
416 static int do_output_char(unsigned char c, struct tty_struct *tty, int space) in do_output_char()
[all …]
Dtty_port.c27 struct tty_struct *tty; in tty_port_default_receive_buf()
47 struct tty_struct *tty = tty_port_tty_get(port); in tty_port_default_wakeup()
283 struct tty_struct *tty_port_tty_get(struct tty_port *port) in tty_port_tty_get()
286 struct tty_struct *tty; in tty_port_tty_get()
304 void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty) in tty_port_tty_set()
315 static void tty_port_shutdown(struct tty_port *port, struct tty_struct *tty) in tty_port_shutdown()
349 struct tty_struct *tty; in tty_port_hangup()
375 struct tty_struct *tty = tty_port_tty_get(port); in tty_port_tty_hangup()
469 struct tty_struct *tty, struct file *filp) in tty_port_block_til_ready()
550 static void tty_port_drain_delay(struct tty_port *port, struct tty_struct *tty) in tty_port_drain_delay()
[all …]
Dn_tracesink.c47 static struct tty_struct *this_tty;
64 static int n_tracesink_open(struct tty_struct *tty) in n_tracesink_open()
90 static void n_tracesink_close(struct tty_struct *tty) in n_tracesink_close()
117 static ssize_t n_tracesink_read(struct tty_struct *tty, struct file *file, in n_tracesink_read()
141 static ssize_t n_tracesink_write(struct tty_struct *tty, struct file *file, in n_tracesink_write()
/Linux-v4.19/drivers/usb/serial/
Dusb-wwan.h10 extern int usb_wwan_open(struct tty_struct *tty, struct usb_serial_port *port);
14 extern 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_ioctl(struct tty_struct *tty,
20 extern int usb_wwan_write(struct tty_struct *tty, struct usb_serial_port *port,
22 extern int usb_wwan_chars_in_buffer(struct tty_struct *tty);
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 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,
66 static void kobil_init_termios(struct tty_struct *tty);
156 static void kobil_init_termios(struct tty_struct *tty) in kobil_init_termios()
166 static int kobil_open(struct tty_struct *tty, struct usb_serial_port *port) in kobil_open()
[all …]
/Linux-v4.19/arch/xtensa/platforms/iss/
Dconsole.c52 static int rs_open(struct tty_struct *tty, struct file * filp) in rs_open()
76 static void rs_close(struct tty_struct *tty, struct file * filp) in rs_close()
85 static int rs_write(struct tty_struct * tty, in rs_write()
119 static int rs_put_char(struct tty_struct *tty, unsigned char ch) in rs_put_char()
124 static void rs_flush_chars(struct tty_struct *tty) in rs_flush_chars()
128 static int rs_write_room(struct tty_struct *tty) in rs_write_room()
134 static int rs_chars_in_buffer(struct tty_struct *tty) in rs_chars_in_buffer()
140 static void rs_hangup(struct tty_struct *tty) in rs_hangup()
145 static void rs_wait_until_sent(struct tty_struct *tty, int timeout) in rs_wait_until_sent()
/Linux-v4.19/drivers/tty/serdev/
Dserdev-ttyport.c15 struct tty_struct *tty;
52 struct tty_struct *tty; in ttyport_write_wakeup()
80 struct tty_struct *tty = serport->tty; in ttyport_write_buf()
92 struct tty_struct *tty = serport->tty; in ttyport_write_flush()
100 struct tty_struct *tty = serport->tty; in ttyport_write_room()
108 struct tty_struct *tty; in ttyport_open()
157 struct tty_struct *tty = serport->tty; in ttyport_close()
172 struct tty_struct *tty = serport->tty; in ttyport_set_baudrate()
186 struct tty_struct *tty = serport->tty; in ttyport_set_flow_control()
201 struct tty_struct *tty = serport->tty; in ttyport_set_parity()
[all …]
/Linux-v4.19/arch/ia64/hp/sim/
Dsimserial.c110 static int rs_put_char(struct tty_struct *tty, unsigned char ch) in rs_put_char()
129 static void transmit_chars(struct tty_struct *tty, struct serial_state *info, in transmit_chars()
180 static void rs_flush_chars(struct tty_struct *tty) in rs_flush_chars()
191 static int rs_write(struct tty_struct * tty, in rs_write()
227 static int rs_write_room(struct tty_struct *tty) in rs_write_room()
234 static int rs_chars_in_buffer(struct tty_struct *tty) in rs_chars_in_buffer()
241 static void rs_flush_buffer(struct tty_struct *tty) in rs_flush_buffer()
257 static void rs_send_xchar(struct tty_struct *tty, char ch) in rs_send_xchar()
279 static void rs_throttle(struct tty_struct * tty) in rs_throttle()
287 static void rs_unthrottle(struct tty_struct * tty) in rs_unthrottle()
[all …]
/Linux-v4.19/drivers/input/serio/
Dserport.c36 struct tty_struct *tty;
82 static int serport_ldisc_open(struct tty_struct *tty) in serport_ldisc_open()
108 static void serport_ldisc_close(struct tty_struct *tty) in serport_ldisc_close()
121 static void serport_ldisc_receive(struct tty_struct *tty, const unsigned char *cp, char *fp, int co… in serport_ldisc_receive()
163 static ssize_t serport_ldisc_read(struct tty_struct * tty, struct file * file, unsigned char __user… in serport_ldisc_read()
198 static void serport_set_type(struct tty_struct *tty, unsigned long type) in serport_set_type()
211 static int serport_ldisc_ioctl(struct tty_struct *tty, struct file *file, in serport_ldisc_ioctl()
229 static long serport_ldisc_compat_ioctl(struct tty_struct *tty, in serport_ldisc_compat_ioctl()
248 static int serport_ldisc_hangup(struct tty_struct *tty) in serport_ldisc_hangup()
261 static void serport_ldisc_write_wakeup(struct tty_struct * tty) in serport_ldisc_write_wakeup()

12345678