Lines Matching refs:starget

873 	struct scsi_target *starget)  in _scsih_display_enclosure_chassis_info()  argument
890 } else if (starget) { in _scsih_display_enclosure_chassis_info()
892 starget_printk(KERN_INFO, starget, in _scsih_display_enclosure_chassis_info()
898 starget_printk(KERN_INFO, starget, in _scsih_display_enclosure_chassis_info()
903 starget_printk(KERN_INFO, starget, in _scsih_display_enclosure_chassis_info()
1048 } else if (!sas_device->starget) { in _scsih_sas_device_add()
1375 } else if (!pcie_device->starget) { in _scsih_pcie_device_add()
1869 scsih_target_alloc(struct scsi_target *starget) in scsih_target_alloc() argument
1871 struct Scsi_Host *shost = dev_to_shost(&starget->dev); in scsih_target_alloc()
1885 starget->hostdata = sas_target_priv_data; in scsih_target_alloc()
1886 sas_target_priv_data->starget = starget; in scsih_target_alloc()
1890 if (starget->channel == RAID_CHANNEL) { in scsih_target_alloc()
1892 raid_device = _scsih_raid_device_find_by_id(ioc, starget->id, in scsih_target_alloc()
1893 starget->channel); in scsih_target_alloc()
1900 raid_device->starget = starget; in scsih_target_alloc()
1907 if (starget->channel == PCIE_CHANNEL) { in scsih_target_alloc()
1909 pcie_device = __mpt3sas_get_pdev_by_idchannel(ioc, starget->id, in scsih_target_alloc()
1910 starget->channel); in scsih_target_alloc()
1916 pcie_device->starget = starget; in scsih_target_alloc()
1917 pcie_device->id = starget->id; in scsih_target_alloc()
1918 pcie_device->channel = starget->channel; in scsih_target_alloc()
1931 rphy = dev_to_rphy(starget->dev.parent); in scsih_target_alloc()
1939 sas_device->starget = starget; in scsih_target_alloc()
1940 sas_device->id = starget->id; in scsih_target_alloc()
1941 sas_device->channel = starget->channel; in scsih_target_alloc()
1959 scsih_target_destroy(struct scsi_target *starget) in scsih_target_destroy() argument
1961 struct Scsi_Host *shost = dev_to_shost(&starget->dev); in scsih_target_destroy()
1969 sas_target_priv_data = starget->hostdata; in scsih_target_destroy()
1973 if (starget->channel == RAID_CHANNEL) { in scsih_target_destroy()
1975 raid_device = _scsih_raid_device_find_by_id(ioc, starget->id, in scsih_target_destroy()
1976 starget->channel); in scsih_target_destroy()
1978 raid_device->starget = NULL; in scsih_target_destroy()
1985 if (starget->channel == PCIE_CHANNEL) { in scsih_target_destroy()
1989 if (pcie_device && (pcie_device->starget == starget) && in scsih_target_destroy()
1990 (pcie_device->id == starget->id) && in scsih_target_destroy()
1991 (pcie_device->channel == starget->channel)) in scsih_target_destroy()
1992 pcie_device->starget = NULL; in scsih_target_destroy()
2008 if (sas_device && (sas_device->starget == starget) && in scsih_target_destroy()
2009 (sas_device->id == starget->id) && in scsih_target_destroy()
2010 (sas_device->channel == starget->channel)) in scsih_target_destroy()
2011 sas_device->starget = NULL; in scsih_target_destroy()
2026 starget->hostdata = NULL; in scsih_target_destroy()
2043 struct scsi_target *starget; in scsih_slave_alloc() local
2057 starget = scsi_target(sdev); in scsih_slave_alloc()
2058 sas_target_priv_data = starget->hostdata; in scsih_slave_alloc()
2065 shost = dev_to_shost(&starget->dev); in scsih_slave_alloc()
2067 if (starget->channel == RAID_CHANNEL) { in scsih_slave_alloc()
2070 starget->id, starget->channel); in scsih_slave_alloc()
2075 if (starget->channel == PCIE_CHANNEL) { in scsih_slave_alloc()
2079 if (pcie_device && (pcie_device->starget == NULL)) { in scsih_slave_alloc()
2083 pcie_device->starget = starget; in scsih_slave_alloc()
2095 if (sas_device && (sas_device->starget == NULL)) { in scsih_slave_alloc()
2099 sas_device->starget = starget; in scsih_slave_alloc()
2119 struct scsi_target *starget; in scsih_slave_destroy() local
2129 starget = scsi_target(sdev); in scsih_slave_destroy()
2130 sas_target_priv_data = starget->hostdata; in scsih_slave_destroy()
2133 shost = dev_to_shost(&starget->dev); in scsih_slave_destroy()
2141 pcie_device->starget = NULL; in scsih_slave_destroy()
2153 sas_device->starget = NULL; in scsih_slave_destroy()
3216 struct scsi_target *starget = scmd->device->sdev_target; in _scsih_tm_display_info() local
3217 struct MPT3SAS_TARGET *priv_target = starget->hostdata; in _scsih_tm_display_info()
3232 starget_printk(KERN_INFO, starget, in _scsih_tm_display_info()
3241 starget_printk(KERN_INFO, starget, in _scsih_tm_display_info()
3247 starget_printk(KERN_INFO, starget, in _scsih_tm_display_info()
3253 starget_printk(KERN_INFO, starget, in _scsih_tm_display_info()
3267 starget_printk(KERN_INFO, starget, in _scsih_tm_display_info()
3273 starget_printk(KERN_INFO, starget, in _scsih_tm_display_info()
3280 NULL, starget); in _scsih_tm_display_info()
3380 struct scsi_target *starget = scmd->device->sdev_target; in scsih_dev_reset() local
3381 struct MPT3SAS_TARGET *target_priv_data = starget->hostdata; in scsih_dev_reset()
3460 struct scsi_target *starget = scmd->device->sdev_target; in scsih_target_reset() local
3461 struct MPT3SAS_TARGET *target_priv_data = starget->hostdata; in scsih_target_reset()
3463 starget_printk(KERN_INFO, starget, in scsih_target_reset()
3470 starget_printk(KERN_INFO, starget, in scsih_target_reset()
3508 if (r == SUCCESS && atomic_read(&starget->target_busy)) in scsih_target_reset()
3511 starget_printk(KERN_INFO, starget, "target reset: %s scmd(0x%p)\n", in scsih_target_reset()
4113 if (sas_device && sas_device->starget && in _scsih_tm_tr_send()
4114 sas_device->starget->hostdata) { in _scsih_tm_tr_send()
4115 sas_target_priv_data = sas_device->starget->hostdata; in _scsih_tm_tr_send()
4124 if (pcie_device && pcie_device->starget && in _scsih_tm_tr_send()
4125 pcie_device->starget->hostdata) { in _scsih_tm_tr_send()
4126 sas_target_priv_data = pcie_device->starget->hostdata; in _scsih_tm_tr_send()
4813 if (raid_device && raid_device->starget && in _scsih_set_volume_delete_flag()
4814 raid_device->starget->hostdata) { in _scsih_set_volume_delete_flag()
4816 raid_device->starget->hostdata; in _scsih_set_volume_delete_flag()
5323 struct scsi_target *starget = scmd->device->sdev_target; in _scsih_scsi_ioc_info() local
5324 struct MPT3SAS_TARGET *priv_target = starget->hostdata; in _scsih_scsi_ioc_info()
5618 struct scsi_target *starget; in _scsih_smart_predicted_fault() local
5632 starget = sas_device->starget; in _scsih_smart_predicted_fault()
5633 sas_target_priv_data = starget->hostdata; in _scsih_smart_predicted_fault()
5639 _scsih_display_enclosure_chassis_info(NULL, sas_device, NULL, starget); in _scsih_smart_predicted_fault()
7183 struct scsi_target *starget; in _scsih_check_device() local
7219 starget = sas_device->starget; in _scsih_check_device()
7220 sas_target_priv_data = starget->hostdata; in _scsih_check_device()
7221 starget_printk(KERN_INFO, starget, in _scsih_check_device()
7456 if (sas_device->starget && sas_device->starget->hostdata) { in _scsih_remove_device()
7457 sas_target_priv_data = sas_device->starget->hostdata; in _scsih_remove_device()
7796 if (!sas_device || !sas_device->starget) in _scsih_sas_device_status_change_event()
7799 target_priv_data = sas_device->starget->hostdata; in _scsih_sas_device_status_change_event()
7940 if (pcie_device->starget && pcie_device->starget->hostdata) { in _scsih_pcie_device_remove_from_sml()
7941 sas_target_priv_data = pcie_device->starget->hostdata; in _scsih_pcie_device_remove_from_sml()
7958 if (pcie_device->starget && (pcie_device->access_status != in _scsih_pcie_device_remove_from_sml()
7960 scsi_remove_target(&pcie_device->starget->dev); in _scsih_pcie_device_remove_from_sml()
7996 struct scsi_target *starget; in _scsih_pcie_check_device() local
8023 starget = pcie_device->starget; in _scsih_pcie_check_device()
8024 sas_target_priv_data = starget->hostdata; in _scsih_pcie_check_device()
8026 starget_printk(KERN_INFO, starget, in _scsih_pcie_check_device()
8519 if (!pcie_device || !pcie_device->starget) in _scsih_pcie_device_status_change_event()
8522 target_priv_data = pcie_device->starget->hostdata; in _scsih_pcie_device_status_change_event()
9065 struct scsi_target *starget = NULL; in _scsih_sas_volume_delete() local
9070 if (raid_device->starget) { in _scsih_sas_volume_delete()
9071 starget = raid_device->starget; in _scsih_sas_volume_delete()
9072 sas_target_priv_data = starget->hostdata; in _scsih_sas_volume_delete()
9081 if (starget) in _scsih_sas_volume_delete()
9082 scsi_remove_target(&starget->dev); in _scsih_sas_volume_delete()
9096 struct scsi_target *starget = NULL; in _scsih_sas_pd_expose() local
9107 if (sas_device->starget && sas_device->starget->hostdata) { in _scsih_sas_pd_expose()
9108 starget = sas_device->starget; in _scsih_sas_pd_expose()
9109 sas_target_priv_data = starget->hostdata; in _scsih_sas_pd_expose()
9119 if (starget) in _scsih_sas_pd_expose()
9120 starget_for_each_device(starget, NULL, _scsih_reprobe_lun); in _scsih_sas_pd_expose()
9136 struct scsi_target *starget = NULL; in _scsih_sas_pd_hide() local
9152 if (sas_device->starget && sas_device->starget->hostdata) { in _scsih_sas_pd_hide()
9153 starget = sas_device->starget; in _scsih_sas_pd_hide()
9154 sas_target_priv_data = starget->hostdata; in _scsih_sas_pd_hide()
9168 if (starget) in _scsih_sas_pd_hide()
9169 starget_for_each_device(starget, (void *)1, _scsih_reprobe_lun); in _scsih_sas_pd_hide()
9701 struct scsi_target *starget; in _scsih_mark_responding_sas_device() local
9726 starget = sas_device->starget; in _scsih_mark_responding_sas_device()
9727 if (starget && starget->hostdata) { in _scsih_mark_responding_sas_device()
9728 sas_target_priv_data = starget->hostdata; in _scsih_mark_responding_sas_device()
9733 if (starget) { in _scsih_mark_responding_sas_device()
9734 starget_printk(KERN_INFO, starget, in _scsih_mark_responding_sas_device()
9741 starget_printk(KERN_INFO, starget, in _scsih_mark_responding_sas_device()
9884 struct scsi_target *starget; in _scsih_mark_responding_pcie_device() local
9896 starget = pcie_device->starget; in _scsih_mark_responding_pcie_device()
9897 if (starget && starget->hostdata) { in _scsih_mark_responding_pcie_device()
9898 sas_target_priv_data = starget->hostdata; in _scsih_mark_responding_pcie_device()
9903 if (starget) { in _scsih_mark_responding_pcie_device()
9904 starget_printk(KERN_INFO, starget, in _scsih_mark_responding_pcie_device()
9909 starget_printk(KERN_INFO, starget, in _scsih_mark_responding_pcie_device()
10004 struct scsi_target *starget; in _scsih_mark_responding_raid_device() local
10010 if (raid_device->wwid == wwid && raid_device->starget) { in _scsih_mark_responding_raid_device()
10011 starget = raid_device->starget; in _scsih_mark_responding_raid_device()
10012 if (starget && starget->hostdata) { in _scsih_mark_responding_raid_device()
10013 sas_target_priv_data = starget->hostdata; in _scsih_mark_responding_raid_device()
10019 starget_printk(KERN_INFO, raid_device->starget, in _scsih_mark_responding_raid_device()
11290 if (raid_device->starget) { in scsih_remove()
11292 raid_device->starget->hostdata; in scsih_remove()
11294 scsi_remove_target(&raid_device->starget->dev); in scsih_remove()
11444 if (raid_device->starget) in _scsih_probe_boot_devices()
11457 if (pcie_device->starget) in _scsih_probe_boot_devices()
11473 if (sas_device->starget) in _scsih_probe_boot_devices()
11492 } else if (!sas_device->starget) { in _scsih_probe_boot_devices()
11517 if (raid_device->starget) in _scsih_probe_raid()
11588 } else if (!sas_device->starget) { in _scsih_probe_sas()
11674 if (pcie_device->starget) { in _scsih_probe_pcie()
11690 } else if (!pcie_device->starget) { in _scsih_probe_pcie()