Home
last modified time | relevance | path

Searched refs:config_index (Results 1 – 12 of 12) sorted by relevance

/external/libusb/libusb/
Ddescriptor.c534 uint8_t config_index, struct libusb_config_descriptor **config) in libusb_get_config_descriptor() argument
542 usbi_dbg("index %d", config_index); in libusb_get_config_descriptor()
543 if (config_index >= dev->num_configurations) in libusb_get_config_descriptor()
550 r = usbi_backend->get_config_descriptor(dev, config_index, tmp, in libusb_get_config_descriptor()
563 r = usbi_backend->get_config_descriptor(dev, config_index, buf, in libusb_get_config_descriptor()
Dlibusbi.h524 uint8_t config_index, unsigned char *buffer, size_t len,
Dlibusb.h789 int libusb_get_config_descriptor(libusb_device *dev, uint8_t config_index,
/external/libusb/libusb/os/
Ddarwin_usb.c52 static int darwin_get_config_descriptor(struct libusb_device *dev, uint8_t config_index, unsigned c…
385 int config_index; in darwin_get_active_config_descriptor() local
392 config_index = get_configuration_index (dev, config_value); in darwin_get_active_config_descriptor()
393 if (config_index < 0) in darwin_get_active_config_descriptor()
394 return config_index; in darwin_get_active_config_descriptor()
396 return darwin_get_config_descriptor (dev, config_index, buffer, len, host_endian); in darwin_get_active_config_descriptor()
399 static int darwin_get_config_descriptor(struct libusb_device *dev, uint8_t config_index, unsigned c… in darwin_get_config_descriptor() argument
420 kresult = (*device)->GetConfigurationDescriptorPtr (device, config_index, &desc); in darwin_get_config_descriptor()
Dlinux_usbfs.c528 uint8_t config_index, unsigned char *buffer, size_t len) in get_config_descriptor() argument
541 while (config_index > 0) { in get_config_descriptor()
545 config_index--; in get_config_descriptor()
562 uint8_t config_index, unsigned char *buffer, size_t len, int *host_endian) in op_get_config_descriptor() argument
583 r = get_config_descriptor(DEVICE_CTX(dev), fd, config_index, buffer, len); in op_get_config_descriptor()
/external/chromium_org/third_party/libusb/src/libusb/
Ddescriptor.c624 uint8_t config_index, struct libusb_config_descriptor **config) in libusb_get_config_descriptor() argument
632 usbi_dbg("index %d", config_index); in libusb_get_config_descriptor()
633 if (config_index >= dev->num_configurations) in libusb_get_config_descriptor()
636 r = usbi_backend->get_config_descriptor(dev, config_index, tmp, in libusb_get_config_descriptor()
651 r = usbi_backend->get_config_descriptor(dev, config_index, buf, in libusb_get_config_descriptor()
Dlibusbi.h697 uint8_t config_index, unsigned char *buffer, size_t len,
Dlibusb.h1329 uint8_t config_index, struct libusb_config_descriptor **config);
/external/chromium_org/third_party/libusb/src/libusb/os/
Ddarwin_usb.c63 static int darwin_get_config_descriptor(struct libusb_device *dev, uint8_t config_index, unsigned c…
491 int config_index; in darwin_get_active_config_descriptor() local
496 config_index = get_configuration_index (dev, priv->active_config); in darwin_get_active_config_descriptor()
497 if (config_index < 0) in darwin_get_active_config_descriptor()
498 return config_index; in darwin_get_active_config_descriptor()
500 return darwin_get_config_descriptor (dev, config_index, buffer, len, host_endian); in darwin_get_active_config_descriptor()
503 static int darwin_get_config_descriptor(struct libusb_device *dev, uint8_t config_index, unsigned c… in darwin_get_config_descriptor() argument
512 kresult = (*priv->device)->GetConfigurationDescriptorPtr (priv->device, config_index, &desc); in darwin_get_config_descriptor()
Dwince_usb.c452 uint8_t config_index, in wince_get_config_descriptor() argument
458 if (!UkwGetConfigDescriptor(priv->dev, config_index, buffer, len, &actualSize)) { in wince_get_config_descriptor()
Dwindows_usb.c1749 static int windows_get_config_descriptor(struct libusb_device *dev, uint8_t config_index, unsigned … in windows_get_config_descriptor() argument
1756 if (config_index >= dev->num_configurations) in windows_get_config_descriptor()
1759 if ((priv->config_descriptor == NULL) || (priv->config_descriptor[config_index] == NULL)) in windows_get_config_descriptor()
1762 config_header = (PUSB_CONFIGURATION_DESCRIPTOR)priv->config_descriptor[config_index]; in windows_get_config_descriptor()
1765 memcpy(buffer, priv->config_descriptor[config_index], size); in windows_get_config_descriptor()
Dlinux_usbfs.c793 uint8_t config_index, unsigned char *buffer, size_t len, int *host_endian) in op_get_config_descriptor() argument
811 if (i == config_index) in op_get_config_descriptor()