Lines Matching refs:starget

796 	} else if (!sas_device->starget) {  in _scsih_sas_device_add()
1250 scsih_target_alloc(struct scsi_target *starget) in scsih_target_alloc() argument
1252 struct Scsi_Host *shost = dev_to_shost(&starget->dev); in scsih_target_alloc()
1265 starget->hostdata = sas_target_priv_data; in scsih_target_alloc()
1266 sas_target_priv_data->starget = starget; in scsih_target_alloc()
1270 if (starget->channel == RAID_CHANNEL) { in scsih_target_alloc()
1272 raid_device = _scsih_raid_device_find_by_id(ioc, starget->id, in scsih_target_alloc()
1273 starget->channel); in scsih_target_alloc()
1280 raid_device->starget = starget; in scsih_target_alloc()
1288 rphy = dev_to_rphy(starget->dev.parent); in scsih_target_alloc()
1296 sas_device->starget = starget; in scsih_target_alloc()
1297 sas_device->id = starget->id; in scsih_target_alloc()
1298 sas_device->channel = starget->channel; in scsih_target_alloc()
1317 scsih_target_destroy(struct scsi_target *starget) in scsih_target_destroy() argument
1319 struct Scsi_Host *shost = dev_to_shost(&starget->dev); in scsih_target_destroy()
1327 sas_target_priv_data = starget->hostdata; in scsih_target_destroy()
1331 if (starget->channel == RAID_CHANNEL) { in scsih_target_destroy()
1333 raid_device = _scsih_raid_device_find_by_id(ioc, starget->id, in scsih_target_destroy()
1334 starget->channel); in scsih_target_destroy()
1336 raid_device->starget = NULL; in scsih_target_destroy()
1344 rphy = dev_to_rphy(starget->dev.parent); in scsih_target_destroy()
1346 if (sas_device && (sas_device->starget == starget) && in scsih_target_destroy()
1347 (sas_device->id == starget->id) && in scsih_target_destroy()
1348 (sas_device->channel == starget->channel)) in scsih_target_destroy()
1349 sas_device->starget = NULL; in scsih_target_destroy()
1364 starget->hostdata = NULL; in scsih_target_destroy()
1381 struct scsi_target *starget; in scsih_slave_alloc() local
1394 starget = scsi_target(sdev); in scsih_slave_alloc()
1395 sas_target_priv_data = starget->hostdata; in scsih_slave_alloc()
1402 shost = dev_to_shost(&starget->dev); in scsih_slave_alloc()
1404 if (starget->channel == RAID_CHANNEL) { in scsih_slave_alloc()
1407 starget->id, starget->channel); in scsih_slave_alloc()
1417 if (sas_device && (sas_device->starget == NULL)) { in scsih_slave_alloc()
1421 sas_device->starget = starget; in scsih_slave_alloc()
1443 struct scsi_target *starget; in scsih_slave_destroy() local
1452 starget = scsi_target(sdev); in scsih_slave_destroy()
1453 sas_target_priv_data = starget->hostdata; in scsih_slave_destroy()
1456 shost = dev_to_shost(&starget->dev); in scsih_slave_destroy()
1464 sas_device->starget = NULL; in scsih_slave_destroy()
2344 struct scsi_target *starget = scmd->device->sdev_target; in _scsih_tm_display_info() local
2345 struct MPT3SAS_TARGET *priv_target = starget->hostdata; in _scsih_tm_display_info()
2359 starget_printk(KERN_INFO, starget, in _scsih_tm_display_info()
2369 starget_printk(KERN_INFO, starget, in _scsih_tm_display_info()
2375 starget_printk(KERN_INFO, starget, in _scsih_tm_display_info()
2381 starget_printk(KERN_INFO, starget, in _scsih_tm_display_info()
2387 starget_printk(KERN_INFO, starget, in _scsih_tm_display_info()
2472 struct scsi_target *starget = scmd->device->sdev_target; in scsih_dev_reset() local
2473 struct MPT3SAS_TARGET *target_priv_data = starget->hostdata; in scsih_dev_reset()
2534 struct scsi_target *starget = scmd->device->sdev_target; in scsih_target_reset() local
2535 struct MPT3SAS_TARGET *target_priv_data = starget->hostdata; in scsih_target_reset()
2537 starget_printk(KERN_INFO, starget, "attempting target reset! scmd(%p)\n", in scsih_target_reset()
2543 starget_printk(KERN_INFO, starget, "target been deleted! scmd(%p)\n", in scsih_target_reset()
2573 starget_printk(KERN_INFO, starget, "target reset: %s scmd(%p)\n", in scsih_target_reset()
3102 if (sas_device && sas_device->starget && in _scsih_tm_tr_send()
3103 sas_device->starget->hostdata) { in _scsih_tm_tr_send()
3104 sas_target_priv_data = sas_device->starget->hostdata; in _scsih_tm_tr_send()
3530 if (raid_device && raid_device->starget && in _scsih_set_volume_delete_flag()
3531 raid_device->starget->hostdata) { in _scsih_set_volume_delete_flag()
3533 raid_device->starget->hostdata; in _scsih_set_volume_delete_flag()
4021 struct scsi_target *starget = scmd->device->sdev_target; in _scsih_scsi_ioc_info() local
4022 struct MPT3SAS_TARGET *priv_target = starget->hostdata; in _scsih_scsi_ioc_info()
4326 struct scsi_target *starget; in _scsih_smart_predicted_fault() local
4340 starget = sas_device->starget; in _scsih_smart_predicted_fault()
4341 sas_target_priv_data = starget->hostdata; in _scsih_smart_predicted_fault()
4348 starget_printk(KERN_INFO, starget, "predicted fault, " in _scsih_smart_predicted_fault()
4353 starget_printk(KERN_WARNING, starget, "predicted fault, " in _scsih_smart_predicted_fault()
5139 struct scsi_target *starget; in _scsih_check_device() local
5172 starget = sas_device->starget; in _scsih_check_device()
5173 sas_target_priv_data = starget->hostdata; in _scsih_check_device()
5174 starget_printk(KERN_INFO, starget, in _scsih_check_device()
5372 if (sas_device->starget && sas_device->starget->hostdata) { in _scsih_remove_device()
5373 sas_target_priv_data = sas_device->starget->hostdata; in _scsih_remove_device()
5736 if (!sas_device || !sas_device->starget) in _scsih_sas_device_status_change_event()
5739 target_priv_data = sas_device->starget->hostdata; in _scsih_sas_device_status_change_event()
6193 struct scsi_target *starget = NULL; in _scsih_sas_volume_delete() local
6198 if (raid_device->starget) { in _scsih_sas_volume_delete()
6199 starget = raid_device->starget; in _scsih_sas_volume_delete()
6200 sas_target_priv_data = starget->hostdata; in _scsih_sas_volume_delete()
6210 if (starget) in _scsih_sas_volume_delete()
6211 scsi_remove_target(&starget->dev); in _scsih_sas_volume_delete()
6227 struct scsi_target *starget = NULL; in _scsih_sas_pd_expose() local
6238 if (sas_device->starget && sas_device->starget->hostdata) { in _scsih_sas_pd_expose()
6239 starget = sas_device->starget; in _scsih_sas_pd_expose()
6240 sas_target_priv_data = starget->hostdata; in _scsih_sas_pd_expose()
6250 if (starget) in _scsih_sas_pd_expose()
6251 starget_for_each_device(starget, NULL, _scsih_reprobe_lun); in _scsih_sas_pd_expose()
6269 struct scsi_target *starget = NULL; in _scsih_sas_pd_hide() local
6285 if (sas_device->starget && sas_device->starget->hostdata) { in _scsih_sas_pd_hide()
6286 starget = sas_device->starget; in _scsih_sas_pd_hide()
6287 sas_target_priv_data = starget->hostdata; in _scsih_sas_pd_hide()
6301 if (starget) in _scsih_sas_pd_hide()
6302 starget_for_each_device(starget, (void *)1, _scsih_reprobe_lun); in _scsih_sas_pd_hide()
6813 struct scsi_target *starget; in _scsih_mark_responding_sas_device() local
6822 starget = sas_device->starget; in _scsih_mark_responding_sas_device()
6823 if (starget && starget->hostdata) { in _scsih_mark_responding_sas_device()
6824 sas_target_priv_data = starget->hostdata; in _scsih_mark_responding_sas_device()
6829 if (starget) { in _scsih_mark_responding_sas_device()
6830 starget_printk(KERN_INFO, starget, in _scsih_mark_responding_sas_device()
6837 starget_printk(KERN_INFO, starget, in _scsih_mark_responding_sas_device()
6933 struct scsi_target *starget; in _scsih_mark_responding_raid_device() local
6939 if (raid_device->wwid == wwid && raid_device->starget) { in _scsih_mark_responding_raid_device()
6940 starget = raid_device->starget; in _scsih_mark_responding_raid_device()
6941 if (starget && starget->hostdata) { in _scsih_mark_responding_raid_device()
6942 sas_target_priv_data = starget->hostdata; in _scsih_mark_responding_raid_device()
6948 starget_printk(KERN_INFO, raid_device->starget, in _scsih_mark_responding_raid_device()
7950 if (raid_device->starget) { in scsih_remove()
7952 raid_device->starget->hostdata; in scsih_remove()
7954 scsi_remove_target(&raid_device->starget->dev); in scsih_remove()
8083 } else if (!sas_device->starget) { in _scsih_probe_boot_devices()
8108 if (raid_device->starget) in _scsih_probe_raid()
8179 } else if (!sas_device->starget) { in _scsih_probe_sas()