Lines Matching defs:device

7  * Adaptec aacraid device driver for Linux.
40 /* values for inqd_pdt: Peripheral device type in plain English */
41 #define INQD_PDT_DA 0x00 /* Direct-access (DISK) device */
42 #define INQD_PDT_PROC 0x03 /* Processor device */
44 #define INQD_PDT_COMM 0x09 /* Communication device (scsi2) */
334 struct scsi_device *device;
342 device = scsicmd->device;
343 if (unlikely(!device)) {
344 dprintk((KERN_WARNING "aac_valid_context: scsi device corrupt\n"));
425 "aac_get_config_status: Foreign device configurations are being ignored\n");
576 dev = (struct aac_dev *)scsicmd->device->host->hostdata;
612 struct fsa_dev_info *fsa_dev_ptr = ((struct aac_dev *)(scsicmd->device->host->hostdata))->fsa_dev;
738 if ((fibptr = aac_fib_alloc((struct aac_dev *)scsicmd->device->host->hostdata))) {
776 struct fsa_dev_info *fsa_dev_ptr = ((struct aac_dev *)(scsicmd->device->host->hostdata))->fsa_dev;
797 scsicmd->device = NULL;
819 scsicmd->device = scsidev;
825 while (scsicmd->device == scsidev)
948 /* RAID is superfluous in the context of a RAID device */
1001 dev = (struct aac_dev *)scsicmd->device->host->hostdata;
1111 dev = (struct aac_dev *)scsicmd->device->host->hostdata;
1507 srbcmd->lun = cpu_to_le32(cmd->device->lun);
1526 dev = (struct aac_dev *)cmd->device->host->hostdata;
1543 hbacmd->lun[1] = cpu_to_le32(cmd->device->lun);
1640 dev = (struct aac_dev *)cmd->device->host->hostdata;
2418 dev = (struct aac_dev *)scsicmd->device->host->hostdata;
2520 dev = (struct aac_dev *)scsicmd->device->host->hostdata;
2621 struct scsi_device *sdev = cmd->device;
2647 struct scsi_device *sdev = scsicmd->device;
2714 struct scsi_device *sdev = scsicmd->device;
2779 struct Scsi_Host *host = scsicmd->device->host;
2794 (scsicmd->device->lun != 0)) {
2964 inq_data.inqd_pdt = INQD_PDT_PROC; /* Processor device */
2974 inq_data.inqd_pdt = INQD_PDT_DA; /* Direct/random access device */
3015 scsicmd->device->removable = 1;
3043 scsicmd->device->removable = 1;
3395 * Handles the completion of a scsi command to a non dasd device
3428 /* expose physical device if expose_physicald flag is on */
3756 dev = (struct aac_dev *)scsicmd->device->host->hostdata;
3758 scsicmd->device->lun > 7) {
3797 dev = shost_priv(scsicmd->device->host);
3799 scsicmd->device->lun > AAC_MAX_LUN - 1) {