Lines Matching defs:device
113 static HP4200_Device *first_device = NULL; /* device list head */
114 static int n_devices = 0; /* the device count */
2304 /* Avoid adding the same device more than once */
2312 /* open the device file, but read only or read/write to perform
2321 /* put here some code to probe that the device attached to the
2322 device file is a supported scanner. Maybe some ioctl */
2328 DBG (DBG_error, "%s: out of memory allocating device.\n", me);
2340 "%s: out of memory allocating device descriptor strings.\n", me);
2419 HP4200_Device *device, *next;
2423 for (device = first_device; device; device = next)
2425 next = device->next;
2426 if (device->handle)
2428 sane_close (device->handle);
2430 if (device->dev.name)
2432 free ((void *) device->dev.name);
2434 free (device);