Lines Matching defs:sdev

194 static inline void pqi_disable_write_same(struct scsi_device *sdev)
196 sdev->no_write_same = 1;
1544 scsi_remove_device(device->sdev);
1762 return device->sdev != NULL;
1874 if (device->sdev) {
1878 scsi_change_queue_depth(device->sdev,
1882 scsi_rescan_device(&device->sdev->sdev_gendev);
2643 static inline void pqi_take_device_offline(struct scsi_device *sdev, char *path)
2648 device = sdev->hostdata;
2653 ctrl_info = shost_to_hba(sdev->host);
5785 static int pqi_slave_alloc(struct scsi_device *sdev)
5793 ctrl_info = shost_to_hba(sdev->host);
5797 if (sdev_channel(sdev) == PQI_PHYSICAL_DEVICE_BUS) {
5798 starget = scsi_target(sdev);
5802 device->target = sdev_id(sdev);
5803 device->lun = sdev->lun;
5807 device = pqi_find_scsi_dev(ctrl_info, sdev_channel(sdev),
5808 sdev_id(sdev), sdev->lun);
5812 sdev->hostdata = device;
5813 device->sdev = sdev;
5816 scsi_change_queue_depth(sdev,
5820 pqi_disable_write_same(sdev);
5822 sdev->allow_restart = 1;
5838 static int pqi_slave_configure(struct scsi_device *sdev)
5842 device = sdev->hostdata;
5843 device->devtype = sdev->type;
5848 static void pqi_slave_destroy(struct scsi_device *sdev)
5854 ctrl_info = shost_to_hba(sdev->host);
5858 device = sdev->hostdata;
5860 sdev->hostdata = NULL;
6124 static int pqi_ioctl(struct scsi_device *sdev, unsigned int cmd,
6130 ctrl_info = shost_to_hba(sdev->host);
6287 struct scsi_device *sdev;
6292 sdev = to_scsi_device(dev);
6293 ctrl_info = shost_to_hba(sdev->host);
6297 device = sdev->hostdata;
6324 struct scsi_device *sdev;
6329 sdev = to_scsi_device(dev);
6330 ctrl_info = shost_to_hba(sdev->host);
6334 device = sdev->hostdata;
6353 struct scsi_device *sdev;
6364 sdev = to_scsi_device(dev);
6365 ctrl_info = shost_to_hba(sdev->host);
6369 device = sdev->hostdata;
6436 struct scsi_device *sdev;
6441 sdev = to_scsi_device(dev);
6442 ctrl_info = shost_to_hba(sdev->host);
6446 device = sdev->hostdata;
6463 struct scsi_device *sdev;
6467 sdev = to_scsi_device(dev);
6468 ctrl_info = shost_to_hba(sdev->host);
6472 device = sdev->hostdata;
6491 struct scsi_device *sdev;
6496 sdev = to_scsi_device(dev);
6497 ctrl_info = shost_to_hba(sdev->host);
6501 device = sdev->hostdata;
6521 struct scsi_device *sdev;
6526 sdev = to_scsi_device(dev);
6527 ctrl_info = shost_to_hba(sdev->host);
6531 device = sdev->hostdata;