Lines Matching full:serial
9 * See Documentation/usb/usb-serial.rst for more information on using this
25 #include <linux/usb/serial.h>
48 struct usb_serial *serial; member
60 #define XIRCOM_FAKE_ID_2 0x8025 /* "PGMFHUB" serial */
113 struct usb_serial *serial = priv->serial; in keyspan_pda_request_unthrottle() local
118 result = usb_control_msg(serial->dev, in keyspan_pda_request_unthrottle()
119 usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_request_unthrottle()
129 dev_dbg(&serial->dev->dev, "%s - error %d from usb_control_msg\n", in keyspan_pda_request_unthrottle()
229 static speed_t keyspan_pda_setbaud(struct usb_serial *serial, speed_t baud) in keyspan_pda_setbaud() argument
272 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_setbaud()
291 struct usb_serial *serial = port->serial; in keyspan_pda_break_ctl() local
299 result = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_break_ctl()
316 struct usb_serial *serial = port->serial; in keyspan_pda_set_termios() local
340 speed = keyspan_pda_setbaud(serial, speed); in keyspan_pda_set_termios()
358 static int keyspan_pda_get_modem_info(struct usb_serial *serial, in keyspan_pda_get_modem_info() argument
368 rc = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in keyspan_pda_get_modem_info()
382 static int keyspan_pda_set_modem_info(struct usb_serial *serial, in keyspan_pda_set_modem_info() argument
386 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_set_modem_info()
396 struct usb_serial *serial = port->serial; in keyspan_pda_tiocmget() local
401 rc = keyspan_pda_get_modem_info(serial, &status); in keyspan_pda_tiocmget()
418 struct usb_serial *serial = port->serial; in keyspan_pda_tiocmset() local
422 rc = keyspan_pda_get_modem_info(serial, &status); in keyspan_pda_tiocmset()
435 rc = keyspan_pda_set_modem_info(serial, status); in keyspan_pda_tiocmset()
442 struct usb_serial *serial = port->serial; in keyspan_pda_write() local
492 rc = usb_control_msg(serial->dev, in keyspan_pda_write()
493 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()
665 static int keyspan_pda_fake_startup(struct usb_serial *serial) in keyspan_pda_fake_startup() argument
670 ezusb_fx1_set_reset(serial->dev, 1); in keyspan_pda_fake_startup()
674 else if (le16_to_cpu(serial->dev->descriptor.idVendor) == KEYSPAN_VENDOR_ID) in keyspan_pda_fake_startup()
678 else if ((le16_to_cpu(serial->dev->descriptor.idVendor) == XIRCOM_VENDOR_ID) || in keyspan_pda_fake_startup()
679 (le16_to_cpu(serial->dev->descriptor.idVendor) == ENTREGA_VENDOR_ID)) in keyspan_pda_fake_startup()
683 dev_err(&serial->dev->dev, "%s: unknown vendor, aborting.\n", in keyspan_pda_fake_startup()
688 if (ezusb_fx1_ihex_firmware_download(serial->dev, fw_name) < 0) { in keyspan_pda_fake_startup()
689 dev_err(&serial->dev->dev, "failed to load firmware \"%s\"\n", in keyspan_pda_fake_startup()
719 priv->serial = port->serial; in keyspan_pda_port_probe()