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()
3738 struct scsi_device *sdev; in mptsas_send_link_status_event() local
3748 shost_for_each_device(sdev, ioc->sh) { in mptsas_send_link_status_event()
3749 vdevice = sdev->hostdata; in mptsas_send_link_status_event()
3764 atomic_read(&sdev->device_busy))); in mptsas_send_link_status_event()
3995 struct scsi_device *sdev; in mptsas_scan_sas_topology() local
4009 sdev = scsi_device_lookup(ioc->sh, MPTSAS_RAID_CHANNEL, in mptsas_scan_sas_topology()
4011 if (sdev) { in mptsas_scan_sas_topology()
4012 scsi_device_put(sdev); in mptsas_scan_sas_topology()
4030 struct scsi_device *sdev; in mptsas_handle_queue_full_event() local
4081 shost_for_each_device(sdev, ioc->sh) { in mptsas_handle_queue_full_event()
4082 if (sdev->id == id && sdev->channel == channel) { in mptsas_handle_queue_full_event()
4083 if (current_depth > sdev->queue_depth) { in mptsas_handle_queue_full_event()
4084 sdev_printk(KERN_INFO, sdev, in mptsas_handle_queue_full_event()
4087 "depth (%d)\n", sdev->queue_depth, in mptsas_handle_queue_full_event()
4091 depth = scsi_track_queue_full(sdev, in mptsas_handle_queue_full_event()
4092 sdev->queue_depth - 1); in mptsas_handle_queue_full_event()
4094 sdev_printk(KERN_INFO, sdev, in mptsas_handle_queue_full_event()
4098 sdev_printk(KERN_INFO, sdev, in mptsas_handle_queue_full_event()
4102 sdev_printk(KERN_DEBUG, sdev, in mptsas_handle_queue_full_event()
4211 mptsas_reprobe_lun(struct scsi_device *sdev, void *data) in mptsas_reprobe_lun() argument
4215 sdev->no_uld_attach = data ? 1 : 0; in mptsas_reprobe_lun()
4216 rc = scsi_device_reprobe(sdev); in mptsas_reprobe_lun()
4551 scsi_remove_device(hot_plug_info->sdev); in mptsas_hotplug_work()
4552 scsi_device_put(hot_plug_info->sdev); in mptsas_hotplug_work()
4643 struct scsi_device *sdev = NULL; in mptsas_send_raid_event() local
4661 sdev = scsi_device_lookup(ioc->sh, MPTSAS_RAID_CHANNEL, in mptsas_send_raid_event()
4663 hot_plug_info.sdev = sdev; in mptsas_send_raid_event()
4664 if (sdev) in mptsas_send_raid_event()
4665 vdevice = sdev->hostdata; in mptsas_send_raid_event()
4701 if (!sdev) in mptsas_send_raid_event()
4707 if (sdev) { in mptsas_send_raid_event()
4708 scsi_device_put(sdev); in mptsas_send_raid_event()
4715 if (!sdev) in mptsas_send_raid_event()
4724 if (!sdev) in mptsas_send_raid_event()
4731 if (sdev) { in mptsas_send_raid_event()
4732 scsi_device_put(sdev); in mptsas_send_raid_event()
5108 struct scsi_device *sdev; in mptsas_volume_delete() local
5111 sdev = scsi_device_lookup(ioc->sh, MPTSAS_RAID_CHANNEL, id, 0); in mptsas_volume_delete()
5112 if (!sdev) in mptsas_volume_delete()
5124 scsi_remove_device(sdev); in mptsas_volume_delete()
5126 scsi_device_put(sdev); in mptsas_volume_delete()