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