Lines Matching refs:device

179     /* free up device list */
477 sanei_config_attach_matching_devices(md_config_temp->device,
479 if ( md_config_temp->next ) /* go to next device, if existent */
514 DBG(30, "sane_open: device='%s'\n", name);
521 /* add_device_list() returns a pointer to the device struct if */
522 /* the device is known or newly added, else it returns NULL */
531 DBG(10, "sane_open: invalid device name '%s'\n", name);
703 DBG(30, "add_device_list: device='%s'\n", hdev);
705 /* check, if device is already known */
711 DBG(30, "add_device_list: device '%s' already in list\n", hdev);
759 /* device is passed in sane_open() this function may also be called */
767 DBG(30, "attach: device='%s'\n", md->name);
786 /* in the device structure, e.g. the model name with a trailing '\0'. */
812 /* check whether the device supports transparency media adapters */
821 /* check whether the device supports an ADF */
830 /* check whether the device supports STRIPES */
839 /* check whether the device supports SLIDES */
1145 DBG(1, "check_inquiry: Device is not a SCSI-II device, but 0x%02x\n",
1429 /* must be of the form device:user:password where password is a crypt() */
1430 /* encrypted password. If several users are allowed to access a device */
1431 /* an entry must be created for each user. If no entry exists for device */
1442 char *device;
1453 /* first check if an entry exists in for this device. If not, we don't */
1479 device = linep;
1480 if ( strcmp(device, resource) == 0 )
1510 device = linep;
1511 if ( strcmp( device, resource) != 0 ) /* not a matching entry */
1671 DBG(1, "Scanner attributes from device structure\n");
1898 /* builds a list of device names with associated options from the */
1900 /* ct->device = NULL indicates global options (valid for all devices */
1929 else /* it is considered a new device */
1953 /* memory, because the line surely contains a device name, */
1955 DBG(100, "parse_config_file: found device option %s\n", s);
1960 else /* it is considered a new device */
1962 DBG(100, "parse_config_file: found device %s\n", s);
1976 hct1->device = strdup(s);
2212 /* If the device supports gamma tables, we allocate memory according */
2214 /* which is sufficient for a color depth of 12. If the device */
3274 /* the gamma table if the device does not support gamma */
4277 scsi_inquiry(Microtek2_Info *mi, char *device)
4287 DBG(30, "scsi_inquiry: mi=%p, device='%s'\n", (void *) mi, device);
4289 status = sanei_scsi_open(device, &sfd, scsi_sense_handler, 0);
4360 scsi_read_attributes(Microtek2_Info *pmi, char *device, uint8_t scan_source)
4372 DBG(30, "scsi_read_attributes: mi=%p, device='%s', source=%d\n",
4373 (void *) mi, device, scan_source);
4377 status = sanei_scsi_open(device, &sfd, scsi_sense_handler, 0);
5193 DBG(5, "scsi_sense_handler: Peripheral device write fault - "
5285 /* open device */
6158 /* send shading data to the device */
6301 /* send shading data to the device */
6796 /* returns the maximum lookup table size. A device might indicate */
6805 /* If, however, the device indicates, that it does not support */
6806 /* lookup tables, we set these values as if the device has a maximum */