Home | History | Annotate | Download | only in os

Lines Matching defs:new_device

871   struct darwin_cached_device *new_device;
898 list_for_each_entry(new_device, &darwin_cached_devices, list, struct darwin_cached_device) {
899 usbi_dbg("matching sessionID 0x%" PRIx64 " against cached device with sessionID 0x%" PRIx64, sessionID, new_device->session);
900 if (new_device->session == sessionID) {
902 *cached_out = new_device;
918 new_device = calloc (1, sizeof (*new_device));
919 if (!new_device) {
925 list_add(&new_device->list, &darwin_cached_devices);
927 (*device)->GetDeviceAddress (device, (USBDeviceAddress *)&new_device->address);
930 darwin_ref_cached_device(new_device);
932 new_device->device = device;
933 new_device->session = sessionID;
934 (*device)->GetLocationID (device, &new_device->location);
935 new_device->port = port;
936 new_device->parent_session = parent_sessionID;
939 ret = darwin_cache_device_descriptor(ctx, new_device);
943 if (new_device->can_enumerate) {
944 snprintf(new_device->sys_path, 20, "%03i-%04x-%04x-%02x-%02x", new_device->address,
945 new_device->dev_descriptor.idVendor, new_device->dev_descriptor.idProduct,
946 new_device->dev_descriptor.bDeviceClass, new_device->dev_descriptor.bDeviceSubClass);
955 *cached_out = new_device;