• Home
  • Raw
  • Download

Lines Matching refs:starget

421 		if (tgtdev->starget && tgtdev->starget->hostdata) {  in mpi3mr_invalidate_devhandles()
422 tgt_priv = tgtdev->starget->hostdata; in mpi3mr_invalidate_devhandles()
546 struct scsi_target *starget = (struct scsi_target *)data; in mpi3mr_count_tgt_pending() local
547 struct mpi3mr_stgt_priv_data *stgt_priv_data = starget->hostdata; in mpi3mr_count_tgt_pending()
555 if (scmd->device && (scsi_target(scmd->device) == starget)) in mpi3mr_count_tgt_pending()
818 if (tgtdev->starget && tgtdev->starget->hostdata) { in mpi3mr_set_io_divert_for_all_vd_in_tg()
819 tgt_priv = tgtdev->starget->hostdata; in mpi3mr_set_io_divert_for_all_vd_in_tg()
863 if (tgtdev->starget && tgtdev->starget->hostdata) { in mpi3mr_remove_tgtdev_from_host()
864 tgt_priv = tgtdev->starget->hostdata; in mpi3mr_remove_tgtdev_from_host()
871 if (tgtdev->starget) { in mpi3mr_remove_tgtdev_from_host()
874 scsi_remove_target(&tgtdev->starget->dev); in mpi3mr_remove_tgtdev_from_host()
929 if (!tgtdev->starget) in mpi3mr_report_tgtdev_to_host()
959 struct scsi_target *starget = scsi_target(sdev); in mpi3mr_change_queue_depth() local
960 struct Scsi_Host *shost = dev_to_shost(&starget->dev); in mpi3mr_change_queue_depth()
1051 else if (tgtdev->starget) in mpi3mr_rfresh_tgtdevs()
1052 starget_for_each_device(tgtdev->starget, in mpi3mr_rfresh_tgtdevs()
1106 if (tgtdev->starget && tgtdev->starget->hostdata) { in mpi3mr_update_tgtdev()
1108 tgtdev->starget->hostdata; in mpi3mr_update_tgtdev()
1290 if (tgtdev->starget && tgtdev->starget->hostdata) { in mpi3mr_devstatuschg_evt_bh()
1335 if (!tgtdev->is_hidden && tgtdev->host_exposed && tgtdev->starget) in mpi3mr_devinfochg_evt_bh()
1336 starget_for_each_device(tgtdev->starget, (void *)tgtdev, in mpi3mr_devinfochg_evt_bh()
1837 if (tgtdev->starget && tgtdev->starget->hostdata) { in mpi3mr_set_qd_for_all_vd_in_tg()
1838 tgt_priv = tgtdev->starget->hostdata; in mpi3mr_set_qd_for_all_vd_in_tg()
1844 starget_for_each_device(tgtdev->starget, in mpi3mr_set_qd_for_all_vd_in_tg()
2465 if (tgtdev && tgtdev->starget && tgtdev->starget->hostdata) in mpi3mr_pcietopochg_evt_th()
2467 tgtdev->starget->hostdata; in mpi3mr_pcietopochg_evt_th()
2532 if (tgtdev && tgtdev->starget && tgtdev->starget->hostdata) in mpi3mr_sastopochg_evt_th()
2534 tgtdev->starget->hostdata; in mpi3mr_sastopochg_evt_th()
2621 if (tgtdev->starget && tgtdev->starget->hostdata) { in mpi3mr_devstatuschg_evt_th()
2623 tgtdev->starget->hostdata; in mpi3mr_devstatuschg_evt_th()
3643 if (tgtdev && tgtdev->starget && tgtdev->starget->hostdata) in mpi3mr_issue_tm()
3645 tgtdev->starget->hostdata; in mpi3mr_issue_tm()
3738 (void *)scsi_tgt_priv_data->starget); in mpi3mr_issue_tm()
4197 struct scsi_target *starget; in mpi3mr_slave_destroy() local
4203 starget = scsi_target(sdev); in mpi3mr_slave_destroy()
4204 shost = dev_to_shost(&starget->dev); in mpi3mr_slave_destroy()
4206 scsi_tgt_priv_data = starget->hostdata; in mpi3mr_slave_destroy()
4211 if (starget->channel == mrioc->scsi_device_channel) in mpi3mr_slave_destroy()
4212 tgt_dev = __mpi3mr_get_tgtdev_by_perst_id(mrioc, starget->id); in mpi3mr_slave_destroy()
4213 else if (mrioc->sas_transport_enabled && !starget->channel) { in mpi3mr_slave_destroy()
4214 rphy = dev_to_rphy(starget->dev.parent); in mpi3mr_slave_destroy()
4220 tgt_dev->starget = NULL; in mpi3mr_slave_destroy()
4237 static void mpi3mr_target_destroy(struct scsi_target *starget) in mpi3mr_target_destroy() argument
4245 if (!starget->hostdata) in mpi3mr_target_destroy()
4248 shost = dev_to_shost(&starget->dev); in mpi3mr_target_destroy()
4250 scsi_tgt_priv_data = starget->hostdata; in mpi3mr_target_destroy()
4254 if (tgt_dev && (tgt_dev->starget == starget) && in mpi3mr_target_destroy()
4255 (tgt_dev->perst_id == starget->id)) in mpi3mr_target_destroy()
4256 tgt_dev->starget = NULL; in mpi3mr_target_destroy()
4265 kfree(starget->hostdata); in mpi3mr_target_destroy()
4266 starget->hostdata = NULL; in mpi3mr_target_destroy()
4280 struct scsi_target *starget; in mpi3mr_slave_configure() local
4288 starget = scsi_target(sdev); in mpi3mr_slave_configure()
4289 shost = dev_to_shost(&starget->dev); in mpi3mr_slave_configure()
4293 if (starget->channel == mrioc->scsi_device_channel) in mpi3mr_slave_configure()
4294 tgt_dev = __mpi3mr_get_tgtdev_by_perst_id(mrioc, starget->id); in mpi3mr_slave_configure()
4295 else if (mrioc->sas_transport_enabled && !starget->channel) { in mpi3mr_slave_configure()
4296 rphy = dev_to_rphy(starget->dev.parent); in mpi3mr_slave_configure()
4350 struct scsi_target *starget; in mpi3mr_slave_alloc() local
4354 starget = scsi_target(sdev); in mpi3mr_slave_alloc()
4355 shost = dev_to_shost(&starget->dev); in mpi3mr_slave_alloc()
4357 scsi_tgt_priv_data = starget->hostdata; in mpi3mr_slave_alloc()
4361 if (starget->channel == mrioc->scsi_device_channel) in mpi3mr_slave_alloc()
4362 tgt_dev = __mpi3mr_get_tgtdev_by_perst_id(mrioc, starget->id); in mpi3mr_slave_alloc()
4363 else if (mrioc->sas_transport_enabled && !starget->channel) { in mpi3mr_slave_alloc()
4364 rphy = dev_to_rphy(starget->dev.parent); in mpi3mr_slave_alloc()
4370 if (tgt_dev->starget == NULL) in mpi3mr_slave_alloc()
4371 tgt_dev->starget = starget; in mpi3mr_slave_alloc()
4402 static int mpi3mr_target_alloc(struct scsi_target *starget) in mpi3mr_target_alloc() argument
4404 struct Scsi_Host *shost = dev_to_shost(&starget->dev); in mpi3mr_target_alloc()
4417 starget->hostdata = scsi_tgt_priv_data; in mpi3mr_target_alloc()
4421 if (starget->channel == mrioc->scsi_device_channel) { in mpi3mr_target_alloc()
4422 tgt_dev = __mpi3mr_get_tgtdev_by_perst_id(mrioc, starget->id); in mpi3mr_target_alloc()
4427 } else if (mrioc->sas_transport_enabled && !starget->channel) { in mpi3mr_target_alloc()
4428 rphy = dev_to_rphy(starget->dev.parent); in mpi3mr_target_alloc()
4439 scsi_tgt_priv_data->starget = starget; in mpi3mr_target_alloc()
4444 tgt_dev->starget = starget; in mpi3mr_target_alloc()