Lines Matching refs:usbnet_dev

37 static int huawei_cdc_ncm_manage_power(struct usbnet *usbnet_dev, int on)  in huawei_cdc_ncm_manage_power()  argument
39 struct huawei_cdc_ncm_state *drvstate = (void *)&usbnet_dev->data; in huawei_cdc_ncm_manage_power()
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()
55 struct usbnet *usbnet_dev = usb_get_intfdata(intf); in huawei_cdc_ncm_wdm_manage_power() local
58 if (!usbnet_dev) in huawei_cdc_ncm_wdm_manage_power()
61 return huawei_cdc_ncm_manage_power(usbnet_dev, status); in huawei_cdc_ncm_wdm_manage_power()
65 static int huawei_cdc_ncm_bind(struct usbnet *usbnet_dev, in huawei_cdc_ncm_bind() argument
71 struct huawei_cdc_ncm_state *drvstate = (void *)&usbnet_dev->data; in huawei_cdc_ncm_bind()
85 ret = cdc_ncm_bind_common(usbnet_dev, intf, 1, drvflags); in huawei_cdc_ncm_bind()
91 if (usbnet_dev->status) in huawei_cdc_ncm_bind()
97 &usbnet_dev->status->desc, in huawei_cdc_ncm_bind()
103 cdc_ncm_unbind(usbnet_dev, intf); in huawei_cdc_ncm_bind()
108 usbnet_dev->status = NULL; in huawei_cdc_ncm_bind()
116 static void huawei_cdc_ncm_unbind(struct usbnet *usbnet_dev, in huawei_cdc_ncm_unbind() argument
119 struct huawei_cdc_ncm_state *drvstate = (void *)&usbnet_dev->data; in huawei_cdc_ncm_unbind()
126 cdc_ncm_unbind(usbnet_dev, intf); in huawei_cdc_ncm_unbind()
133 struct usbnet *usbnet_dev = usb_get_intfdata(intf); in huawei_cdc_ncm_suspend() local
134 struct huawei_cdc_ncm_state *drvstate = (void *)&usbnet_dev->data; in huawei_cdc_ncm_suspend()
160 struct usbnet *usbnet_dev = usb_get_intfdata(intf); in huawei_cdc_ncm_resume() local
161 struct huawei_cdc_ncm_state *drvstate = (void *)&usbnet_dev->data; in huawei_cdc_ncm_resume()