Lines Matching defs:serial
13 #include <linux/usb/serial.h>
230 static int qcprobe(struct usb_serial *serial, const struct usb_device_id *id)
232 struct usb_host_interface *intf = serial->interface->cur_altsetting;
233 struct device *dev = &serial->dev->dev;
244 nintf = serial->dev->actconfig->desc.bNumInterfaces;
252 if (serial->interface->num_altsetting == 2)
253 intf = usb_altnum_to_altsetting(serial->interface, 1);
254 else if (serial->interface->num_altsetting > 2)
262 if (serial->interface->num_altsetting == 1)
284 * 1: serial port (doesn't respond)
335 * NMEA (serial line 9600 8N1)
376 * This is a list of functions known to be non-serial. The rest
377 * are assumed to be serial and will be handled by this driver
399 dev_dbg(dev, "Huawei type serial port found (%02x/%02x/%02x)\n",
413 retval = usb_set_interface(serial->dev, ifnum, altsetting);
423 usb_set_serial_data(serial, (void *)(unsigned long)sendsetup);
428 static int qc_attach(struct usb_serial *serial)
437 sendsetup = !!(unsigned long)(usb_get_serial_data(serial));
443 usb_set_serial_data(serial, data);
448 static void qc_release(struct usb_serial *serial)
450 struct usb_wwan_intf_private *priv = usb_get_serial_data(serial);
452 usb_set_serial_data(serial, NULL);