Lines Matching full:serial
9 * See Documentation/usb/usb-serial.rst for more information on using this
25 #include <linux/usb/serial.h>
49 struct usb_serial *serial; member
61 #define XIRCOM_FAKE_ID_2 0x8025 /* "PGMFHUB" serial */
105 struct usb_serial *serial = priv->serial; in keyspan_pda_request_unthrottle() local
110 result = usb_control_msg(serial->dev, in keyspan_pda_request_unthrottle()
111 usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_request_unthrottle()
121 dev_dbg(&serial->dev->dev, "%s - error %d from usb_control_msg\n", in keyspan_pda_request_unthrottle()
226 static speed_t keyspan_pda_setbaud(struct usb_serial *serial, speed_t baud) in keyspan_pda_setbaud() argument
269 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_setbaud()
288 struct usb_serial *serial = port->serial; in keyspan_pda_break_ctl() local
296 result = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_break_ctl()
313 struct usb_serial *serial = port->serial; in keyspan_pda_set_termios() local
337 speed = keyspan_pda_setbaud(serial, speed); in keyspan_pda_set_termios()
355 static int keyspan_pda_get_modem_info(struct usb_serial *serial, in keyspan_pda_get_modem_info() argument
365 rc = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in keyspan_pda_get_modem_info()
379 static int keyspan_pda_set_modem_info(struct usb_serial *serial, in keyspan_pda_set_modem_info() argument
383 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_set_modem_info()
393 struct usb_serial *serial = port->serial; in keyspan_pda_tiocmget() local
398 rc = keyspan_pda_get_modem_info(serial, &status); in keyspan_pda_tiocmget()
415 struct usb_serial *serial = port->serial; in keyspan_pda_tiocmset() local
419 rc = keyspan_pda_get_modem_info(serial, &status); in keyspan_pda_tiocmset()
432 rc = keyspan_pda_set_modem_info(serial, status); in keyspan_pda_tiocmset()
439 struct usb_serial *serial = port->serial; in keyspan_pda_write() local
490 rc = usb_control_msg(serial->dev, in keyspan_pda_write()
491 usb_rcvctrlpipe(serial->dev, 0), in keyspan_pda_write()
603 struct usb_serial *serial = port->serial; in keyspan_pda_dtr_rts() local
606 keyspan_pda_set_modem_info(serial, (1 << 7) | (1 << 2)); in keyspan_pda_dtr_rts()
608 keyspan_pda_set_modem_info(serial, 0); in keyspan_pda_dtr_rts()
615 struct usb_serial *serial = port->serial; in keyspan_pda_open() local
625 rc = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in keyspan_pda_open()
669 static int keyspan_pda_fake_startup(struct usb_serial *serial) in keyspan_pda_fake_startup() argument
674 ezusb_fx1_set_reset(serial->dev, 1); in keyspan_pda_fake_startup()
678 else if (le16_to_cpu(serial->dev->descriptor.idVendor) == KEYSPAN_VENDOR_ID) in keyspan_pda_fake_startup()
682 else if ((le16_to_cpu(serial->dev->descriptor.idVendor) == XIRCOM_VENDOR_ID) || in keyspan_pda_fake_startup()
683 (le16_to_cpu(serial->dev->descriptor.idVendor) == ENTREGA_VENDOR_ID)) in keyspan_pda_fake_startup()
687 dev_err(&serial->dev->dev, "%s: unknown vendor, aborting.\n", in keyspan_pda_fake_startup()
692 if (ezusb_fx1_ihex_firmware_download(serial->dev, fw_name) < 0) { in keyspan_pda_fake_startup()
693 dev_err(&serial->dev->dev, "failed to load firmware \"%s\"\n", in keyspan_pda_fake_startup()
722 priv->serial = port->serial; in keyspan_pda_port_probe()