Lines Matching refs:interface
87 struct usb_interface_descriptor *interface = (struct usb_interface_descriptor *)desc; in open() local
89 if (interface->bInterfaceClass == USB_CLASS_STILL_IMAGE && in open()
90 interface->bInterfaceSubClass == 1 && // Still Image Capture in open()
91 interface->bInterfaceProtocol == 1) // Picture Transfer Protocol (PIMA 15470) in open()
100 } else if (interface->bInterfaceClass == 0xFF && in open()
101 interface->bInterfaceSubClass == 0xFF && in open()
102 interface->bInterfaceProtocol == 0) { in open()
103 char* interfaceName = usb_device_get_string(device, interface->iInterface, in open()
195 int ret = usb_device_claim_interface(device, interface->bInterfaceNumber); in open()
198 usb_device_connect_kernel_driver(device, interface->bInterfaceNumber, false); in open()
199 ret = usb_device_claim_interface(device, interface->bInterfaceNumber); in open()
207 MtpDevice* mtpDevice = new MtpDevice(device, interface->bInterfaceNumber, in open()
219 MtpDevice::MtpDevice(struct usb_device* device, int interface, in MtpDevice() argument
224 mInterface(interface), in MtpDevice()