Home
last modified time | relevance | path

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

/external/libusb/libusb/os/
Dwindows_winusb.h219 unsigned char **config_descriptor; // list of pointers to the cached config descriptors member
240 p->config_descriptor = NULL; in windows_device_priv_init()
260 if ((dev->num_configurations > 0) && (p->config_descriptor != NULL)) { in windows_device_priv_release()
262 safe_free(p->config_descriptor[i]); in windows_device_priv_release()
264 safe_free(p->config_descriptor); in windows_device_priv_release()
Dwindows_winusb.c903 priv->config_descriptor = calloc(dev->num_configurations, sizeof(unsigned char *)); in cache_config_descriptors()
904 if (priv->config_descriptor == NULL) in cache_config_descriptors()
908 priv->config_descriptor[i] = NULL; in cache_config_descriptors()
979 priv->config_descriptor[i] = malloc(cd_data->wTotalLength); in cache_config_descriptors()
980 if (priv->config_descriptor[i] == NULL) in cache_config_descriptors()
982 memcpy(priv->config_descriptor[i], cd_data, cd_data->wTotalLength); in cache_config_descriptors()
1708 if ((priv->config_descriptor == NULL) || (priv->config_descriptor[config_index] == NULL)) in windows_get_config_descriptor()
1711 config_header = (PUSB_CONFIGURATION_DESCRIPTOR)priv->config_descriptor[config_index]; in windows_get_config_descriptor()
1714 memcpy(buffer, priv->config_descriptor[config_index], size); in windows_get_config_descriptor()
1730 if (priv->config_descriptor == NULL) in windows_get_config_descriptor_by_value()
[all …]