• Home
  • Raw
  • Download

Lines Matching refs:intf

266 	dev_dbg(&dev->intf->dev, "%s() pmcount=%d, on=%d\n", __func__,  in qmi_wwan_manage_power()
274 rv = usb_autopm_get_interface(dev->intf); in qmi_wwan_manage_power()
275 dev->intf->needs_remote_wakeup = on; in qmi_wwan_manage_power()
277 usb_autopm_put_interface(dev->intf); in qmi_wwan_manage_power()
282 static int qmi_wwan_cdc_wdm_manage_power(struct usb_interface *intf, int on) in qmi_wwan_cdc_wdm_manage_power() argument
284 struct usbnet *dev = usb_get_intfdata(intf); in qmi_wwan_cdc_wdm_manage_power()
343 u8 intf = dev->intf->cur_altsetting->desc.bInterfaceNumber; in qmi_wwan_change_dtr() local
347 on ? 0x01 : 0x00, intf, NULL, 0); in qmi_wwan_change_dtr()
350 static int qmi_wwan_bind(struct usbnet *dev, struct usb_interface *intf) in qmi_wwan_bind() argument
353 u8 *buf = intf->cur_altsetting->extra; in qmi_wwan_bind()
354 int len = intf->cur_altsetting->extralen; in qmi_wwan_bind()
355 struct usb_interface_descriptor *desc = &intf->cur_altsetting->desc; in qmi_wwan_bind()
358 struct usb_driver *driver = driver_of(intf); in qmi_wwan_bind()
366 info->control = intf; in qmi_wwan_bind()
367 info->data = intf; in qmi_wwan_bind()
370 cdc_parse_cdc_header(&hdr, intf, buf, len); in qmi_wwan_bind()
380 dev_err(&intf->dev, in qmi_wwan_bind()
387 info->data = intf; in qmi_wwan_bind()
452 static void qmi_wwan_unbind(struct usbnet *dev, struct usb_interface *intf) in qmi_wwan_unbind() argument
455 struct usb_driver *driver = driver_of(intf); in qmi_wwan_unbind()
468 if (intf == info->control) in qmi_wwan_unbind()
474 if (other && intf != other) { in qmi_wwan_unbind()
490 static int qmi_wwan_suspend(struct usb_interface *intf, pm_message_t message) in qmi_wwan_suspend() argument
492 struct usbnet *dev = usb_get_intfdata(intf); in qmi_wwan_suspend()
500 ret = usbnet_suspend(intf, message); in qmi_wwan_suspend()
504 if (intf == info->control && info->subdriver && in qmi_wwan_suspend()
506 ret = info->subdriver->suspend(intf, message); in qmi_wwan_suspend()
508 usbnet_resume(intf); in qmi_wwan_suspend()
513 static int qmi_wwan_resume(struct usb_interface *intf) in qmi_wwan_resume() argument
515 struct usbnet *dev = usb_get_intfdata(intf); in qmi_wwan_resume()
518 bool callsub = (intf == info->control && info->subdriver && in qmi_wwan_resume()
522 ret = info->subdriver->resume(intf); in qmi_wwan_resume()
525 ret = usbnet_resume(intf); in qmi_wwan_resume()
527 info->subdriver->suspend(intf, PMSG_SUSPEND); in qmi_wwan_resume()
1012 static bool quectel_ec20_detected(struct usb_interface *intf) in quectel_ec20_detected() argument
1014 struct usb_device *dev = interface_to_usbdev(intf); in quectel_ec20_detected()
1025 static int qmi_wwan_probe(struct usb_interface *intf, in qmi_wwan_probe() argument
1029 struct usb_interface_descriptor *desc = &intf->cur_altsetting->desc; in qmi_wwan_probe()
1037 dev_dbg(&intf->dev, "setting defaults for dynamic device id\n"); in qmi_wwan_probe()
1042 if (quectel_ec20_detected(intf) && desc->bInterfaceNumber == 0) { in qmi_wwan_probe()
1043 dev_dbg(&intf->dev, "Quectel EC20 quirk, skipping interface 0\n"); in qmi_wwan_probe()
1047 return usbnet_probe(intf, id); in qmi_wwan_probe()