Lines Matching refs:data_intf
28 struct usb_interface *intf, *data_intf; member
214 unsigned num = pnd->data_intf->cur_altsetting->desc.bInterfaceNumber; in usbpn_open()
239 unsigned num = pnd->data_intf->cur_altsetting->desc.bInterfaceNumber; in usbpn_close()
320 struct usb_interface *data_intf; in usbpn_probe() local
338 data_intf = usb_ifnum_to_if(usbdev, union_header->bSlaveInterface0); in usbpn_probe()
339 if (data_intf == NULL) in usbpn_probe()
342 if (data_intf->num_altsetting != 2) in usbpn_probe()
344 if (data_intf->altsetting[0].desc.bNumEndpoints == 0 && in usbpn_probe()
345 data_intf->altsetting[1].desc.bNumEndpoints == 2) in usbpn_probe()
346 data_desc = data_intf->altsetting + 1; in usbpn_probe()
348 if (data_intf->altsetting[0].desc.bNumEndpoints == 2 && in usbpn_probe()
349 data_intf->altsetting[1].desc.bNumEndpoints == 0) in usbpn_probe()
350 data_desc = data_intf->altsetting; in usbpn_probe()
365 pnd->data_intf = data_intf; in usbpn_probe()
380 pnd->active_setting = data_desc - data_intf->altsetting; in usbpn_probe()
382 err = usb_driver_claim_interface(&usbpn_driver, data_intf, pnd); in usbpn_probe()
395 usb_driver_release_interface(&usbpn_driver, data_intf); in usbpn_probe()
417 (pnd->intf == intf) ? pnd->data_intf : pnd->intf); in usbpn_disconnect()