Lines Matching defs:hotplug_devs
216 struct libusb_device_head hotplug_devs;
271 while ((adev = TAILQ_FIRST(&ctx->hotplug_devs)) != NULL) {
272 TAILQ_REMOVE(&ctx->hotplug_devs, adev, hotplug_entry);
283 TAILQ_INIT(&hotplug_devs);
285 if (libusb_hotplug_enumerate(ctx, &hotplug_devs) < 0) {
291 TAILQ_FOREACH_SAFE(adev, &ctx->hotplug_devs, hotplug_entry, temp) {
292 TAILQ_FOREACH(bdev, &hotplug_devs, hotplug_entry) {
297 TAILQ_REMOVE(&ctx->hotplug_devs, adev, hotplug_entry);
310 TAILQ_FOREACH_SAFE(adev, &hotplug_devs, hotplug_entry, temp) {
311 TAILQ_FOREACH(bdev, &ctx->hotplug_devs, hotplug_entry) {
316 TAILQ_REMOVE(&hotplug_devs, adev, hotplug_entry);
317 TAILQ_INSERT_TAIL(&ctx->hotplug_devs, adev, hotplug_entry);
330 while ((adev = TAILQ_FIRST(&hotplug_devs)) != NULL) {
331 TAILQ_REMOVE(&hotplug_devs, adev, hotplug_entry);
368 libusb_hotplug_enumerate(ctx, &ctx->hotplug_devs);
382 TAILQ_FOREACH(adev, &ctx->hotplug_devs, hotplug_entry) {