Lines Matching defs:sdev

558 	struct scsi_device	*sdev;
597 shost_for_each_device(sdev, ioc->sh) {
598 starget = scsi_target(sdev);
968 struct scsi_device *sdev;
972 shost_for_each_device(sdev, ioc->sh) {
973 vdevice = sdev->hostdata;
1086 mptsas_block_io_sdev(struct scsi_device *sdev, void *data)
1088 scsi_device_set_state(sdev, SDEV_BLOCK);
1685 mptsas_slave_configure(struct scsi_device *sdev)
1687 struct Scsi_Host *host = sdev->host;
1690 VirtDevice *vdevice = sdev->hostdata;
1693 sdev_printk(KERN_INFO, sdev, "clearing deleted flag\n");
1701 if (sdev->channel == MPTSAS_RAID_CHANNEL) {
1702 mptsas_add_device_component_starget_ir(ioc, scsi_target(sdev));
1706 sas_read_port_mode_page(sdev);
1708 mptsas_add_device_component_starget(ioc, scsi_target(sdev));
1711 return mptscsih_slave_configure(sdev);
1842 mptsas_slave_alloc(struct scsi_device *sdev)
1844 struct Scsi_Host *host = sdev->host;
1859 starget = scsi_target(sdev);
1862 if (sdev->channel == MPTSAS_RAID_CHANNEL)
1865 rphy = dev_to_rphy(sdev->sdev_target->dev.parent);
1872 vdevice->lun = sdev->lun;
1879 sdev->no_uld_attach = 1;
1891 sdev->hostdata = vdevice;
3733 struct scsi_device *sdev;
3743 shost_for_each_device(sdev, ioc->sh) {
3744 vdevice = sdev->hostdata;
3759 atomic_read(&sdev->device_busy)));
3990 struct scsi_device *sdev;
4004 sdev = scsi_device_lookup(ioc->sh, MPTSAS_RAID_CHANNEL,
4006 if (sdev) {
4007 scsi_device_put(sdev);
4025 struct scsi_device *sdev;
4076 shost_for_each_device(sdev, ioc->sh) {
4077 if (sdev->id == id && sdev->channel == channel) {
4078 if (current_depth > sdev->queue_depth) {
4079 sdev_printk(KERN_INFO, sdev,
4082 "depth (%d)\n", sdev->queue_depth,
4086 depth = scsi_track_queue_full(sdev,
4087 sdev->queue_depth - 1);
4089 sdev_printk(KERN_INFO, sdev,
4093 sdev_printk(KERN_INFO, sdev,
4097 sdev_printk(KERN_DEBUG, sdev,
4206 mptsas_reprobe_lun(struct scsi_device *sdev, void *data)
4210 sdev->no_uld_attach = data ? 1 : 0;
4211 rc = scsi_device_reprobe(sdev);
4546 scsi_remove_device(hot_plug_info->sdev);
4547 scsi_device_put(hot_plug_info->sdev);
4638 struct scsi_device *sdev = NULL;
4656 sdev = scsi_device_lookup(ioc->sh, MPTSAS_RAID_CHANNEL,
4658 hot_plug_info.sdev = sdev;
4659 if (sdev)
4660 vdevice = sdev->hostdata;
4696 if (!sdev)
4702 if (sdev) {
4703 scsi_device_put(sdev);
4710 if (!sdev)
4719 if (!sdev)
4726 if (sdev) {
4727 scsi_device_put(sdev);
5103 struct scsi_device *sdev;
5106 sdev = scsi_device_lookup(ioc->sh, MPTSAS_RAID_CHANNEL, id, 0);
5107 if (!sdev)
5119 scsi_remove_device(sdev);
5121 scsi_device_put(sdev);