Home
last modified time | relevance | path

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

123456

/Linux-v4.19/include/linux/
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 void tty_schedule_flip(struct tty_port *port);
16 int __tty_insert_flip_char(struct tty_port *port, unsigned char ch, char flag);
18 static inline int tty_insert_flip_char(struct tty_port *port, in tty_insert_flip_char()
[all …]
Dtty.h203 struct tty_port;
207 int (*carrier_raised)(struct tty_port *port);
209 void (*dtr_rts)(struct tty_port *port, int raise);
213 void (*shutdown)(struct tty_port *port);
218 int (*activate)(struct tty_port *port, struct tty_struct *tty);
220 void (*destruct)(struct tty_port *port);
224 int (*receive_buf)(struct tty_port *port, const unsigned char *, const unsigned char *, size_t);
225 void (*write_wakeup)(struct tty_port *port);
228 struct tty_port { struct
338 struct tty_port *port;
[all …]
Dserdev.h317 struct tty_port;
321 struct device *serdev_tty_port_register(struct tty_port *port,
324 int serdev_tty_port_unregister(struct tty_port *port);
326 static inline struct device *serdev_tty_port_register(struct tty_port *port, in serdev_tty_port_register()
332 static inline int serdev_tty_port_unregister(struct tty_port *port) in serdev_tty_port_unregister()
/Linux-v4.19/drivers/tty/
Dtty_port.c22 static int tty_port_default_receive_buf(struct tty_port *port, in tty_port_default_receive_buf()
45 static void tty_port_default_wakeup(struct tty_port *port) in tty_port_default_wakeup()
60 void tty_port_init(struct tty_port *port) in tty_port_init()
87 void tty_port_link_device(struct tty_port *port, in tty_port_link_device()
107 struct device *tty_port_register_device(struct tty_port *port, in tty_port_register_device()
128 struct device *tty_port_register_device_attr(struct tty_port *port, in tty_port_register_device_attr()
151 struct device *tty_port_register_device_attr_serdev(struct tty_port *port, in tty_port_register_device_attr_serdev()
181 struct device *tty_port_register_device_serdev(struct tty_port *port, in tty_port_register_device_serdev()
200 void tty_port_unregister_device(struct tty_port *port, in tty_port_unregister_device()
213 int tty_port_alloc_xmit_buf(struct tty_port *port) in tty_port_alloc_xmit_buf()
[all …]
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()
150 static struct tty_buffer *tty_buffer_alloc(struct tty_port *port, size_t size) in tty_buffer_alloc()
189 static void tty_buffer_free(struct tty_port *port, struct tty_buffer *b) in tty_buffer_free()
216 struct tty_port *port = tty->port; in tty_buffer_flush()
252 static int __tty_buffer_request_room(struct tty_port *port, size_t size, in __tty_buffer_request_room()
289 int tty_buffer_request_room(struct tty_port *port, size_t size) in tty_buffer_request_room()
306 int tty_insert_flip_string_fixed_flag(struct tty_port *port, in tty_insert_flip_string_fixed_flag()
[all …]
Damiserial.c95 struct tty_port tport;
380 struct tty_port *port = &info->tport; in check_modem_status()
518 struct tty_port *port = &info->tport; in startup()
649 struct tty_port *port = &info->tport; in change_speed()
1023 struct tty_port *port = &state->tport; in set_serial_info()
1360 struct tty_port *port = &state->tport; in rs_close()
1489 struct tty_port *port = &info->tport; in rs_open()
1613 static int amiga_carrier_raised(struct tty_port *port) in amiga_carrier_raised()
1618 static void amiga_dtr_rts(struct tty_port *port, int raise) in amiga_dtr_rts()
Disicom.c200 struct tty_port port;
324 static void isicom_dtr_rts(struct tty_port *port, int on) in isicom_dtr_rts()
798 static int isicom_activate(struct tty_port *tport, struct tty_struct *tty) in isicom_activate()
825 static int isicom_carrier_raised(struct tty_port *port) in isicom_carrier_raised()
831 static struct tty_port *isicom_find_port(struct tty_struct *tty) in isicom_find_port()
858 struct tty_port *tport; in isicom_open()
902 static void isicom_shutdown(struct tty_port *port) in isicom_shutdown()
921 struct tty_port *port; in isicom_close()
1600 struct tty_port *tport = &board->ports[index].port; in isicom_probe()
/Linux-v4.19/arch/parisc/kernel/
Dpdc_cons.c96 static struct tty_port tty_port; variable
100 tty_port_tty_set(&tty_port, tty); in pdc_console_tty_open()
110 tty_port_tty_set(&tty_port, NULL); in pdc_console_tty_close()
146 tty_insert_flip_char(&tty_port, data & 0xFF, TTY_NORMAL); in pdc_console_poll()
151 tty_flip_buffer_push(&tty_port); in pdc_console_poll()
188 tty_port_init(&tty_port); in pdc_console_tty_driver_init()
199 tty_port_link_device(&tty_port, pdc_console_tty_driver, 0); in pdc_console_tty_driver_init()
204 tty_port_destroy(&tty_port); in pdc_console_tty_driver_init()
/Linux-v4.19/drivers/ipack/devices/
Dipoctal.c40 struct tty_port tty_port; member
74 static int ipoctal_port_activate(struct tty_port *port, struct tty_struct *tty) in ipoctal_port_activate()
100 err = tty_port_open(&channel->tty_port, tty, file); in ipoctal_open()
129 tty_port_close(&channel->tty_port, tty, filp); in ipoctal_close()
152 struct tty_port *port = &channel->tty_port; in ipoctal_irq_rx()
204 value = channel->tty_port.xmit_buf[*pointer_write]; in ipoctal_irq_tx()
391 tty_port_init(&channel->tty_port); in ipoctal_inst_slot()
392 tty_port_alloc_xmit_buf(&channel->tty_port); in ipoctal_inst_slot()
393 channel->tty_port.ops = &ipoctal_tty_port_ops; in ipoctal_inst_slot()
400 tty_dev = tty_port_register_device(&channel->tty_port, tty, i, NULL); in ipoctal_inst_slot()
[all …]
/Linux-v4.19/drivers/s390/char/
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-v4.19/arch/alpha/kernel/
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()
/Linux-v4.19/arch/um/drivers/
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);
Dchan_user.c219 static int winch_tramp(int fd, struct tty_port *port, int *fd_out, in winch_tramp()
274 void register_winch(int fd, struct tty_port *port) in register_winch()
/Linux-v4.19/drivers/tty/serial/
Dserial_core.c48 static void uart_port_shutdown(struct tty_port *port);
246 struct tty_port *port = &state->port; in uart_startup()
269 struct tty_port *port = &state->port; in uart_shutdown()
739 static int uart_get_info(struct tty_port *port, struct serial_struct *retinfo) in uart_get_info()
781 static int uart_get_info_user(struct tty_port *port, in uart_get_info_user()
794 static int uart_set_info(struct tty_struct *tty, struct tty_port *port, in uart_set_info()
997 struct tty_port *port = &state->port; in uart_set_info_user()
1047 struct tty_port *port = &state->port; in uart_tiocmget()
1071 struct tty_port *port = &state->port; in uart_tiocmset()
1092 struct tty_port *port = &state->port; in uart_break_ctl()
[all …]
Difx6x60.c271 tty_port_tty_hangup(&ifx_dev->tty_port, false); in ifx_spi_timeout()
342 return tty_port_open(&saved_ifx_dev->tty_port, tty, filp); in ifx_spi_open()
356 tty_port_close(&ifx_dev->tty_port, tty, filp); in ifx_spi_close()
462 tty_port_tty_wakeup(&ifx_dev->tty_port); in ifx_spi_prepare_tx_buffer()
544 tty_port_hangup(&ifx_dev->tty_port); in ifx_spi_hangup()
554 static int ifx_port_activate(struct tty_port *port, struct tty_struct *tty) in ifx_port_activate()
557 container_of(port, struct ifx_spi_device, tty_port); in ifx_port_activate()
585 static void ifx_port_shutdown(struct tty_port *port) in ifx_port_shutdown()
588 container_of(port, struct ifx_spi_device, tty_port); in ifx_port_shutdown()
625 tty_insert_flip_string(&ifx_dev->tty_port, chars, size); in ifx_spi_insert_flip_string()
[all …]
Difx6x60.h64 struct tty_port tty_port; member
Dkgdb_nmi.c91 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()
Dbcm63xx_uart.c233 struct tty_port *tty_port = &port->state->port; in bcm_uart_do_rx() local
258 tty_insert_flip_char(tty_port, 0, TTY_OVERRUN); in bcm_uart_do_rx()
297 tty_insert_flip_char(tty_port, c, flag); in bcm_uart_do_rx()
302 tty_flip_buffer_push(tty_port); in bcm_uart_do_rx()
/Linux-v4.19/drivers/tty/serdev/
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()
306 int serdev_tty_port_unregister(struct tty_port *port) in serdev_tty_port_unregister()
/Linux-v4.19/arch/ia64/hp/sim/
Dsimserial.c46 struct tty_port port;
58 static void receive_chars(struct tty_port *port) in receive_chars()
333 static void shutdown(struct tty_port *port) in shutdown()
365 static int activate(struct tty_port *port, struct tty_struct *tty) in activate()
406 struct tty_port *port = &info->port; in rs_open()
/Linux-v4.19/drivers/tty/serial/8250/
D8250_dma.c49 struct tty_port *tty_port = &p->port.state->port; in __dma_rx_complete() local
58 tty_insert_flip_string(tty_port, dma->rx_buf, count); in __dma_rx_complete()
61 tty_flip_buffer_push(tty_port); in __dma_rx_complete()
/Linux-v4.19/arch/xtensa/platforms/iss/
Dconsole.c35 static struct tty_port serial_port;
96 struct tty_port *port = &serial_port; in rs_poll()
/Linux-v4.19/drivers/staging/gdm724x/
Dgdm_tty.h27 struct tty_port port;
/Linux-v4.19/drivers/misc/
Dpti.c63 struct tty_port port[PTITTY_MINOR_NUM];
755 static int pti_port_activate(struct tty_port *port, struct tty_struct *tty) in pti_port_activate()
772 static void pti_port_shutdown(struct tty_port *port) in pti_port_shutdown()
855 struct tty_port *port = &drv_data->port[a]; in pti_pci_probe()
/Linux-v4.19/drivers/isdn/i4l/
Disdn_common.h40 extern int isdn_readbchan_tty(int, int, struct tty_port *, int);

123456