Lines Matching full:serio
18 #include <linux/serio.h>
34 struct serio *serio; member
41 * Callback functions from the serio code.
44 static int serport_serio_write(struct serio *serio, unsigned char data) in serport_serio_write() argument
46 struct serport *serport = serio->port_data; in serport_serio_write()
50 static int serport_serio_open(struct serio *serio) in serport_serio_open() argument
52 struct serport *serport = serio->port_data; in serport_serio_open()
61 static void serport_serio_close(struct serio *serio) in serport_serio_close() argument
63 struct serport *serport = serio->port_data; in serport_serio_close()
71 * discipline on a tty. It prepares the serio struct.
142 serio_interrupt(serport->serio, cp[i], ch_flags); in serport_ldisc_receive()
148 * However, when the serio driver closes the serio port, it finishes,
157 struct serio *serio; in serport_ldisc_read() local
162 serport->serio = serio = kzalloc(sizeof(*serio), GFP_KERNEL); in serport_ldisc_read()
163 if (!serio) in serport_ldisc_read()
166 strscpy(serio->name, "Serial port", sizeof(serio->name)); in serport_ldisc_read()
167 snprintf(serio->phys, sizeof(serio->phys), "%s/serio0", tty_name(tty)); in serport_ldisc_read()
168 serio->id = serport->id; in serport_ldisc_read()
169 serio->id.type = SERIO_RS232; in serport_ldisc_read()
170 serio->write = serport_serio_write; in serport_ldisc_read()
171 serio->open = serport_serio_open; in serport_ldisc_read()
172 serio->close = serport_serio_close; in serport_ldisc_read()
173 serio->port_data = serport; in serport_ldisc_read()
174 serio->dev.parent = tty->dev; in serport_ldisc_read()
176 serio_register_port(serport->serio); in serport_ldisc_read()
177 printk(KERN_INFO "serio: Serial port %s\n", tty_name(tty)); in serport_ldisc_read()
180 serio_unregister_port(serport->serio); in serport_ldisc_read()
181 serport->serio = NULL; in serport_ldisc_read()
255 serio_drv_write_wakeup(serport->serio); in serport_ldisc_write_wakeup()