Lines Matching defs:data_intf
40 struct usb_interface *intf, *data_intf;
222 unsigned num = pnd->data_intf->cur_altsetting->desc.bInterfaceNumber;
246 unsigned num = pnd->data_intf->cur_altsetting->desc.bInterfaceNumber;
333 struct usb_interface *data_intf;
372 data_intf = usb_ifnum_to_if(usbdev, union_header->bSlaveInterface0);
373 if (data_intf == NULL)
376 if (data_intf->num_altsetting != 2)
378 if (data_intf->altsetting[0].desc.bNumEndpoints == 0 &&
379 data_intf->altsetting[1].desc.bNumEndpoints == 2)
380 data_desc = data_intf->altsetting + 1;
382 if (data_intf->altsetting[0].desc.bNumEndpoints == 2 &&
383 data_intf->altsetting[1].desc.bNumEndpoints == 0)
384 data_desc = data_intf->altsetting;
400 pnd->data_intf = data_intf;
415 pnd->active_setting = data_desc - data_intf->altsetting;
417 err = usb_driver_claim_interface(&usbpn_driver, data_intf, pnd);
428 usb_driver_release_interface(&usbpn_driver, data_intf);
451 (pnd->intf == intf) ? pnd->data_intf : pnd->intf);