Lines Matching defs:sdev

227 static inline void pqi_disable_write_same(struct scsi_device *sdev)
229 sdev->no_write_same = 1;
1921 scsi_remove_device(device->sdev);
2153 return device->sdev != NULL;
2170 if (device->sdev == NULL)
2173 if (!scsi_device_online(device->sdev))
2296 if (device->sdev && device->queue_depth != device->advertised_queue_depth) {
2298 scsi_change_queue_depth(device->sdev, device->advertised_queue_depth);
2303 scsi_rescan_device(device->sdev);
3134 static inline void pqi_take_device_offline(struct scsi_device *sdev, char *path)
3139 device = sdev->hostdata;
3144 ctrl_info = shost_to_hba(sdev->host);
6480 static int pqi_slave_alloc(struct scsi_device *sdev)
6488 ctrl_info = shost_to_hba(sdev->host);
6492 if (sdev_channel(sdev) == PQI_PHYSICAL_DEVICE_BUS) {
6493 starget = scsi_target(sdev);
6500 device->target = sdev_id(sdev);
6501 device->lun = sdev->lun;
6506 device = pqi_find_scsi_dev(ctrl_info, sdev_channel(sdev),
6507 sdev_id(sdev), sdev->lun);
6511 sdev->hostdata = device;
6512 device->sdev = sdev;
6515 scsi_change_queue_depth(sdev,
6519 pqi_disable_write_same(sdev);
6521 sdev->allow_restart = 1;
6523 pqi_disable_write_same(sdev);
6548 static int pqi_slave_configure(struct scsi_device *sdev)
6553 device = sdev->hostdata;
6554 device->devtype = sdev->type;
6564 static void pqi_slave_destroy(struct scsi_device *sdev)
6571 ctrl_info = shost_to_hba(sdev->host);
6577 device = sdev->hostdata;
6852 static int pqi_ioctl(struct scsi_device *sdev, unsigned int cmd,
6858 ctrl_info = shost_to_hba(sdev->host);
7105 struct scsi_device *sdev;
7110 sdev = to_scsi_device(dev);
7111 ctrl_info = shost_to_hba(sdev->host);
7118 device = sdev->hostdata;
7144 struct scsi_device *sdev;
7149 sdev = to_scsi_device(dev);
7150 ctrl_info = shost_to_hba(sdev->host);
7157 device = sdev->hostdata;
7176 struct scsi_device *sdev;
7187 sdev = to_scsi_device(dev);
7188 ctrl_info = shost_to_hba(sdev->host);
7195 device = sdev->hostdata;
7262 struct scsi_device *sdev;
7267 sdev = to_scsi_device(dev);
7268 ctrl_info = shost_to_hba(sdev->host);
7275 device = sdev->hostdata;
7292 struct scsi_device *sdev;
7296 sdev = to_scsi_device(dev);
7297 ctrl_info = shost_to_hba(sdev->host);
7304 device = sdev->hostdata;
7323 struct scsi_device *sdev;
7328 sdev = to_scsi_device(dev);
7329 ctrl_info = shost_to_hba(sdev->host);
7336 device = sdev->hostdata;
7356 struct scsi_device *sdev;
7361 sdev = to_scsi_device(dev);
7362 ctrl_info = shost_to_hba(sdev->host);
7369 device = sdev->hostdata;
7386 struct scsi_device *sdev;
7391 sdev = to_scsi_device(dev);
7392 ctrl_info = shost_to_hba(sdev->host);
7399 device = sdev->hostdata;
7417 struct scsi_device *sdev;
7425 sdev = to_scsi_device(dev);
7426 ctrl_info = shost_to_hba(sdev->host);
7430 device = sdev->hostdata;
7452 struct scsi_device *sdev;
7455 sdev = to_scsi_device(dev);
7456 ctrl_info = shost_to_hba(sdev->host);
8992 struct scsi_device *sdev;
9001 sdev = scmd->device;
9002 if (!sdev || !scsi_device_online(sdev)) {