Lines Matching defs:sdev
587 struct scsi_device *sdev;
626 shost_for_each_device(sdev, ioc->sh) {
627 starget = scsi_target(sdev);
995 struct scsi_device *sdev;
999 shost_for_each_device(sdev, ioc->sh) {
1000 vdevice = sdev->hostdata;
1112 mptsas_block_io_sdev(struct scsi_device *sdev, void *data)
1114 scsi_device_set_state(sdev, SDEV_BLOCK);
1713 mptsas_slave_configure(struct scsi_device *sdev)
1715 struct Scsi_Host *host = sdev->host;
1718 VirtDevice *vdevice = sdev->hostdata;
1721 sdev_printk(KERN_INFO, sdev, "clearing deleted flag\n");
1729 if (sdev->channel == MPTSAS_RAID_CHANNEL) {
1730 mptsas_add_device_component_starget_ir(ioc, scsi_target(sdev));
1734 sas_read_port_mode_page(sdev);
1736 mptsas_add_device_component_starget(ioc, scsi_target(sdev));
1739 return mptscsih_slave_configure(sdev);
1870 mptsas_slave_alloc(struct scsi_device *sdev)
1872 struct Scsi_Host *host = sdev->host;
1887 starget = scsi_target(sdev);
1890 if (sdev->channel == MPTSAS_RAID_CHANNEL)
1893 rphy = dev_to_rphy(sdev->sdev_target->dev.parent);
1900 vdevice->lun = sdev->lun;
1907 sdev->no_uld_attach = 1;
1919 sdev->hostdata = vdevice;
3761 struct scsi_device *sdev;
3771 shost_for_each_device(sdev, ioc->sh) {
3772 vdevice = sdev->hostdata;
3787 scsi_device_busy(sdev)));
4018 struct scsi_device *sdev;
4032 sdev = scsi_device_lookup(ioc->sh, MPTSAS_RAID_CHANNEL,
4034 if (sdev) {
4035 scsi_device_put(sdev);
4053 struct scsi_device *sdev;
4104 shost_for_each_device(sdev, ioc->sh) {
4105 if (sdev->id == id && sdev->channel == channel) {
4106 if (current_depth > sdev->queue_depth) {
4107 sdev_printk(KERN_INFO, sdev,
4110 "depth (%d)\n", sdev->queue_depth,
4114 depth = scsi_track_queue_full(sdev,
4115 sdev->queue_depth - 1);
4117 sdev_printk(KERN_INFO, sdev,
4121 sdev_printk(KERN_INFO, sdev,
4125 sdev_printk(KERN_DEBUG, sdev,
4235 mptsas_reprobe_lun(struct scsi_device *sdev, void *data)
4239 sdev->no_uld_attach = data ? 1 : 0;
4240 rc = scsi_device_reprobe(sdev);
4575 scsi_remove_device(hot_plug_info->sdev);
4576 scsi_device_put(hot_plug_info->sdev);
4667 struct scsi_device *sdev = NULL;
4685 sdev = scsi_device_lookup(ioc->sh, MPTSAS_RAID_CHANNEL,
4687 hot_plug_info.sdev = sdev;
4688 if (sdev)
4689 vdevice = sdev->hostdata;
4725 if (!sdev)
4731 if (sdev) {
4732 scsi_device_put(sdev);
4739 if (!sdev)
4748 if (!sdev)
4755 if (sdev) {
4756 scsi_device_put(sdev);
5133 struct scsi_device *sdev;
5136 sdev = scsi_device_lookup(ioc->sh, MPTSAS_RAID_CHANNEL, id, 0);
5137 if (!sdev)
5149 scsi_remove_device(sdev);
5151 scsi_device_put(sdev);