| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | tty.h | 204 struct tty_port; 208 int (*carrier_raised)(struct tty_port *port); 210 void (*dtr_rts)(struct tty_port *port, int raise); 214 void (*shutdown)(struct tty_port *port); 219 int (*activate)(struct tty_port *port, struct tty_struct *tty); 221 void (*destruct)(struct tty_port *port); 227 int (*receive_buf)(struct tty_port *port, const unsigned char *, const unsigned char *, size_t); 228 void (*write_wakeup)(struct tty_port *port); 233 struct tty_port { struct 352 struct tty_port *port; [all …]
|
| H A D | tty_flip.h | 5 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 *port, in tty_insert_flip_string() [all …]
|
| H A D | serdev.h | 321 struct tty_port; 325 struct device *serdev_tty_port_register(struct tty_port *port, 328 int serdev_tty_port_unregister(struct tty_port *port); 330 static inline struct device *serdev_tty_port_register(struct tty_port *port, in serdev_tty_port_register() 336 static inline int serdev_tty_port_unregister(struct tty_port *port) in serdev_tty_port_unregister()
|
| /OK3568_Linux_fs/kernel/drivers/tty/ |
| H A D | tty_port.c | 22 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() 61 void tty_port_init(struct tty_port *port) in tty_port_init() 88 void tty_port_link_device(struct tty_port *port, in tty_port_link_device() 108 struct device *tty_port_register_device(struct tty_port *port, in tty_port_register_device() 129 struct device *tty_port_register_device_attr(struct tty_port *port, in tty_port_register_device_attr() 152 struct device *tty_port_register_device_attr_serdev(struct tty_port *port, in tty_port_register_device_attr_serdev() 182 struct device *tty_port_register_device_serdev(struct tty_port *port, in tty_port_register_device_serdev() 201 void tty_port_unregister_device(struct tty_port *port, in tty_port_unregister_device() 214 int tty_port_alloc_xmit_buf(struct tty_port *port) in tty_port_alloc_xmit_buf() [all …]
|
| H A D | tty_buffer.c | 56 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 *port, in tty_insert_flip_string_fixed_flag() [all …]
|
| H A D | amiserial.c | 85 struct tty_port tport; 342 struct tty_port *port = &info->tport; in check_modem_status() 480 struct tty_port *port = &info->tport; in startup() 611 struct tty_port *port = &info->tport; in change_speed() 957 struct tty_port *port = &state->tport; in set_serial_info() 1262 struct tty_port *port = &state->tport; in rs_close() 1382 struct tty_port *port = &info->tport; in rs_open() 1506 static int amiga_carrier_raised(struct tty_port *port) in amiga_carrier_raised() 1511 static void amiga_dtr_rts(struct tty_port *port, int raise) in amiga_dtr_rts()
|
| H A D | isicom.c | 200 struct tty_port port; 324 static void isicom_dtr_rts(struct tty_port *port, int on) in isicom_dtr_rts() 797 static int isicom_activate(struct tty_port *tport, struct tty_struct *tty) in isicom_activate() 824 static int isicom_carrier_raised(struct tty_port *port) in isicom_carrier_raised() 830 static struct tty_port *isicom_find_port(struct tty_struct *tty) in isicom_find_port() 857 struct tty_port *tport; in isicom_open() 901 static void isicom_shutdown(struct tty_port *port) in isicom_shutdown() 920 struct tty_port *port; in isicom_close() 1577 struct tty_port *tport = &board->ports[index].port; in isicom_probe()
|
| H A D | goldfish.c | 37 struct tty_port port; 158 static int goldfish_tty_activate(struct tty_port *port, struct tty_struct *tty) in goldfish_tty_activate() 166 static void goldfish_tty_shutdown(struct tty_port *port) in goldfish_tty_shutdown()
|
| /OK3568_Linux_fs/kernel/arch/parisc/kernel/ |
| H A D | pdc_cons.c | 82 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()
|
| /OK3568_Linux_fs/kernel/drivers/ipack/devices/ |
| H A D | ipoctal.c | 37 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() 406 channel->tty_port.ops = &ipoctal_tty_port_ops; in ipoctal_inst_slot() 413 tty_dev = tty_port_register_device_attr(&channel->tty_port, tty, in ipoctal_inst_slot() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/tty/serial/8250/ |
| H A D | 8250_dma.c | 55 struct tty_port *tty_port = &p->port.state->port; in __dma_rx_complete() local 69 tty_insert_flip_string(tty_port, dma->rx_buf + dma->rx_index, count); in __dma_rx_complete() 72 tty_insert_flip_string(tty_port, dma->rx_buf, cur_index); in __dma_rx_complete() 86 struct tty_port *tty_port = &p->port.state->port; in __dma_rx_complete() local 95 tty_insert_flip_string(tty_port, dma->rx_buf, count); in __dma_rx_complete() 98 tty_flip_buffer_push(tty_port); in __dma_rx_complete() 171 struct tty_port *tty_port = &p->port.state->port; in serial8250_rx_dma() local 189 tty_insert_flip_string(tty_port, buf, i); in serial8250_rx_dma() 191 tty_flip_buffer_push(tty_port); in serial8250_rx_dma()
|
| H A 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()
|
| /OK3568_Linux_fs/kernel/arch/alpha/kernel/ |
| H A 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() 161 struct tty_port *port = &srmconsp->port; in srmcons_open() 182 struct tty_port *port = &srmconsp->port; in srmcons_close()
|
| /OK3568_Linux_fs/kernel/drivers/tty/serial/ |
| H A D | serial_core.c | 56 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() 762 static int uart_get_info(struct tty_port *port, struct serial_struct *retinfo) in uart_get_info() 808 struct tty_port *port = &state->port; in uart_get_info_user() 813 static int uart_set_info(struct tty_struct *tty, struct tty_port *port, in uart_set_info() 1021 struct tty_port *port = &state->port; in uart_set_info_user() 1070 struct tty_port *port = &state->port; in uart_tiocmget() 1094 struct tty_port *port = &state->port; in uart_tiocmset() 1115 struct tty_port *port = &state->port; in uart_break_ctl() [all …]
|
| H A D | ifx6x60.c | 270 tty_port_tty_hangup(&ifx_dev->tty_port, false); in ifx_spi_timeout() 340 return tty_port_open(&saved_ifx_dev->tty_port, tty, filp); in ifx_spi_open() 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 *port) in ifx_port_shutdown() 586 container_of(port, struct ifx_spi_device, tty_port); in ifx_port_shutdown() 623 tty_insert_flip_string(&ifx_dev->tty_port, chars, size); in ifx_spi_insert_flip_string() [all …]
|
| H A 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()
|
| H A D | ifx6x60.h | 66 struct tty_port tty_port; member
|
| H A 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() 298 tty_flip_buffer_push(tty_port); in bcm_uart_do_rx()
|
| /OK3568_Linux_fs/kernel/drivers/s390/char/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/arch/um/drivers/ |
| H A 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);
|
| H A 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()
|
| /OK3568_Linux_fs/kernel/drivers/tty/serdev/ |
| H A D | serdev-ttyport.c | 20 struct tty_port *port; 31 static int ttyport_receive_buf(struct tty_port *port, const unsigned char *cp, in ttyport_receive_buf() 54 static void ttyport_write_wakeup(struct tty_port *port) in ttyport_write_wakeup() 270 struct device *serdev_tty_port_register(struct tty_port *port, in serdev_tty_port_register() 332 int serdev_tty_port_unregister(struct tty_port *port) in serdev_tty_port_unregister()
|
| /OK3568_Linux_fs/kernel/drivers/soc/rockchip/fiq_debugger/ |
| H A D | fiq_debugger.c | 119 struct tty_port tty_port; member 772 if (state->tty_port.ops) { in fiq_debugger_handle_console_irq_context() 777 tty_insert_flip_char(&state->tty_port, c, TTY_NORMAL); in fiq_debugger_handle_console_irq_context() 781 tty_flip_buffer_push(&state->tty_port); in fiq_debugger_handle_console_irq_context() 1197 return tty_port_open(&state->tty_port, tty, filp); in fiq_tty_open() 1209 if (tty_port_initialized(&state->tty_port)) in fiq_tty_wake_up() 1210 tty_port_tty_wakeup(&state->tty_port); in fiq_tty_wake_up() 1403 tty_port_init(&state->tty_port); in fiq_debugger_tty_init_one() 1404 state->tty_port.ops = &fiq_tty_port_ops; in fiq_debugger_tty_init_one() 1406 tty_dev = tty_port_register_device(&state->tty_port, fiq_tty_driver, in fiq_debugger_tty_init_one()
|
| /OK3568_Linux_fs/kernel/arch/xtensa/platforms/iss/ |
| H A D | console.c | 35 static struct tty_port serial_port; 96 struct tty_port *port = &serial_port; in rs_poll()
|
| /OK3568_Linux_fs/kernel/drivers/misc/ |
| H A D | pti.c | 55 struct tty_port port[PTITTY_MINOR_NUM]; 746 static int pti_port_activate(struct tty_port *port, struct tty_struct *tty) in pti_port_activate() 763 static void pti_port_shutdown(struct tty_port *port) in pti_port_shutdown() 846 struct tty_port *port = &drv_data->port[a]; in pti_pci_probe()
|