Lines Matching refs:starget
692 * @tgt_priv: starget private object
867 * @starget: scsi target struct
872 struct scsi_target *starget)
889 } else if (starget) {
891 starget_printk(KERN_INFO, starget,
897 starget_printk(KERN_INFO, starget,
902 starget_printk(KERN_INFO, starget,
1047 } else if (!sas_device->starget) {
1374 } else if (!pcie_device->starget) {
1862 * @starget: scsi target struct
1868 scsih_target_alloc(struct scsi_target *starget)
1870 struct Scsi_Host *shost = dev_to_shost(&starget->dev);
1884 starget->hostdata = sas_target_priv_data;
1885 sas_target_priv_data->starget = starget;
1889 if (starget->channel == RAID_CHANNEL) {
1891 raid_device = _scsih_raid_device_find_by_id(ioc, starget->id,
1892 starget->channel);
1899 raid_device->starget = starget;
1906 if (starget->channel == PCIE_CHANNEL) {
1908 pcie_device = __mpt3sas_get_pdev_by_idchannel(ioc, starget->id,
1909 starget->channel);
1915 pcie_device->starget = starget;
1916 pcie_device->id = starget->id;
1917 pcie_device->channel = starget->channel;
1930 rphy = dev_to_rphy(starget->dev.parent);
1938 sas_device->starget = starget;
1939 sas_device->id = starget->id;
1940 sas_device->channel = starget->channel;
1955 * @starget: scsi target struct
1958 scsih_target_destroy(struct scsi_target *starget)
1960 struct Scsi_Host *shost = dev_to_shost(&starget->dev);
1968 sas_target_priv_data = starget->hostdata;
1972 if (starget->channel == RAID_CHANNEL) {
1974 raid_device = _scsih_raid_device_find_by_id(ioc, starget->id,
1975 starget->channel);
1977 raid_device->starget = NULL;
1984 if (starget->channel == PCIE_CHANNEL) {
1988 if (pcie_device && (pcie_device->starget == starget) &&
1989 (pcie_device->id == starget->id) &&
1990 (pcie_device->channel == starget->channel))
1991 pcie_device->starget = NULL;
2007 if (sas_device && (sas_device->starget == starget) &&
2008 (sas_device->id == starget->id) &&
2009 (sas_device->channel == starget->channel))
2010 sas_device->starget = NULL;
2025 starget->hostdata = NULL;
2042 struct scsi_target *starget;
2056 starget = scsi_target(sdev);
2057 sas_target_priv_data = starget->hostdata;
2064 shost = dev_to_shost(&starget->dev);
2066 if (starget->channel == RAID_CHANNEL) {
2069 starget->id, starget->channel);
2074 if (starget->channel == PCIE_CHANNEL) {
2078 if (pcie_device && (pcie_device->starget == NULL)) {
2080 "%s : pcie_device->starget set to starget @ %d\n",
2082 pcie_device->starget = starget;
2094 if (sas_device && (sas_device->starget == NULL)) {
2096 "%s : sas_device->starget set to starget @ %d\n",
2098 sas_device->starget = starget;
2118 struct scsi_target *starget;
2128 starget = scsi_target(sdev);
2129 sas_target_priv_data = starget->hostdata;
2132 shost = dev_to_shost(&starget->dev);
2140 pcie_device->starget = NULL;
2152 sas_device->starget = NULL;
3215 struct scsi_target *starget = scmd->device->sdev_target;
3216 struct MPT3SAS_TARGET *priv_target = starget->hostdata;
3231 starget_printk(KERN_INFO, starget,
3240 starget_printk(KERN_INFO, starget,
3246 starget_printk(KERN_INFO, starget,
3252 starget_printk(KERN_INFO, starget,
3266 starget_printk(KERN_INFO, starget,
3272 starget_printk(KERN_INFO, starget,
3279 NULL, starget);
3379 struct scsi_target *starget = scmd->device->sdev_target;
3380 struct MPT3SAS_TARGET *target_priv_data = starget->hostdata;
3459 struct scsi_target *starget = scmd->device->sdev_target;
3460 struct MPT3SAS_TARGET *target_priv_data = starget->hostdata;
3462 starget_printk(KERN_INFO, starget,
3469 starget_printk(KERN_INFO, starget,
3507 if (r == SUCCESS && atomic_read(&starget->target_busy))
3510 starget_printk(KERN_INFO, starget, "target reset: %s scmd(0x%p)\n",
4112 if (sas_device && sas_device->starget &&
4113 sas_device->starget->hostdata) {
4114 sas_target_priv_data = sas_device->starget->hostdata;
4123 if (pcie_device && pcie_device->starget &&
4124 pcie_device->starget->hostdata) {
4125 sas_target_priv_data = pcie_device->starget->hostdata;
4812 if (raid_device && raid_device->starget &&
4813 raid_device->starget->hostdata) {
4815 raid_device->starget->hostdata;
5335 struct scsi_target *starget = scmd->device->sdev_target;
5336 struct MPT3SAS_TARGET *priv_target = starget->hostdata;
5630 struct scsi_target *starget;
5644 starget = sas_device->starget;
5645 sas_target_priv_data = starget->hostdata;
5651 _scsih_display_enclosure_chassis_info(NULL, sas_device, NULL, starget);
7195 struct scsi_target *starget;
7231 starget = sas_device->starget;
7232 sas_target_priv_data = starget->hostdata;
7233 starget_printk(KERN_INFO, starget,
7468 if (sas_device->starget && sas_device->starget->hostdata) {
7469 sas_target_priv_data = sas_device->starget->hostdata;
7808 if (!sas_device || !sas_device->starget)
7811 target_priv_data = sas_device->starget->hostdata;
7952 if (pcie_device->starget && pcie_device->starget->hostdata) {
7953 sas_target_priv_data = pcie_device->starget->hostdata;
7970 if (pcie_device->starget && (pcie_device->access_status !=
7972 scsi_remove_target(&pcie_device->starget->dev);
8008 struct scsi_target *starget;
8035 starget = pcie_device->starget;
8036 sas_target_priv_data = starget->hostdata;
8038 starget_printk(KERN_INFO, starget,
8531 if (!pcie_device || !pcie_device->starget)
8534 target_priv_data = pcie_device->starget->hostdata;
9077 struct scsi_target *starget = NULL;
9082 if (raid_device->starget) {
9083 starget = raid_device->starget;
9084 sas_target_priv_data = starget->hostdata;
9093 if (starget)
9094 scsi_remove_target(&starget->dev);
9108 struct scsi_target *starget = NULL;
9119 if (sas_device->starget && sas_device->starget->hostdata) {
9120 starget = sas_device->starget;
9121 sas_target_priv_data = starget->hostdata;
9131 if (starget)
9132 starget_for_each_device(starget, NULL, _scsih_reprobe_lun);
9148 struct scsi_target *starget = NULL;
9164 if (sas_device->starget && sas_device->starget->hostdata) {
9165 starget = sas_device->starget;
9166 sas_target_priv_data = starget->hostdata;
9180 if (starget)
9181 starget_for_each_device(starget, (void *)1, _scsih_reprobe_lun);
9713 struct scsi_target *starget;
9738 starget = sas_device->starget;
9739 if (starget && starget->hostdata) {
9740 sas_target_priv_data = starget->hostdata;
9745 if (starget) {
9746 starget_printk(KERN_INFO, starget,
9753 starget_printk(KERN_INFO, starget,
9896 struct scsi_target *starget;
9908 starget = pcie_device->starget;
9909 if (starget && starget->hostdata) {
9910 sas_target_priv_data = starget->hostdata;
9915 if (starget) {
9916 starget_printk(KERN_INFO, starget,
9921 starget_printk(KERN_INFO, starget,
10016 struct scsi_target *starget;
10022 if (raid_device->wwid == wwid && raid_device->starget) {
10023 starget = raid_device->starget;
10024 if (starget && starget->hostdata) {
10025 sas_target_priv_data = starget->hostdata;
10031 starget_printk(KERN_INFO, raid_device->starget,
11305 if (raid_device->starget) {
11307 raid_device->starget->hostdata;
11309 scsi_remove_target(&raid_device->starget->dev);
11460 if (raid_device->starget)
11473 if (pcie_device->starget)
11489 if (sas_device->starget)
11508 } else if (!sas_device->starget) {
11533 if (raid_device->starget)
11604 } else if (!sas_device->starget) {
11690 if (pcie_device->starget) {
11706 } else if (!pcie_device->starget) {