Lines Matching refs:serial

10  * See Documentation/usb/usb-serial.rst for more information on using this
25 #include <linux/usb/serial.h>
36 struct usb_serial *serial;
49 #define XIRCOM_FAKE_ID_2 0x8025 /* "PGMFHUB" serial */
79 struct usb_serial *serial = port->serial;
83 rc = usb_control_msg_recv(serial->dev,
108 struct usb_serial *serial = port->serial;
118 result = usb_control_msg(serial->dev,
119 usb_sndctrlpipe(serial->dev, 0),
129 dev_dbg(&serial->dev->dev, "%s - error %d from usb_control_msg\n",
245 static speed_t keyspan_pda_setbaud(struct usb_serial *serial, speed_t baud)
286 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0),
305 struct usb_serial *serial = port->serial;
314 result = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0),
331 struct usb_serial *serial = port->serial;
356 speed = keyspan_pda_setbaud(serial, speed);
376 static int keyspan_pda_get_modem_info(struct usb_serial *serial,
382 rc = usb_control_msg_recv(serial->dev, 0,
397 static int keyspan_pda_set_modem_info(struct usb_serial *serial,
401 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0),
411 struct usb_serial *serial = port->serial;
416 rc = keyspan_pda_get_modem_info(serial, &status);
434 struct usb_serial *serial = port->serial;
438 rc = keyspan_pda_get_modem_info(serial, &status);
451 rc = keyspan_pda_set_modem_info(serial, status);
560 struct usb_serial *serial = port->serial;
563 keyspan_pda_set_modem_info(serial, BIT(7) | BIT(2));
565 keyspan_pda_set_modem_info(serial, 0);
612 static int keyspan_pda_fake_startup(struct usb_serial *serial)
614 unsigned int vid = le16_to_cpu(serial->dev->descriptor.idVendor);
618 ezusb_fx1_set_reset(serial->dev, 1);
629 dev_err(&serial->dev->dev, "%s: unknown vendor, aborting.\n",
634 if (ezusb_fx1_ihex_firmware_download(serial->dev, fw_name) < 0) {
635 dev_err(&serial->dev->dev, "failed to load firmware \"%s\"\n",