Lines Matching defs:hotplug_devs
218 struct libusb_device_head hotplug_devs;
273 while ((adev = TAILQ_FIRST(&ctx->hotplug_devs)) != NULL) {
274 TAILQ_REMOVE(&ctx->hotplug_devs, adev, hotplug_entry);
285 TAILQ_INIT(&hotplug_devs);
287 if (libusb_hotplug_enumerate(ctx, &hotplug_devs) < 0) {
293 TAILQ_FOREACH_SAFE(adev, &ctx->hotplug_devs, hotplug_entry, temp) {
294 TAILQ_FOREACH(bdev, &hotplug_devs, hotplug_entry) {
299 TAILQ_REMOVE(&ctx->hotplug_devs, adev, hotplug_entry);
312 TAILQ_FOREACH_SAFE(adev, &hotplug_devs, hotplug_entry, temp) {
313 TAILQ_FOREACH(bdev, &ctx->hotplug_devs, hotplug_entry) {
318 TAILQ_REMOVE(&hotplug_devs, adev, hotplug_entry);
319 TAILQ_INSERT_TAIL(&ctx->hotplug_devs, adev, hotplug_entry);
332 while ((adev = TAILQ_FIRST(&hotplug_devs)) != NULL) {
333 TAILQ_REMOVE(&hotplug_devs, adev, hotplug_entry);
373 libusb_hotplug_enumerate(ctx, &ctx->hotplug_devs);
387 TAILQ_FOREACH(adev, &ctx->hotplug_devs, hotplug_entry) {