Lines Matching defs:sdev

283 static int hpsa_change_queue_depth(struct scsi_device *sdev, int qdepth);
286 static int hpsa_slave_alloc(struct scsi_device *sdev);
287 static int hpsa_slave_configure(struct scsi_device *sdev);
288 static void hpsa_slave_destroy(struct scsi_device *sdev);
335 static inline struct ctlr_info *sdev_to_hba(struct scsi_device *sdev)
337 unsigned long *priv = shost_priv(sdev->host);
677 struct scsi_device *sdev;
681 sdev = to_scsi_device(dev);
682 h = sdev_to_hba(sdev);
684 hdev = sdev->hostdata;
709 struct scsi_device *sdev;
714 sdev = to_scsi_device(dev);
715 h = sdev_to_hba(sdev);
717 hdev = sdev->hostdata;
731 struct scsi_device *sdev;
736 sdev = to_scsi_device(dev);
737 h = sdev_to_hba(sdev);
739 hdev = sdev->hostdata;
759 struct scsi_device *sdev;
764 sdev = to_scsi_device(dev);
765 h = sdev_to_hba(sdev);
767 hdev = sdev->hostdata;
782 struct scsi_device *sdev;
787 sdev = to_scsi_device(dev);
788 h = sdev_to_hba(sdev);
790 hdev = sdev->hostdata;
810 struct scsi_device *sdev;
821 sdev = to_scsi_device(dev);
822 h = sdev_to_hba(sdev);
824 hdev = sdev->hostdata;
1888 struct scsi_device *sdev = NULL;
1900 sdev = scsi_device_lookup(h->scsi_host, device->bus,
1902 if (sdev) {
1903 scsi_remove_device(sdev);
1904 scsi_device_put(sdev);
2110 static int hpsa_slave_alloc(struct scsi_device *sdev)
2116 h = sdev_to_hba(sdev);
2118 if (sdev_channel(sdev) == HPSA_PHYSICAL_DEVICE_BUS) {
2122 starget = scsi_target(sdev);
2126 sd->target = sdev_id(sdev);
2127 sd->lun = sdev->lun;
2131 sd = lookup_hpsa_scsi_dev(h, sdev_channel(sdev),
2132 sdev_id(sdev), sdev->lun);
2136 sdev->hostdata = sd;
2138 sdev->hostdata = NULL;
2145 static int hpsa_slave_configure(struct scsi_device *sdev)
2150 sd = sdev->hostdata;
2151 sdev->no_uld_attach = !sd || !sd->expose_device;
2156 sd->queue_depth : sdev->host->can_queue;
2159 sdev->eh_timeout = HPSA_EH_PTRAID_TIMEOUT;
2160 blk_queue_rq_timeout(sdev->request_queue,
2164 sdev->eh_timeout = CTLR_TIMEOUT;
2165 blk_queue_rq_timeout(sdev->request_queue, CTLR_TIMEOUT);
2168 queue_depth = sdev->host->can_queue;
2171 scsi_change_queue_depth(sdev, queue_depth);
2176 static void hpsa_slave_destroy(struct scsi_device *sdev)
2180 hdev = sdev->hostdata;
5821 static int hpsa_change_queue_depth(struct scsi_device *sdev, int qdepth)
5823 struct hpsa_scsi_dev_t *logical_drive = sdev->hostdata;
5833 return scsi_change_queue_depth(sdev, qdepth);