Lines Matching refs:starget
161 struct scsi_target *starget = scsi_target(sdev); in scsi_finish_command() local
174 if (atomic_read(&starget->target_blocked)) in scsi_finish_command()
175 atomic_set(&starget->target_blocked, 0); in scsi_finish_command()
631 void starget_for_each_device(struct scsi_target *starget, void *data, in starget_for_each_device() argument
634 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in starget_for_each_device()
638 if ((sdev->channel == starget->channel) && in starget_for_each_device()
639 (sdev->id == starget->id)) in starget_for_each_device()
659 void __starget_for_each_device(struct scsi_target *starget, void *data, in __starget_for_each_device() argument
662 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in __starget_for_each_device()
666 if ((sdev->channel == starget->channel) && in __starget_for_each_device()
667 (sdev->id == starget->id)) in __starget_for_each_device()
688 struct scsi_device *__scsi_device_lookup_by_target(struct scsi_target *starget, in __scsi_device_lookup_by_target() argument
693 list_for_each_entry(sdev, &starget->devices, same_target_siblings) { in __scsi_device_lookup_by_target()
713 struct scsi_device *scsi_device_lookup_by_target(struct scsi_target *starget, in scsi_device_lookup_by_target() argument
717 struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); in scsi_device_lookup_by_target()
721 sdev = __scsi_device_lookup_by_target(starget, lun); in scsi_device_lookup_by_target()