Lines Matching defs:starget
4782 * @starget: scsi target struct
4787 static struct ipr_resource_entry *ipr_find_starget(struct scsi_target *starget)
4789 struct Scsi_Host *shost = dev_to_shost(&starget->dev);
4794 if ((res->bus == starget->channel) &&
4795 (res->target == starget->id)) {
4807 * @starget: scsi target struct
4815 static int ipr_target_alloc(struct scsi_target *starget)
4817 struct Scsi_Host *shost = dev_to_shost(&starget->dev);
4825 res = ipr_find_starget(starget);
4826 starget->hostdata = NULL;
4843 starget->hostdata = sata_port;
4856 * @starget: scsi target struct
4862 static void ipr_target_destroy(struct scsi_target *starget)
4864 struct ipr_sata_port *sata_port = starget->hostdata;
4865 struct Scsi_Host *shost = dev_to_shost(&starget->dev);
4869 if (!ipr_find_starget(starget)) {
4870 if (starget->channel == IPR_ARRAY_VIRTUAL_BUS)
4871 clear_bit(starget->id, ioa_cfg->array_ids);
4872 else if (starget->channel == IPR_VSET_VIRTUAL_BUS)
4873 clear_bit(starget->id, ioa_cfg->vset_ids);
4874 else if (starget->channel == 0)
4875 clear_bit(starget->id, ioa_cfg->target_ids);
4880 starget->hostdata = NULL;