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
83 rc = usb_control_msg_recv(serial->dev, in keyspan_pda_get_write_room()
108 struct usb_serial *serial = port->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()
245 static speed_t keyspan_pda_setbaud(struct usb_serial *serial, speed_t baud) in keyspan_pda_setbaud() argument
286 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_setbaud()
305 struct usb_serial *serial = port->serial; in keyspan_pda_break_ctl() local
314 result = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_break_ctl()
331 struct usb_serial *serial = port->serial; in keyspan_pda_set_termios() local
356 speed = keyspan_pda_setbaud(serial, speed); in keyspan_pda_set_termios()
376 static int keyspan_pda_get_modem_info(struct usb_serial *serial, in keyspan_pda_get_modem_info() argument
382 rc = usb_control_msg_recv(serial->dev, 0, in keyspan_pda_get_modem_info()
397 static int keyspan_pda_set_modem_info(struct usb_serial *serial, in keyspan_pda_set_modem_info() argument
401 rc = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in keyspan_pda_set_modem_info()
411 struct usb_serial *serial = port->serial; in keyspan_pda_tiocmget() local
416 rc = keyspan_pda_get_modem_info(serial, &status); in keyspan_pda_tiocmget()
434 struct usb_serial *serial = port->serial; in keyspan_pda_tiocmset() local
438 rc = keyspan_pda_get_modem_info(serial, &status); in keyspan_pda_tiocmset()
451 rc = keyspan_pda_set_modem_info(serial, status); in keyspan_pda_tiocmset()
560 struct usb_serial *serial = port->serial; in keyspan_pda_dtr_rts() local
563 keyspan_pda_set_modem_info(serial, BIT(7) | BIT(2)); in keyspan_pda_dtr_rts()
565 keyspan_pda_set_modem_info(serial, 0); in keyspan_pda_dtr_rts()
612 static int keyspan_pda_fake_startup(struct usb_serial *serial) in keyspan_pda_fake_startup() argument
614 unsigned int vid = le16_to_cpu(serial->dev->descriptor.idVendor); in keyspan_pda_fake_startup()
618 ezusb_fx1_set_reset(serial->dev, 1); in keyspan_pda_fake_startup()
629 dev_err(&serial->dev->dev, "%s: unknown vendor, aborting.\n", in keyspan_pda_fake_startup()
634 if (ezusb_fx1_ihex_firmware_download(serial->dev, fw_name) < 0) { in keyspan_pda_fake_startup()
635 dev_err(&serial->dev->dev, "failed to load firmware \"%s\"\n", in keyspan_pda_fake_startup()