• Home
  • Raw
  • Download

Lines Matching refs:starget

718 	struct scsi_target *starget)  in _scsih_display_enclosure_chassis_info()  argument
735 } else if (starget) { in _scsih_display_enclosure_chassis_info()
737 starget_printk(KERN_INFO, starget, in _scsih_display_enclosure_chassis_info()
743 starget_printk(KERN_INFO, starget, in _scsih_display_enclosure_chassis_info()
748 starget_printk(KERN_INFO, starget, in _scsih_display_enclosure_chassis_info()
889 } else if (!sas_device->starget) { in _scsih_sas_device_add()
1215 } else if (!pcie_device->starget) { in _scsih_pcie_device_add()
1702 scsih_target_alloc(struct scsi_target *starget) in scsih_target_alloc() argument
1704 struct Scsi_Host *shost = dev_to_shost(&starget->dev); in scsih_target_alloc()
1718 starget->hostdata = sas_target_priv_data; in scsih_target_alloc()
1719 sas_target_priv_data->starget = starget; in scsih_target_alloc()
1723 if (starget->channel == RAID_CHANNEL) { in scsih_target_alloc()
1725 raid_device = _scsih_raid_device_find_by_id(ioc, starget->id, in scsih_target_alloc()
1726 starget->channel); in scsih_target_alloc()
1733 raid_device->starget = starget; in scsih_target_alloc()
1740 if (starget->channel == PCIE_CHANNEL) { in scsih_target_alloc()
1742 pcie_device = __mpt3sas_get_pdev_by_idchannel(ioc, starget->id, in scsih_target_alloc()
1743 starget->channel); in scsih_target_alloc()
1748 pcie_device->starget = starget; in scsih_target_alloc()
1749 pcie_device->id = starget->id; in scsih_target_alloc()
1750 pcie_device->channel = starget->channel; in scsih_target_alloc()
1763 rphy = dev_to_rphy(starget->dev.parent); in scsih_target_alloc()
1771 sas_device->starget = starget; in scsih_target_alloc()
1772 sas_device->id = starget->id; in scsih_target_alloc()
1773 sas_device->channel = starget->channel; in scsih_target_alloc()
1791 scsih_target_destroy(struct scsi_target *starget) in scsih_target_destroy() argument
1793 struct Scsi_Host *shost = dev_to_shost(&starget->dev); in scsih_target_destroy()
1801 sas_target_priv_data = starget->hostdata; in scsih_target_destroy()
1805 if (starget->channel == RAID_CHANNEL) { in scsih_target_destroy()
1807 raid_device = _scsih_raid_device_find_by_id(ioc, starget->id, in scsih_target_destroy()
1808 starget->channel); in scsih_target_destroy()
1810 raid_device->starget = NULL; in scsih_target_destroy()
1817 if (starget->channel == PCIE_CHANNEL) { in scsih_target_destroy()
1821 if (pcie_device && (pcie_device->starget == starget) && in scsih_target_destroy()
1822 (pcie_device->id == starget->id) && in scsih_target_destroy()
1823 (pcie_device->channel == starget->channel)) in scsih_target_destroy()
1824 pcie_device->starget = NULL; in scsih_target_destroy()
1840 if (sas_device && (sas_device->starget == starget) && in scsih_target_destroy()
1841 (sas_device->id == starget->id) && in scsih_target_destroy()
1842 (sas_device->channel == starget->channel)) in scsih_target_destroy()
1843 sas_device->starget = NULL; in scsih_target_destroy()
1858 starget->hostdata = NULL; in scsih_target_destroy()
1875 struct scsi_target *starget; in scsih_slave_alloc() local
1889 starget = scsi_target(sdev); in scsih_slave_alloc()
1890 sas_target_priv_data = starget->hostdata; in scsih_slave_alloc()
1897 shost = dev_to_shost(&starget->dev); in scsih_slave_alloc()
1899 if (starget->channel == RAID_CHANNEL) { in scsih_slave_alloc()
1902 starget->id, starget->channel); in scsih_slave_alloc()
1907 if (starget->channel == PCIE_CHANNEL) { in scsih_slave_alloc()
1911 if (pcie_device && (pcie_device->starget == NULL)) { in scsih_slave_alloc()
1915 pcie_device->starget = starget; in scsih_slave_alloc()
1926 if (sas_device && (sas_device->starget == NULL)) { in scsih_slave_alloc()
1930 sas_device->starget = starget; in scsih_slave_alloc()
1950 struct scsi_target *starget; in scsih_slave_destroy() local
1960 starget = scsi_target(sdev); in scsih_slave_destroy()
1961 sas_target_priv_data = starget->hostdata; in scsih_slave_destroy()
1964 shost = dev_to_shost(&starget->dev); in scsih_slave_destroy()
1972 pcie_device->starget = NULL; in scsih_slave_destroy()
1984 sas_device->starget = NULL; in scsih_slave_destroy()
3045 struct scsi_target *starget = scmd->device->sdev_target; in _scsih_tm_display_info() local
3046 struct MPT3SAS_TARGET *priv_target = starget->hostdata; in _scsih_tm_display_info()
3061 starget_printk(KERN_INFO, starget, in _scsih_tm_display_info()
3070 starget_printk(KERN_INFO, starget, in _scsih_tm_display_info()
3076 starget_printk(KERN_INFO, starget, in _scsih_tm_display_info()
3082 starget_printk(KERN_INFO, starget, in _scsih_tm_display_info()
3096 starget_printk(KERN_INFO, starget, in _scsih_tm_display_info()
3102 starget_printk(KERN_INFO, starget, in _scsih_tm_display_info()
3109 NULL, starget); in _scsih_tm_display_info()
3209 struct scsi_target *starget = scmd->device->sdev_target; in scsih_dev_reset() local
3210 struct MPT3SAS_TARGET *target_priv_data = starget->hostdata; in scsih_dev_reset()
3289 struct scsi_target *starget = scmd->device->sdev_target; in scsih_target_reset() local
3290 struct MPT3SAS_TARGET *target_priv_data = starget->hostdata; in scsih_target_reset()
3292 starget_printk(KERN_INFO, starget, in scsih_target_reset()
3299 starget_printk(KERN_INFO, starget, in scsih_target_reset()
3337 if (r == SUCCESS && atomic_read(&starget->target_busy)) in scsih_target_reset()
3340 starget_printk(KERN_INFO, starget, "target reset: %s scmd(0x%p)\n", in scsih_target_reset()
3914 if (sas_device && sas_device->starget && in _scsih_tm_tr_send()
3915 sas_device->starget->hostdata) { in _scsih_tm_tr_send()
3916 sas_target_priv_data = sas_device->starget->hostdata; in _scsih_tm_tr_send()
3924 if (pcie_device && pcie_device->starget && in _scsih_tm_tr_send()
3925 pcie_device->starget->hostdata) { in _scsih_tm_tr_send()
3926 sas_target_priv_data = pcie_device->starget->hostdata; in _scsih_tm_tr_send()
4613 if (raid_device && raid_device->starget && in _scsih_set_volume_delete_flag()
4614 raid_device->starget->hostdata) { in _scsih_set_volume_delete_flag()
4616 raid_device->starget->hostdata; in _scsih_set_volume_delete_flag()
5139 struct scsi_target *starget = scmd->device->sdev_target; in _scsih_scsi_ioc_info() local
5140 struct MPT3SAS_TARGET *priv_target = starget->hostdata; in _scsih_scsi_ioc_info()
5434 struct scsi_target *starget; in _scsih_smart_predicted_fault() local
5448 starget = sas_device->starget; in _scsih_smart_predicted_fault()
5449 sas_target_priv_data = starget->hostdata; in _scsih_smart_predicted_fault()
5455 _scsih_display_enclosure_chassis_info(NULL, sas_device, NULL, starget); in _scsih_smart_predicted_fault()
6242 struct scsi_target *starget; in _scsih_check_device() local
6274 starget = sas_device->starget; in _scsih_check_device()
6275 sas_target_priv_data = starget->hostdata; in _scsih_check_device()
6276 starget_printk(KERN_INFO, starget, in _scsih_check_device()
6498 if (sas_device->starget && sas_device->starget->hostdata) { in _scsih_remove_device()
6499 sas_target_priv_data = sas_device->starget->hostdata; in _scsih_remove_device()
6832 if (!sas_device || !sas_device->starget) in _scsih_sas_device_status_change_event()
6835 target_priv_data = sas_device->starget->hostdata; in _scsih_sas_device_status_change_event()
6976 if (pcie_device->starget && pcie_device->starget->hostdata) { in _scsih_pcie_device_remove_from_sml()
6977 sas_target_priv_data = pcie_device->starget->hostdata; in _scsih_pcie_device_remove_from_sml()
6994 if (pcie_device->starget && (pcie_device->access_status != in _scsih_pcie_device_remove_from_sml()
6996 scsi_remove_target(&pcie_device->starget->dev); in _scsih_pcie_device_remove_from_sml()
7032 struct scsi_target *starget; in _scsih_pcie_check_device() local
7059 starget = pcie_device->starget; in _scsih_pcie_check_device()
7060 sas_target_priv_data = starget->hostdata; in _scsih_pcie_check_device()
7062 starget_printk(KERN_INFO, starget, in _scsih_pcie_check_device()
7555 if (!pcie_device || !pcie_device->starget) in _scsih_pcie_device_status_change_event()
7558 target_priv_data = pcie_device->starget->hostdata; in _scsih_pcie_device_status_change_event()
8101 struct scsi_target *starget = NULL; in _scsih_sas_volume_delete() local
8106 if (raid_device->starget) { in _scsih_sas_volume_delete()
8107 starget = raid_device->starget; in _scsih_sas_volume_delete()
8108 sas_target_priv_data = starget->hostdata; in _scsih_sas_volume_delete()
8117 if (starget) in _scsih_sas_volume_delete()
8118 scsi_remove_target(&starget->dev); in _scsih_sas_volume_delete()
8132 struct scsi_target *starget = NULL; in _scsih_sas_pd_expose() local
8143 if (sas_device->starget && sas_device->starget->hostdata) { in _scsih_sas_pd_expose()
8144 starget = sas_device->starget; in _scsih_sas_pd_expose()
8145 sas_target_priv_data = starget->hostdata; in _scsih_sas_pd_expose()
8155 if (starget) in _scsih_sas_pd_expose()
8156 starget_for_each_device(starget, NULL, _scsih_reprobe_lun); in _scsih_sas_pd_expose()
8172 struct scsi_target *starget = NULL; in _scsih_sas_pd_hide() local
8188 if (sas_device->starget && sas_device->starget->hostdata) { in _scsih_sas_pd_hide()
8189 starget = sas_device->starget; in _scsih_sas_pd_hide()
8190 sas_target_priv_data = starget->hostdata; in _scsih_sas_pd_hide()
8204 if (starget) in _scsih_sas_pd_hide()
8205 starget_for_each_device(starget, (void *)1, _scsih_reprobe_lun); in _scsih_sas_pd_hide()
8697 struct scsi_target *starget; in _scsih_mark_responding_sas_device() local
8716 starget = sas_device->starget; in _scsih_mark_responding_sas_device()
8717 if (starget && starget->hostdata) { in _scsih_mark_responding_sas_device()
8718 sas_target_priv_data = starget->hostdata; in _scsih_mark_responding_sas_device()
8723 if (starget) { in _scsih_mark_responding_sas_device()
8724 starget_printk(KERN_INFO, starget, in _scsih_mark_responding_sas_device()
8731 starget_printk(KERN_INFO, starget, in _scsih_mark_responding_sas_device()
8876 struct scsi_target *starget; in _scsih_mark_responding_pcie_device() local
8888 starget = pcie_device->starget; in _scsih_mark_responding_pcie_device()
8889 if (starget && starget->hostdata) { in _scsih_mark_responding_pcie_device()
8890 sas_target_priv_data = starget->hostdata; in _scsih_mark_responding_pcie_device()
8895 if (starget) { in _scsih_mark_responding_pcie_device()
8896 starget_printk(KERN_INFO, starget, in _scsih_mark_responding_pcie_device()
8901 starget_printk(KERN_INFO, starget, in _scsih_mark_responding_pcie_device()
8996 struct scsi_target *starget; in _scsih_mark_responding_raid_device() local
9002 if (raid_device->wwid == wwid && raid_device->starget) { in _scsih_mark_responding_raid_device()
9003 starget = raid_device->starget; in _scsih_mark_responding_raid_device()
9004 if (starget && starget->hostdata) { in _scsih_mark_responding_raid_device()
9005 sas_target_priv_data = starget->hostdata; in _scsih_mark_responding_raid_device()
9011 starget_printk(KERN_INFO, raid_device->starget, in _scsih_mark_responding_raid_device()
10193 if (raid_device->starget) { in scsih_remove()
10195 raid_device->starget->hostdata; in scsih_remove()
10197 scsi_remove_target(&raid_device->starget->dev); in scsih_remove()
10353 } else if (!sas_device->starget) { in _scsih_probe_boot_devices()
10378 if (raid_device->starget) in _scsih_probe_raid()
10449 } else if (!sas_device->starget) { in _scsih_probe_sas()
10534 if (pcie_device->starget) { in _scsih_probe_pcie()
10550 } else if (!pcie_device->starget) { in _scsih_probe_pcie()