Home
last modified time | relevance | path

Searched refs:tty (Results 1 – 25 of 166) sorted by relevance

1234567

/linux/include/linux/
H A Dtty.h34 #define INTR_CHAR(tty) ((tty)->termios.c_cc[VINTR]) argument
35 #define QUIT_CHAR(tty) ((tty)->termios.c_cc[VQUIT]) argument
36 #define ERASE_CHAR(tty) ((tty)->termios.c_cc[VERASE]) argument
37 #define KILL_CHAR(tty) ((tty)->termios.c_cc[VKILL]) argument
38 #define EOF_CHAR(tty) ((tty)->termios.c_cc[VEOF]) argument
39 #define TIME_CHAR(tty) ((tty)->termios.c_cc[VTIME]) argument
40 #define MIN_CHAR(tty) ((tty)->termios.c_cc[VMIN]) argument
41 #define SWTC_CHAR(tty) ((tty)->termios.c_cc[VSWTC]) argument
42 #define START_CHAR(tty) ((tty)->termios.c_cc[VSTART]) argument
43 #define STOP_CHAR(tty) ((tty)->termios.c_cc[VSTOP]) argument
[all …]
H A Dtty_driver.h456 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);
464 void (*flush_chars)(struct tty_struct *tty);
465 unsigned int (*write_room)(struct tty_struct *tty);
[all …]
/linux/drivers/tty/
H A Dn_tty.c155 static void zero_buffer(const struct tty_struct *tty, u8 *buffer, size_t size) in zero_buffer() argument
157 if (L_ICANON(tty) && !L_ECHO(tty)) in zero_buffer()
161 static void tty_copy(const struct tty_struct *tty, void *to, size_t tail, in tty_copy() argument
164 struct n_tty_data *ldata = tty->disc_data; in tty_copy()
169 tty_audit_add_data(tty, from, size); in tty_copy()
171 zero_buffer(tty, from, size); in tty_copy()
177 tty_audit_add_data(tty, from, n); in tty_copy()
179 zero_buffer(tty, from, n); in tty_copy()
193 static void n_tty_kick_worker(const struct tty_struct *tty) in n_tty_kick_worker() argument
195 struct n_tty_data *ldata = tty->disc_data; in n_tty_kick_worker()
[all …]
H A Dtty_io.c7 * 'tty_io.c' gives an orthogonal feeling to tty's, be they consoles
16 * dynamically allocated only when the tty is open.
19 * between the high-level tty routines (tty_io.c and tty_ioctl.c) and
20 * the low-level tty routines (serial.c, pty.c, console.c). This
31 * Added functionality to the OPOST tty handling. No delays, but all
76 #include <linux/tty.h>
112 #include "tty.h"
116 # define tty_debug_hangup(tty, f, args...) tty_debug(tty, f, ##args) argument
118 # define tty_debug_hangup(tty, argument
169 free_tty_struct(struct tty_struct * tty) free_tty_struct() argument
196 tty_add_file(struct tty_struct * tty,struct file * file) tty_add_file() argument
227 struct tty_struct *tty = priv->tty; tty_del_file() local
244 tty_name(const struct tty_struct * tty) tty_name() argument
252 tty_driver_name(const struct tty_struct * tty) tty_driver_name() argument
259 tty_paranoia_check(struct tty_struct * tty,struct inode * inode,const char * routine) tty_paranoia_check() argument
273 check_tty_count(struct tty_struct * tty,const char * routine) check_tty_count() argument
453 struct tty_struct *tty = file_tty(file); tty_show_fdinfo() local
507 tty_wakeup(struct tty_struct * tty) tty_wakeup() argument
530 tty_release_redirect(struct tty_struct * tty) tty_release_redirect() argument
568 __tty_hangup(struct tty_struct * tty,int exit_session) __tty_hangup() argument
662 struct tty_struct *tty = do_tty_hangup() local
675 tty_hangup(struct tty_struct * tty) tty_hangup() argument
690 tty_vhangup(struct tty_struct * tty) tty_vhangup() argument
705 struct tty_struct *tty; tty_vhangup_self() local
724 tty_vhangup_session(struct tty_struct * tty) tty_vhangup_session() argument
742 __stop_tty(struct tty_struct * tty) __stop_tty() argument
765 stop_tty(struct tty_struct * tty) stop_tty() argument
772 __start_tty(struct tty_struct * tty) __start_tty() argument
793 start_tty(struct tty_struct * tty) start_tty() argument
800 tty_update_time(struct tty_struct * tty,bool mtime) tty_update_time() argument
837 iterate_tty_read(struct tty_ldisc * ld,struct tty_struct * tty,struct file * file,struct iov_iter * to) iterate_tty_read() argument
907 struct tty_struct *tty = file_tty(file); tty_read() local
933 tty_write_unlock(struct tty_struct * tty) tty_write_unlock() argument
939 tty_write_lock(struct tty_struct * tty,bool ndelay) tty_write_lock() argument
954 iterate_tty_write(struct tty_ldisc * ld,struct tty_struct * tty,struct file * file,struct iov_iter * from) iterate_tty_write() argument
1039 struct tty_struct *tty = file_tty(file); file_tty_write() local
1112 tty_send_xchar(struct tty_struct * tty,u8 ch) tty_send_xchar() argument
1192 struct tty_struct *tty; tty_driver_lookup_tty() local
1216 tty_init_termios(struct tty_struct * tty) tty_init_termios() argument
1246 tty_standard_install(struct tty_driver * driver,struct tty_struct * tty) tty_standard_install() argument
1268 tty_driver_install_tty(struct tty_driver * driver,struct tty_struct * tty) tty_driver_install_tty() argument
1284 tty_driver_remove_tty(struct tty_driver * driver,struct tty_struct * tty) tty_driver_remove_tty() argument
1301 tty_reopen(struct tty_struct * tty) tty_reopen() argument
1361 struct tty_struct *tty; tty_init_dev() local
1437 tty_save_termios(struct tty_struct * tty) tty_save_termios() argument
1464 tty_flush_works(struct tty_struct * tty) tty_flush_works() argument
1491 struct tty_struct *tty = release_one_tty() local
1513 struct tty_struct *tty = container_of(kref, struct tty_struct, kref); queue_release_one_tty() local
1529 tty_kref_put(struct tty_struct * tty) tty_kref_put() argument
1549 release_tty(struct tty_struct * tty,int idx) release_tty() argument
1579 tty_release_checks(struct tty_struct * tty,int idx) tty_release_checks() argument
1621 tty_kclose(struct tty_struct * tty) tty_kclose() argument
1651 tty_release_struct(struct tty_struct * tty,int idx) tty_release_struct() argument
1692 struct tty_struct *tty = file_tty(filp); tty_release() local
1844 struct tty_struct *tty; tty_open_current_tty() local
1921 struct tty_struct *tty; tty_kopen() local
2007 struct tty_struct *tty; tty_open_by_driver() local
2081 struct tty_struct *tty; tty_open() local
2163 struct tty_struct *tty = file_tty(filp); tty_poll() local
2181 struct tty_struct *tty = file_tty(filp); __tty_fasync() local
2222 struct tty_struct *tty = file_tty(filp); tty_fasync() local
2247 tiocsti(struct tty_struct * tty,u8 __user * p) tiocsti() argument
2281 tiocgwinsz(struct tty_struct * tty,struct winsize __user * arg) tiocgwinsz() argument
2299 tty_do_resize(struct tty_struct * tty,struct winsize * ws) tty_do_resize() argument
2334 tiocswinsz(struct tty_struct * tty,struct winsize __user * arg) tiocswinsz() argument
2396 tiocsetd(struct tty_struct * tty,int __user * p) tiocsetd() argument
2419 tiocgetd(struct tty_struct * tty,int __user * p) tiocgetd() argument
2444 send_break(struct file * file,struct tty_struct * tty,unsigned int duration) send_break() argument
2495 tty_get_tiocm(struct tty_struct * tty) tty_get_tiocm() argument
2516 tty_tiocmget(struct tty_struct * tty,int __user * p) tty_tiocmget() argument
2538 tty_tiocmset(struct tty_struct * tty,unsigned int cmd,unsigned __user * p) tty_tiocmset() argument
2577 tty_get_icount(struct tty_struct * tty,struct serial_icounter_struct * icount) tty_get_icount() argument
2589 tty_tiocgicount(struct tty_struct * tty,void __user * arg) tty_tiocgicount() argument
2603 tty_set_serial(struct tty_struct * tty,struct serial_struct * ss) tty_set_serial() argument
2619 tty_tiocsserial(struct tty_struct * tty,struct serial_struct __user * ss) tty_tiocsserial() argument
2629 tty_tiocgserial(struct tty_struct * tty,struct serial_struct __user * ss) tty_tiocgserial() argument
2647 tty_pair_get_tty(struct tty_struct * tty) tty_pair_get_tty() argument
2660 struct tty_struct *tty = file_tty(file); tty_ioctl() local
2823 compat_tty_tiocsserial(struct tty_struct * tty,struct serial_struct32 __user * ss) compat_tty_tiocsserial() argument
2841 compat_tty_tiocgserial(struct tty_struct * tty,struct serial_struct32 __user * ss) compat_tty_tiocgserial() argument
2868 struct tty_struct *tty = file_tty(file); tty_compat_ioctl() local
3006 __do_SAK(struct tty_struct * tty) __do_SAK() argument
3051 struct tty_struct *tty = do_SAK_work() local
3062 do_SAK(struct tty_struct * tty) do_SAK() argument
3071 tty_get_device(struct tty_struct * tty) tty_get_device() argument
3090 struct tty_struct *tty; alloc_tty_struct() local
3141 tty_put_char(struct tty_struct * tty,u8 ch) tty_put_char() argument
3515 tty_devnum(struct tty_struct * tty) tty_devnum() argument
[all...]
H A Dtty_ioctl.c48 unsigned int tty_chars_in_buffer(struct tty_struct *tty) in tty_chars_in_buffer() argument
50 if (tty->ops->chars_in_buffer) in tty_chars_in_buffer()
51 return tty->ops->chars_in_buffer(tty); in tty_chars_in_buffer()
66 unsigned int tty_write_room(struct tty_struct *tty) in tty_write_room() argument
68 if (tty->ops->write_room) in tty_write_room()
69 return tty->ops->write_room(tty); in tty_write_room()
82 void tty_driver_flush_buffer(struct tty_struct *tty) in tty_driver_flush_buffer() argument
84 if (tty->ops->flush_buffer) in tty_driver_flush_buffer()
85 tty->ops->flush_buffer(tty); in tty_driver_flush_buffer()
101 void tty_unthrottle(struct tty_struct *tty) in tty_unthrottle() argument
[all …]
H A Dtty.h9 #define tty_msg(fn, tty, f, ...) \ argument
10 fn("%s %s: " f, tty_driver_name(tty), tty_name(tty), ##__VA_ARGS__)
12 #define tty_debug(tty, f, ...) tty_msg(pr_debug, tty, f, ##__VA_ARGS__) argument
13 #define tty_notice(tty, f, ...) tty_msg(pr_notice, tty, f, ##__VA_ARGS__) argument
14 #define tty_warn(tty, f, ...) tty_msg(pr_warn, tty, f, ##__VA_ARGS__) argument
15 #define tty_err(tty, f, ...) tty_msg(pr_err, tty, f, ##__VA_ARGS__) argument
17 #define tty_info_ratelimited(tty, f, ...) \ argument
18 tty_msg(pr_info_ratelimited, tty, f, ##__VA_ARGS__)
50 static inline void __tty_set_flow_change(struct tty_struct *tty, in __tty_set_flow_change() argument
53 tty->flow_change = val; in __tty_set_flow_change()
[all …]
H A Dtty_mutex.c15 void tty_lock(struct tty_struct *tty) in tty_lock() argument
17 tty_kref_get(tty); in tty_lock()
18 mutex_lock(&tty->legacy_mutex); in tty_lock()
22 int tty_lock_interruptible(struct tty_struct *tty) in tty_lock_interruptible() argument
26 tty_kref_get(tty); in tty_lock_interruptible()
27 ret = mutex_lock_interruptible(&tty->legacy_mutex); in tty_lock_interruptible()
29 tty_kref_put(tty); in tty_lock_interruptible()
33 void tty_unlock(struct tty_struct *tty) in tty_unlock() argument
35 mutex_unlock(&tty->legacy_mutex); in tty_unlock()
36 tty_kref_put(tty); in tty_unlock()
[all …]
H A Dtty_port.c8 #include <linux/tty.h>
21 #include "tty.h"
26 struct tty_struct *tty; in tty_port_default_receive_buf() local
29 tty = READ_ONCE(port->itty); in tty_port_default_receive_buf()
30 if (!tty) in tty_port_default_receive_buf()
33 ld = tty_ldisc_ref(tty); in tty_port_default_receive_buf()
47 struct tty_struct *tty; in tty_port_default_lookahead_buf() local
50 tty = READ_ONCE(port->itty); in tty_port_default_lookahead_buf()
51 if (!tty) in tty_port_default_lookahead_buf()
54 ld = tty_ldisc_ref(tty); in tty_port_default_lookahead_buf()
335 tty_port_tty_set(struct tty_port * port,struct tty_struct * tty) tty_port_tty_set() argument
343 tty_port_shutdown_locked(struct tty_port * port,struct tty_struct * tty) tty_port_shutdown_locked() argument
375 tty_port_shutdown(struct tty_port * port,struct tty_struct * tty) tty_port_shutdown() argument
393 struct tty_struct *tty; tty_port_hangup() local
421 struct tty_struct *tty = scoped_tty(); tty_port_tty_hangup() local
435 struct tty_struct *tty; tty_port_tty_vhangup() local
530 tty_port_block_til_ready(struct tty_port * port,struct tty_struct * tty,struct file * filp) tty_port_block_til_ready() argument
614 tty_port_drain_delay(struct tty_port * port,struct tty_struct * tty) tty_port_drain_delay() argument
644 tty_port_close_start(struct tty_port * port,struct tty_struct * tty,struct file * filp) tty_port_close_start() argument
695 tty_port_close_end(struct tty_port * port,struct tty_struct * tty) tty_port_close_end() argument
729 tty_port_close(struct tty_port * port,struct tty_struct * tty,struct file * filp) tty_port_close() argument
753 tty_port_install(struct tty_port * port,struct tty_driver * driver,struct tty_struct * tty) tty_port_install() argument
780 tty_port_open(struct tty_port * port,struct tty_struct * tty,struct file * filp) tty_port_open() argument
[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() argument
135 struct serial_state *info = tty->driver_data; in rs_stop()
150 static void rs_start(struct tty_struct *tty) in rs_start() argument
152 struct serial_state *info = tty->driver_data; in rs_start()
243 do_SAK(info->tport.tty); in receive_chars()
275 || info->tport.tty->flow.stopped in transmit_chars()
276 || info->tport.tty->hw_stopped) { in transmit_chars()
291 tty_wakeup(info->tport.tty); in transmit_chars()
[all …]
H A Dvcc.c27 struct tty_struct *tty; /* only populated while dev is open */ member
277 static int vcc_rx_check(struct tty_struct *tty, int size) in vcc_rx_check() argument
279 if (WARN_ON(!tty || !tty->port)) in vcc_rx_check()
285 if (test_bit(TTY_THROTTLED, &tty->flags) || in vcc_rx_check()
286 (tty_buffer_request_room(tty->port, VCC_BUFF_LEN) < VCC_BUFF_LEN)) in vcc_rx_check()
292 static int vcc_rx(struct tty_struct *tty, char *buf, int size) in vcc_rx() argument
296 if (WARN_ON(!tty || !tty->port)) in vcc_rx()
299 len = tty_insert_flip_string(tty->port, buf, size); in vcc_rx()
301 tty_flip_buffer_push(tty->port); in vcc_rx()
309 struct tty_struct *tty; in vcc_ldc_read() local
[all …]
/linux/drivers/accessibility/speakup/
H A Dspk_ttyio.c47 static int spk_ttyio_ldisc_open(struct tty_struct *tty) in spk_ttyio_ldisc_open() argument
51 if (tty != speakup_tty) in spk_ttyio_ldisc_open()
55 if (!tty->ops->write) in spk_ttyio_ldisc_open()
64 tty->disc_data = ldisc_data; in spk_ttyio_ldisc_open()
69 static void spk_ttyio_ldisc_close(struct tty_struct *tty) in spk_ttyio_ldisc_close() argument
71 kfree(tty->disc_data); 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() argument
77 struct spk_ldisc_data *ldisc_data = tty->disc_data; in spk_ttyio_receive_buf2()
135 static inline void get_termios(struct tty_struct *tty, in get_termios() argument
138 down_read(&tty->termios_rwsem); in get_termios()
[all …]
/linux/net/nfc/nci/
H A Duart.c23 #include <linux/tty.h>
74 struct tty_struct *tty = nu->tty; in nci_uart_write_work() local
86 set_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in nci_uart_write_work()
87 len = tty->ops->write(tty, skb->data, skb->len); in nci_uart_write_work()
105 static int nci_uart_set_driver(struct tty_struct *tty, unsigned int driver) in nci_uart_set_driver() argument
121 nu->tty = tty; in nci_uart_set_driver()
135 tty in nci_uart_set_driver()
151 nci_uart_tty_open(struct tty_struct * tty) nci_uart_tty_open() argument
173 nci_uart_tty_close(struct tty_struct * tty) nci_uart_tty_close() argument
205 nci_uart_tty_wakeup(struct tty_struct * tty) nci_uart_tty_wakeup() argument
298 nci_uart_tty_receive(struct tty_struct * tty,const u8 * data,const u8 * flags,size_t count) nci_uart_tty_receive() argument
325 nci_uart_tty_ioctl(struct tty_struct * tty,unsigned int cmd,unsigned long arg) nci_uart_tty_ioctl() argument
347 nci_uart_tty_read(struct tty_struct * tty,struct file * file,u8 * buf,size_t nr,void ** cookie,unsigned long offset) nci_uart_tty_read() argument
354 nci_uart_tty_write(struct tty_struct * tty,struct file * file,const u8 * data,size_t count) nci_uart_tty_write() argument
[all...]
/linux/drivers/input/serio/
H A Dserport.c32 struct tty_struct *tty; member
47 return -(serport->tty->ops->write(serport->tty, &data, 1) != 1); in serport_serio_write()
74 static int serport_ldisc_open(struct tty_struct *tty) in serport_ldisc_open() argument
85 serport->tty = tty; in serport_ldisc_open()
89 tty->disc_data = serport; in serport_ldisc_open()
90 tty->receive_room = 256; in serport_ldisc_open()
91 set_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in serport_ldisc_open()
100 static void serport_ldisc_close(struct tty_struct *tty) in serport_ldisc_close() argument
102 struct serport *serport = tty->disc_data; in serport_ldisc_close()
113 static void serport_ldisc_receive(struct tty_struct *tty, const u8 *cp, in serport_ldisc_receive() argument
[all …]
/linux/drivers/bluetooth/
H A Dhci_ldisc.c150 struct tty_struct *tty = hu->tty; in hci_uart_write_work() local
164 set_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in hci_uart_write_work()
165 len = tty->ops->write(tty, skb->data, skb->len); in hci_uart_write_work()
244 struct tty_struct *tty = hu->tty; in hci_uart_flush() local
246 BT_DBG("hdev %p tty %p", hdev, tty); in hci_uart_flush()
255 tty_ldisc_flush(tty); in hci_uart_flush()
256 tty_driver_flush_buffer(tty); in hci_uart_flush()
328 if (hu->tty->driver->ops->tiocmget && hu->tty->driver->ops->tiocmset) in hci_uart_has_flow_control()
337 struct tty_struct *tty = hu->tty; in hci_uart_set_flow_control() local
351 ktermios = tty->termios; in hci_uart_set_flow_control()
[all …]
/linux/drivers/usb/serial/
H A Dupd78f0730.c23 #include <linux/tty.h>
183 static int upd78f0730_tiocmget(struct tty_struct *tty) in upd78f0730_tiocmget() argument
186 struct usb_serial_port *port = tty->driver_data; in upd78f0730_tiocmget()
240 static int upd78f0730_tiocmset(struct tty_struct *tty, unsigned int set, unsigned int clear)
242 struct usb_serial_port *port = tty->driver_data; in upd78f0730_break_ctl()
247 static int upd78f0730_break_ctl(struct tty_struct *tty, int break_state) in upd78f0730_break_ctl()
250 struct usb_serial_port *port = tty->driver_data; in upd78f0730_break_ctl()
287 static speed_t upd78f0730_get_baud_rate(struct tty_struct *tty) in upd78f0730_get_baud_rate()
289 const speed_t baud_rate = tty_get_baud_rate(tty); in upd78f0730_get_baud_rate()
301 tty_encode_baud_rate(tty, 960 argument
204 upd78f0730_tiocmset(struct tty_struct * tty,unsigned int set,unsigned int clear) upd78f0730_tiocmset() argument
241 upd78f0730_break_ctl(struct tty_struct * tty,int break_state) upd78f0730_break_ctl() argument
270 struct tty_struct *tty = port->port.tty; upd78f0730_dtr_rts() local
282 upd78f0730_get_baud_rate(struct tty_struct * tty) upd78f0730_get_baud_rate() argument
379 upd78f0730_open(struct tty_struct * tty,struct usb_serial_port * port) upd78f0730_open() argument
[all...]
H A Dconsole.c67 struct tty_struct *tty = NULL; in usb_console_setup() local
136 tty = kzalloc_obj(*tty); in usb_console_setup()
137 if (!tty) { in usb_console_setup()
141 kref_init(&tty->kref); in usb_console_setup()
142 tty->driver = usb_serial_tty_driver; in usb_console_setup()
143 tty->index = co->index; in usb_console_setup()
144 init_ldsem(&tty->ldisc_sem); in usb_console_setup()
145 spin_lock_init(&tty->files_lock); in usb_console_setup()
146 INIT_LIST_HEAD(&tty->tty_files); in usb_console_setup()
147 kref_get(&tty->driver->kref); in usb_console_setup()
[all …]
H A Dxr_serial.c108 static void xr21v141x_set_line_settings(struct tty_struct *tty,
138 void (*set_line_settings)(struct tty_struct *tty,
439 static int xr_tiocmget(struct tty_struct *tty) in xr_tiocmget() argument
441 struct usb_serial_port *port = tty->driver_data; in xr_tiocmget()
493 static int xr_tiocmset(struct tty_struct *tty, in xr_tiocmset() argument
496 struct usb_serial_port *port = tty->driver_data; in xr_tiocmset()
509 static int xr_break_ctl(struct tty_struct *tty, int break_state) in xr_break_ctl() argument
511 struct usb_serial_port *port = tty->driver_data; in xr_break_ctl()
562 static int xr21v141x_set_baudrate(struct tty_struct *tty, struct usb_serial_port *port) in xr21v141x_set_baudrate() argument
568 baud = tty->termios.c_ospeed; in xr21v141x_set_baudrate()
[all …]
/linux/drivers/mmc/core/
H A Dsdio_uart.c
/linux/sound/soc/codecs/
H A Dcx20442.c12 #include <linux/tty.h>
25 struct tty_struct *tty; member
162 /* tty and write pointers required for talking to the modem in cx20442_write()
164 if (!cx20442->tty || !cx20442->tty->ops->write) in cx20442_write()
193 if (cx20442->tty->ops->write(cx20442->tty, buf, len) != len) in cx20442_write()
212 static int v253_open(struct tty_struct *tty) in v253_open() argument
217 if (!tty->ops->write) in v253_open()
221 if (!tty in v253_open()
237 v253_close(struct tty_struct * tty) v253_close() argument
255 v253_hangup(struct tty_struct * tty) v253_hangup() argument
261 v253_receive(struct tty_struct * tty,const u8 * cp,const u8 * fp,size_t count) v253_receive() argument
389 struct tty_struct *tty = cx20442->tty; cx20442_component_remove() local
[all...]
/linux/tools/testing/selftests/tty/
H A Dtty_tstamp_update.c16 static bool tty_valid(char *tty) in tty_valid() argument
18 if (strlen(tty) < MIN_TTY_PATH_LEN) in tty_valid()
21 if (strncmp(tty, "/dev/tty", MIN_TTY_PATH_LEN) == 0 || in tty_valid()
22 strncmp(tty, "/dev/pts", MIN_TTY_PATH_LEN) == 0) in tty_valid()
48 char tty[PATH_MAX] = {}; in main() local
55 r = readlink("/proc/self/fd/0", tty, PATH_MAX); in main()
61 if (!tty_valid(tty)) { in main()
62 ksft_print_msg("invalid tty path '%s'\n", tty); in main()
68 r = stat(tty, &st1); in main()
70 ksft_print_msg("stat failed on tty path '%s': %m\n", tty); in main()
[all …]
/linux/include/linux/usb/
H A Dserial.h226 * the corresponding tty port functions are called. If they are not
269 /* Called by console and by the tty layer */
270 int (*open)(struct tty_struct *tty, struct usb_serial_port *port);
272 int (*write)(struct tty_struct *tty, struct usb_serial_port *port,
274 /* Called only by the tty layer */
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, struc
[all...]
/linux/drivers/misc/bcm-vk/
H A Dbcm_vk_tty.c81 vktty = &vk->tty[i]; in bcm_vk_tty_wq_handler()
106 while (vk->tty[i].rd != wr) { in bcm_vk_tty_wq_handler()
126 static int bcm_vk_tty_open(struct tty_struct *tty, struct file *file) in bcm_vk_tty_open() argument
134 tty->driver_data = NULL; in bcm_vk_tty_open()
136 vk = (struct bcm_vk *)dev_get_drvdata(tty->dev); in bcm_vk_tty_open()
137 index = tty->index; in bcm_vk_tty_open()
142 vktty = &vk->tty[index]; in bcm_vk_tty_open()
163 if (tty->count == 1 && !vktty->irq_enabled) { in bcm_vk_tty_open()
170 static void bcm_vk_tty_close(struct tty_struct *tty, struct file *file) in bcm_vk_tty_close() argument
172 struct bcm_vk *vk = dev_get_drvdata(tty->dev); in bcm_vk_tty_close()
[all …]
/linux/drivers/tty/hvc/
H A Dhvc_console.c320 static void hvc_unthrottle(struct tty_struct *tty) in hvc_unthrottle() argument
325 static int hvc_install(struct tty_driver *driver, struct tty_struct *tty) in hvc_install() argument
331 hp = hvc_get_by_index(tty->index); in hvc_install()
335 tty->driver_data = hp; in hvc_install()
337 rc = tty_port_install(&hp->port, driver, tty); in hvc_install()
347 static int hvc_open(struct tty_struct *tty, struct file * filp) in hvc_open() argument
349 struct hvc_struct *hp = tty->driver_data; in hvc_open()
362 tty_port_tty_set(&hp->port, tty); in hvc_open()
377 if (C_BAUD(tty)) in hvc_open()
389 static void hvc_close(struct tty_struct *tty, struct file * filp) in hvc_close() argument
[all …]
/linux/arch/um/drivers/
H A Dline.c50 unsigned int line_write_room(struct tty_struct *tty) in line_write_room() argument
52 struct line *line = tty->driver_data; in line_write_room()
63 unsigned int line_chars_in_buffer(struct tty_struct *tty) in line_chars_in_buffer() argument
65 struct line *line = tty->driver_data; in line_chars_in_buffer()
168 void line_flush_buffer(struct tty_struct *tty) in line_flush_buffer() argument
170 struct line *line = tty->driver_data; in line_flush_buffer()
182 void line_flush_chars(struct tty_struct *tty) in line_flush_chars() argument
184 line_flush_buffer(tty); in line_flush_chars()
187 ssize_t line_write(struct tty_struct *tty, const u8 *buf, size_t len) in line_write() argument
189 struct line *line = tty->driver_data; in line_write()
[all …]
/linux/net/bluetooth/rfcomm/
H A Dtty.c107 static int rfcomm_dev_activate(struct tty_port *port, struct tty_struct *tty) in rfcomm_dev_activate() argument
114 set_bit(TTY_IO_ERROR, &tty->flags); in rfcomm_dev_activate()
318 struct device *tty; in rfcomm_dev_add() local
328 tty = tty_port_register_device(&dev->port, rfcomm_tty_driver, in rfcomm_dev_add()
330 if (IS_ERR(tty)) { in rfcomm_dev_add()
332 return PTR_ERR(tty); in rfcomm_dev_add()
335 dev->tty_dev = tty; in rfcomm_dev_add()
674 static void rfcomm_tty_cleanup(struct tty_struct *tty) in rfcomm_tty_cleanup() argument
676 struct rfcomm_dev *dev = tty->driver_data; in rfcomm_tty_cleanup()
681 tty->driver_data = NULL; in rfcomm_tty_cleanup()
[all …]

1234567