Lines Matching refs:serport

42 struct serport {  struct
54 struct serport *serport = serio->driver; in serport_serio_write() argument
55 return -(serport->tty->driver.write(serport->tty, 0, &data, 1) != 1); in serport_serio_write()
65 struct serport *serport = serio->driver; in serport_serio_close() local
66 wake_up_interruptible(&serport->wait); in serport_serio_close()
77 struct serport *serport; in serport_ldisc_open() local
81 if (!(serport = kmalloc(sizeof(struct serport), GFP_KERNEL))) { in serport_ldisc_open()
86 memset(serport, 0, sizeof(struct serport)); in serport_ldisc_open()
88 serport->tty = tty; in serport_ldisc_open()
89 tty->disc_data = serport; in serport_ldisc_open()
91 serport->serio.type = SERIO_RS232; in serport_ldisc_open()
92 serport->serio.write = serport_serio_write; in serport_ldisc_open()
93 serport->serio.open = serport_serio_open; in serport_ldisc_open()
94 serport->serio.close = serport_serio_close; in serport_ldisc_open()
95 serport->serio.driver = serport; in serport_ldisc_open()
97 init_waitqueue_head(&serport->wait); in serport_ldisc_open()
108 struct serport *serport = (struct serport*) tty->disc_data; in serport_ldisc_close() local
109 kfree(serport); in serport_ldisc_close()
121 struct serport *serport = (struct serport*) tty->disc_data; in serport_ldisc_receive() local
124 if (serport->serio.dev) in serport_ldisc_receive()
125 serport->serio.dev->interrupt(&serport->serio, cp[i], 0); in serport_ldisc_receive()
147 struct serport *serport = (struct serport*) tty->disc_data; in serport_ldisc_read() local
157 serio_register_port(&serport->serio); in serport_ldisc_read()
159 printk(KERN_INFO "serio%d: Serial port %s\n", serport->serio.number, name); in serport_ldisc_read()
161 add_wait_queue(&serport->wait, &wait); in serport_ldisc_read()
164 while(serport->serio.type && !signal_pending(current)) schedule(); in serport_ldisc_read()
167 remove_wait_queue(&serport->wait, &wait); in serport_ldisc_read()
169 serio_unregister_port(&serport->serio); in serport_ldisc_read()
180 struct serport *serport = (struct serport*) tty->disc_data; in serport_ldisc_ioctl() local
184 return get_user(serport->serio.type, (unsigned long *) arg); in serport_ldisc_ioctl()