Home
last modified time | relevance | path

Searched defs:tty (Results 1 – 25 of 78) sorted by relevance

1234

/linux/drivers/tty/
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 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.h9 #define tty_msg(fn, tty, f, ...) \ argument
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
50 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()
96 #define tty_is_writelocked(tty) (mutex_is_locked(&tty->atomic_write_lock)) argument
111 static inline void tty_audit_add_data(const struct tty_struct *tty, in tty_audit_add_data()
[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 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 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
292 static int vcc_rx(struct tty_struct *tty, char *buf, int size) in vcc_rx() argument
309 struct tty_struct *tty; vcc_ldc_read() local
413 struct tty_struct *tty = port->tty; vcc_tx_timer() local
734 vcc_open(struct tty_struct * tty,struct file * vcc_file) vcc_open() argument
769 vcc_close(struct tty_struct * tty,struct file * vcc_file) vcc_close() argument
794 vcc_hangup(struct tty_struct * tty) vcc_hangup() argument
817 vcc_write(struct tty_struct * tty,const u8 * buf,size_t count) vcc_write() argument
882 vcc_write_room(struct tty_struct * tty) vcc_write_room() argument
900 vcc_chars_in_buffer(struct tty_struct * tty) vcc_chars_in_buffer() argument
918 vcc_break_ctl(struct tty_struct * tty,int state) vcc_break_ctl() argument
947 vcc_install(struct tty_driver * driver,struct tty_struct * tty) vcc_install() argument
983 vcc_cleanup(struct tty_struct * tty) vcc_cleanup() argument
[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 Dgoldfish.c155 static int goldfish_tty_activate(struct tty_port *port, struct tty_struct *tty) in goldfish_tty_activate()
170 static int goldfish_tty_open(struct tty_struct *tty, struct file *filp) in goldfish_tty_open()
176 static void goldfish_tty_close(struct tty_struct *tty, struct file *filp) in goldfish_tty_close()
181 static void goldfish_tty_hangup(struct tty_struct *tty) in goldfish_tty_hangup()
186 static ssize_t goldfish_tty_write(struct tty_struct *tty, const u8 *buf, in goldfish_tty_write()
193 static unsigned int goldfish_tty_write_room(struct tty_struct *tty) in goldfish_tty_write_room()
198 static unsigned int goldfish_tty_chars_in_buffer(struct tty_struct *tty) in goldfish_tty_chars_in_buffer()
244 struct tty_driver *tty; in goldfish_tty_create_driver() local
/linux/drivers/accessibility/speakup/
H A Dspk_ttyio.c47 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() local
226 struct tty_struct *tty = in_synth->dev; in spk_ttyio_out() local
272 struct tty_struct *tty = in_synth->dev; in spk_ttyio_send_xchar() local
280 struct tty_struct *tty = in_synth->dev; in spk_ttyio_tiocmset() local
293 struct tty_struct *tty = in_synth->dev; in ttyio_in() local
333 struct tty_struct *tty = in_synth->dev; in spk_ttyio_flush_buffer() local
[all …]
/linux/drivers/input/serio/
H A Dserport.c32 struct tty_struct *tty; member
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/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() local
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 …]
H A Dhvcs.c485 static void hvcs_unthrottle(struct tty_struct *tty) in hvcs_unthrottle()
496 static void hvcs_throttle(struct tty_struct *tty) in hvcs_throttle()
528 struct tty_struct *tty = hvcsd->port.tty; in hvcs_try_write() local
558 struct tty_struct *tty; in hvcs_io() local
802 struct tty_struct *tty; in hvcs_remove() local
1058 static int hvcs_install(struct tty_driver *driver, struct tty_struct *tty) in hvcs_install()
1135 static int hvcs_open(struct tty_struct *tty, struct file *filp) in hvcs_open()
1153 static void hvcs_close(struct tty_struct *tty, struct file *filp) in hvcs_close()
1206 static void hvcs_cleanup(struct tty_struct * tty) in hvcs_cleanup()
1220 static void hvcs_hangup(struct tty_struct * tty) in hvcs_hangup()
[all …]
H A Dhvsi.c226 struct tty_struct *tty, struct hvsi_struct **to_handshake) in hvsi_recv_control()
388 static int hvsi_load_chunk(struct hvsi_struct *hp, struct tty_struct *tty, in hvsi_load_chunk()
479 struct tty_struct *tty; in hvsi_interrupt() local
699 static int hvsi_open(struct tty_struct *tty, struct file *filp) in hvsi_open()
762 static void hvsi_close(struct tty_struct *tty, struct file *filp) in hvsi_close()
814 static void hvsi_hangup(struct tty_struct *tty) in hvsi_hangup()
893 static unsigned int hvsi_write_room(struct tty_struct *tty) in hvsi_write_room()
900 static unsigned int hvsi_chars_in_buffer(struct tty_struct *tty) in hvsi_chars_in_buffer()
907 static ssize_t hvsi_write(struct tty_struct *tty, const u8 *source, in hvsi_write()
965 static void hvsi_throttle(struct tty_struct *tty) in hvsi_throttle()
[all …]
/linux/net/nfc/nci/
H A Duart.c74 struct tty_struct *tty = nu->tty; in nci_uart_write_work() local
105 static int nci_uart_set_driver(struct tty_struct *tty, unsigned int driver) in nci_uart_set_driver() argument
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/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
318 struct device *tty; in rfcomm_dev_add() local
674 static void rfcomm_tty_cleanup(struct tty_struct *tty) in rfcomm_tty_cleanup() argument
697 rfcomm_tty_install(struct tty_driver * driver,struct tty_struct * tty) rfcomm_tty_install() argument
735 rfcomm_tty_open(struct tty_struct * tty,struct file * filp) rfcomm_tty_open() argument
761 rfcomm_tty_close(struct tty_struct * tty,struct file * filp) rfcomm_tty_close() argument
771 rfcomm_tty_write(struct tty_struct * tty,const u8 * buf,size_t count) rfcomm_tty_write() argument
801 rfcomm_tty_write_room(struct tty_struct * tty) rfcomm_tty_write_room() argument
814 rfcomm_tty_ioctl(struct tty_struct * tty,unsigned int cmd,unsigned long arg) rfcomm_tty_ioctl() argument
847 rfcomm_tty_set_termios(struct tty_struct * tty,const struct ktermios * old) rfcomm_tty_set_termios() argument
986 rfcomm_tty_throttle(struct tty_struct * tty) rfcomm_tty_throttle() argument
995 rfcomm_tty_unthrottle(struct tty_struct * tty) rfcomm_tty_unthrottle() argument
1004 rfcomm_tty_chars_in_buffer(struct tty_struct * tty) rfcomm_tty_chars_in_buffer() argument
1019 rfcomm_tty_flush_buffer(struct tty_struct * tty) rfcomm_tty_flush_buffer() argument
1032 rfcomm_tty_send_xchar(struct tty_struct * tty,u8 ch) rfcomm_tty_send_xchar() argument
1037 rfcomm_tty_wait_until_sent(struct tty_struct * tty,int timeout) rfcomm_tty_wait_until_sent() argument
1042 rfcomm_tty_hangup(struct tty_struct * tty) rfcomm_tty_hangup() argument
1051 rfcomm_tty_tiocmget(struct tty_struct * tty) rfcomm_tty_tiocmget() argument
1064 rfcomm_tty_tiocmset(struct tty_struct * tty,unsigned int set,unsigned int clear) rfcomm_tty_tiocmset() argument
[all...]
/linux/arch/um/drivers/
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()
309 struct tty_struct *tty = tty_port_tty_get(port); in line_destruct() local
323 int line_open(struct tty_struct *tty, struct file *filp) in line_open()
[all …]
/linux/drivers/bluetooth/
H A Dhci_ldisc.c150 struct tty_struct *tty = hu->tty; in hci_uart_write_work() local
244 struct tty_struct *tty = hu->tty; in hci_uart_flush() local
337 struct tty_struct *tty = hu->tty; in hci_uart_set_flow_control() local
402 struct tty_struct *tty = hu->tty; in hci_uart_set_baudrate() local
503 static int hci_uart_tty_open(struct tty_struct *tty) in hci_uart_tty_open()
554 static void hci_uart_tty_close(struct tty_struct *tty) in hci_uart_tty_close()
616 static void hci_uart_tty_wakeup(struct tty_struct *tty) in hci_uart_tty_wakeup()
647 static void hci_uart_tty_receive(struct tty_struct *tty, const u8 *data, in hci_uart_tty_receive()
803 static int hci_uart_tty_ioctl(struct tty_struct *tty, unsigned int cmd, in hci_uart_tty_ioctl()
862 static ssize_t hci_uart_tty_read(struct tty_struct *tty, struct file *file, in hci_uart_tty_read()
[all …]
/linux/drivers/usb/class/
H A Dcdc-acm.c640 acm_tty_install(struct tty_driver * driver,struct tty_struct * tty) acm_tty_install() argument
669 acm_tty_open(struct tty_struct * tty,struct file * filp) acm_tty_open() argument
696 acm_port_activate(struct tty_port * port,struct tty_struct * tty) acm_port_activate() argument
806 acm_tty_cleanup(struct tty_struct * tty) acm_tty_cleanup() argument
813 acm_tty_hangup(struct tty_struct * tty) acm_tty_hangup() argument
820 acm_tty_close(struct tty_struct * tty,struct file * filp) acm_tty_close() argument
827 acm_tty_write(struct tty_struct * tty,const u8 * buf,size_t count) acm_tty_write() argument
881 acm_tty_write_room(struct tty_struct * tty) acm_tty_write_room() argument
891 acm_tty_flush_buffer(struct tty_struct * tty) acm_tty_flush_buffer() argument
904 acm_tty_chars_in_buffer(struct tty_struct * tty) acm_tty_chars_in_buffer() argument
919 acm_tty_throttle(struct tty_struct * tty) acm_tty_throttle() argument
926 acm_tty_unthrottle(struct tty_struct * tty) acm_tty_unthrottle() argument
938 acm_tty_break_ctl(struct tty_struct * tty,int state) acm_tty_break_ctl() argument
953 acm_tty_tiocmget(struct tty_struct * tty) acm_tty_tiocmget() argument
965 acm_tty_tiocmset(struct tty_struct * tty,unsigned int set,unsigned int clear) acm_tty_tiocmset() argument
984 get_serial_info(struct tty_struct * tty,struct serial_struct * ss) get_serial_info() argument
998 set_serial_info(struct tty_struct * tty,struct serial_struct * ss) set_serial_info() argument
1067 acm_tty_get_icount(struct tty_struct * tty,struct serial_icounter_struct * icount) acm_tty_get_icount() argument
1083 acm_tty_ioctl(struct tty_struct * tty,unsigned int cmd,unsigned long arg) acm_tty_ioctl() argument
1104 acm_tty_set_termios(struct tty_struct * tty,const struct ktermios * termios_old) acm_tty_set_termios() argument
[all...]
/linux/drivers/mmc/core/
H A Dsdio_uart.c414 struct tty_struct *tty; in sdio_uart_transmit_chars() local
451 struct tty_struct *tty; in sdio_uart_check_modem_status() local
579 static int sdio_uart_activate(struct tty_port *tport, struct tty_struct *tty) in sdio_uart_activate()
711 static int sdio_uart_install(struct tty_driver *driver, struct tty_struct *tty) in sdio_uart_install()
733 static void sdio_uart_cleanup(struct tty_struct *tty) in sdio_uart_cleanup()
744 static int sdio_uart_open(struct tty_struct *tty, struct file *filp) in sdio_uart_open()
750 static void sdio_uart_close(struct tty_struct *tty, struct file * filp) in sdio_uart_close()
756 static void sdio_uart_hangup(struct tty_struct *tty) in sdio_uart_hangup()
762 static ssize_t sdio_uart_write(struct tty_struct *tty, const u8 *buf, in sdio_uart_write()
785 static unsigned int sdio_uart_write_room(struct tty_struct *tty) in sdio_uart_write_room()
[all …]
/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/net/ppp/
H A Dppp_synctty.c51 struct tty_struct *tty; member
119 ppp_sync_open(struct tty_struct *tty) in ppp_sync_open()
170 ppp_sync_close(struct tty_struct *tty) in ppp_sync_close()
191 ppp_sync_read(struct tty_struct *tty, struct file *file, u8 *buf, size_t count, in ppp_sync_read()
202 ppp_sync_write(struct tty_struct *tty, struct file *file, const u8 *buf, in ppp_sync_write()
209 ppp_synctty_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) in ppp_synctty_ioctl()
257 ppp_sync_receive(struct tty_struct *tty, const u8 *buf, const u8 *cflags, in ppp_sync_receive()
274 ppp_sync_wakeup(struct tty_struct *tty) in ppp_sync_wakeup()
511 struct tty_struct *tty = ap->tty; in ppp_sync_push() local
/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/sound/soc/codecs/
H A Dcx20442.c25 struct tty_struct *tty; member
212 static int v253_open(struct tty_struct *tty) in v253_open() argument
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/arch/xtensa/platforms/iss/
H A Dconsole.c40 static int rs_open(struct tty_struct *tty, struct file * filp) in rs_open()
48 static void rs_close(struct tty_struct *tty, struct file * filp) in rs_close()
55 static ssize_t rs_write(struct tty_struct * tty, const u8 *buf, size_t count) in rs_write()
84 static unsigned int rs_write_room(struct tty_struct *tty) in rs_write_room()
/linux/drivers/usb/serial/
H A Dupd78f0730.c183 static int upd78f0730_tiocmget(struct tty_struct *tty) in upd78f0730_tiocmget()
204 static int upd78f0730_tiocmset(struct tty_struct *tty, in upd78f0730_tiocmset()
241 static int upd78f0730_break_ctl(struct tty_struct *tty, int break_state) in upd78f0730_break_ctl()
270 struct tty_struct *tty = port->port.tty; in upd78f0730_dtr_rts() local
282 static speed_t upd78f0730_get_baud_rate(struct tty_struct *tty) in upd78f0730_get_baud_rate()
301 static void upd78f0730_set_termios(struct tty_struct *tty, in upd78f0730_set_termios()
379 static int upd78f0730_open(struct tty_struct *tty, struct usb_serial_port *port) in upd78f0730_open()

1234