Lines Matching refs:intf
44 rv = usb_autopm_get_interface(usbnet_dev->intf); in huawei_cdc_ncm_manage_power()
45 usbnet_dev->intf->needs_remote_wakeup = on; in huawei_cdc_ncm_manage_power()
47 usb_autopm_put_interface(usbnet_dev->intf); in huawei_cdc_ncm_manage_power()
52 static int huawei_cdc_ncm_wdm_manage_power(struct usb_interface *intf, in huawei_cdc_ncm_wdm_manage_power() argument
55 struct usbnet *usbnet_dev = usb_get_intfdata(intf); in huawei_cdc_ncm_wdm_manage_power()
66 struct usb_interface *intf) in huawei_cdc_ncm_bind() argument
85 ret = cdc_ncm_bind_common(usbnet_dev, intf, 1, drvflags); in huawei_cdc_ncm_bind()
102 cdc_ncm_unbind(usbnet_dev, intf); in huawei_cdc_ncm_bind()
116 struct usb_interface *intf) in huawei_cdc_ncm_unbind() argument
125 cdc_ncm_unbind(usbnet_dev, intf); in huawei_cdc_ncm_unbind()
128 static int huawei_cdc_ncm_suspend(struct usb_interface *intf, in huawei_cdc_ncm_suspend() argument
132 struct usbnet *usbnet_dev = usb_get_intfdata(intf); in huawei_cdc_ncm_suspend()
141 ret = usbnet_suspend(intf, message); in huawei_cdc_ncm_suspend()
145 if (intf == ctx->control && in huawei_cdc_ncm_suspend()
148 ret = drvstate->subdriver->suspend(intf, message); in huawei_cdc_ncm_suspend()
150 usbnet_resume(intf); in huawei_cdc_ncm_suspend()
156 static int huawei_cdc_ncm_resume(struct usb_interface *intf) in huawei_cdc_ncm_resume() argument
159 struct usbnet *usbnet_dev = usb_get_intfdata(intf); in huawei_cdc_ncm_resume()
166 (intf == ctx->control && in huawei_cdc_ncm_resume()
171 ret = drvstate->subdriver->resume(intf); in huawei_cdc_ncm_resume()
174 ret = usbnet_resume(intf); in huawei_cdc_ncm_resume()
176 drvstate->subdriver->suspend(intf, PMSG_SUSPEND); in huawei_cdc_ncm_resume()