Lines Matching refs:starget
170 struct scsi_target *starget = scsi_target(sdev); in scsi_finish_command() local
183 if (atomic_read(&starget->target_blocked)) in scsi_finish_command()
184 atomic_set(&starget->target_blocked, 0); in scsi_finish_command()
601 void starget_for_each_device(struct scsi_target *starget, void *data, in starget_for_each_device() argument
604 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in starget_for_each_device()
608 if ((sdev->channel == starget->channel) && in starget_for_each_device()
609 (sdev->id == starget->id)) in starget_for_each_device()
629 void __starget_for_each_device(struct scsi_target *starget, void *data, in __starget_for_each_device() argument
632 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in __starget_for_each_device()
636 if ((sdev->channel == starget->channel) && in __starget_for_each_device()
637 (sdev->id == starget->id)) in __starget_for_each_device()
658 struct scsi_device *__scsi_device_lookup_by_target(struct scsi_target *starget, in __scsi_device_lookup_by_target() argument
663 list_for_each_entry(sdev, &starget->devices, same_target_siblings) { in __scsi_device_lookup_by_target()
683 struct scsi_device *scsi_device_lookup_by_target(struct scsi_target *starget, in scsi_device_lookup_by_target() argument
687 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in scsi_device_lookup_by_target()
691 sdev = __scsi_device_lookup_by_target(starget, lun); in scsi_device_lookup_by_target()