Lines Matching defs:device

358   int scsi_id;			/* scsi id of target device */
362 short d_queue_depth; /* device (or adapter) maximum queue length */
517 static HFILE driver_handle = 0; /* file handle for device driver */
654 PSRBlock->cmd = SRB_Device; /* get device type */
670 /* skip if device not connected */
676 devtypes[PSRBlock->u.dev.devtype] : "unknown device");
909 size by opening all SG device files belonging to a scanner,
939 DBG (1, "sanei_scsi_open: device name %s is not valid\n", dev);
960 DBG (1, "sanei_scsi_open: device name `%s´ is not valid: %s\n",
1095 DomainErrorCheck (status, "Opening device in server");
1121 /* device acquired, what else to do? */
1151 DBG (1, "sanei_scsi_open: can't open device `%s´: %s\n", dev,
1165 DBG (1, "sanei_scsi_open: device name `%s´ is not valid: %s\n",
1210 DBG (1, "sanei_scsi_open: device name %s is not valid\n", dev);
1227 DBG (1, "sanei_scsi_open: device name %s is not valid\n", dev);
1247 the device name refers to a scsi _bus_, not an individual scsi
1248 device. Hence, SANE has to fudge with the device name so we
1250 last character in the device name as the target index. 'a' is
1358 DBG (1, "sanei_scsi_open: The file %s is not an SG device file\n",
1367 "sanei_scsi_open: The device found for %s does not look like a scanner\n",
1422 an SG device file
1426 DBG (1, "sanei_scsi_open: The file %s is not an SG device file\n",
1487 /* verify that the device really exists: */
1637 DomainErrorCheck (status, "Error unmapping device data area");
2491 is trying to match device/manufacturer names and/or SCSI addressing
2492 numbers (i.e. <host,bus,id,lun>) with a sg device file name
2660 DBG (1, "lx_chk_devicename: matched device(devfs): %s\n", name);
2668 { /* no candidate sg device file name found, try /dev/sg0,1 */
2681 DBG (1, "lx_chk_devicename: matched device(direct): %s\n", name);
2689 DBG (1, "lx_chk_devicename: matched device(scan): %s\n", name);
2696 static void /* calls 'attach' function pointer with sg device file name iff match */
2937 void /* calls 'attach' function pointer with sg device file name iff match */
3369 /* build ccb for device match */
3417 DBG (1, "no device match\n");
3455 /* build ccb for device match */
4082 DBG (1, "OS/2 searched device is %s\n", name);
4275 DBG (1, "sanei_scsi_cmd: Error no device (aspi_buf == NULL)\n");
4282 DBG (1, "sanei_scsi_cmd: Error no device (PSRBlock == NULL)\n");
4504 char dev_name[128]; /* SCSI device name */
4548 DBG (1, "sanei_scsi_find_devices: ignoring this device.\n");
4553 DBG (1, "sanei_scsi_find_devices: device name is \"%s\".\n",
4557 * Open the SCSI device and get the inquiry data...
4563 "sanei_scsi_find_devices: unable to open device file - %s.\n",
4568 DBG (1, "sanei_scsi_find_devices: device fd = %d.\n", fd);
4607 DBG (1, "sanei_scsi_find_devices: ignoring this device.\n");
4615 DBG (1, "sanei_scsi_find_devices: attaching this device.\n");
5157 /* No device here */
5173 /* Check if this device fits the criteria. */
5186 /* No device here */
5218 io_object_t device;
5274 while ((device = IOIteratorNext (scsiObjectIterator)))
5277 IORegistryEntryCreateCFProperty (device,
5283 IORegistryEntryCreateCFProperty (device,
5289 IORegistryEntryCreateCFProperty (device,
5298 scsiDevice = device;
5300 IOObjectRelease (device);
5331 DBG (5, "Couldn't create SCSI device interface (%ld)\n", plugInResult);
5513 DBG (5, "Couldn't create SCSI device interface (%ld)\n",
5581 appropriate value for the device type we're interested in.*/
5643 This object will be used to create the SCSI device interface object. */
5657 SCSI device interface object. */
5666 DBG (5, "Couldn't create SCSI device interface (%ld)\n",
5794 /* Get exclusive access for the device if we can. This must be done
5795 before any SCSITasks can be created and sent to the device. */
5874 the SCSI device */
5885 /* Now search I/O Registry for the matching device */
5924 DBG (5, "Error releasing SCSI device. (0x%08x)\n", ioReturnValue);
6029 /* Create device name from the SCSITaskUserClient GUID */
6052 /* Attach to the device */