Searched refs:usb_interface (Results 1 – 8 of 8) sorted by relevance
189 static void clear_interface(struct libusb_interface *usb_interface) in clear_interface() argument194 if (usb_interface->altsetting) { in clear_interface()195 for (i = 0; i < usb_interface->num_altsetting; i++) { in clear_interface()198 usb_interface->altsetting + i; in clear_interface()208 free((void *) usb_interface->altsetting); in clear_interface()209 usb_interface->altsetting = NULL; in clear_interface()215 struct libusb_interface *usb_interface, unsigned char *buffer, int size, in parse_interface() argument228 usb_interface->num_altsetting = 0; in parse_interface()232 (struct libusb_interface_descriptor *) usb_interface->altsetting; in parse_interface()235 (usb_interface->num_altsetting + 1)); in parse_interface()[all …]
667 safe_free(priv->usb_interface[iface].endpoint); in windows_assign_endpoints()674 priv->usb_interface[iface].endpoint = (uint8_t*) malloc(if_desc->bNumEndpoints); in windows_assign_endpoints()675 if (priv->usb_interface[iface].endpoint == NULL) { in windows_assign_endpoints()679 priv->usb_interface[iface].nb_endpoints = if_desc->bNumEndpoints; in windows_assign_endpoints()681 priv->usb_interface[iface].endpoint[i] = if_desc->endpoint[i].bEndpointAddress; in windows_assign_endpoints()682 …usbi_dbg("(re)assigned endpoint %02X to interface %d", priv->usb_interface[iface].endpoint[i], ifa… in windows_assign_endpoints()741 if ( (priv->usb_interface[current_interface].apib->id == api_type) in auto_claim()1273 if (priv->usb_interface[interface_number].path != NULL) { in set_composite_interface()1281 safe_free(priv->usb_interface[interface_number].path); in set_composite_interface()1285 priv->usb_interface[interface_number].path = dev_interface_path; in set_composite_interface()[all …]
223 } usb_interface[USB_MAXINTERFACES]; member247 p->usb_interface[i].path = NULL; in windows_device_priv_init()248 p->usb_interface[i].apib = &usb_api_backend[USB_API_UNSUPPORTED]; in windows_device_priv_init()249 p->usb_interface[i].sub_api = SUB_API_NOTSET; in windows_device_priv_init()250 p->usb_interface[i].nb_endpoints = 0; in windows_device_priv_init()251 p->usb_interface[i].endpoint = NULL; in windows_device_priv_init()252 p->usb_interface[i].restricted_functionality = false; in windows_device_priv_init()267 safe_free(p->usb_interface[i].path); in windows_device_priv_release()268 safe_free(p->usb_interface[i].endpoint); in windows_device_priv_release()
149 struct usb_interface { struct167 struct usb_interface *interface; argument
367 static void clear_interface(struct usb_interface *iface) in clear_interface()446 static int copy_interface(struct usb_interface *dest, in copy_interface()477 size_t alloc_size = sizeof(struct usb_interface) * num_interfaces; in copy_config_descriptor()
351 io_service_t usb_interface = IOIteratorNext(iter); in OpenDevice() local352 if (!usb_interface) in OpenDevice()360 kr = IOCreatePlugInInterfaceForService(usb_interface, in OpenDevice()374 IOObjectRelease(usb_interface); in OpenDevice()375 } while ((usb_interface = IOIteratorNext(iter))); in OpenDevice()
19 "usb_interface.h",
39 void print_interface(struct usb_interface *interface) in print_interface()