Home
last modified time | relevance | path

Searched refs:altsetting (Results 1 – 25 of 25) 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_aah/libusb/
Ddescriptor.c163 if (usb_interface->altsetting) { in clear_interface()
167 usb_interface->altsetting + i; in clear_interface()
177 free((void *) usb_interface->altsetting); in clear_interface()
178 usb_interface->altsetting = NULL; in clear_interface()
199 struct libusb_interface_descriptor *altsetting = in parse_interface() local
200 (struct libusb_interface_descriptor *) usb_interface->altsetting; in parse_interface()
201 altsetting = realloc(altsetting, in parse_interface()
204 if (!altsetting) { in parse_interface()
208 usb_interface->altsetting = altsetting; in parse_interface()
210 ifp = altsetting + usb_interface->num_altsetting; in parse_interface()
Dcore.c722 const struct libusb_interface_descriptor *altsetting in find_endpoint() local
723 = &iface->altsetting[altsetting_idx]; in find_endpoint()
726 for (ep_idx = 0; ep_idx < altsetting->bNumEndpoints; ep_idx++) { in find_endpoint()
728 &altsetting->endpoint[ep_idx]; in find_endpoint()
Dlibusbi.h737 int interface_number, int altsetting);
Dlibusb.h553 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_aah/libusb/os/
Dlinux_usbfs.h53 unsigned int altsetting; member
Dwindows_usb.c64 …inusb_set_interface_altsetting(struct libusb_device_handle *dev_handle, int iface, int altsetting);
77 …osite_set_interface_altsetting(struct libusb_device_handle *dev_handle, int iface, int altsetting);
549 …ic int windows_assign_endpoints(struct libusb_device_handle *dev_handle, int iface, int altsetting) in windows_assign_endpoints() argument
563 if_desc = &conf_desc->interface[iface].altsetting[altsetting]; in windows_assign_endpoints()
1689 …indows_set_interface_altsetting(struct libusb_device_handle *dev_handle, int iface, int altsetting) in windows_set_interface_altsetting() argument
1697 r = priv->apib->set_interface_altsetting(dev_handle, iface, altsetting); in windows_set_interface_altsetting()
1700 r = windows_assign_endpoints(dev_handle, iface, altsetting); in windows_set_interface_altsetting()
2156 …rted_set_interface_altsetting(struct libusb_device_handle *dev_handle, int iface, int altsetting) { in unsupported_set_interface_altsetting() argument
2611 …winusb_set_interface_altsetting(struct libusb_device_handle *dev_handle, int iface, int altsetting) in winusb_set_interface_altsetting() argument
2619 if (altsetting > 255) { in winusb_set_interface_altsetting()
[all …]
Dopenbsd_usb.c367 int altsetting) in obsd_set_interface_altsetting() argument
372 usbi_dbg("iface %d, setting %d", iface, altsetting); in obsd_set_interface_altsetting()
377 intf.uai_alt_no = altsetting; in obsd_set_interface_altsetting()
Dlinux_usbfs.c1339 int altsetting) in op_set_interface() argument
1346 setintf.altsetting = altsetting; in op_set_interface()
Dwindows_usb.h131 …int (*set_interface_altsetting)(struct libusb_device_handle *dev_handle, int iface, int altsetting
Ddarwin_usb.c1156 …rwin_set_interface_altsetting(struct libusb_device_handle *dev_handle, int iface, int altsetting) { in darwin_set_interface_altsetting() argument
1166 kresult = (*(cInterface->interface))->SetAlternateInterface (cInterface->interface, altsetting); in darwin_set_interface_altsetting()
/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/linux/
Dusbdevice_fs.h61 unsigned int altsetting; member
Dusb.h136 struct usb_host_interface *altsetting; member
188 struct usb_host_interface altsetting[0]; member
193 container_of(a, struct usb_interface_cache, altsetting[0])
/external/libusb-compat/examples/
Dtestlibusb.c44 print_altsetting(&interface->altsetting[i]); in print_interface()
/external/qemu/
Dusb-linux.c537 si.altsetting = alt; in usb_host_set_interface()
/external/libusb/
DChangeLog1486 Support for changing altsetting