Home
last modified time | relevance | path

Searched refs:altsetting (Results 1 – 13 of 13) sorted by relevance

/external/libusb/libusb/
Ddescriptor.c162 if (interface->altsetting) { in clear_interface()
166 interface->altsetting + i; in clear_interface()
176 free((void *) interface->altsetting); in clear_interface()
177 interface->altsetting = NULL; in clear_interface()
198 struct libusb_interface_descriptor *altsetting = in parse_interface() local
199 (struct libusb_interface_descriptor *) interface->altsetting; in parse_interface()
200 altsetting = realloc(altsetting, in parse_interface()
203 if (!altsetting) { in parse_interface()
207 interface->altsetting = altsetting; in parse_interface()
209 ifp = altsetting + interface->num_altsetting; in parse_interface()
Dcore.c684 const struct libusb_interface_descriptor *altsetting in find_endpoint() local
685 = &iface->altsetting[altsetting_idx]; in find_endpoint()
688 for (ep_idx = 0; ep_idx < altsetting->bNumEndpoints; ep_idx++) { in find_endpoint()
690 &altsetting->endpoint[ep_idx]; in find_endpoint()
Dlibusbi.h614 int iface, int altsetting);
Dlibusb.h458 const struct libusb_interface_descriptor *altsetting; member
/external/libusb-compat/libusb/
Dcore.c369 if (iface->altsetting) { in clear_interface()
372 clear_interface_descriptor(iface->altsetting + i); in clear_interface()
373 free(iface->altsetting); in clear_interface()
455 dest->altsetting = malloc(alloc_size); in copy_interface()
456 if (!dest->altsetting) in copy_interface()
458 memset(dest->altsetting, 0, alloc_size); in copy_interface()
461 int r = copy_interface_descriptor(dest->altsetting + i, in copy_interface()
462 &src->altsetting[i]); in copy_interface()
Dusb.h150 struct usb_interface_descriptor *altsetting; member
/external/libusb/libusb/os/
Dlinux_usbfs.h53 unsigned int altsetting; member
Dlinux_usbfs.c1166 int altsetting) in op_set_interface() argument
1173 setintf.altsetting = altsetting; in op_set_interface()
Ddarwin_usb.c968 …rwin_set_interface_altsetting(struct libusb_device_handle *dev_handle, int iface, int altsetting) { in darwin_set_interface_altsetting() argument
978 kresult = (*(cInterface->interface))->SetAlternateInterface (cInterface->interface, altsetting); in darwin_set_interface_altsetting()
/external/libmtp/src/
Dlibusb-glue.c268 &dev->config[i].interface[j].altsetting[k]; in probe_device_descriptor()
272 dev->config[i].interface[j].altsetting[k].iInterface, in probe_device_descriptor()
348 &dev->config[i].interface[j].altsetting[k]; in probe_device_descriptor()
353 dev->config[i].interface[j].altsetting[k].iInterface, in probe_device_descriptor()
377 dev->config[i].interface[j].altsetting[k].iInterface, in probe_device_descriptor()
1743 *interface = dev->config[i].interface[j].altsetting->bInterfaceNumber; in find_interface_and_endpoints()
1744 ep = dev->config[i].interface[j].altsetting->endpoint; in find_interface_and_endpoints()
1745 no_ep = dev->config[i].interface[j].altsetting->bNumEndpoints; in find_interface_and_endpoints()
/external/kernel-headers/original/uapi/linux/
Dusbdevice_fs.h58 unsigned int altsetting; member
/external/libusb-compat/examples/
Dtestlibusb.c44 print_altsetting(&interface->altsetting[i]); in print_interface()
/external/libusb/
DChangeLog1486 Support for changing altsetting