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