Lines Matching defs:serial
18 #include <linux/serial.h>
20 #include <linux/usb/serial.h>
35 * Much of the code here is copied from drivers/char/serial.c
36 * and implements a phony serial console in the same way that
37 * serial.c does so that in case some software queries it,
40 * Things that are different from the way the serial port code
41 * does things, is that we call the lower level usb-serial
52 * serial.c code, except that the specifier is "ttyUSB" instead
64 struct usb_serial *serial;
118 serial = port->serial;
120 retval = usb_autopm_get_interface(serial->interface);
130 if (serial->type->set_termios) {
156 retval = serial->type->open(NULL, port);
162 if (serial->type->set_termios) {
166 serial->type->set_termios(tty, port, &dummy);
181 mutex_unlock(&serial->disc_mutex);
190 usb_autopm_put_interface(serial->interface);
192 mutex_unlock(&serial->disc_mutex);
193 usb_serial_put(serial);
202 struct usb_serial *serial;
205 if (!port || port->serial->dev->state == USB_STATE_NOTATTACHED)
207 serial = port->serial;
232 retval = serial->type->write(NULL, port, buf, i);
237 retval = serial->type->write(NULL, port, &cr, 1);
267 void usb_serial_console_disconnect(struct usb_serial *serial)
269 if (serial->port[0] && serial->port[0] == usbcons_info.port) {
271 usb_serial_put(serial);
291 pr_debug("registering the USB serial console.\n");