Home
last modified time | relevance | path

Searched refs:if_desc (Results 1 – 2 of 2) sorted by relevance

/third_party/libusb/libusb/
Ddescriptor.c199 const struct usbi_interface_descriptor *if_desc; in parse_interface() local
321 if_desc = (const struct usbi_interface_descriptor *)buffer; in parse_interface()
323 if_desc->bDescriptorType != LIBUSB_DT_INTERFACE || in parse_interface()
324 if_desc->bInterfaceNumber != interface_number) in parse_interface()
/third_party/libusb/libusb/os/
Dwindows_winusb.c494 const struct libusb_interface_descriptor *if_desc; in windows_assign_endpoints() local
503 if_desc = &conf_desc->interface[iface].altsetting[altsetting]; in windows_assign_endpoints()
506 if (if_desc->bNumEndpoints == 0) { in windows_assign_endpoints()
513 priv->usb_interface[iface].endpoint = malloc(if_desc->bNumEndpoints); in windows_assign_endpoints()
519 priv->usb_interface[iface].nb_endpoints = if_desc->bNumEndpoints; in windows_assign_endpoints()
520 for (i = 0; i < if_desc->bNumEndpoints; i++) { in windows_assign_endpoints()
521 priv->usb_interface[iface].endpoint[i] = if_desc->endpoint[i].bEndpointAddress; in windows_assign_endpoints()