Home
last modified time | relevance | path

Searched refs:usb_interface (Results 1 – 8 of 8) sorted by relevance

/external/libusb/libusb/os/
Dwindows_winusb.c504 safe_free(priv->usb_interface[iface].endpoint); in windows_assign_endpoints()
509 priv->usb_interface[iface].current_altsetting = altsetting; in windows_assign_endpoints()
513 priv->usb_interface[iface].endpoint = malloc(if_desc->bNumEndpoints); in windows_assign_endpoints()
514 if (priv->usb_interface[iface].endpoint == NULL) { in windows_assign_endpoints()
519 priv->usb_interface[iface].nb_endpoints = if_desc->bNumEndpoints; in windows_assign_endpoints()
521 priv->usb_interface[iface].endpoint[i] = if_desc->endpoint[i].bEndpointAddress; in windows_assign_endpoints()
522 …usbi_dbg("(re)assigned endpoint %02X to interface %u", priv->usb_interface[iface].endpoint[i], ifa… in windows_assign_endpoints()
531 priv->usb_interface[iface].current_altsetting = altsetting; in windows_assign_endpoints()
590 if ((priv->usb_interface[current_interface].apib->id == api_type) in auto_claim()
1314 if (priv->usb_interface[interface_number].path != NULL) { in set_composite_interface()
[all …]
Dwindows_winusb.h209 priv->usb_interface[i].apib = &usb_api_backend[USB_API_UNSUPPORTED]; in winusb_device_priv_init()
210 priv->usb_interface[i].sub_api = SUB_API_NOTSET; in winusb_device_priv_init()
233 free(priv->usb_interface[i].path); in winusb_device_priv_release()
234 free(priv->usb_interface[i].endpoint); in winusb_device_priv_release()
Dwindows_common.h257 } usb_interface[USB_MAXINTERFACES]; member
/external/libusb/libusb/
Ddescriptor.c166 static void clear_interface(struct libusb_interface *usb_interface) in clear_interface() argument
170 if (usb_interface->altsetting) { in clear_interface()
171 for (i = 0; i < usb_interface->num_altsetting; i++) { in clear_interface()
174 usb_interface->altsetting + i; in clear_interface()
187 free((void *)usb_interface->altsetting); in clear_interface()
188 usb_interface->altsetting = NULL; in clear_interface()
192 struct libusb_interface *usb_interface, const uint8_t *buffer, int size) in parse_interface() argument
206 altsetting = realloc((void *)usb_interface->altsetting, in parse_interface()
207 sizeof(*altsetting) * (size_t)(usb_interface->num_altsetting + 1)); in parse_interface()
212 usb_interface->altsetting = altsetting; in parse_interface()
[all …]
/external/libusb/examples/
Dxusb.c38 #define usb_interface interface macro
869 first_iface = conf_desc->usb_interface[0].altsetting[0].bInterfaceNumber; in test_device()
872 conf_desc->usb_interface[i].altsetting[0].bInterfaceNumber); in test_device()
873 for (j=0; j<conf_desc->usb_interface[i].num_altsetting; j++) { in test_device()
875 i, j, conf_desc->usb_interface[i].altsetting[j].bNumEndpoints); in test_device()
877 conf_desc->usb_interface[i].altsetting[j].bInterfaceClass, in test_device()
878 conf_desc->usb_interface[i].altsetting[j].bInterfaceSubClass, in test_device()
879 conf_desc->usb_interface[i].altsetting[j].bInterfaceProtocol); in test_device()
880 if ( (conf_desc->usb_interface[i].altsetting[j].bInterfaceClass == LIBUSB_CLASS_MASS_STORAGE) in test_device()
881 && ( (conf_desc->usb_interface[i].altsetting[j].bInterfaceSubClass == 0x01) in test_device()
[all …]
/external/ltp/testcases/kernel/device-drivers/usb/tusb/
Dtusb.c111 static void tusb_disconnect(struct usb_interface *intf) in tusb_disconnect()
116 static int tusb_probe(struct usb_interface *intf, in tusb_probe()
/external/libabigail/tests/data/test-diff-filter/
Dtest-PR27569-v0.abi44984 …<class-decl name="usb_interface" size-in-bits="8704" is-struct="yes" visibility="default" filepath…
66109 …<class-decl name="usb_interface" size-in-bits="8704" is-struct="yes" visibility="default" filepath…
Dtest-PR27569-v1.abi45013 …<class-decl name="usb_interface" size-in-bits="8704" is-struct="yes" visibility="default" filepath…
66123 …<class-decl name="usb_interface" size-in-bits="8704" is-struct="yes" visibility="default" filepath…