| /linux-6.15/include/linux/ |
| H A D | tty_driver.h | 15 struct tty_driver; 443 struct tty_struct * (*lookup)(struct tty_driver *driver, 483 int (*poll_get_char)(struct tty_driver *driver, int line); 526 struct tty_driver { struct 541 struct tty_driver *other; argument 565 void tty_driver_kref_put(struct tty_driver *driver); 577 static inline struct tty_driver *tty_driver_kref_get(struct tty_driver *d) in tty_driver_kref_get() 589 int tty_register_driver(struct tty_driver *driver); 590 void tty_unregister_driver(struct tty_driver *driver); 599 void proc_tty_register_driver(struct tty_driver *); [all …]
|
| H A D | tty_port.h | 12 struct tty_driver; 141 void tty_port_link_device(struct tty_port *port, struct tty_driver *driver, 144 struct tty_driver *driver, unsigned index, 147 struct tty_driver *driver, unsigned index, 151 struct tty_driver *driver, unsigned index, 154 struct tty_driver *driver, unsigned index, 158 struct tty_driver *driver, unsigned index); 247 int tty_port_install(struct tty_port *port, struct tty_driver *driver,
|
| H A D | serdev.h | 309 struct tty_driver; 315 struct tty_driver *drv, int idx); 321 struct tty_driver *drv, int idx) in serdev_tty_port_register()
|
| H A D | console.h | 338 struct tty_driver *(*device)(struct console *co, int *index); 635 extern struct tty_driver *console_device(int *);
|
| H A D | tty.h | 192 struct tty_driver *driver; 456 struct tty_struct *tty_init_dev(struct tty_driver *driver, int idx); 460 int tty_standard_install(struct tty_driver *driver,
|
| /linux-6.15/Documentation/driver-api/tty/ |
| H A D | tty_driver.rst | 12 The first thing a driver needs to do is to allocate a struct tty_driver. This 28 .. kernel-doc:: include/linux/tty_driver.h 39 .. kernel-doc:: include/linux/tty_driver.h 47 When a struct tty_driver is allocated and filled in, it can be registered using 77 calling operations from :c:member:`tty_driver.ops`, see `TTY Operations 91 it. It must be known to the TTY layer at :c:member:`tty_driver.ops.install()` 100 :c:member:`tty_driver.ops.install` hook as a last resort. The last one is 115 All members of struct tty_driver are documented here. The required members are 118 .. kernel-doc:: include/linux/tty_driver.h 119 :identifiers: tty_driver [all …]
|
| H A D | index.rst | 15 which is struct tty_driver. This structure describes the driver but also 34 tty_driver 62 :doc:`tty_driver`. For the other two (devices handling), look into
|
| /linux-6.15/fs/proc/ |
| H A D | proc_tty.c | 26 static void show_tty_range(struct seq_file *m, struct tty_driver *p, in show_tty_range() 69 struct tty_driver *p = list_entry(v, struct tty_driver, tty_drivers); in show_tty_driver() 131 void proc_tty_register_driver(struct tty_driver *driver) in proc_tty_register_driver() 147 void proc_tty_unregister_driver(struct tty_driver *driver) in proc_tty_unregister_driver()
|
| /linux-6.15/drivers/tty/ |
| H A D | ttynull.c | 14 static struct tty_driver *ttynull_driver; 51 static struct tty_driver *ttynull_device(struct console *c, int *index) in ttynull_device() 64 struct tty_driver *driver; in ttynull_init()
|
| H A D | tty_io.c | 309 struct tty_driver *p; in get_tty_driver() 337 struct tty_driver *p; in tty_dev_name_to_number() 381 struct tty_driver *p, *res = NULL; in tty_find_polling_driver() 1337 struct tty_driver *driver = tty->driver; in tty_reopen() 1527 struct tty_driver *driver = tty->driver; in release_one_tty() 1917 struct tty_driver *driver = NULL; in tty_lookup_driver() 1922 extern struct tty_driver *console_driver; in tty_lookup_driver() 1956 struct tty_driver *driver; in tty_kopen() 2042 struct tty_driver *driver = NULL; in tty_open_by_driver() 3342 struct tty_driver *driver; in __tty_alloc_driver() [all …]
|
| H A D | pty.c | 42 static struct tty_driver *ptm_driver; 43 static struct tty_driver *pts_driver; 359 static int pty_common_install(struct tty_driver *driver, struct tty_struct *tty, in pty_common_install() 439 static int pty_install(struct tty_driver *driver, struct tty_struct *tty) in pty_install() 444 static void pty_remove(struct tty_driver *driver, struct tty_struct *tty) in pty_remove() 531 struct tty_driver *pty_driver, *pty_slave_driver; in legacy_pty_init() 688 static struct tty_struct *ptm_unix98_lookup(struct tty_driver *driver, in ptm_unix98_lookup() 705 static struct tty_struct *pts_unix98_lookup(struct tty_driver *driver, in pts_unix98_lookup() 719 static int pty_unix98_install(struct tty_driver *driver, struct tty_struct *tty) in pty_unix98_install() 725 static void pty_unix98_remove(struct tty_driver *driver, struct tty_struct *tty) in pty_unix98_remove()
|
| H A D | tty_port.c | 118 struct tty_driver *driver, unsigned index) in tty_port_link_device() 138 struct tty_driver *driver, unsigned index, in tty_port_register_device() 159 struct tty_driver *driver, unsigned index, in tty_port_register_device_attr() 183 struct tty_driver *driver, unsigned index, in tty_port_register_device_attr_serdev() 214 struct tty_driver *driver, unsigned index, in tty_port_register_device_serdev() 233 struct tty_driver *driver, unsigned index) in tty_port_unregister_device() 738 int tty_port_install(struct tty_port *port, struct tty_driver *driver, in tty_port_install()
|
| H A D | goldfish.c | 48 static struct tty_driver *goldfish_tty_driver; 206 static struct tty_driver *goldfish_tty_console_device(struct console *c, in goldfish_tty_console_device() 239 struct tty_driver *tty; in goldfish_tty_create_driver()
|
| H A D | rpmsg_tty.c | 27 static struct tty_driver *rpmsg_tty_driver; 50 static int rpmsg_tty_install(struct tty_driver *driver, struct tty_struct *tty) in rpmsg_tty_install()
|
| /linux-6.15/arch/m68k/emu/ |
| H A D | nfcon.c | 24 static struct tty_driver *nfcon_tty_driver; 49 static struct tty_driver *nfcon_device(struct console *con, int *index) in nfcon_device() 128 struct tty_driver *driver; in nfcon_init()
|
| /linux-6.15/arch/xtensa/platforms/iss/ |
| H A D | console.c | 36 static struct tty_driver *serial_driver; 106 struct tty_driver *driver; in rs_init() 173 static struct tty_driver* iss_console_device(struct console *c, int *index) in iss_console_device()
|
| /linux-6.15/arch/um/drivers/ |
| H A D | line.h | 29 struct tty_driver *driver; 61 extern int line_install(struct tty_driver *driver, struct tty_struct *tty,
|
| H A D | stdio_console.c | 93 static int con_install(struct tty_driver *driver, struct tty_struct *tty) in con_install() 123 static struct tty_driver *uml_console_device(struct console *c, int *index) in uml_console_device()
|
| H A D | ssl.c | 87 static int ssl_install(struct tty_driver *driver, struct tty_struct *tty) in ssl_install() 122 static struct tty_driver *ssl_console_device(struct console *c, int *index) in ssl_console_device()
|
| /linux-6.15/drivers/usb/serial/ |
| H A D | console.c | 246 static struct tty_driver *usb_console_device(struct console *co, int *index) in usb_console_device() 248 struct tty_driver **p = (struct tty_driver **)co->data; in usb_console_device()
|
| /linux-6.15/arch/alpha/kernel/ |
| H A D | srmcons.c | 187 static struct tty_driver *srmcons_driver; 199 struct tty_driver *driver; in srmcons_init() 250 static struct tty_driver *
|
| /linux-6.15/drivers/tty/hvc/ |
| H A D | hvc_console.c | 54 static struct tty_driver *hvc_driver; 197 static struct tty_driver *hvc_console_device(struct console *c, int *index) in hvc_console_device() 325 static int hvc_install(struct tty_driver *driver, struct tty_struct *tty) in hvc_install() 856 static int hvc_poll_init(struct tty_driver *driver, int line, char *options) in hvc_poll_init() 861 static int hvc_poll_get_char(struct tty_driver *driver, int line) in hvc_poll_get_char() 876 static void hvc_poll_put_char(struct tty_driver *driver, int line, char ch) in hvc_poll_put_char() 1017 struct tty_driver *drv; in hvc_init()
|
| /linux-6.15/drivers/s390/char/ |
| H A D | sclp_tty.h | 16 extern struct tty_driver *sclp_tty_driver;
|
| /linux-6.15/drivers/char/ |
| H A D | ttyprintk.c | 164 static struct tty_driver *ttyprintk_driver; 166 static struct tty_driver *ttyprintk_console_device(struct console *c, in ttyprintk_console_device()
|
| /linux-6.15/drivers/tty/serial/ |
| H A D | serial_core.c | 2096 struct tty_driver *ttydrv = m->private; in uart_proc_show() 2354 struct tty_driver *tty_drv = match->driver->tty_driver; in serial_match_port() 2698 static int uart_poll_get_char(struct tty_driver *driver, int line) in uart_poll_get_char() 2791 struct tty_driver *normal; in uart_register_driver() 2811 drv->tty_driver = normal; in uart_register_driver() 2862 struct tty_driver *p = drv->tty_driver; in uart_unregister_driver() 2871 drv->tty_driver = NULL; in uart_unregister_driver() 2879 return p->tty_driver; in uart_console_device() 3149 uport->minor = drv->tty_driver->minor_start + uport->line; in serial_core_add_one_port() 3151 drv->tty_driver->name_base + uport->line); in serial_core_add_one_port() [all …]
|