Lines Matching refs:intf
78 int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf) in usbnet_generic_cdc_bind() argument
80 u8 *buf = intf->cur_altsetting->extra; in usbnet_generic_cdc_bind()
81 int len = intf->cur_altsetting->extralen; in usbnet_generic_cdc_bind()
87 struct usb_driver *driver = driver_of(intf); in usbnet_generic_cdc_bind()
103 dev_dbg(&intf->dev, "CDC descriptors on config\n"); in usbnet_generic_cdc_bind()
112 hep = intf->cur_altsetting->endpoint; in usbnet_generic_cdc_bind()
118 dev_dbg(&intf->dev, in usbnet_generic_cdc_bind()
125 rndis = (is_rndis(&intf->cur_altsetting->desc) || in usbnet_generic_cdc_bind()
126 is_activesync(&intf->cur_altsetting->desc) || in usbnet_generic_cdc_bind()
127 is_wireless_rndis(&intf->cur_altsetting->desc)); in usbnet_generic_cdc_bind()
130 info->control = intf; in usbnet_generic_cdc_bind()
145 dev_dbg(&intf->dev, "extra CDC header\n"); in usbnet_generic_cdc_bind()
150 dev_dbg(&intf->dev, "CDC header len %u\n", in usbnet_generic_cdc_bind()
164 dev_dbg(&intf->dev, in usbnet_generic_cdc_bind()
174 dev_dbg(&intf->dev, "extra CDC union\n"); in usbnet_generic_cdc_bind()
179 dev_dbg(&intf->dev, "CDC union len %u\n", in usbnet_generic_cdc_bind()
193 dev_dbg(&intf->dev, in usbnet_generic_cdc_bind()
206 if (info->control != intf) { in usbnet_generic_cdc_bind()
207 dev_dbg(&intf->dev, "bogus CDC Union\n"); in usbnet_generic_cdc_bind()
211 if (info->data == intf) { in usbnet_generic_cdc_bind()
213 info->control = intf; in usbnet_generic_cdc_bind()
221 dev_dbg(&intf->dev, "slave class %u\n", in usbnet_generic_cdc_bind()
228 dev_dbg(&intf->dev, "extra CDC ether\n"); in usbnet_generic_cdc_bind()
233 dev_dbg(&intf->dev, "CDC ether len %u\n", in usbnet_generic_cdc_bind()
245 dev_dbg(&intf->dev, "extra MDLM descriptor\n"); in usbnet_generic_cdc_bind()
259 dev_dbg(&intf->dev, "extra MDLM detail descriptor\n"); in usbnet_generic_cdc_bind()
288 if (!info->control || !info->data || info->control != intf) { in usbnet_generic_cdc_bind()
289 dev_dbg(&intf->dev, in usbnet_generic_cdc_bind()
297 dev_dbg(&intf->dev, "missing cdc %s%s%sdescriptor\n", in usbnet_generic_cdc_bind()
329 dev_dbg(&intf->dev, "bad notification endpoint\n"); in usbnet_generic_cdc_bind()
334 dev_dbg(&intf->dev, "missing RNDIS status endpoint\n"); in usbnet_generic_cdc_bind()
347 void usbnet_cdc_unbind(struct usbnet *dev, struct usb_interface *intf) in usbnet_cdc_unbind() argument
350 struct usb_driver *driver = driver_of(intf); in usbnet_cdc_unbind()
353 if (intf == info->control && info->data) { in usbnet_cdc_unbind()
361 else if (intf == info->data && info->control) { in usbnet_cdc_unbind()
430 int usbnet_cdc_bind(struct usbnet *dev, struct usb_interface *intf) in usbnet_cdc_bind() argument
438 status = usbnet_generic_cdc_bind(dev, intf); in usbnet_cdc_bind()
445 usb_driver_release_interface(driver_of(intf), info->data); in usbnet_cdc_bind()