Home | History | Annotate | Download | only in mtp

Lines Matching refs:interface

67             struct usb_interface_descriptor *interface = (struct usb_interface_descriptor *)desc;
69 if (interface->bInterfaceClass == USB_CLASS_STILL_IMAGE &&
70 interface->bInterfaceSubClass == 1 && // Still Image Capture
71 interface->bInterfaceProtocol == 1) // Picture Transfer Protocol (PIMA 15470)
78 } else if (interface->bInterfaceClass == 0xFF &&
79 interface->bInterfaceSubClass == 0xFF &&
80 interface->bInterfaceProtocol == 0) {
81 char* interfaceName = usb_device_get_string(device, interface->iInterface);
129 // interface should be followed by three endpoints
157 if (usb_device_claim_interface(device, interface->bInterfaceNumber)) {
163 MtpDevice* mtpDevice = new MtpDevice(device, interface->bInterfaceNumber,
175 MtpDevice::MtpDevice(struct usb_device* device, int interface,
180 mInterface(interface),