Home
last modified time | relevance | path

Searched refs:tty_port (Results 1 – 25 of 93) sorted by relevance

1234

/linux/include/linux/
H A Dtty_port.h13 struct tty_port;
34 bool (*carrier_raised)(struct tty_port *port);
35 void (*dtr_rts)(struct tty_port *port, bool active);
36 void (*shutdown)(struct tty_port *port);
37 int (*activate)(struct tty_port *port, struct tty_struct *tty);
38 void (*destruct)(struct tty_port *port);
42 size_t (*receive_buf)(struct tty_port *port, const u8 *cp, const u8 *fp,
44 void (*lookahead_buf)(struct tty_port *port, const u8 *cp,
46 void (*write_wakeup)(struct tty_port *port);
101 struct tty_port { struct
[all …]
H A Dtty_flip.h10 int tty_buffer_set_limit(struct tty_port *port, int limit);
11 unsigned int tty_buffer_space_avail(struct tty_port *port);
12 int tty_buffer_request_room(struct tty_port *port, size_t size);
13 size_t __tty_insert_flip_string_flags(struct tty_port *port, const u8 *chars,
16 size_t tty_prepare_flip_string(struct tty_port *port, u8 **chars, size_t size);
17 void tty_flip_buffer_push(struct tty_port *port);
31 static inline size_t tty_insert_flip_string_fixed_flag(struct tty_port *port, in tty_insert_flip_string_fixed_flag()
50 static inline size_t tty_insert_flip_string_flags(struct tty_port *port, in tty_insert_flip_string_flags()
65 static inline size_t tty_insert_flip_char(struct tty_port *port, u8 ch, u8 flag) in tty_insert_flip_char()
80 static inline size_t tty_insert_flip_string(struct tty_port *port, in tty_insert_flip_string()
[all …]
/linux/drivers/tty/
H A Dtty_port.c23 static size_t tty_port_default_receive_buf(struct tty_port *port, const u8 *p, in tty_port_default_receive_buf()
44 static void tty_port_default_lookahead_buf(struct tty_port *port, const u8 *p, in tty_port_default_lookahead_buf()
64 static void tty_port_default_wakeup(struct tty_port *port) in tty_port_default_wakeup()
86 void tty_port_init(struct tty_port *port) in tty_port_init()
113 void tty_port_link_wq(struct tty_port *port, struct workqueue_struct *flip_wq) in tty_port_link_wq()
130 void tty_port_link_device(struct tty_port *port, in tty_port_link_device()
150 struct device *tty_port_register_device(struct tty_port *port, in tty_port_register_device()
171 struct device *tty_port_register_device_attr(struct tty_port *port, in tty_port_register_device_attr()
196 struct device *tty_port_register_device_attr_serdev(struct tty_port *port, in tty_port_register_device_attr_serdev()
227 void tty_port_unregister_device(struct tty_port *port, in tty_port_unregister_device()
[all …]
H A Dtty.h76 void tty_buffer_free_all(struct tty_port *port);
78 void tty_buffer_init(struct tty_port *port);
79 void tty_buffer_set_lock_subclass(struct tty_port *port);
80 bool tty_buffer_restart_work(struct tty_port *port);
81 bool tty_buffer_cancel_work(struct tty_port *port);
82 void tty_buffer_flush_work(struct tty_port *port);
122 int tty_insert_flip_string_and_push_buffer(struct tty_port *port,
H A Drpmsg_tty.c30 struct tty_port port; /* TTY port data */
53 struct tty_port *port; in rpmsg_tty_install()
155 static void rpmsg_tty_destruct_port(struct tty_port *port) in rpmsg_tty_destruct_port()
H A Damiserial.c71 struct tty_port tport;
305 struct tty_port *port = &info->tport; in check_modem_status()
443 struct tty_port *port = &info->tport; in rs_startup()
569 struct tty_port *port = &info->tport; in change_speed()
918 struct tty_port *port = &state->tport; in set_serial_info()
1226 struct tty_port *port = &state->tport; in rs_close()
1342 struct tty_port *port = tty->port; in rs_open()
1454 static bool amiga_carrier_raised(struct tty_port *port) in amiga_carrier_raised()
1459 static void amiga_dtr_rts(struct tty_port *port, bool active) in amiga_dtr_rts()
H A Dgoldfish.c37 struct tty_port port;
155 static int goldfish_tty_activate(struct tty_port *port, struct tty_struct *tty) in goldfish_tty_activate()
163 static void goldfish_tty_shutdown(struct tty_port *port) in goldfish_tty_shutdown()
/linux/Documentation/driver-api/tty/
H A Dtty_port.rst9 The TTY drivers are advised to use struct tty_port helpers as much as possible.
10 If the drivers implement :c:member:`tty_port.ops.activate()` and
11 :c:member:`tty_port.ops.shutdown()`, they can use tty_port_open(),
24 .. kernel-doc:: drivers/tty/tty_port.c
31 .. kernel-doc:: drivers/tty/tty_port.c
39 .. kernel-doc:: drivers/tty/tty_port.c
45 .. kernel-doc:: include/linux/tty_port.h
47 .. kernel-doc:: drivers/tty/tty_port.c
53 .. kernel-doc:: drivers/tty/tty_port.c
62 .. kernel-doc:: include/linux/tty_port.h
[all …]
H A Dindex.rst14 corresponding struct tty_port. These devices are maintained by a TTY driver
35 tty_port
63 :doc:`tty_port`.
/linux/arch/alpha/kernel/
H A Dsrmcons.c36 struct tty_port port;
50 srmcons_do_receive_chars(struct tty_port *port) in srmcons_do_receive_chars()
74 struct tty_port *port = &srmconsp->port; in srmcons_receive_chars()
95 srmcons_do_write(struct tty_port *port, const u8 *buf, size_t count) in srmcons_do_write()
153 struct tty_port *port = &srmconsp->port; in srmcons_open()
174 struct tty_port *port = &srmconsp->port; in srmcons_close()
/linux/drivers/s390/char/
H A Dkeyboard.h35 struct tty_port *port;
56 kbd_put_queue(struct tty_port *port, int ch) in kbd_put_queue()
63 kbd_puts_queue(struct tty_port *port, char *cp) in kbd_puts_queue()
/linux/arch/um/drivers/
H A Dchan_user.h42 struct tty_port;
43 extern void register_winch(int fd, struct tty_port *port);
45 struct tty_port *port, unsigned long stack);
H A Dchan_user.c239 static int winch_tramp(int fd, struct tty_port *port, int *fd_out, in winch_tramp()
296 void register_winch(int fd, struct tty_port *port) in register_winch()
H A Dchan.h40 extern void chan_enable_winch(struct chan *chan, struct tty_port *port);
/linux/drivers/tty/serial/
H A Dserial_core.c59 static void uart_port_shutdown(struct tty_port *port);
245 static int uart_alloc_xmit_buf(struct tty_port *port) in uart_alloc_xmit_buf()
278 static void uart_free_xmit_buf(struct tty_port *port) in uart_free_xmit_buf()
359 struct tty_port *port = &state->port; in uart_startup()
392 struct tty_port *port = &state->port; in uart_shutdown()
785 static int uart_get_info(struct tty_port *port, struct serial_struct *retinfo) in uart_get_info()
828 struct tty_port *port = &state->port; in uart_get_info_user()
888 static int uart_set_info(struct tty_struct *tty, struct tty_port *port, in uart_set_info()
1036 struct tty_port *port = &state->port; in uart_set_info_user()
1081 struct tty_port *port = &state->port; in uart_tiocmget()
[all …]
H A Dsunhv.c43 struct tty_port *tport) in transmit_chars_putchar()
57 static void transmit_chars_write(struct uart_port *port, struct tty_port *tport) in transmit_chars_write()
173 void (*transmit_chars)(struct uart_port *port, struct tty_port *tport);
189 static struct tty_port *receive_chars(struct uart_port *port) in receive_chars()
191 struct tty_port *tport = NULL; in receive_chars()
204 struct tty_port *tport; in transmit_chars()
222 struct tty_port *tport; in sunhv_interrupt()
H A Dserial-tegra.c531 struct tty_port *tport = &tup->uport.state->port; in tegra_uart_tx_dma_complete()
551 struct tty_port *tport = &tup->uport.state->port; in tegra_uart_start_tx_dma()
582 struct tty_port *tport = &tup->uport.state->port; in tegra_uart_start_next_tx()
609 struct tty_port *tport = &u->state->port; in tegra_uart_start_tx()
651 struct tty_port *tport = &tup->uport.state->port; in tegra_uart_handle_tx_pio()
661 struct tty_port *port) in tegra_uart_handle_rx_pio()
689 struct tty_port *port, in tegra_uart_copy_rx_to_tty()
718 struct tty_port *port = &tup->uport.state->port; in do_handle_rx_pio()
730 struct tty_port *port = &tup->uport.state->port; in tegra_uart_rx_buffer_push()
929 struct tty_port *port = &tup->uport.state->port; in tegra_uart_stop_rx()
H A Dtegra-tcu.c94 struct tty_port *tport = &port->state->port; in tegra_tcu_uart_start_tx()
165 struct tty_port *port = &tcu->port.state->port; in tegra_tcu_receive()
/linux/drivers/tty/serial/8250/
H A D8250_dma.c18 struct tty_port *tport = &p->port.state->port; in __dma_tx_complete()
44 struct tty_port *tty_port = &p->port.state->port; in __dma_rx_complete() local
60 tty_insert_flip_string(tty_port, dma->rx_buf, count); in __dma_rx_complete()
64 tty_flip_buffer_push(tty_port); in __dma_rx_complete()
89 struct tty_port *tport = &p->port.state->port; in serial8250_tx_dma()
H A D8250_pci1xxxx.c417 struct tty_port *tty_port = &port->state->port; in pci1xxxx_rx_burst() local
427 copied_len = (u32)tty_insert_flip_string(tty_port, rx_buff, in pci1xxxx_rx_burst()
434 tty_flip_buffer_push(tty_port); in pci1xxxx_rx_burst()
442 struct tty_port *tport = &port->state->port; in pci1xxxx_process_write_data()
489 struct tty_port *tport = &port->state->port; in pci1xxxx_tx_burst()
558 struct tty_port *tport = &port->state->port; in pci1xxxx_port_suspend()
585 struct tty_port *tport = &port->state->port; in pci1xxxx_port_resume()
/linux/arch/xtensa/platforms/iss/
H A Dconsole.c37 static struct tty_port serial_port;
65 struct tty_port *port = &serial_port; in rs_poll()
/linux/drivers/char/
H A Dttyprintk.c22 struct tty_port port;
141 static void tpk_port_shutdown(struct tty_port *tport) in tpk_port_shutdown()
/linux/drivers/usb/serial/
H A Dusb-serial.c251 static int serial_port_activate(struct tty_port *tport, struct tty_struct *tty) in serial_port_activate()
299 static void serial_port_shutdown(struct tty_port *tport) in serial_port_shutdown()
435 struct tty_port *tport = &port->port; in serial_get_serial()
465 struct tty_port *tport = &port->port; in serial_set_serial()
506 struct tty_port *tport = &port->port; in serial_ioctl()
541 struct tty_port *tport = &port->port; in serial_set_termios()
559 struct tty_port *tport = &port->port; in serial_break()
615 struct tty_port *tport = &port->port; in serial_tiocmget()
637 struct tty_port *tport = &port->port; in serial_tiocmset()
805 static bool serial_port_carrier_raised(struct tty_port *port) in serial_port_carrier_raised()
[all …]
/linux/drivers/mmc/core/
H A Dsdio_uart.c65 struct tty_port port;
528 static bool uart_carrier_raised(struct tty_port *tport) in uart_carrier_raised()
550 static void uart_dtr_rts(struct tty_port *tport, bool active) in uart_dtr_rts()
579 static int sdio_uart_activate(struct tty_port *tport, struct tty_struct *tty) in sdio_uart_activate()
662 static void sdio_uart_shutdown(struct tty_port *tport) in sdio_uart_shutdown()
694 static void sdio_uart_port_destroy(struct tty_port *tport) in sdio_uart_port_destroy()
/linux/drivers/staging/greybus/
H A Duart.c45 struct tty_port port;
77 struct tty_port *port = &gb_tty->port; in gb_uart_receive_data_handler()
705 static void gb_tty_dtr_rts(struct tty_port *port, bool active) in gb_tty_dtr_rts()
722 static int gb_tty_port_activate(struct tty_port *port, in gb_tty_port_activate()
732 static void gb_tty_port_shutdown(struct tty_port *port) in gb_tty_port_shutdown()
765 static void gb_tty_port_destruct(struct tty_port *port) in gb_tty_port_destruct()

1234