Lines Matching full:serial

9  * See Documentation/usb/usb-serial.rst for more information on using this
25 #include <linux/usb/serial.h>
38 static int visor_probe(struct usb_serial *serial,
40 static int visor_calc_num_ports(struct usb_serial *serial,
42 static int clie_5_calc_num_ports(struct usb_serial *serial,
45 static int clie_3_5_startup(struct usb_serial *serial);
46 static int palm_os_3_probe(struct usb_serial *serial,
48 static int palm_os_4_probe(struct usb_serial *serial,
259 usb_control_msg(port->serial->dev, in visor_close()
260 usb_rcvctrlpipe(port->serial->dev, 0), in visor_close()
308 static int palm_os_3_probe(struct usb_serial *serial, in palm_os_3_probe() argument
311 struct device *dev = &serial->dev->dev; in palm_os_3_probe()
324 retval = usb_control_msg(serial->dev, in palm_os_3_probe()
325 usb_rcvctrlpipe(serial->dev, 0), in palm_os_3_probe()
348 serial->type->description); in palm_os_3_probe()
374 serial->type->description, in palm_os_3_probe()
377 dev_info(dev, "%s: Number of ports: %d\n", serial->type->description, in palm_os_3_probe()
384 usb_set_serial_data(serial, (void *)(long)num_ports); in palm_os_3_probe()
388 retval = usb_control_msg(serial->dev, in palm_os_3_probe()
389 usb_rcvctrlpipe(serial->dev, 0), in palm_os_3_probe()
404 static int palm_os_4_probe(struct usb_serial *serial, in palm_os_4_probe() argument
407 struct device *dev = &serial->dev->dev; in palm_os_4_probe()
416 retval = usb_control_msg(serial->dev, in palm_os_4_probe()
417 usb_rcvctrlpipe(serial->dev, 0), in palm_os_4_probe()
432 static int visor_probe(struct usb_serial *serial, in visor_probe() argument
436 int (*startup)(struct usb_serial *serial, in visor_probe()
445 serial->dev->descriptor.bDeviceClass == USB_CLASS_COMM && in visor_probe()
446 serial->dev->descriptor.bDeviceSubClass == in visor_probe()
450 if (serial->dev->actconfig->desc.bConfigurationValue != 1) { in visor_probe()
451 dev_err(&serial->dev->dev, "active config #%d != 1 ??\n", in visor_probe()
452 serial->dev->actconfig->desc.bConfigurationValue); in visor_probe()
458 retval = startup(serial, id); in visor_probe()
464 static int visor_calc_num_ports(struct usb_serial *serial, in visor_calc_num_ports() argument
467 unsigned int vid = le16_to_cpu(serial->dev->descriptor.idVendor); in visor_calc_num_ports()
468 int num_ports = (int)(long)(usb_get_serial_data(serial)); in visor_calc_num_ports()
471 usb_set_serial_data(serial, NULL); in visor_calc_num_ports()
482 dev_err(&serial->interface->dev, "missing endpoints\n"); in visor_calc_num_ports()
499 static int clie_5_calc_num_ports(struct usb_serial *serial, in clie_5_calc_num_ports() argument
515 return serial->type->num_ports; in clie_5_calc_num_ports()
518 static int clie_3_5_startup(struct usb_serial *serial) in clie_3_5_startup() argument
520 struct device *dev = &serial->dev->dev; in clie_3_5_startup()
533 result = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in clie_3_5_startup()
549 result = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in clie_3_5_startup()