Lines Matching refs:serial
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,
262 usb_control_msg(port->serial->dev, in visor_close()
263 usb_rcvctrlpipe(port->serial->dev, 0), in visor_close()
311 static int palm_os_3_probe(struct usb_serial *serial, in palm_os_3_probe() argument
314 struct device *dev = &serial->dev->dev; in palm_os_3_probe()
327 retval = usb_control_msg(serial->dev, in palm_os_3_probe()
328 usb_rcvctrlpipe(serial->dev, 0), in palm_os_3_probe()
351 serial->type->description); in palm_os_3_probe()
377 serial->type->description, in palm_os_3_probe()
380 dev_info(dev, "%s: Number of ports: %d\n", serial->type->description, in palm_os_3_probe()
387 usb_set_serial_data(serial, (void *)(long)num_ports); in palm_os_3_probe()
391 retval = usb_control_msg(serial->dev, in palm_os_3_probe()
392 usb_rcvctrlpipe(serial->dev, 0), in palm_os_3_probe()
407 static int palm_os_4_probe(struct usb_serial *serial, in palm_os_4_probe() argument
410 struct device *dev = &serial->dev->dev; in palm_os_4_probe()
419 retval = usb_control_msg(serial->dev, in palm_os_4_probe()
420 usb_rcvctrlpipe(serial->dev, 0), in palm_os_4_probe()
435 static int visor_probe(struct usb_serial *serial, in visor_probe() argument
439 int (*startup)(struct usb_serial *serial, in visor_probe()
448 serial->dev->descriptor.bDeviceClass == USB_CLASS_COMM && in visor_probe()
449 serial->dev->descriptor.bDeviceSubClass == in visor_probe()
453 if (serial->dev->actconfig->desc.bConfigurationValue != 1) { in visor_probe()
454 dev_err(&serial->dev->dev, "active config #%d != 1 ??\n", in visor_probe()
455 serial->dev->actconfig->desc.bConfigurationValue); in visor_probe()
461 retval = startup(serial, id); in visor_probe()
467 static int visor_calc_num_ports(struct usb_serial *serial, in visor_calc_num_ports() argument
470 unsigned int vid = le16_to_cpu(serial->dev->descriptor.idVendor); in visor_calc_num_ports()
471 int num_ports = (int)(long)(usb_get_serial_data(serial)); in visor_calc_num_ports()
474 usb_set_serial_data(serial, NULL); in visor_calc_num_ports()
485 dev_err(&serial->interface->dev, "missing endpoints\n"); in visor_calc_num_ports()
502 static int clie_5_calc_num_ports(struct usb_serial *serial, in clie_5_calc_num_ports() argument
518 return serial->type->num_ports; in clie_5_calc_num_ports()
521 static int clie_3_5_startup(struct usb_serial *serial) in clie_3_5_startup() argument
523 struct device *dev = &serial->dev->dev; in clie_3_5_startup()
536 result = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in clie_3_5_startup()
552 result = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), in clie_3_5_startup()