Lines Matching refs: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;
61 #define XIRCOM_FAKE_ID_2 0x8025 /* "PGMFHUB" serial */
105 struct usb_serial *serial = priv->serial;
110 result = usb_control_msg(serial->dev,
111 usb_sndctrlpipe(serial->dev, 0),
121 dev_dbg(&serial->dev->dev, "%s - error %d from usb_control_msg\n",
226 static speed_t keyspan_pda_setbaud(struct usb_serial *serial, speed_t baud)
269 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0),
288 struct usb_serial *serial = port->serial;
296 result = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0),
313 struct usb_serial *serial = port->serial;
337 speed = keyspan_pda_setbaud(serial, speed);
355 static int keyspan_pda_get_modem_info(struct usb_serial *serial,
365 rc = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0),
379 static int keyspan_pda_set_modem_info(struct usb_serial *serial,
383 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0),
393 struct usb_serial *serial = port->serial;
398 rc = keyspan_pda_get_modem_info(serial, &status);
415 struct usb_serial *serial = port->serial;
419 rc = keyspan_pda_get_modem_info(serial, &status);
432 rc = keyspan_pda_set_modem_info(serial, status);
439 struct usb_serial *serial = port->serial;
490 rc = usb_control_msg(serial->dev,
491 usb_rcvctrlpipe(serial->dev, 0),
603 struct usb_serial *serial = port->serial;
606 keyspan_pda_set_modem_info(serial, (1 << 7) | (1 << 2));
608 keyspan_pda_set_modem_info(serial, 0);
615 struct usb_serial *serial = port->serial;
625 rc = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0),
669 static int keyspan_pda_fake_startup(struct usb_serial *serial)
674 ezusb_fx1_set_reset(serial->dev, 1);
678 else if (le16_to_cpu(serial->dev->descriptor.idVendor) == KEYSPAN_VENDOR_ID)
682 else if ((le16_to_cpu(serial->dev->descriptor.idVendor) == XIRCOM_VENDOR_ID) ||
683 (le16_to_cpu(serial->dev->descriptor.idVendor) == ENTREGA_VENDOR_ID))
687 dev_err(&serial->dev->dev, "%s: unknown vendor, aborting.\n",
692 if (ezusb_fx1_ihex_firmware_download(serial->dev, fw_name) < 0) {
693 dev_err(&serial->dev->dev, "failed to load firmware \"%s\"\n",
722 priv->serial = port->serial;