Home
last modified time | relevance | path

Searched refs:tty_port (Results 1 - 25 of 233) sorted by relevance

12345678910

/kernel/linux/linux-6.6/include/linux/
H A Dtty_port.h13 struct tty_port;
17 * struct tty_port_operations -- operations on 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 *por
101 struct tty_port { global() struct
[all...]
H A Dtty_flip.h6 #include <linux/tty_port.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 *por
[all...]
H A Dserdev.h309 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()
/kernel/linux/linux-5.10/include/linux/
H A Dtty_flip.h5 extern int tty_buffer_set_limit(struct tty_port *port, int limit);
6 extern int tty_buffer_space_avail(struct tty_port *port);
7 extern int tty_buffer_request_room(struct tty_port *port, size_t size);
8 extern int tty_insert_flip_string_flags(struct tty_port *port,
10 extern int tty_insert_flip_string_fixed_flag(struct tty_port *port,
12 extern int tty_prepare_flip_string(struct tty_port *port,
14 extern void tty_flip_buffer_push(struct tty_port *port);
15 int __tty_insert_flip_char(struct tty_port *port, unsigned char ch, char flag);
17 static inline int tty_insert_flip_char(struct tty_port *port, in tty_insert_flip_char()
33 static inline int tty_insert_flip_string(struct tty_port *por
[all...]
H A Dtty.h179 struct tty_port;
183 int (*carrier_raised)(struct tty_port *port);
185 void (*dtr_rts)(struct tty_port *port, int raise);
189 void (*shutdown)(struct tty_port *port);
194 int (*activate)(struct tty_port *port, struct tty_struct *tty);
196 void (*destruct)(struct tty_port *port);
200 int (*receive_buf)(struct tty_port *port, const unsigned char *, const unsigned char *, size_t);
201 void (*write_wakeup)(struct tty_port *port);
206 struct tty_port { struct
233 /* tty_port
[all...]
H A Dserdev.h309 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()
/kernel/linux/linux-6.6/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()
82 * tty_port_init -- initialize tty_port
83 * @port: tty_port to initialize
85 * Initializes the state of struct tty_port. When a port was initialized using
87 * indirectly by using &tty_port refcounting (tty_port_put()) or directly if
90 void tty_port_init(struct tty_port *port) in tty_port_init()
107 * tty_port_link_device - link tty and tty_port
108 * @port: tty_port o
[all...]
H A Dtty_buffer.c52 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 *por
[all...]
H A Dtty.h71 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,
/kernel/linux/linux-5.10/drivers/tty/
H A Dtty_port.c23 static int tty_port_default_receive_buf(struct tty_port *port, in tty_port_default_receive_buf()
46 static void tty_port_default_wakeup(struct tty_port *port) in tty_port_default_wakeup()
62 void tty_port_init(struct tty_port *port) in tty_port_init()
79 * tty_port_link_device - link tty and tty_port
80 * @port: tty_port of the device
85 * tty_port (@port). Use this only if neither tty_port_register_device nor
89 void tty_port_link_device(struct tty_port *port, in tty_port_link_device()
100 * @port: tty_port of the device
109 struct device *tty_port_register_device(struct tty_port *port, in tty_port_register_device()
119 * @port: tty_port o
[all...]
H A Dtty_buffer.c56 void tty_buffer_lock_exclusive(struct tty_port *port) in tty_buffer_lock_exclusive()
65 void tty_buffer_unlock_exclusive(struct tty_port *port) in tty_buffer_unlock_exclusive()
91 int tty_buffer_space_avail(struct tty_port *port) in tty_buffer_space_avail()
116 void tty_buffer_free_all(struct tty_port *port) in tty_buffer_free_all()
155 static struct tty_buffer *tty_buffer_alloc(struct tty_port *port, size_t size) in tty_buffer_alloc()
195 static void tty_buffer_free(struct tty_port *port, struct tty_buffer *b) in tty_buffer_free()
222 struct tty_port *port = tty->port; in tty_buffer_flush()
258 static int __tty_buffer_request_room(struct tty_port *port, size_t size, in __tty_buffer_request_room()
295 int tty_buffer_request_room(struct tty_port *port, size_t size) in tty_buffer_request_room()
312 int tty_insert_flip_string_fixed_flag(struct tty_port *por
[all...]
H A Dtty.h72 void tty_buffer_free_all(struct tty_port *port);
74 void tty_buffer_init(struct tty_port *port);
75 void tty_buffer_set_lock_subclass(struct tty_port *port);
76 bool tty_buffer_restart_work(struct tty_port *port);
77 bool tty_buffer_cancel_work(struct tty_port *port);
78 void tty_buffer_flush_work(struct tty_port *port);
/kernel/linux/linux-5.10/arch/parisc/kernel/
H A Dpdc_cons.c82 static struct tty_port tty_port; variable
86 tty_port_tty_set(&tty_port, tty); in pdc_console_tty_open()
96 tty_port_tty_set(&tty_port, NULL); in pdc_console_tty_close()
132 tty_insert_flip_char(&tty_port, data & 0xFF, TTY_NORMAL); in pdc_console_poll()
137 tty_flip_buffer_push(&tty_port); in pdc_console_poll()
174 tty_port_init(&tty_port); in pdc_console_tty_driver_init()
185 tty_port_link_device(&tty_port, pdc_console_tty_driver, 0); in pdc_console_tty_driver_init()
190 tty_port_destroy(&tty_port); in pdc_console_tty_driver_init()
/kernel/linux/linux-5.10/drivers/ipack/devices/
H A Dipoctal.c37 struct tty_port tty_port; member
72 static int ipoctal_port_activate(struct tty_port *port, struct tty_struct *tty) in ipoctal_port_activate()
114 return tty_port_open(&channel->tty_port, tty, file); in ipoctal_open()
139 tty_port_close(&channel->tty_port, tty, filp); in ipoctal_close()
162 struct tty_port *port = &channel->tty_port; in ipoctal_irq_rx()
214 value = channel->tty_port.xmit_buf[*pointer_write]; in ipoctal_irq_tx()
402 tty_port_init(&channel->tty_port); in ipoctal_inst_slot()
403 res = tty_port_alloc_xmit_buf(&channel->tty_port); in ipoctal_inst_slot()
[all...]
/kernel/linux/linux-6.6/drivers/ipack/devices/
H A Dipoctal.c35 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()
[all...]
/kernel/linux/linux-5.10/arch/um/drivers/
H A Dchan_user.h41 struct tty_port;
42 extern void register_winch(int fd, struct tty_port *port);
44 struct tty_port *port, unsigned long stack);
/kernel/linux/linux-6.6/arch/um/drivers/
H A Dchan_user.h41 struct tty_port;
42 extern void register_winch(int fd, struct tty_port *port);
44 struct tty_port *port, unsigned long stack);
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/arch/alpha/kernel/
H A Dsrmcons.c34 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()
161 struct tty_port *port = &srmconsp->port; in srmcons_open()
182 struct tty_port *port = &srmconsp->port; in srmcons_close()
/kernel/linux/linux-6.6/arch/alpha/kernel/
H A Dsrmcons.c34 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()
/kernel/linux/linux-5.10/drivers/tty/serial/
H A Dserial_core.c56 static void uart_port_shutdown(struct tty_port *port);
250 struct tty_port *port = &state->port; in uart_startup()
273 struct tty_port *port = &state->port; in uart_shutdown()
769 static int uart_get_info(struct tty_port *port, struct serial_struct *retinfo) in uart_get_info()
815 struct tty_port *port = &state->port; in uart_get_info_user()
820 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()
1085 struct tty_port *port = &state->port; in uart_tiocmget()
1109 struct tty_port *port = &state->port; in uart_tiocmset()
1130 struct tty_port *por in uart_break_ctl()
[all...]
H A Difx6x60.c270 tty_port_tty_hangup(&ifx_dev->tty_port, false); in ifx_spi_timeout()
333 * Open the tty interface. We let the tty_port layer do all the work
340 return tty_port_open(&saved_ifx_dev->tty_port, tty, filp); in ifx_spi_open()
348 * Perform the close of the tty. We use the tty_port layer to do all
354 tty_port_close(&ifx_dev->tty_port, tty, filp); in ifx_spi_close()
460 tty_port_tty_wakeup(&ifx_dev->tty_port); in ifx_spi_prepare_tx_buffer()
542 tty_port_hangup(&ifx_dev->tty_port); in ifx_spi_hangup()
552 static int ifx_port_activate(struct tty_port *port, struct tty_struct *tty) in ifx_port_activate()
555 container_of(port, struct ifx_spi_device, tty_port); in ifx_port_activate()
583 static void ifx_port_shutdown(struct tty_port *por
[all...]
/kernel/linux/linux-6.6/drivers/tty/serial/
H A Dserial_core.c58 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 *por in uart_break_ctl()
[all...]
/kernel/linux/linux-5.10/drivers/tty/serdev/
H A Dserdev-ttyport.c14 struct tty_port *port;
25 static int ttyport_receive_buf(struct tty_port *port, const unsigned char *cp, in ttyport_receive_buf()
48 static void ttyport_write_wakeup(struct tty_port *port) in ttyport_write_wakeup()
264 struct device *serdev_tty_port_register(struct tty_port *port, in serdev_tty_port_register()
304 int serdev_tty_port_unregister(struct tty_port *port) in serdev_tty_port_unregister()

Completed in 17 milliseconds

12345678910