Lines Matching defs:device

51    . - sane_open() : open a particular scanner-device and attach_scanner(devicename,&dev)
62 . - sane_close() : close opened scanner-device, do_cancel, free buffer and handle
63 - sane_exit() : terminate use of backend, free devicename and device-struture
621 * source list need one dummy entry (save device settings is crashing).
638 static SANE_Status attach_one_net(SANE_String_Const devname, unsigned int device);
1473 k_set_device (SANE_Handle handle, SANE_Word device)
1479 DBG(10, "%s: 0x%x\n", __func__, device);
1482 if (kodakaio_cap[n].id == device)
1489 DBG(1, " unknown device 0x%x, using default %s\n",
1490 device, dev->cap->model);
1514 * device by some scanner command? So far, it looks like
1515 * the device does not support any reporting.
1998 const char *device = name;
2002 if (strncmp(device, "net:", 4) == 0)
2003 device = &device[4];
2005 qm = strchr(device, '?');
2007 size_t len = qm-device;
2008 strncpy (IP, device, len);
2017 strcpy (IP, device);
2025 * Open the scanner device. Depending on the connection method,
2042 /* device name has the form net:ipaddr?model=... */
2073 DBG(1, "please check that you have permissions on the device.\n");
2074 DBG(1, "if this is a multi-function device with a printer,\n");
2100 * the correct device.
2105 DBG(1, "the device cannot be verified - will continue\n");
2109 /* check the vendor ID to see if we are dealing with a kodak device */
2112 DBG(1, "not a Kodak Aio device at %s (vendor id=0x%x)\n",
2122 * about the device */
2131 DBG(1, "the device at %s is not a supported (product id=0x%x)\n",
2138 k_set_device(s, product); /* added 21/12/11 to try and get a name for the device */
2177 /* try to find the device in our list */
2192 /* alloc and clear our device structure */
2241 /* add this scanner to the device list */
2259 /* ProcessAvahiDevice is called to process each discovered device in turn */
2275 DBG(min(10,DBG_AUTO), "%s: Found autodiscovered device: %s (type 0x%x)\n", __func__, cap->model, cap->id);
2531 return SANE_STATUS_INVAL; /* this is not a Kodak device */
2569 DBG(30, "%s: Using network device on IP %s, forcing model 0x%x\n", __func__, IP, model);
2665 /* Read the config, mark each device as found, possibly add new devs */
2851 DBG(9, "device with no adf detected source option inactive\n");
2941 /* probe if empty device name provided */
2950 DBG(1, "no device detected\n");
2957 DBG(1, "cannot open a perfectly valid device (%s),"
2975 * in the device list. This should handle platforms without libusb.
2986 DBG(1, "invalid device name: %s\n", name);