Lines Matching refs:starget

629 	} else if (!sas_device->starget) {  in _scsih_sas_device_add()
1235 _scsih_target_alloc(struct scsi_target *starget) in _scsih_target_alloc() argument
1237 struct Scsi_Host *shost = dev_to_shost(&starget->dev); in _scsih_target_alloc()
1250 starget->hostdata = sas_target_priv_data; in _scsih_target_alloc()
1251 sas_target_priv_data->starget = starget; in _scsih_target_alloc()
1255 if (starget->channel == RAID_CHANNEL) { in _scsih_target_alloc()
1257 raid_device = _scsih_raid_device_find_by_id(ioc, starget->id, in _scsih_target_alloc()
1258 starget->channel); in _scsih_target_alloc()
1265 raid_device->starget = starget; in _scsih_target_alloc()
1273 rphy = dev_to_rphy(starget->dev.parent); in _scsih_target_alloc()
1280 sas_device->starget = starget; in _scsih_target_alloc()
1281 sas_device->id = starget->id; in _scsih_target_alloc()
1282 sas_device->channel = starget->channel; in _scsih_target_alloc()
1299 _scsih_target_destroy(struct scsi_target *starget) in _scsih_target_destroy() argument
1301 struct Scsi_Host *shost = dev_to_shost(&starget->dev); in _scsih_target_destroy()
1309 sas_target_priv_data = starget->hostdata; in _scsih_target_destroy()
1313 if (starget->channel == RAID_CHANNEL) { in _scsih_target_destroy()
1315 raid_device = _scsih_raid_device_find_by_id(ioc, starget->id, in _scsih_target_destroy()
1316 starget->channel); in _scsih_target_destroy()
1318 raid_device->starget = NULL; in _scsih_target_destroy()
1326 rphy = dev_to_rphy(starget->dev.parent); in _scsih_target_destroy()
1329 if (sas_device && (sas_device->starget == starget) && in _scsih_target_destroy()
1330 (sas_device->id == starget->id) && in _scsih_target_destroy()
1331 (sas_device->channel == starget->channel)) in _scsih_target_destroy()
1332 sas_device->starget = NULL; in _scsih_target_destroy()
1338 starget->hostdata = NULL; in _scsih_target_destroy()
1355 struct scsi_target *starget; in _scsih_slave_alloc() local
1368 starget = scsi_target(sdev); in _scsih_slave_alloc()
1369 sas_target_priv_data = starget->hostdata; in _scsih_slave_alloc()
1376 shost = dev_to_shost(&starget->dev); in _scsih_slave_alloc()
1378 if (starget->channel == RAID_CHANNEL) { in _scsih_slave_alloc()
1381 starget->id, starget->channel); in _scsih_slave_alloc()
1391 if (sas_device && (sas_device->starget == NULL)) { in _scsih_slave_alloc()
1395 sas_device->starget = starget; in _scsih_slave_alloc()
1413 struct scsi_target *starget; in _scsih_slave_destroy() local
1422 starget = scsi_target(sdev); in _scsih_slave_destroy()
1423 sas_target_priv_data = starget->hostdata; in _scsih_slave_destroy()
1426 shost = dev_to_shost(&starget->dev); in _scsih_slave_destroy()
1434 sas_device->starget = NULL; in _scsih_slave_destroy()
2492 struct scsi_target *starget = scmd->device->sdev_target; in _scsih_tm_display_info() local
2493 struct MPT2SAS_TARGET *priv_target = starget->hostdata; in _scsih_tm_display_info()
2507 starget_printk(KERN_INFO, starget, "%s handle(0x%04x), " in _scsih_tm_display_info()
2517 starget_printk(KERN_INFO, starget, in _scsih_tm_display_info()
2523 starget_printk(KERN_INFO, starget, in _scsih_tm_display_info()
2528 starget_printk(KERN_INFO, starget, in _scsih_tm_display_info()
2612 struct scsi_target *starget = scmd->device->sdev_target; in _scsih_dev_reset() local
2614 starget_printk(KERN_INFO, starget, "attempting device reset! " in _scsih_dev_reset()
2620 starget_printk(KERN_INFO, starget, "device been deleted! " in _scsih_dev_reset()
2672 struct scsi_target *starget = scmd->device->sdev_target; in _scsih_target_reset() local
2674 starget_printk(KERN_INFO, starget, "attempting target reset! " in _scsih_target_reset()
2680 starget_printk(KERN_INFO, starget, "target been deleted! " in _scsih_target_reset()
2712 starget_printk(KERN_INFO, starget, "target reset: %s scmd(%p)\n", in _scsih_target_reset()
3114 if (sas_device && sas_device->starget && in _scsih_tm_tr_send()
3115 sas_device->starget->hostdata) { in _scsih_tm_tr_send()
3116 sas_target_priv_data = sas_device->starget->hostdata; in _scsih_tm_tr_send()
3514 if (raid_device && raid_device->starget && in _scsih_set_volume_delete_flag()
3515 raid_device->starget->hostdata) { in _scsih_set_volume_delete_flag()
3517 raid_device->starget->hostdata; in _scsih_set_volume_delete_flag()
4072 struct scsi_target *starget = scmd->device->sdev_target; in _scsih_scsi_ioc_info() local
4073 struct MPT2SAS_TARGET *priv_target = starget->hostdata; in _scsih_scsi_ioc_info()
4363 struct scsi_target *starget; in _scsih_smart_predicted_fault() local
4378 starget = sas_device->starget; in _scsih_smart_predicted_fault()
4379 sas_target_priv_data = starget->hostdata; in _scsih_smart_predicted_fault()
4386 starget_printk(KERN_WARNING, starget, "predicted fault\n"); in _scsih_smart_predicted_fault()
5131 struct scsi_target *starget; in _scsih_check_device() local
5162 starget = sas_device->starget; in _scsih_check_device()
5163 sas_target_priv_data = starget->hostdata; in _scsih_check_device()
5164 starget_printk(KERN_INFO, starget, "handle changed from(0x%04x)" in _scsih_check_device()
5326 if (sas_device->starget && sas_device->starget->hostdata) { in _scsih_remove_device()
5327 sas_target_priv_data = sas_device->starget->hostdata; in _scsih_remove_device()
5722 if (!sas_device || !sas_device->starget) { in _scsih_sas_device_status_change_event()
5727 target_priv_data = sas_device->starget->hostdata; in _scsih_sas_device_status_change_event()
6086 struct scsi_target *starget = NULL; in _scsih_sas_volume_delete() local
6091 if (raid_device->starget) { in _scsih_sas_volume_delete()
6092 starget = raid_device->starget; in _scsih_sas_volume_delete()
6093 sas_target_priv_data = starget->hostdata; in _scsih_sas_volume_delete()
6103 if (starget) in _scsih_sas_volume_delete()
6104 scsi_remove_target(&starget->dev); in _scsih_sas_volume_delete()
6120 struct scsi_target *starget = NULL; in _scsih_sas_pd_expose() local
6131 if (sas_device->starget && sas_device->starget->hostdata) { in _scsih_sas_pd_expose()
6132 starget = sas_device->starget; in _scsih_sas_pd_expose()
6133 sas_target_priv_data = starget->hostdata; in _scsih_sas_pd_expose()
6143 if (starget) in _scsih_sas_pd_expose()
6144 starget_for_each_device(starget, NULL, _scsih_reprobe_lun); in _scsih_sas_pd_expose()
6160 struct scsi_target *starget = NULL; in _scsih_sas_pd_hide() local
6176 if (sas_device->starget && sas_device->starget->hostdata) { in _scsih_sas_pd_hide()
6177 starget = sas_device->starget; in _scsih_sas_pd_hide()
6178 sas_target_priv_data = starget->hostdata; in _scsih_sas_pd_hide()
6190 if (starget) in _scsih_sas_pd_hide()
6191 starget_for_each_device(starget, (void *)1, _scsih_reprobe_lun); in _scsih_sas_pd_hide()
6705 struct scsi_target *starget; in _scsih_mark_responding_sas_device() local
6714 starget = sas_device->starget; in _scsih_mark_responding_sas_device()
6715 if (starget && starget->hostdata) { in _scsih_mark_responding_sas_device()
6716 sas_target_priv_data = starget->hostdata; in _scsih_mark_responding_sas_device()
6721 if (starget) in _scsih_mark_responding_sas_device()
6722 starget_printk(KERN_INFO, starget, in _scsih_mark_responding_sas_device()
6807 struct scsi_target *starget; in _scsih_mark_responding_raid_device() local
6813 if (raid_device->wwid == wwid && raid_device->starget) { in _scsih_mark_responding_raid_device()
6814 starget = raid_device->starget; in _scsih_mark_responding_raid_device()
6815 if (starget && starget->hostdata) { in _scsih_mark_responding_raid_device()
6816 sas_target_priv_data = starget->hostdata; in _scsih_mark_responding_raid_device()
6822 starget_printk(KERN_INFO, raid_device->starget, in _scsih_mark_responding_raid_device()
7833 if (raid_device->starget) { in _scsih_remove()
7835 raid_device->starget->hostdata; in _scsih_remove()
7837 scsi_remove_target(&raid_device->starget->dev); in _scsih_remove()
7935 } else if (!sas_device->starget) { in _scsih_probe_boot_devices()
7960 if (raid_device->starget) in _scsih_probe_raid()
7993 } else if (!sas_device->starget) { in _scsih_probe_sas()