Lines Matching refs:sdev
558 struct scsi_device *sdev; in mptsas_add_device_component() local
597 shost_for_each_device(sdev, ioc->sh) { in mptsas_add_device_component()
598 starget = scsi_target(sdev); in mptsas_add_device_component()
968 struct scsi_device *sdev; in mptsas_find_vtarget() local
972 shost_for_each_device(sdev, ioc->sh) { in mptsas_find_vtarget()
973 vdevice = sdev->hostdata; in mptsas_find_vtarget()
1086 mptsas_block_io_sdev(struct scsi_device *sdev, void *data) in mptsas_block_io_sdev() argument
1088 scsi_device_set_state(sdev, SDEV_BLOCK); in mptsas_block_io_sdev()
1686 mptsas_slave_configure(struct scsi_device *sdev) in mptsas_slave_configure() argument
1688 struct Scsi_Host *host = sdev->host; in mptsas_slave_configure()
1691 VirtDevice *vdevice = sdev->hostdata; in mptsas_slave_configure()
1694 sdev_printk(KERN_INFO, sdev, "clearing deleted flag\n"); in mptsas_slave_configure()
1702 if (sdev->channel == MPTSAS_RAID_CHANNEL) { in mptsas_slave_configure()
1703 mptsas_add_device_component_starget_ir(ioc, scsi_target(sdev)); in mptsas_slave_configure()
1707 sas_read_port_mode_page(sdev); in mptsas_slave_configure()
1709 mptsas_add_device_component_starget(ioc, scsi_target(sdev)); in mptsas_slave_configure()
1712 return mptscsih_slave_configure(sdev); in mptsas_slave_configure()
1843 mptsas_slave_alloc(struct scsi_device *sdev) in mptsas_slave_alloc() argument
1845 struct Scsi_Host *host = sdev->host; in mptsas_slave_alloc()
1860 starget = scsi_target(sdev); in mptsas_slave_alloc()
1863 if (sdev->channel == MPTSAS_RAID_CHANNEL) in mptsas_slave_alloc()
1866 rphy = dev_to_rphy(sdev->sdev_target->dev.parent); in mptsas_slave_alloc()
1873 vdevice->lun = sdev->lun; in mptsas_slave_alloc()
1880 sdev->no_uld_attach = 1; in mptsas_slave_alloc()
1892 sdev->hostdata = vdevice; in mptsas_slave_alloc()
3739 struct scsi_device *sdev; in mptsas_send_link_status_event() local
3749 shost_for_each_device(sdev, ioc->sh) { in mptsas_send_link_status_event()
3750 vdevice = sdev->hostdata; in mptsas_send_link_status_event()
3765 atomic_read(&sdev->device_busy))); in mptsas_send_link_status_event()
3996 struct scsi_device *sdev; in mptsas_scan_sas_topology() local
4010 sdev = scsi_device_lookup(ioc->sh, MPTSAS_RAID_CHANNEL, in mptsas_scan_sas_topology()
4012 if (sdev) { in mptsas_scan_sas_topology()
4013 scsi_device_put(sdev); in mptsas_scan_sas_topology()
4031 struct scsi_device *sdev; in mptsas_handle_queue_full_event() local
4082 shost_for_each_device(sdev, ioc->sh) { in mptsas_handle_queue_full_event()
4083 if (sdev->id == id && sdev->channel == channel) { in mptsas_handle_queue_full_event()
4084 if (current_depth > sdev->queue_depth) { in mptsas_handle_queue_full_event()
4085 sdev_printk(KERN_INFO, sdev, in mptsas_handle_queue_full_event()
4088 "depth (%d)\n", sdev->queue_depth, in mptsas_handle_queue_full_event()
4092 depth = scsi_track_queue_full(sdev, in mptsas_handle_queue_full_event()
4095 sdev_printk(KERN_INFO, sdev, in mptsas_handle_queue_full_event()
4099 sdev_printk(KERN_INFO, sdev, in mptsas_handle_queue_full_event()
4103 sdev_printk(KERN_INFO, sdev, in mptsas_handle_queue_full_event()
4212 mptsas_reprobe_lun(struct scsi_device *sdev, void *data) in mptsas_reprobe_lun() argument
4216 sdev->no_uld_attach = data ? 1 : 0; in mptsas_reprobe_lun()
4217 rc = scsi_device_reprobe(sdev); in mptsas_reprobe_lun()
4552 scsi_remove_device(hot_plug_info->sdev); in mptsas_hotplug_work()
4553 scsi_device_put(hot_plug_info->sdev); in mptsas_hotplug_work()
4644 struct scsi_device *sdev = NULL; in mptsas_send_raid_event() local
4662 sdev = scsi_device_lookup(ioc->sh, MPTSAS_RAID_CHANNEL, in mptsas_send_raid_event()
4664 hot_plug_info.sdev = sdev; in mptsas_send_raid_event()
4665 if (sdev) in mptsas_send_raid_event()
4666 vdevice = sdev->hostdata; in mptsas_send_raid_event()
4702 if (!sdev) in mptsas_send_raid_event()
4708 if (sdev) { in mptsas_send_raid_event()
4709 scsi_device_put(sdev); in mptsas_send_raid_event()
4716 if (!sdev) in mptsas_send_raid_event()
4725 if (!sdev) in mptsas_send_raid_event()
4732 if (sdev) { in mptsas_send_raid_event()
4733 scsi_device_put(sdev); in mptsas_send_raid_event()
5109 struct scsi_device *sdev; in mptsas_volume_delete() local
5112 sdev = scsi_device_lookup(ioc->sh, MPTSAS_RAID_CHANNEL, id, 0); in mptsas_volume_delete()
5113 if (!sdev) in mptsas_volume_delete()
5125 scsi_remove_device(sdev); in mptsas_volume_delete()
5127 scsi_device_put(sdev); in mptsas_volume_delete()