Lines Matching defs:device

81 	  that the target device actually supports it
87 - Handle outstanding commands appropriately on bus/device resets
198 - Reduce size of kernel version dependent device probe code
379 #define IS_ISP1040(ha) (ha->pdev->device == PCI_DEVICE_ID_QLOGIC_ISP1020)
380 #define IS_ISP1x40(ha) (ha->pdev->device == PCI_DEVICE_ID_QLOGIC_ISP1020 || \
381 ha->pdev->device == PCI_DEVICE_ID_QLOGIC_ISP1240)
382 #define IS_ISP1x160(ha) (ha->pdev->device == PCI_DEVICE_ID_QLOGIC_ISP10160 || \
383 ha->pdev->device == PCI_DEVICE_ID_QLOGIC_ISP12160)
487 #define CMD_HOST(Cmnd) Cmnd->device->host
488 #define SCSI_BUS_32(Cmnd) Cmnd->device->channel
489 #define SCSI_TCN_32(Cmnd) Cmnd->device->id
490 #define SCSI_LUN_32(Cmnd) Cmnd->device->lun
687 struct Scsi_Host *host = cmd->device->host;
882 "scsi(%ld:%d:%d:%d): Queueing device reset "
885 /* issued device reset, set wait conditions */
968 spin_lock_irq(cmd->device->host->host_lock);
970 spin_unlock_irq(cmd->device->host->host_lock);
977 * Reset the specified SCSI device
984 spin_lock_irq(cmd->device->host->host_lock);
986 spin_unlock_irq(cmd->device->host->host_lock);
1000 spin_lock_irq(cmd->device->host->host_lock);
1002 spin_unlock_irq(cmd->device->host->host_lock);
1016 spin_lock_irq(cmd->device->host->host_lock);
1018 spin_unlock_irq(cmd->device->host->host_lock);
1163 * Determines the queue depth for a given device. There are two ways
1164 * a queue depth can be obtained for a tagged queueing device. One
1171 qla1280_slave_configure(struct scsi_device *device)
1175 int bus = device->channel;
1176 int target = device->id;
1181 ha = (struct scsi_qla_host *)device->host->hostdata;
1187 if (device->tagged_supported &&
1189 scsi_change_queue_depth(device, ha->bus_settings[bus].hiwat);
1191 scsi_change_queue_depth(device, default_depth);
1194 nv->bus[bus].target[target].parameter.enable_sync = device->sdtr;
1195 nv->bus[bus].target[target].parameter.enable_wide = device->wdtr;
1196 nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr = device->ppr;
1216 qla1280_get_target_parameters(ha, device);
1550 dprintk(3, "qla1280_chip_diag: testing device at 0x%p \n", &reg->id_l);
2139 /* Command queue depth per device. */
2586 * Issue bus device reset message to the target.
2822 /* Set device target ID and LUN */
2827 /* Enable simple tag queuing if device supports it. */
2828 if (cmd->device->simple_tags)
3077 /* Set device target ID and LUN */
3082 /* Enable simple tag queuing if device supports it. */
3083 if (cmd->device->simple_tags)
3880 struct scsi_device *device)
3885 bus = device->channel;
3886 target = device->id;
3887 lun = device->lun;
3908 if (device->simple_tags)
3909 printk(KERN_CONT ", Tagged queuing: depth %d", device->queue_depth);
4158 "qla1280: Failed to enabled pci device, aborting.\n");