Lines Matching defs:sdev

1113 	res->sdev = NULL;
1282 if (res->sdev && new_path)
1283 sdev_printk(KERN_INFO, res->sdev, "Resource path: %s\n",
1382 if (res->sdev) {
1390 } else if (!res->sdev || res->del_from_ml) {
3239 struct scsi_device *sdev;
3257 if (res->del_from_ml && res->sdev) {
3259 sdev = res->sdev;
3260 if (!scsi_device_get(sdev)) {
3266 scsi_remove_device(sdev);
3267 scsi_device_put(sdev);
4402 * @sdev: scsi device struct
4408 static int ipr_change_queue_depth(struct scsi_device *sdev, int qdepth)
4410 scsi_change_queue_depth(sdev, qdepth);
4411 return sdev->queue_depth;
4425 struct scsi_device *sdev = to_scsi_device(dev);
4426 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)sdev->host->hostdata;
4432 res = (struct ipr_resource_entry *)sdev->hostdata;
4459 struct scsi_device *sdev = to_scsi_device(dev);
4460 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)sdev->host->hostdata;
4467 res = (struct ipr_resource_entry *)sdev->hostdata;
4499 struct scsi_device *sdev = to_scsi_device(dev);
4500 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)sdev->host->hostdata;
4506 res = (struct ipr_resource_entry *)sdev->hostdata;
4535 struct scsi_device *sdev = to_scsi_device(dev);
4536 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)sdev->host->hostdata;
4542 res = (struct ipr_resource_entry *)sdev->hostdata;
4571 struct scsi_device *sdev = to_scsi_device(dev);
4572 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)sdev->host->hostdata;
4578 res = (struct ipr_resource_entry *)sdev->hostdata;
4601 struct scsi_device *sdev = to_scsi_device(dev);
4602 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)sdev->host->hostdata;
4608 res = (struct ipr_resource_entry *)sdev->hostdata;
4613 if (res->sdev)
4614 sdev_printk(KERN_INFO, res->sdev, "raw mode is %s\n",
4646 * @sdev: scsi device struct
4658 static int ipr_biosparam(struct scsi_device *sdev,
4726 * @sdev: scsi device struct
4731 static struct ipr_resource_entry *ipr_find_sdev(struct scsi_device *sdev)
4733 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *) sdev->host->hostdata;
4737 if ((res->bus == sdev->channel) &&
4738 (res->target == sdev->id) &&
4739 (res->lun == sdev->lun))
4748 * @sdev: scsi device struct
4753 static void ipr_slave_destroy(struct scsi_device *sdev)
4759 ioa_cfg = (struct ipr_ioa_cfg *) sdev->host->hostdata;
4762 res = (struct ipr_resource_entry *) sdev->hostdata;
4764 sdev->hostdata = NULL;
4765 res->sdev = NULL;
4772 * @sdev: scsi device struct
4779 static int ipr_slave_configure(struct scsi_device *sdev)
4781 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *) sdev->host->hostdata;
4787 res = sdev->hostdata;
4790 sdev->type = TYPE_RAID;
4792 sdev->scsi_level = 4;
4793 sdev->no_uld_attach = 1;
4796 sdev->scsi_level = SCSI_SPC_3;
4797 sdev->no_report_opcodes = 1;
4798 blk_queue_rq_timeout(sdev->request_queue,
4800 blk_queue_max_hw_sectors(sdev->request_queue, IPR_VSET_MAX_SECTORS);
4805 sdev_printk(KERN_INFO, sdev, "Resource path: %s\n",
4816 * @sdev: scsi device struct
4826 static int ipr_slave_alloc(struct scsi_device *sdev)
4828 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *) sdev->host->hostdata;
4833 sdev->hostdata = NULL;
4837 res = ipr_find_sdev(sdev);
4839 res->sdev = sdev;
4842 sdev->hostdata = res;
4847 sdev_printk(KERN_ERR, sdev, "SATA devices are no longer "
4862 * @device: device to match (sdev)
4865 * 1 if command matches sdev / 0 if command does not match sdev
4896 * @device: device to match (sdev)
5164 sdev_printk(KERN_ERR, ipr_cmd->u.sdev, "Abort timed out. Resetting bus.\n");
5243 ipr_cmd->u.sdev = scsi_cmd->device;
7089 } else if (res->sdev && (ipr_is_vset_device(res) || ipr_is_scsi_disk(res)))
7090 res->sdev->allow_restart = 1;
7097 if (res->sdev) {