Lines Matching full:serial

3  * usb-serial driver for Quatech USB 2 devices
8 * for all serial ports.
19 #include <linux/serial.h>
21 #include <linux/usb/serial.h>
64 #define DRIVER_DESC "Quatech 2nd gen USB to Serial Driver"
134 static void qt2_release(struct usb_serial *serial) in qt2_release() argument
138 serial_priv = usb_get_serial_data(serial); in qt2_release()
211 struct usb_device *dev = port->serial->dev; in update_mctrl()
237 static int qt2_calc_num_ports(struct usb_serial *serial, in qt2_calc_num_ports() argument
244 if (d.product_id == le16_to_cpu(serial->dev->descriptor.idProduct)) in qt2_calc_num_ports()
249 dev_err(&serial->dev->dev, in qt2_calc_num_ports()
259 struct usb_device *dev = port->serial->dev; in qt2_set_termios()
316 struct usb_serial *serial; in qt2_open() local
325 serial = port->serial; in qt2_open()
330 status = qt2_control_msg(serial->dev, QT2_GET_SET_QMCR, in qt2_open()
344 status = usb_control_msg(serial->dev, in qt2_open()
345 usb_rcvctrlpipe(serial->dev, 0), in qt2_open()
367 status = qt2_set_port_config(serial->dev, device_port, in qt2_open()
386 struct usb_serial *serial; in qt2_close() local
390 serial = port->serial; in qt2_close()
396 i = usb_control_msg(serial->dev, in qt2_close()
397 usb_sndctrlpipe(serial->dev, 0), in qt2_close()
406 i = usb_control_msg(serial->dev, in qt2_close()
407 usb_sndctrlpipe(serial->dev, 0), in qt2_close()
416 i = usb_control_msg(serial->dev, in qt2_close()
417 usb_sndctrlpipe(serial->dev, 0), in qt2_close()
427 static void qt2_disconnect(struct usb_serial *serial) in qt2_disconnect() argument
429 struct qt2_serial_private *serial_priv = usb_get_serial_data(serial); in qt2_disconnect()
448 struct usb_serial *serial; in qt2_process_read_urb() local
461 serial = urb->context; in qt2_process_read_urb()
462 serial_priv = usb_get_serial_data(serial); in qt2_process_read_urb()
463 port = serial->port[serial_priv->current_port]; in qt2_process_read_urb()
506 if (newport > serial->num_ports) { in qt2_process_read_urb()
514 port = serial->port[serial_priv->current_port]; in qt2_process_read_urb()
564 struct usb_serial *serial = urb->context; in qt2_read_bulk_callback() local
568 dev_warn(&serial->dev->dev, in qt2_read_bulk_callback()
578 dev_err(&serial->dev->dev, in qt2_read_bulk_callback()
583 static int qt2_setup_urbs(struct usb_serial *serial) in qt2_setup_urbs() argument
589 port0 = serial->port[0]; in qt2_setup_urbs()
591 serial_priv = usb_get_serial_data(serial); in qt2_setup_urbs()
596 usb_fill_bulk_urb(serial_priv->read_urb, serial->dev, in qt2_setup_urbs()
597 usb_rcvbulkpipe(serial->dev, in qt2_setup_urbs()
601 qt2_read_bulk_callback, serial); in qt2_setup_urbs()
605 dev_err(&serial->dev->dev, in qt2_setup_urbs()
614 static int qt2_attach(struct usb_serial *serial) in qt2_attach() argument
620 status = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), in qt2_attach()
624 dev_err(&serial->dev->dev, in qt2_attach()
639 usb_set_serial_data(serial, serial_priv); in qt2_attach()
641 status = qt2_setup_urbs(serial); in qt2_attach()
656 struct usb_serial *serial = port->serial; in qt2_port_probe() local
676 bEndpointAddress = serial->port[0]->bulk_out_endpointAddress; in qt2_port_probe()
677 usb_fill_bulk_urb(port_priv->write_urb, serial->dev, in qt2_port_probe()
678 usb_sndbulkpipe(serial->dev, bEndpointAddress), in qt2_port_probe()
706 struct usb_device *dev = port->serial->dev; in qt2_tiocmget()
755 status = qt2_control_msg(port->serial->dev, QT2_BREAK_CONTROL, in qt2_break_ctl()
771 struct usb_device *dev = port->serial->dev; in qt2_dtr_rts()
927 .name = "quatech-serial",