/linux-6.6.21/include/linux/ |
D | tty_port.h | 13 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 …]
|
D | tty_flip.h | 10 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 …]
|
D | serdev.h | 309 struct tty_port; 313 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() 324 static inline int serdev_tty_port_unregister(struct tty_port *port) in serdev_tty_port_unregister()
|
/linux-6.6.21/drivers/tty/ |
D | tty_port.c | 23 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() 90 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() 137 struct device *tty_port_register_device(struct tty_port *port, in tty_port_register_device() 158 struct device *tty_port_register_device_attr(struct tty_port *port, in tty_port_register_device_attr() 181 struct device *tty_port_register_device_attr_serdev(struct tty_port *port, in tty_port_register_device_attr_serdev() 211 struct device *tty_port_register_device_serdev(struct tty_port *port, in tty_port_register_device_serdev() 230 void tty_port_unregister_device(struct tty_port *port, in tty_port_unregister_device() [all …]
|
D | tty_buffer.c | 52 void tty_buffer_lock_exclusive(struct tty_port *port) in tty_buffer_lock_exclusive() 69 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() 159 static struct tty_buffer *tty_buffer_alloc(struct tty_port *port, size_t size) in tty_buffer_alloc() 198 static void tty_buffer_free(struct tty_port *port, struct tty_buffer *b) in tty_buffer_free() 223 struct tty_port *port = tty->port; in tty_buffer_flush() 261 static int __tty_buffer_request_room(struct tty_port *port, size_t size, in __tty_buffer_request_room() 294 int tty_buffer_request_room(struct tty_port *port, size_t size) in tty_buffer_request_room() 300 size_t __tty_insert_flip_string_flags(struct tty_port *port, const u8 *chars, in __tty_insert_flip_string_flags() [all …]
|
D | tty.h | 71 void tty_buffer_free_all(struct tty_port *port); 73 void tty_buffer_init(struct tty_port *port); 74 void tty_buffer_set_lock_subclass(struct tty_port *port); 75 bool tty_buffer_restart_work(struct tty_port *port); 76 bool tty_buffer_cancel_work(struct tty_port *port); 77 void tty_buffer_flush_work(struct tty_port *port); 117 int tty_insert_flip_string_and_push_buffer(struct tty_port *port,
|
D | rpmsg_tty.c | 30 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()
|
D | amiserial.c | 71 struct tty_port tport; 307 struct tty_port *port = &info->tport; in check_modem_status() 445 struct tty_port *port = &info->tport; in startup() 571 struct tty_port *port = &info->tport; in change_speed() 920 struct tty_port *port = &state->tport; in set_serial_info() 1229 struct tty_port *port = &state->tport; in rs_close() 1345 struct tty_port *port = tty->port; in rs_open() 1457 static bool amiga_carrier_raised(struct tty_port *port) in amiga_carrier_raised() 1462 static void amiga_dtr_rts(struct tty_port *port, bool active) in amiga_dtr_rts()
|
/linux-6.6.21/Documentation/driver-api/tty/ |
D | tty_port.rst | 9 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 …]
|
D | tty_driver.rst | 50 tty_port part in `Registering Devices`_ is still relevant there. 58 Every TTY device shall be backed by a struct tty_port. Usually, TTY drivers 59 embed tty_port into device's private structures. Further details about handling 60 tty_port can be found in :doc:`tty_port`. The driver is also recommended to use 61 tty_port's reference counting by tty_port_get() and tty_port_put(). The final 62 put is supposed to free the tty_port including the device's private struct. 69 upon return, the device can be opened. There are also preferred tty_port 88 As stated earlier, every TTY device shall have a struct tty_port assigned to 95 If that is not possible, the driver still can link the tty_port to a specific 104 .. kernel-doc:: drivers/tty/tty_port.c
|
D | index.rst | 14 corresponding struct tty_port. These devices are maintained by a TTY driver 35 tty_port 61 :doc:`tty_port`.
|
/linux-6.6.21/drivers/ipack/devices/ |
D | ipoctal.c | 35 struct tty_port tty_port; member 70 static int ipoctal_port_activate(struct tty_port *port, struct tty_struct *tty) in ipoctal_port_activate() 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() 212 value = channel->tty_port.xmit_buf[*pointer_write]; in ipoctal_irq_tx() 399 tty_port_init(&channel->tty_port); in ipoctal_inst_slot() 400 res = tty_port_alloc_xmit_buf(&channel->tty_port); in ipoctal_inst_slot() 403 channel->tty_port.ops = &ipoctal_tty_port_ops; in ipoctal_inst_slot() 410 tty_dev = tty_port_register_device_attr(&channel->tty_port, drv, in ipoctal_inst_slot() [all …]
|
/linux-6.6.21/drivers/s390/char/ |
D | keyboard.h | 35 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.6.21/arch/alpha/kernel/ |
D | srmcons.c | 34 struct tty_port port; 48 srmcons_do_receive_chars(struct tty_port *port) in srmcons_do_receive_chars() 71 struct tty_port *port = &srmconsp->port; in srmcons_receive_chars() 92 srmcons_do_write(struct tty_port *port, const char *buf, int count) in srmcons_do_write() 154 struct tty_port *port = &srmconsp->port; in srmcons_open() 175 struct tty_port *port = &srmconsp->port; in srmcons_close()
|
/linux-6.6.21/arch/um/drivers/ |
D | chan_user.h | 41 struct tty_port; 42 extern void register_winch(int fd, struct tty_port *port); 44 struct tty_port *port, unsigned long stack);
|
D | chan_user.c | 219 static int winch_tramp(int fd, struct tty_port *port, int *fd_out, in winch_tramp() 276 void register_winch(int fd, struct tty_port *port) in register_winch()
|
/linux-6.6.21/drivers/tty/serial/ |
D | serial_core.c | 58 static void uart_port_shutdown(struct tty_port *port); 325 struct tty_port *port = &state->port; in uart_startup() 348 struct tty_port *port = &state->port; in uart_shutdown() 772 static int uart_get_info(struct tty_port *port, struct serial_struct *retinfo) in uart_get_info() 816 struct tty_port *port = &state->port; in uart_get_info_user() 821 static int uart_set_info(struct tty_struct *tty, struct tty_port *port, in uart_set_info() 1028 struct tty_port *port = &state->port; in uart_set_info_user() 1077 struct tty_port *port = &state->port; in uart_tiocmget() 1101 struct tty_port *port = &state->port; in uart_tiocmset() 1122 struct tty_port *port = &state->port; in uart_break_ctl() [all …]
|
D | kgdb_nmi.c | 91 struct tty_port port; 96 static struct tty_port *kgdb_nmi_port; 208 static int kgdb_nmi_tty_activate(struct tty_port *port, struct tty_struct *tty) in kgdb_nmi_tty_activate() 220 static void kgdb_nmi_tty_shutdown(struct tty_port *port) in kgdb_nmi_tty_shutdown()
|
D | bcm63xx_uart.c | 229 struct tty_port *tty_port = &port->state->port; in bcm_uart_do_rx() local 254 tty_insert_flip_char(tty_port, 0, TTY_OVERRUN); in bcm_uart_do_rx() 293 tty_insert_flip_char(tty_port, c, flag); in bcm_uart_do_rx() 297 tty_flip_buffer_push(tty_port); in bcm_uart_do_rx()
|
/linux-6.6.21/drivers/tty/serdev/ |
D | serdev-ttyport.c | 14 struct tty_port *port; 25 static size_t ttyport_receive_buf(struct tty_port *port, const u8 *cp, in ttyport_receive_buf() 48 static void ttyport_write_wakeup(struct tty_port *port) in ttyport_write_wakeup() 276 struct device *serdev_tty_port_register(struct tty_port *port, in serdev_tty_port_register() 316 int serdev_tty_port_unregister(struct tty_port *port) in serdev_tty_port_unregister()
|
/linux-6.6.21/drivers/tty/serial/8250/ |
D | 8250_dma.c | 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()
|
D | 8250_mtk.c | 96 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.6.21/arch/xtensa/platforms/iss/ |
D | console.c | 37 static struct tty_port serial_port; 65 struct tty_port *port = &serial_port; in rs_poll()
|
/linux-6.6.21/drivers/char/ |
D | ttyprintk.c | 22 struct tty_port port; 141 static void tpk_port_shutdown(struct tty_port *tport) in tpk_port_shutdown()
|
/linux-6.6.21/drivers/staging/gdm724x/ |
D | gdm_tty.h | 27 struct tty_port port;
|