Home
last modified time | relevance | path

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

123456

/linux-6.15/include/linux/
H A Dtty_port.h13 struct tty_port;
34 bool (*carrier_raised)(struct tty_port *port);
36 void (*shutdown)(struct tty_port *port);
38 void (*destruct)(struct tty_port *port);
46 void (*write_wakeup)(struct tty_port *port);
101 struct tty_port { struct
140 void tty_port_init(struct tty_port *port);
161 void tty_port_destroy(struct tty_port *port);
162 void tty_port_put(struct tty_port *port);
164 static inline struct tty_port *tty_port_get(struct tty_port *port) in tty_port_get()
[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()
80 static inline size_t tty_insert_flip_string(struct tty_port *port, in tty_insert_flip_string()
89 void tty_buffer_lock_exclusive(struct tty_port *port);
[all …]
H A Dserdev.h308 struct tty_port;
312 struct device *serdev_tty_port_register(struct tty_port *port,
316 int serdev_tty_port_unregister(struct tty_port *port);
318 static inline struct device *serdev_tty_port_register(struct tty_port *port, in serdev_tty_port_register()
325 static inline int serdev_tty_port_unregister(struct tty_port *port) in serdev_tty_port_unregister()
H A Dserial_core.h815 struct tty_port port;
841 struct tty_port *tport = &up->state->port; in uart_xmit_advance()
850 struct tty_port *tport = &up->state->port; in uart_fifo_out()
861 struct tty_port *tport = &up->state->port; in uart_fifo_get()
905 struct tty_port *__tport = &__port->state->port; \
/linux-6.15/drivers/tty/
H A Dtty_port.c90 void tty_port_init(struct tty_port *port) in tty_port_init()
117 void tty_port_link_device(struct tty_port *port, in tty_port_link_device()
245 int tty_port_alloc_xmit_buf(struct tty_port *port) in tty_port_alloc_xmit_buf()
261 void tty_port_free_xmit_buf(struct tty_port *port) in tty_port_free_xmit_buf()
279 void tty_port_destroy(struct tty_port *port) in tty_port_destroy()
288 struct tty_port *port = container_of(kref, struct tty_port, kref); in tty_port_destructor()
308 void tty_port_put(struct tty_port *port) in tty_port_put()
394 void tty_port_hangup(struct tty_port *port) in tty_port_hangup()
433 void tty_port_tty_wakeup(struct tty_port *port) in tty_port_tty_wakeup()
463 void tty_port_raise_dtr_rts(struct tty_port *port) in tty_port_raise_dtr_rts()
[all …]
H A Dtty_buffer.c53 void tty_buffer_lock_exclusive(struct tty_port *port) in tty_buffer_lock_exclusive()
70 void tty_buffer_unlock_exclusive(struct tty_port *port) in tty_buffer_unlock_exclusive()
94 unsigned int tty_buffer_space_avail(struct tty_port *port) in tty_buffer_space_avail()
120 void tty_buffer_free_all(struct tty_port *port) in tty_buffer_free_all()
223 struct tty_port *port = tty->port; in tty_buffer_flush()
464 struct tty_port *port = container_of(work, struct tty_port, buf.work); in flush_to_ldisc()
529 void tty_flip_buffer_push(struct tty_port *port) in tty_flip_buffer_push()
576 void tty_buffer_init(struct tty_port *port) in tty_buffer_init()
615 bool tty_buffer_restart_work(struct tty_port *port) in tty_buffer_restart_work()
620 bool tty_buffer_cancel_work(struct tty_port *port) in tty_buffer_cancel_work()
[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 startup()
569 struct tty_port *port = &info->tport; in change_speed()
918 struct tty_port *port = &state->tport; in set_serial_info()
1227 struct tty_port *port = &state->tport; in rs_close()
1343 struct tty_port *port = tty->port; in rs_open()
1455 static bool amiga_carrier_raised(struct tty_port *port) in amiga_carrier_raised()
1460 static void amiga_dtr_rts(struct tty_port *port, bool active) in amiga_dtr_rts()
/linux-6.15/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:: drivers/tty/tty_port.c
52 .. kernel-doc:: drivers/tty/tty_port.c
61 .. kernel-doc:: include/linux/tty_port.h
62 :identifiers: tty_port
[all …]
H A Dtty_driver.rst52 tty_port part in `Registering Devices`_ is still relevant there.
60 Every TTY device shall be backed by a struct tty_port. Usually, TTY drivers
61 embed tty_port into device's private structures. Further details about handling
62 tty_port can be found in :doc:`tty_port`. The driver is also recommended to use
63 tty_port's reference counting by tty_port_get() and tty_port_put(). The final
64 put is supposed to free the tty_port including the device's private struct.
71 upon return, the device can be opened. There are also preferred tty_port
90 As stated earlier, every TTY device shall have a struct tty_port assigned to
97 If that is not possible, the driver still can link the tty_port to a specific
106 .. kernel-doc:: drivers/tty/tty_port.c
H A Dindex.rst14 corresponding struct tty_port. These devices are maintained by a TTY driver
35 tty_port
63 :doc:`tty_port`.
/linux-6.15/drivers/ipack/devices/
H A Dipoctal.c35 struct tty_port tty_port; member
112 return tty_port_open(&channel->tty_port, tty, file); in ipoctal_open()
137 tty_port_close(&channel->tty_port, tty, filp); in ipoctal_close()
160 struct tty_port *port = &channel->tty_port; in ipoctal_irq_rx()
397 tty_port_init(&channel->tty_port); in ipoctal_inst_slot()
401 channel->tty_port.ops = &ipoctal_tty_port_ops; in ipoctal_inst_slot()
412 tty_port_free_xmit_buf(&channel->tty_port); in ipoctal_inst_slot()
413 tty_port_destroy(&channel->tty_port); in ipoctal_inst_slot()
644 tty_port_hangup(&channel->tty_port); in ipoctal_hangup()
721 tty_port_free_xmit_buf(&channel->tty_port); in __ipoctal_remove()
[all …]
/linux-6.15/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-6.15/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()
73 struct tty_port *port = &srmconsp->port; in srmcons_receive_chars()
94 srmcons_do_write(struct tty_port *port, const u8 *buf, size_t count) in srmcons_do_write()
152 struct tty_port *port = &srmconsp->port; in srmcons_open()
173 struct tty_port *port = &srmconsp->port; in srmcons_close()
/linux-6.15/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);
/linux-6.15/drivers/tty/serial/
H A Dserial_core.c360 struct tty_port *port = &state->port; in uart_startup()
393 struct tty_port *port = &state->port; in uart_shutdown()
832 struct tty_port *port = &state->port; in uart_get_info_user()
1040 struct tty_port *port = &state->port; in uart_set_info_user()
1089 struct tty_port *port = &state->port; in uart_tiocmget()
1111 struct tty_port *port = &state->port; in uart_tiocmset()
1128 struct tty_port *port = &state->port; in uart_break_ctl()
1145 struct tty_port *port = &state->port; in uart_do_autoconfig()
1746 struct tty_port *port; in uart_close()
2656 struct tty_port *tport; in uart_poll_init()
[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 Desp32_acm.c105 struct tty_port *tty_port = &port->state->port; in esp32s3_acm_rxint() local
119 tty_insert_flip_char(tty_port, rx, TTY_NORMAL); in esp32s3_acm_rxint()
123 tty_flip_buffer_push(tty_port); in esp32s3_acm_rxint()
/linux-6.15/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.c416 struct tty_port *tty_port = &port->state->port; in pci1xxxx_rx_burst() local
426 copied_len = (u32)tty_insert_flip_string(tty_port, rx_buff, in pci1xxxx_rx_burst()
433 tty_flip_buffer_push(tty_port); in pci1xxxx_rx_burst()
441 struct tty_port *tport = &port->state->port; in pci1xxxx_process_write_data()
488 struct tty_port *tport = &port->state->port; in pci1xxxx_tx_burst()
557 struct tty_port *tport = &port->state->port; in pci1xxxx_port_suspend()
584 struct tty_port *tport = &port->state->port; in pci1xxxx_port_resume()
H A D8250_mtk.c96 struct tty_port *tty_port = &up->port.state->port; in mtk8250_dma_rx_complete() local
115 copied = tty_insert_flip_string(tty_port, ptr, cnt); in mtk8250_dma_rx_complete()
121 copied += tty_insert_flip_string(tty_port, ptr, cnt); in mtk8250_dma_rx_complete()
127 tty_flip_buffer_push(tty_port); in mtk8250_dma_rx_complete()
/linux-6.15/drivers/tty/serdev/
H A Dserdev-ttyport.c14 struct tty_port *port;
25 static size_t ttyport_receive_buf(struct tty_port *port, const u8 *cp, in ttyport_receive_buf()
46 static void ttyport_write_wakeup(struct tty_port *port) in ttyport_write_wakeup()
265 struct device *serdev_tty_port_register(struct tty_port *port, in serdev_tty_port_register()
306 int serdev_tty_port_unregister(struct tty_port *port) in serdev_tty_port_unregister()
/linux-6.15/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-6.15/drivers/char/
H A Dttyprintk.c22 struct tty_port port;
141 static void tpk_port_shutdown(struct tty_port *tport) in tpk_port_shutdown()

123456