Lines Matching full:serial
3 * USB Serial Console driver
18 #include <linux/serial.h>
20 #include <linux/usb/serial.h>
33 * USB Serial console driver
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; in usb_console_setup() local
118 serial = port->serial; in usb_console_setup()
120 retval = usb_autopm_get_interface(serial->interface); in usb_console_setup()
130 if (serial->type->set_termios) { in usb_console_setup()
156 retval = serial->type->open(NULL, port); in usb_console_setup()
162 if (serial->type->set_termios) { in usb_console_setup()
166 serial->type->set_termios(tty, port, &dummy); in usb_console_setup()
181 mutex_unlock(&serial->disc_mutex); in usb_console_setup()
190 usb_autopm_put_interface(serial->interface); in usb_console_setup()
192 usb_serial_put(serial); in usb_console_setup()
193 mutex_unlock(&serial->disc_mutex); in usb_console_setup()
202 struct usb_serial *serial; in usb_console_write() local
205 if (!port || port->serial->dev->state == USB_STATE_NOTATTACHED) in usb_console_write()
207 serial = port->serial; in usb_console_write()
232 retval = serial->type->write(NULL, port, buf, i); in usb_console_write()
237 retval = serial->type->write(NULL, port, &cr, 1); in usb_console_write()
267 void usb_serial_console_disconnect(struct usb_serial *serial) in usb_serial_console_disconnect() argument
269 if (serial->port[0] && serial->port[0] == usbcons_info.port) { in usb_serial_console_disconnect()
271 usb_serial_put(serial); in usb_serial_console_disconnect()
291 pr_debug("registering the USB serial console.\n"); in usb_serial_console_init()