Lines Matching refs:ScsiNexus
871 cpqfcTSTerminateExchange(dev, &pFcPort->ScsiNexus, DEVICE_REMOVED); in cpqfcTSImplicitLogout()
884 pFcPort->ScsiNexus.VolumeSetAddressing = 0; in cpqfcTSImplicitLogout()
944 pNextLoggedInPort->ScsiNexus.target = 0; in CreateFcPort()
945 fcChip->fcPorts.ScsiNexus.target = -1; // don't use "stub" in CreateFcPort()
947 pNextLoggedInPort->ScsiNexus.target = dev->HostAdapter->max_id; in CreateFcPort()
952 pNextLoggedInPort->ScsiNexus.lun[i] = 0xFF; // init to NOT USED in CreateFcPort()
954 pNextLoggedInPort->ScsiNexus.channel = 0; // cpqfcTS has 1 FC port in CreateFcPort()
955 …printk(" SCSI Chan/Trgt %d/%d", pNextLoggedInPort->ScsiNexus.channel, pNextLoggedInPort->ScsiNexus… in CreateFcPort()
962 pNextLoggedInPort->ScsiNexus.target = -1; // invalid in CreateFcPort()
984 void cpqfcTSTerminateExchange(CPQFCHBA * dev, SCSI_NEXUS * ScsiNexus, int TerminateStatus) in cpqfcTSTerminateExchange() argument
990 if (ScsiNexus) { in cpqfcTSTerminateExchange()
997 if (ScsiNexus == NULL) // our HBA changed - term. all in cpqfcTSTerminateExchange()
1007 if ((Exchanges->fcExchange[x_ID].Cmnd->target == ScsiNexus->target) in cpqfcTSTerminateExchange()
1008 && (Exchanges->fcExchange[x_ID].Cmnd->channel == ScsiNexus->channel)) { in cpqfcTSTerminateExchange()
1104 cpqfcTSTerminateExchange(dev, &pLoggedInPort->ScsiNexus, PORTID_CHANGED); in ProcessELS_Request()
1173 cpqfcTSTerminateExchange(dev, &pLoggedInPort->ScsiNexus, PORTID_CHANGED); in ProcessELS_Request()
1262 cpqfcTSTerminateExchange(dev, &pLoggedInPort->ScsiNexus, PORTID_CHANGED); in ProcessELS_Request()
1272 cpqfcTSTerminateExchange(dev, &pLoggedInPort->ScsiNexus, DEVICE_REMOVED); in ProcessELS_Request()
1410 cpqfcTSTerminateExchange(dev, &pLoggedInPort->ScsiNexus, PORTID_CHANGED); in ProcessELS_Reply()
1514 cpqfcTSTerminateExchange(dev, &pLoggedInPort->ScsiNexus, PORTID_CHANGED); in ProcessELS_Reply()
2176 pLoggedInPort->ScsiNexus.VolumeSetAddressing = 0; in ScsiReportLunsDone()
2181 pLoggedInPort->ScsiNexus.VolumeSetAddressing = ucBuff[8]; in ScsiReportLunsDone()
2184 pLoggedInPort->ScsiNexus.LunMasking = 1; in ScsiReportLunsDone()
2223 if (pLoggedInPort->ScsiNexus.lun[j] != 0xFF) { in ScsiReportLunsDone()
2241 if (pLoggedInPort->ScsiNexus.lun[j] != ucBuff[i + 1]) { in ScsiReportLunsDone()
2245 if (pLoggedInPort->ScsiNexus.lun[k] == 0xFF) { in ScsiReportLunsDone()
2249 if (pLoggedInPort->ScsiNexus.lun[k] == ucBuff[i + 1]) in ScsiReportLunsDone()
2256 pLoggedInPort->ScsiNexus.lun[k] = ucBuff[i + 1]; in ScsiReportLunsDone()
2267 if (pLoggedInPort->ScsiNexus.lun[j] == 0xFF) in ScsiReportLunsDone()
2275 pLoggedInPort->ScsiNexus.lun[j] = ucBuff[i + 1]; in ScsiReportLunsDone()
2355 Cmnd->channel = pLoggedInPort->ScsiNexus.channel; in IssueReportLunsCommand()
2356 Cmnd->target = pLoggedInPort->ScsiNexus.target; in IssueReportLunsCommand()
2692 if ((pLoggedInPort->ScsiNexus.target == Cmnd->target) in fcFindLoggedInPort()
2693 && (pLoggedInPort->ScsiNexus.channel == Cmnd->channel)) { in fcFindLoggedInPort()
2700 Cmnd->SCp.phase = pLoggedInPort->ScsiNexus.VolumeSetAddressing; in fcFindLoggedInPort()
2703 Cmnd->SCp.Message = pLoggedInPort->ScsiNexus.InqDeviceType; in fcFindLoggedInPort()
2708 if (pLoggedInPort->ScsiNexus.LunMasking == 1) { in fcFindLoggedInPort()
2710 if (Cmnd->lun > sizeof(pLoggedInPort->ScsiNexus.lun)){ in fcFindLoggedInPort()
2714 Cmnd->SCp.have_data_in = pLoggedInPort->ScsiNexus.lun[Cmnd->lun]; in fcFindLoggedInPort()
2715 if (pLoggedInPort->ScsiNexus.lun[Cmnd->lun] == 0xFF) in fcFindLoggedInPort()
2810 if ((Cmnd->target == pLoggedInPort->ScsiNexus.target) in UnblockScsiDevice()
2811 && (Cmnd->channel == pLoggedInPort->ScsiNexus.channel)) { in UnblockScsiDevice()
5195 pLoggedInPort->ScsiNexus.InqDeviceType = InquiryData[0]; in cpqfcTSCheckandSnoopFCP()