Lines Matching defs:serial
14 #include <linux/usb/serial.h>
229 static int qcprobe(struct usb_serial *serial, const struct usb_device_id *id)
231 struct usb_host_interface *intf = serial->interface->cur_altsetting;
232 struct device *dev = &serial->dev->dev;
243 nintf = serial->dev->actconfig->desc.bNumInterfaces;
251 if (serial->interface->num_altsetting == 2)
252 intf = usb_altnum_to_altsetting(serial->interface, 1);
253 else if (serial->interface->num_altsetting > 2)
261 if (serial->interface->num_altsetting == 1)
283 * 1: serial port (doesn't respond)
334 * NMEA (serial line 9600 8N1)
375 * This is a list of functions known to be non-serial. The rest
376 * are assumed to be serial and will be handled by this driver
398 dev_dbg(dev, "Huawei type serial port found (%02x/%02x/%02x)\n",
412 retval = usb_set_interface(serial->dev, ifnum, altsetting);
422 usb_set_serial_data(serial, (void *)(unsigned long)sendsetup);
427 static int qc_attach(struct usb_serial *serial)
436 sendsetup = !!(unsigned long)(usb_get_serial_data(serial));
442 usb_set_serial_data(serial, data);
447 static void qc_release(struct usb_serial *serial)
449 struct usb_wwan_intf_private *priv = usb_get_serial_data(serial);
451 usb_set_serial_data(serial, NULL);