Lines Matching refs:starget

673 	} else if (!sas_device->starget) {  in _scsih_sas_device_add()
1111 _scsih_target_alloc(struct scsi_target *starget) in _scsih_target_alloc() argument
1113 struct Scsi_Host *shost = dev_to_shost(&starget->dev); in _scsih_target_alloc()
1126 starget->hostdata = sas_target_priv_data; in _scsih_target_alloc()
1127 sas_target_priv_data->starget = starget; in _scsih_target_alloc()
1131 if (starget->channel == RAID_CHANNEL) { in _scsih_target_alloc()
1133 raid_device = _scsih_raid_device_find_by_id(ioc, starget->id, in _scsih_target_alloc()
1134 starget->channel); in _scsih_target_alloc()
1139 raid_device->starget = starget; in _scsih_target_alloc()
1147 rphy = dev_to_rphy(starget->dev.parent); in _scsih_target_alloc()
1154 sas_device->starget = starget; in _scsih_target_alloc()
1155 sas_device->id = starget->id; in _scsih_target_alloc()
1156 sas_device->channel = starget->channel; in _scsih_target_alloc()
1175 _scsih_target_destroy(struct scsi_target *starget) in _scsih_target_destroy() argument
1177 struct Scsi_Host *shost = dev_to_shost(&starget->dev); in _scsih_target_destroy()
1185 sas_target_priv_data = starget->hostdata; in _scsih_target_destroy()
1189 if (starget->channel == RAID_CHANNEL) { in _scsih_target_destroy()
1191 raid_device = _scsih_raid_device_find_by_id(ioc, starget->id, in _scsih_target_destroy()
1192 starget->channel); in _scsih_target_destroy()
1194 raid_device->starget = NULL; in _scsih_target_destroy()
1202 rphy = dev_to_rphy(starget->dev.parent); in _scsih_target_destroy()
1205 if (sas_device && (sas_device->starget == starget) && in _scsih_target_destroy()
1206 (sas_device->id == starget->id) && in _scsih_target_destroy()
1207 (sas_device->channel == starget->channel)) in _scsih_target_destroy()
1208 sas_device->starget = NULL; in _scsih_target_destroy()
1214 starget->hostdata = NULL; in _scsih_target_destroy()
1231 struct scsi_target *starget; in _scsih_slave_alloc() local
1244 starget = scsi_target(sdev); in _scsih_slave_alloc()
1245 sas_target_priv_data = starget->hostdata; in _scsih_slave_alloc()
1252 shost = dev_to_shost(&starget->dev); in _scsih_slave_alloc()
1254 if (starget->channel == RAID_CHANNEL) { in _scsih_slave_alloc()
1257 starget->id, starget->channel); in _scsih_slave_alloc()
1267 if (sas_device && (sas_device->starget == NULL)) { in _scsih_slave_alloc()
1271 sas_device->starget = starget; in _scsih_slave_alloc()
1289 struct scsi_target *starget; in _scsih_slave_destroy() local
1298 starget = scsi_target(sdev); in _scsih_slave_destroy()
1299 sas_target_priv_data = starget->hostdata; in _scsih_slave_destroy()
1302 shost = dev_to_shost(&starget->dev); in _scsih_slave_destroy()
1310 sas_device->starget = NULL; in _scsih_slave_destroy()
2158 struct scsi_target *starget = scmd->device->sdev_target; in _scsih_tm_display_info() local
2159 struct MPT3SAS_TARGET *priv_target = starget->hostdata; in _scsih_tm_display_info()
2170 starget_printk(KERN_INFO, starget, in _scsih_tm_display_info()
2181 starget_printk(KERN_INFO, starget, in _scsih_tm_display_info()
2187 starget_printk(KERN_INFO, starget, in _scsih_tm_display_info()
2192 starget_printk(KERN_INFO, starget, in _scsih_tm_display_info()
2334 struct scsi_target *starget = scmd->device->sdev_target; in _scsih_target_reset() local
2336 starget_printk(KERN_INFO, starget, "attempting target reset! scmd(%p)\n", in _scsih_target_reset()
2342 starget_printk(KERN_INFO, starget, "target been deleted! scmd(%p)\n", in _scsih_target_reset()
2374 starget_printk(KERN_INFO, starget, "target reset: %s scmd(%p)\n", in _scsih_target_reset()
2796 if (sas_device && sas_device->starget && in _scsih_tm_tr_send()
2797 sas_device->starget->hostdata) { in _scsih_tm_tr_send()
2798 sas_target_priv_data = sas_device->starget->hostdata; in _scsih_tm_tr_send()
3208 if (raid_device && raid_device->starget && in _scsih_set_volume_delete_flag()
3209 raid_device->starget->hostdata) { in _scsih_set_volume_delete_flag()
3211 raid_device->starget->hostdata; in _scsih_set_volume_delete_flag()
3689 struct scsi_target *starget = scmd->device->sdev_target; in _scsih_scsi_ioc_info() local
3690 struct MPT3SAS_TARGET *priv_target = starget->hostdata; in _scsih_scsi_ioc_info()
3979 struct scsi_target *starget; in _scsih_smart_predicted_fault() local
3994 starget = sas_device->starget; in _scsih_smart_predicted_fault()
3995 sas_target_priv_data = starget->hostdata; in _scsih_smart_predicted_fault()
4002 starget_printk(KERN_WARNING, starget, "predicted fault\n"); in _scsih_smart_predicted_fault()
4749 struct scsi_target *starget; in _scsih_check_device() local
4784 starget = sas_device->starget; in _scsih_check_device()
4785 sas_target_priv_data = starget->hostdata; in _scsih_check_device()
4786 starget_printk(KERN_INFO, starget, in _scsih_check_device()
4947 if (sas_device->starget && sas_device->starget->hostdata) { in _scsih_remove_device()
4948 sas_target_priv_data = sas_device->starget->hostdata; in _scsih_remove_device()
5297 if (!sas_device || !sas_device->starget) { in _scsih_sas_device_status_change_event()
5302 target_priv_data = sas_device->starget->hostdata; in _scsih_sas_device_status_change_event()
5756 struct scsi_target *starget = NULL; in _scsih_sas_volume_delete() local
5761 if (raid_device->starget) { in _scsih_sas_volume_delete()
5762 starget = raid_device->starget; in _scsih_sas_volume_delete()
5763 sas_target_priv_data = starget->hostdata; in _scsih_sas_volume_delete()
5773 if (starget) in _scsih_sas_volume_delete()
5774 scsi_remove_target(&starget->dev); in _scsih_sas_volume_delete()
5790 struct scsi_target *starget = NULL; in _scsih_sas_pd_expose() local
5801 if (sas_device->starget && sas_device->starget->hostdata) { in _scsih_sas_pd_expose()
5802 starget = sas_device->starget; in _scsih_sas_pd_expose()
5803 sas_target_priv_data = starget->hostdata; in _scsih_sas_pd_expose()
5813 if (starget) in _scsih_sas_pd_expose()
5814 starget_for_each_device(starget, NULL, _scsih_reprobe_lun); in _scsih_sas_pd_expose()
5830 struct scsi_target *starget = NULL; in _scsih_sas_pd_hide() local
5846 if (sas_device->starget && sas_device->starget->hostdata) { in _scsih_sas_pd_hide()
5847 starget = sas_device->starget; in _scsih_sas_pd_hide()
5848 sas_target_priv_data = starget->hostdata; in _scsih_sas_pd_hide()
5861 if (starget) in _scsih_sas_pd_hide()
5862 starget_for_each_device(starget, (void *)1, _scsih_reprobe_lun); in _scsih_sas_pd_hide()
6374 struct scsi_target *starget; in _scsih_mark_responding_sas_device() local
6383 starget = sas_device->starget; in _scsih_mark_responding_sas_device()
6384 if (starget && starget->hostdata) { in _scsih_mark_responding_sas_device()
6385 sas_target_priv_data = starget->hostdata; in _scsih_mark_responding_sas_device()
6390 if (starget) in _scsih_mark_responding_sas_device()
6391 starget_printk(KERN_INFO, starget, in _scsih_mark_responding_sas_device()
6474 struct scsi_target *starget; in _scsih_mark_responding_raid_device() local
6480 if (raid_device->wwid == wwid && raid_device->starget) { in _scsih_mark_responding_raid_device()
6481 starget = raid_device->starget; in _scsih_mark_responding_raid_device()
6482 if (starget && starget->hostdata) { in _scsih_mark_responding_raid_device()
6483 sas_target_priv_data = starget->hostdata; in _scsih_mark_responding_raid_device()
6489 starget_printk(KERN_INFO, raid_device->starget, in _scsih_mark_responding_raid_device()
7438 if (raid_device->starget) { in _scsih_remove()
7440 raid_device->starget->hostdata; in _scsih_remove()
7442 scsi_remove_target(&raid_device->starget->dev); in _scsih_remove()
7567 } else if (!sas_device->starget) { in _scsih_probe_boot_devices()
7592 if (raid_device->starget) in _scsih_probe_raid()
7622 } else if (!sas_device->starget) { in _scsih_probe_sas()