Lines Matching full: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; member
49 #define XIRCOM_FAKE_ID_2 0x8025 /* "PGMFHUB" serial */
79 struct usb_serial *serial = port->serial; in keyspan_pda_get_write_room() local
87 rc = usb_control_msg(serial->dev, in keyspan_pda_get_write_room()
88 usb_rcvctrlpipe(serial->dev, 0), in keyspan_pda_get_write_room()
117 struct usb_serial *serial = port->serial; in keyspan_pda_request_unthrottle() local
127 result = usb_control_msg(serial->dev, in keyspan_pda_request_unthrottle()
128 usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_request_unthrottle()
138 dev_dbg(&serial->dev->dev, "%s - error %d from usb_control_msg\n", in keyspan_pda_request_unthrottle()
254 static speed_t keyspan_pda_setbaud(struct usb_serial *serial, speed_t baud) in keyspan_pda_setbaud() argument
295 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_setbaud()
314 struct usb_serial *serial = port->serial; in keyspan_pda_break_ctl() local
323 result = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_break_ctl()
335 struct usb_serial *serial = port->serial; in keyspan_pda_set_termios() local
360 speed = keyspan_pda_setbaud(serial, speed); in keyspan_pda_set_termios()
380 static int keyspan_pda_get_modem_info(struct usb_serial *serial, in keyspan_pda_get_modem_info() argument
390 rc = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in keyspan_pda_get_modem_info()
403 static int keyspan_pda_set_modem_info(struct usb_serial *serial, in keyspan_pda_set_modem_info() argument
407 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_set_modem_info()
417 struct usb_serial *serial = port->serial; in keyspan_pda_tiocmget() local
422 rc = keyspan_pda_get_modem_info(serial, &status); in keyspan_pda_tiocmget()
440 struct usb_serial *serial = port->serial; in keyspan_pda_tiocmset() local
444 rc = keyspan_pda_get_modem_info(serial, &status); in keyspan_pda_tiocmset()
457 rc = keyspan_pda_set_modem_info(serial, status); in keyspan_pda_tiocmset()
566 struct usb_serial *serial = port->serial; in keyspan_pda_dtr_rts() local
569 keyspan_pda_set_modem_info(serial, BIT(7) | BIT(2)); in keyspan_pda_dtr_rts()
571 keyspan_pda_set_modem_info(serial, 0); in keyspan_pda_dtr_rts()
618 static int keyspan_pda_fake_startup(struct usb_serial *serial) in keyspan_pda_fake_startup() argument
620 unsigned int vid = le16_to_cpu(serial->dev->descriptor.idVendor); in keyspan_pda_fake_startup()
624 ezusb_fx1_set_reset(serial->dev, 1); in keyspan_pda_fake_startup()
635 dev_err(&serial->dev->dev, "%s: unknown vendor, aborting.\n", in keyspan_pda_fake_startup()
640 if (ezusb_fx1_ihex_firmware_download(serial->dev, fw_name) < 0) { in keyspan_pda_fake_startup()
641 dev_err(&serial->dev->dev, "failed to load firmware \"%s\"\n", in keyspan_pda_fake_startup()