Lines Matching defs:sdev
284 static int hpsa_change_queue_depth(struct scsi_device *sdev, int qdepth);
287 static int hpsa_slave_alloc(struct scsi_device *sdev);
288 static int hpsa_slave_configure(struct scsi_device *sdev);
289 static void hpsa_slave_destroy(struct scsi_device *sdev);
336 static inline struct ctlr_info *sdev_to_hba(struct scsi_device *sdev)
338 unsigned long *priv = shost_priv(sdev->host);
678 struct scsi_device *sdev;
682 sdev = to_scsi_device(dev);
683 h = sdev_to_hba(sdev);
685 hdev = sdev->hostdata;
710 struct scsi_device *sdev;
715 sdev = to_scsi_device(dev);
716 h = sdev_to_hba(sdev);
718 hdev = sdev->hostdata;
732 struct scsi_device *sdev;
737 sdev = to_scsi_device(dev);
738 h = sdev_to_hba(sdev);
740 hdev = sdev->hostdata;
760 struct scsi_device *sdev;
765 sdev = to_scsi_device(dev);
766 h = sdev_to_hba(sdev);
768 hdev = sdev->hostdata;
783 struct scsi_device *sdev;
788 sdev = to_scsi_device(dev);
789 h = sdev_to_hba(sdev);
791 hdev = sdev->hostdata;
811 struct scsi_device *sdev;
822 sdev = to_scsi_device(dev);
823 h = sdev_to_hba(sdev);
825 hdev = sdev->hostdata;
1882 struct scsi_device *sdev = NULL;
1894 sdev = scsi_device_lookup(h->scsi_host, device->bus,
1896 if (sdev) {
1897 scsi_remove_device(sdev);
1898 scsi_device_put(sdev);
2104 static int hpsa_slave_alloc(struct scsi_device *sdev)
2110 h = sdev_to_hba(sdev);
2112 if (sdev_channel(sdev) == HPSA_PHYSICAL_DEVICE_BUS) {
2116 starget = scsi_target(sdev);
2120 sd->target = sdev_id(sdev);
2121 sd->lun = sdev->lun;
2125 sd = lookup_hpsa_scsi_dev(h, sdev_channel(sdev),
2126 sdev_id(sdev), sdev->lun);
2130 sdev->hostdata = sd;
2132 sdev->hostdata = NULL;
2139 static int hpsa_slave_configure(struct scsi_device *sdev)
2144 sd = sdev->hostdata;
2145 sdev->no_uld_attach = !sd || !sd->expose_device;
2150 sd->queue_depth : sdev->host->can_queue;
2153 sdev->eh_timeout = HPSA_EH_PTRAID_TIMEOUT;
2154 blk_queue_rq_timeout(sdev->request_queue,
2158 sdev->eh_timeout = CTLR_TIMEOUT;
2159 blk_queue_rq_timeout(sdev->request_queue, CTLR_TIMEOUT);
2162 queue_depth = sdev->host->can_queue;
2165 scsi_change_queue_depth(sdev, queue_depth);
2170 static void hpsa_slave_destroy(struct scsi_device *sdev)
2174 hdev = sdev->hostdata;
5805 static int hpsa_change_queue_depth(struct scsi_device *sdev, int qdepth)
5807 struct hpsa_scsi_dev_t *logical_drive = sdev->hostdata;
5817 return scsi_change_queue_depth(sdev, qdepth);