Home
last modified time | relevance | path

Searched refs:tty_driver (Results 1 – 25 of 73) sorted by relevance

123

/Linux-v6.1/include/linux/
Dtty_driver.h15 struct tty_driver;
351 struct tty_struct * (*lookup)(struct tty_driver *driver,
353 int (*install)(struct tty_driver *driver, struct tty_struct *tty);
354 void (*remove)(struct tty_driver *driver, struct tty_struct *tty);
390 int (*poll_init)(struct tty_driver *driver, int line, char *options);
391 int (*poll_get_char)(struct tty_driver *driver, int line);
392 void (*poll_put_char)(struct tty_driver *driver, int line, char ch);
434 struct tty_driver { struct
449 struct tty_driver *other; argument
469 struct tty_driver *__tty_alloc_driver(unsigned int lines, struct module *owner, argument
[all …]
Dtty_port.h12 struct tty_driver;
140 void tty_port_link_device(struct tty_port *port, struct tty_driver *driver,
143 struct tty_driver *driver, unsigned index,
146 struct tty_driver *driver, unsigned index,
150 struct tty_driver *driver, unsigned index,
153 struct tty_driver *driver, unsigned index,
157 struct tty_driver *driver, unsigned index);
246 int tty_port_install(struct tty_port *port, struct tty_driver *driver,
Dserdev.h311 struct tty_driver;
316 struct tty_driver *drv, int idx);
321 struct tty_driver *drv, int idx) in serdev_tty_port_register()
Dconsole.h144 struct tty_driver *(*device)(struct console *, int *);
184 extern struct tty_driver *console_device(int *);
/Linux-v6.1/drivers/staging/gdm724x/
Dgdm_tty.c26 static struct tty_driver *gdm_driver[TTY_MAX_COUNT];
48 static int gdm_tty_install(struct tty_driver *driver, struct tty_struct *tty) in gdm_tty_install()
273 struct tty_driver *tty_driver; in register_lte_tty_driver() local
278 tty_driver = tty_alloc_driver(GDM_TTY_MINOR, in register_lte_tty_driver()
280 if (IS_ERR(tty_driver)) in register_lte_tty_driver()
281 return PTR_ERR(tty_driver); in register_lte_tty_driver()
283 tty_driver->owner = THIS_MODULE; in register_lte_tty_driver()
284 tty_driver->driver_name = DRIVER_STRING[i]; in register_lte_tty_driver()
285 tty_driver->name = DEVICE_STRING[i]; in register_lte_tty_driver()
286 tty_driver->major = GDM_TTY_MAJOR; in register_lte_tty_driver()
[all …]
/Linux-v6.1/drivers/net/ethernet/intel/ice/
Dice_gnss.c418 static struct tty_driver *ice_gnss_create_tty_driver(struct ice_pf *pf) in ice_gnss_create_tty_driver()
422 struct tty_driver *tty_driver; in ice_gnss_create_tty_driver() local
427 tty_driver = tty_alloc_driver(ICE_GNSS_TTY_MINOR_DEVICES, in ice_gnss_create_tty_driver()
429 if (IS_ERR(tty_driver)) { in ice_gnss_create_tty_driver()
436 tty_driver_kref_put(tty_driver); in ice_gnss_create_tty_driver()
444 tty_driver->owner = THIS_MODULE; in ice_gnss_create_tty_driver()
445 tty_driver->driver_name = dev_driver_string(dev); in ice_gnss_create_tty_driver()
446 tty_driver->name = (const char *)ttydrv_name; in ice_gnss_create_tty_driver()
447 tty_driver->type = TTY_DRIVER_TYPE_SERIAL; in ice_gnss_create_tty_driver()
448 tty_driver->subtype = SERIAL_TYPE_NORMAL; in ice_gnss_create_tty_driver()
[all …]
/Linux-v6.1/Documentation/driver-api/tty/
Dtty_driver.rst12 The first thing a driver needs to do is to allocate a struct tty_driver. This
37 .. kernel-doc:: include/linux/tty_driver.h
45 When a struct tty_driver is allocated and filled in, it can be registered using
75 calling operations from :c:member:`tty_driver.ops`, see `TTY Operations
89 it. It must be known to the TTY layer at :c:member:`tty_driver.ops.install()`
98 :c:member:`tty_driver.ops.install` hook as a last resort. The last one is
113 All members of struct tty_driver are documented here. The required members are
116 .. kernel-doc:: include/linux/tty_driver.h
117 :identifiers: tty_driver
126 .. kernel-doc:: include/linux/tty_driver.h
Dindex.rst15 which is struct tty_driver. This structure describes the driver but also
34 tty_driver
60 :doc:`tty_driver`. For the other two (devices handling), look into
/Linux-v6.1/fs/proc/
Dproc_tty.c26 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-v6.1/drivers/tty/
Dttynull.c14 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()
Dtty_io.c308 static struct tty_driver *get_tty_driver(dev_t device, int *index) in get_tty_driver()
310 struct tty_driver *p; in get_tty_driver()
338 struct tty_driver *p; in tty_dev_name_to_number()
383 struct tty_driver *tty_find_polling_driver(char *name, int *line) in tty_find_polling_driver()
385 struct tty_driver *p, *res = NULL; in tty_find_polling_driver()
1181 static void pty_line_name(struct tty_driver *driver, int index, char *p) in pty_line_name()
1202 static ssize_t tty_line_name(struct tty_driver *driver, int index, char *p) in tty_line_name()
1222 static struct tty_struct *tty_driver_lookup_tty(struct tty_driver *driver, in tty_driver_lookup_tty()
1277 int tty_standard_install(struct tty_driver *driver, struct tty_struct *tty) in tty_standard_install()
1298 static int tty_driver_install_tty(struct tty_driver *driver, in tty_driver_install_tty()
[all …]
Dpty.c42 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()
Dtty_port.c120 struct tty_driver *driver, unsigned index) in tty_port_link_device()
140 struct tty_driver *driver, unsigned index, in tty_port_register_device()
161 struct tty_driver *driver, unsigned index, in tty_port_register_device_attr()
184 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()
/Linux-v6.1/arch/m68k/emu/
Dnfcon.c24 static struct tty_driver *nfcon_tty_driver;
49 static struct tty_driver *nfcon_device(struct console *con, int *index) in nfcon_device()
123 struct tty_driver *driver; in nfcon_init()
/Linux-v6.1/arch/xtensa/platforms/iss/
Dconsole.c36 static struct tty_driver *serial_driver;
131 struct tty_driver *driver; in rs_init()
200 static struct tty_driver* iss_console_device(struct console *c, int *index) in iss_console_device()
/Linux-v6.1/arch/um/drivers/
Dline.h29 struct tty_driver *driver;
61 extern int line_install(struct tty_driver *driver, struct tty_struct *tty,
Dstdio_console.c93 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()
Dssl.c87 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-v6.1/arch/alpha/kernel/
Dsrmcons.c190 static struct tty_driver *srmcons_driver;
204 struct tty_driver *driver; in srmcons_init()
249 static struct tty_driver *
/Linux-v6.1/drivers/usb/serial/
Dconsole.c246 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-v6.1/drivers/tty/hvc/
Dhvc_console.c54 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()
1020 struct tty_driver *drv; in hvc_init()
/Linux-v6.1/drivers/tty/serial/
Dkgdb_nmi.c66 static struct tty_driver *kgdb_nmi_tty_driver;
68 static struct tty_driver *kgdb_nmi_console_device(struct console *co, int *idx) in kgdb_nmi_console_device()
234 static int kgdb_nmi_tty_install(struct tty_driver *drv, struct tty_struct *tty) in kgdb_nmi_tty_install()
/Linux-v6.1/drivers/s390/char/
Dsclp_tty.h16 extern struct tty_driver *sclp_tty_driver;
Dtty3270.h13 extern struct tty_driver *tty3270_driver;
/Linux-v6.1/drivers/char/
Dttyprintk.c165 static struct tty_driver *ttyprintk_driver;
167 static struct tty_driver *ttyprintk_console_device(struct console *c, in ttyprintk_console_device()

123