Lines Matching refs:serial
229 static int qcprobe(struct usb_serial *serial, const struct usb_device_id *id) in qcprobe() argument
231 struct usb_host_interface *intf = serial->interface->cur_altsetting; in qcprobe()
232 struct device *dev = &serial->dev->dev; in qcprobe()
243 nintf = serial->dev->actconfig->desc.bNumInterfaces; in qcprobe()
251 if (serial->interface->num_altsetting == 2) in qcprobe()
252 intf = usb_altnum_to_altsetting(serial->interface, 1); in qcprobe()
253 else if (serial->interface->num_altsetting > 2) in qcprobe()
261 if (serial->interface->num_altsetting == 1) in qcprobe()
412 retval = usb_set_interface(serial->dev, ifnum, altsetting); in qcprobe()
422 usb_set_serial_data(serial, (void *)(unsigned long)sendsetup); in qcprobe()
427 static int qc_attach(struct usb_serial *serial) in qc_attach() argument
436 sendsetup = !!(unsigned long)(usb_get_serial_data(serial)); in qc_attach()
442 usb_set_serial_data(serial, data); in qc_attach()
447 static void qc_release(struct usb_serial *serial) in qc_release() argument
449 struct usb_wwan_intf_private *priv = usb_get_serial_data(serial); in qc_release()
451 usb_set_serial_data(serial, NULL); in qc_release()