Searched refs:config_descriptor (Results 1 – 2 of 2) sorted by relevance
219 unsigned char **config_descriptor; // list of pointers to the cached config descriptors member240 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()
903 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 …]